e75bff12bc1ba233e5039aff5a4ef7bc6d23c7b4b250837b1fc67ad4ea09bcd7.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. <?php
  2. /* partials/base.html.twig */
  3. class __TwigTemplate_e91027722cad10716b56a087dd291b69ab5964f7591be07fc46b0fc68177eecb extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = false;
  9. $this->blocks = array(
  10. 'head' => array($this, 'block_head'),
  11. 'stylesheets' => array($this, 'block_stylesheets'),
  12. 'javascripts' => array($this, 'block_javascripts'),
  13. 'header' => array($this, 'block_header'),
  14. 'header_navigation' => array($this, 'block_header_navigation'),
  15. 'body' => array($this, 'block_body'),
  16. 'content' => array($this, 'block_content'),
  17. 'footer' => array($this, 'block_footer'),
  18. 'bottom' => array($this, 'block_bottom'),
  19. );
  20. }
  21. protected function doDisplay(array $context, array $blocks = array())
  22. {
  23. // line 1
  24. $context["theme_config"] = $this->getAttribute($this->getAttribute(($context["config"] ?? null), "themes", array()), $this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "pages", array()), "theme", array()));
  25. // line 2
  26. echo "<!DOCTYPE html>
  27. <html lang=\"";
  28. // line 3
  29. echo (($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "language", array()), "getLanguage", array())) ? ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "language", array()), "getLanguage", array())) : ("fr"));
  30. echo "\">
  31. <head>
  32. ";
  33. // line 5
  34. $this->displayBlock('head', $context, $blocks);
  35. // line 34
  36. echo "</head>
  37. <body id=\"top\">
  38. ";
  39. // line 38
  40. $this->displayBlock('header', $context, $blocks);
  41. // line 65
  42. echo "
  43. ";
  44. // line 66
  45. $this->displayBlock('body', $context, $blocks);
  46. // line 75
  47. echo "
  48. ";
  49. // line 76
  50. $this->displayBlock('footer', $context, $blocks);
  51. // line 80
  52. echo "
  53. ";
  54. // line 81
  55. $this->displayBlock('bottom', $context, $blocks);
  56. // line 84
  57. echo "</body>
  58. </html>
  59. ";
  60. }
  61. // line 5
  62. public function block_head($context, array $blocks = array())
  63. {
  64. // line 6
  65. echo " <meta charset=\"utf-8\" />
  66. <title>";
  67. // line 7
  68. if ($this->getAttribute(($context["header"] ?? null), "title", array())) {
  69. echo twig_escape_filter($this->env, $this->getAttribute(($context["header"] ?? null), "title", array()), "html");
  70. echo " | ";
  71. }
  72. echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute($this->getAttribute(($context["config"] ?? null), "site", array()), "title", array()), "html");
  73. echo "</title>
  74. ";
  75. // line 8
  76. $this->loadTemplate("partials/metadata.html.twig", "partials/base.html.twig", 8)->display($context);
  77. // line 9
  78. echo " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\">
  79. <link rel=\"icon\" type=\"image/png\" href=\"";
  80. // line 10
  81. echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->urlFunc("theme://images/favicon.png");
  82. echo "\" />
  83. <link rel=\"canonical\" href=\"";
  84. // line 11
  85. echo $this->getAttribute(($context["page"] ?? null), "url", array(0 => true, 1 => true), "method");
  86. echo "\" />
  87. <link rel=\"alternate\" href=\"/home-fr\" hreflang=\"fr\" />
  88. <link rel=\"alternate\" href=\"/home-en\" hreflang=\"en\" />
  89. ";
  90. // line 15
  91. $this->displayBlock('stylesheets', $context, $blocks);
  92. // line 23
  93. echo " ";
  94. echo $this->getAttribute(($context["assets"] ?? null), "css", array(), "method");
  95. echo "
  96. ";
  97. // line 25
  98. $this->displayBlock('javascripts', $context, $blocks);
  99. // line 32
  100. echo " ";
  101. echo $this->getAttribute(($context["assets"] ?? null), "js", array(), "method");
  102. echo "
  103. ";
  104. }
  105. // line 15
  106. public function block_stylesheets($context, array $blocks = array())
  107. {
  108. // line 16
  109. echo " ";
  110. $this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => "theme://css/jquery.bxslider.css", 1 => 101), "method");
  111. // line 17
  112. echo " ";
  113. $this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => "theme://css/style.css", 1 => 101), "method");
  114. // line 18
  115. echo " ";
  116. $this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => "theme://css-compiled/template.css", 1 => 101), "method");
  117. // line 19
  118. echo " ";
  119. $this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => "theme://css/jquery.mCustomScrollbar.css", 1 => 101), "method");
  120. // line 20
  121. echo " ";
  122. $this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => "theme://css/media-queries.css", 1 => 101), "method");
  123. // line 21
  124. echo "
  125. ";
  126. }
  127. // line 25
  128. public function block_javascripts($context, array $blocks = array())
  129. {
  130. // line 26
  131. echo " ";
  132. $this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => "jquery", 1 => 101), "method");
  133. // line 27
  134. echo " ";
  135. $this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => "theme://js/jquery.mCustomScrollbar.concat.min.js"), "method");
  136. // line 28
  137. echo " ";
  138. $this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => "theme://js/jquery.bxslider.min.js"), "method");
  139. // line 29
  140. echo " ";
  141. $this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => "theme://js/script.js"), "method");
  142. // line 30
  143. echo "
  144. ";
  145. }
  146. // line 38
  147. public function block_header($context, array $blocks = array())
  148. {
  149. // line 39
  150. echo " <header id=\"header\">
  151. <div id=\"logo\">
  152. <h1><a href=\"";
  153. // line 41
  154. echo (((($context["base_url"] ?? null) == "")) ? ("/fr") : (($context["base_url"] ?? null)));
  155. echo "\">";
  156. echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->translate($this->getAttribute($this->getAttribute(($context["config"] ?? null), "site", array()), "title", array()));
  157. echo "</a></h1>
  158. <div class=\"fr-en\">
  159. <a href=\"fr\">Fr</a>
  160. /
  161. <a href=\"en\">En</a>
  162. </div>
  163. </div>
  164. <div id=\"navbar\">
  165. <div class=\"menu-ui\">
  166. <div class=\"picto\">
  167. </div>
  168. </div>
  169. ";
  170. // line 54
  171. $this->displayBlock('header_navigation', $context, $blocks);
  172. // line 55
  173. echo " </div>
  174. <div class=\"app\">
  175. <a href=\"https://app.ethica-spinoza.net/\">
  176. <img src=\"/user/themes/ethica/images/logo.svg\" alt=\"\">
  177. <strong>app.ethica-spinoza.net</strong>
  178. </a>
  179. </div>
  180. <div class=\"separation\"></div>
  181. </header>
  182. ";
  183. }
  184. // line 54
  185. public function block_header_navigation($context, array $blocks = array())
  186. {
  187. }
  188. // line 66
  189. public function block_body($context, array $blocks = array())
  190. {
  191. // line 67
  192. echo "
  193. <section id=\"body\">
  194. <div class=\"content\">
  195. ";
  196. // line 70
  197. $this->displayBlock('content', $context, $blocks);
  198. // line 71
  199. echo " </div>
  200. </section>
  201. ";
  202. }
  203. // line 70
  204. public function block_content($context, array $blocks = array())
  205. {
  206. }
  207. // line 76
  208. public function block_footer($context, array $blocks = array())
  209. {
  210. // line 77
  211. echo " <footer id=\"footer\">
  212. </footer>
  213. ";
  214. }
  215. // line 81
  216. public function block_bottom($context, array $blocks = array())
  217. {
  218. // line 82
  219. echo " ";
  220. echo $this->getAttribute(($context["assets"] ?? null), "js", array(0 => "bottom"), "method");
  221. echo "
  222. ";
  223. }
  224. public function getTemplateName()
  225. {
  226. return "partials/base.html.twig";
  227. }
  228. public function isTraitable()
  229. {
  230. return false;
  231. }
  232. public function getDebugInfo()
  233. {
  234. return array ( 238 => 82, 235 => 81, 229 => 77, 226 => 76, 221 => 70, 214 => 71, 212 => 70, 207 => 67, 204 => 66, 199 => 54, 186 => 55, 184 => 54, 166 => 41, 162 => 39, 159 => 38, 154 => 30, 151 => 29, 148 => 28, 145 => 27, 142 => 26, 139 => 25, 134 => 21, 131 => 20, 128 => 19, 125 => 18, 122 => 17, 119 => 16, 116 => 15, 109 => 32, 107 => 25, 101 => 23, 99 => 15, 92 => 11, 88 => 10, 85 => 9, 83 => 8, 75 => 7, 72 => 6, 69 => 5, 63 => 84, 61 => 81, 58 => 80, 56 => 76, 53 => 75, 51 => 66, 48 => 65, 46 => 38, 40 => 34, 38 => 5, 33 => 3, 30 => 2, 28 => 1,);
  235. }
  236. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  237. public function getSource()
  238. {
  239. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  240. return $this->getSourceContext()->getCode();
  241. }
  242. public function getSourceContext()
  243. {
  244. return new Twig_Source("{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
  245. <!DOCTYPE html>
  246. <html lang=\"{{ grav.language.getLanguage ?: 'fr' }}\">
  247. <head>
  248. {% block head %}
  249. <meta charset=\"utf-8\" />
  250. <title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ config.site.title|t('html') }}</title>
  251. {% include 'partials/metadata.html.twig' %}
  252. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no\">
  253. <link rel=\"icon\" type=\"image/png\" href=\"{{ url('theme://images/favicon.png') }}\" />
  254. <link rel=\"canonical\" href=\"{{ page.url(true, true) }}\" />
  255. <link rel=\"alternate\" href=\"/home-fr\" hreflang=\"fr\" />
  256. <link rel=\"alternate\" href=\"/home-en\" hreflang=\"en\" />
  257. {% block stylesheets %}
  258. {% do assets.addCss('theme://css/jquery.bxslider.css', 101) %}
  259. {% do assets.addCss('theme://css/style.css', 101) %}
  260. {% do assets.addCss('theme://css-compiled/template.css', 101) %}
  261. {% do assets.addCss('theme://css/jquery.mCustomScrollbar.css', 101) %}
  262. {% do assets.addCss('theme://css/media-queries.css', 101) %}
  263. {% endblock %}
  264. {{ assets.css() }}
  265. {% block javascripts %}
  266. {% do assets.addJs('jquery', 101) %}
  267. {% do assets.addJs('theme://js/jquery.mCustomScrollbar.concat.min.js') %}
  268. {% do assets.addJs('theme://js/jquery.bxslider.min.js') %}
  269. {% do assets.addJs('theme://js/script.js') %}
  270. {% endblock %}
  271. {{ assets.js() }}
  272. {% endblock head %}
  273. </head>
  274. <body id=\"top\">
  275. {% block header %}
  276. <header id=\"header\">
  277. <div id=\"logo\">
  278. <h1><a href=\"{{ base_url == '' ? '/fr' : base_url }}\">{{ config.site.title|t }}</a></h1>
  279. <div class=\"fr-en\">
  280. <a href=\"fr\">Fr</a>
  281. /
  282. <a href=\"en\">En</a>
  283. </div>
  284. </div>
  285. <div id=\"navbar\">
  286. <div class=\"menu-ui\">
  287. <div class=\"picto\">
  288. </div>
  289. </div>
  290. {% block header_navigation %}{% endblock %}
  291. </div>
  292. <div class=\"app\">
  293. <a href=\"https://app.ethica-spinoza.net/\">
  294. <img src=\"/user/themes/ethica/images/logo.svg\" alt=\"\">
  295. <strong>app.ethica-spinoza.net</strong>
  296. </a>
  297. </div>
  298. <div class=\"separation\"></div>
  299. </header>
  300. {% endblock %}
  301. {% block body %}
  302. <section id=\"body\">
  303. <div class=\"content\">
  304. {% block content %}{% endblock %}
  305. </div>
  306. </section>
  307. {% endblock %}
  308. {% block footer %}
  309. <footer id=\"footer\">
  310. </footer>
  311. {% endblock %}
  312. {% block bottom %}
  313. {{ assets.js('bottom') }}
  314. {% endblock %}
  315. </body>
  316. </html>
  317. ", "partials/base.html.twig", "/mnt/data/Sites/static-ethica.net/user/themes/ethica/templates/partials/base.html.twig");
  318. }
  319. }