]> nos-oignons.net Git - website.git/commitdiff
Ajout du langcode a la balise html + class sur body.
authoropi <opi@zeropi.net>
Wed, 18 Jul 2018 10:47:23 +0000 (12:47 +0200)
committeropi <opi@zeropi.net>
Thu, 19 Jul 2018 13:20:43 +0000 (15:20 +0200)
templates/page.tmpl

index a48b00809b5b3f9ac482e91f34265961affee115..90b645ddeb74cdeb01e098698459e2c0a7d379cd 100644 (file)
@@ -1,5 +1,5 @@
 <TMPL_IF HTML5><!DOCTYPE html>
-<html>
+<html lang="<TMPL_VAR HTML_LANG_CODE>">
 <TMPL_ELSE><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
@@ -39,7 +39,7 @@
 </TMPL_LOOP>
     <script defer src="<TMPL_VAR BASEURL>assets/scripts.js" type="text/javascript"></script>
 </head>
-<body class="">
+<body class="lang-<TMPL_VAR HTML_LANG_CODE>">
 <div class="body-wrapper">
     <!-- HEADER -->
     <TMPL_IF HTML5><header class="header"><TMPL_ELSE><div class="header"></TMPL_IF>