librealire/squelettes/inclure/head.html

56 lines
2.1 KiB
HTML
Raw Normal View History

2021-02-24 11:38:12 +01:00
[(#REM)
Head standard de toutes les pages ; les elements specifiques
(title, description) figurent dans le squelette article.html
]
<meta name="generator" content="SPIP[ (#SPIP_VERSION)]" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
#INSERT_HEAD_CSS
#INSERT_HEAD
[<link rel="stylesheet" href="(#CSS{css/spip.css})" type="text/css" />]
[<link rel="stylesheet" href="(#CSS{css/media.css})" type="text/css" />]
[(#REM) Thème SCSS du plugin ]
[<link rel="stylesheet" href="(#CSS{scss/baz_fonts.css})" type="text/css" />]
[<link rel="stylesheet" href="(#CSS{scss/theme.css})" type="text/css" />]
[<link rel="stylesheet" href="(#CSS{css/perso.css})" type="text/css" />]
[(#REM) scripts génériques ]
[<script type="text/javascript" src="(#CHEMIN{javascript/script.js}|timestamp)"></script>]
[<script type="text/javascript" src="(#CHEMIN{javascript/perso.js}|timestamp)"></script>]
[(#REM) flux RSS ]
[<link rel="alternate" type="application/rss+xml" title="<:syndiquer_site:/>" href="(#URL_PAGE{backend}|url_absolue)" />]
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push([function() {
var self = this;
function getOriginalVisitorCookieTimeout() {
var now = new Date(),
nowTs = Math.round(now.getTime() / 1000),
visitorInfo = self.getVisitorInfo();
var createTs = parseInt(visitorInfo[2]);
var cookieTimeout = 33696000; // 13 mois en secondes
var originalTimeout = createTs + cookieTimeout - nowTs;
return originalTimeout;
}
this.setVisitorCookieTimeout( getOriginalVisitorCookieTimeout() );
}]);
2021-02-24 11:38:12 +01:00
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//statistiques.april.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '7']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->