1574ca9af736297bd4575b270f6a9c57c5a4650ea4363a3709680b03c4f029fb.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. <?php
  2. /* partials/base.html.twig */
  3. class __TwigTemplate_5c1e179e5651a7b19a8394edfa231a502c6da0cec9fc4110f9246f2a43174b55 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. 'body_classes' => array($this, 'block_body_classes'),
  14. 'header' => array($this, 'block_header'),
  15. 'header_navigation' => array($this, 'block_header_navigation'),
  16. 'hero' => array($this, 'block_hero'),
  17. 'body' => array($this, 'block_body'),
  18. 'messages' => array($this, 'block_messages'),
  19. 'content' => array($this, 'block_content'),
  20. 'footer' => array($this, 'block_footer'),
  21. 'bottom' => array($this, 'block_bottom'),
  22. );
  23. }
  24. protected function doDisplay(array $context, array $blocks = array())
  25. {
  26. // line 1
  27. $context["body_classes"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->bodyClassFunc(array(0 => "header-fixed", 1 => "header-animated", 2 => "header-dark", 3 => "header-transparent", 4 => "sticky-footer"));
  28. // line 2
  29. $context["grid_size"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->themeVarFunc("grid-size");
  30. // line 3
  31. $context["compress"] = (($this->env->getExtension('Grav\Common\Twig\TwigExtension')->themeVarFunc("production_mode")) ? (".min.css") : (".css"));
  32. // line 4
  33. echo "<!DOCTYPE html>
  34. <html lang=\"";
  35. // line 5
  36. echo (($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "language", array()), "getActive", array())) ? ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "language", array()), "getActive", array())) : ($this->getAttribute($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "config", array()), "site", array()), "default_lang", array())));
  37. echo "\">
  38. <head>
  39. ";
  40. // line 7
  41. $this->displayBlock('head', $context, $blocks);
  42. // line 36
  43. echo "</head>
  44. <body id=\"top\" class=\"";
  45. // line 37
  46. $this->displayBlock('body_classes', $context, $blocks);
  47. echo "\">
  48. <div id=\"page-wrapper\">
  49. ";
  50. // line 39
  51. $this->displayBlock('header', $context, $blocks);
  52. // line 70
  53. echo "
  54. ";
  55. // line 71
  56. $this->displayBlock('hero', $context, $blocks);
  57. // line 72
  58. echo "
  59. <section id=\"start\">
  60. ";
  61. // line 74
  62. $this->displayBlock('body', $context, $blocks);
  63. // line 84
  64. echo " </section>
  65. </div>
  66. ";
  67. // line 88
  68. $this->displayBlock('footer', $context, $blocks);
  69. // line 95
  70. echo "
  71. <div class=\"mobile-container\">
  72. <div class=\"overlay\" id=\"overlay\">
  73. <div class=\"mobile-logo\">
  74. ";
  75. // line 100
  76. $this->loadTemplate("@images/grav-logo.svg", "partials/base.html.twig", 100)->display($context);
  77. // line 101
  78. echo " </div>
  79. <nav class=\"overlay-menu\">
  80. ";
  81. // line 103
  82. $this->loadTemplate("partials/navigation.html.twig", "partials/base.html.twig", 103)->display(array_merge($context, array("tree" => true)));
  83. // line 104
  84. echo " </nav>
  85. </div>
  86. </div>
  87. ";
  88. // line 108
  89. $this->displayBlock('bottom', $context, $blocks);
  90. // line 111
  91. echo "
  92. </body>
  93. ";
  94. }
  95. // line 7
  96. public function block_head($context, array $blocks = array())
  97. {
  98. // line 8
  99. echo " <meta charset=\"utf-8\" />
  100. <title>";
  101. // line 9
  102. if ($this->getAttribute(($context["header"] ?? null), "title", array())) {
  103. echo twig_escape_filter($this->env, $this->getAttribute(($context["header"] ?? null), "title", array()), "html");
  104. echo " | ";
  105. }
  106. echo twig_escape_filter($this->env, $this->getAttribute(($context["site"] ?? null), "title", array()), "html");
  107. echo "</title>
  108. <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  109. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  110. ";
  111. // line 13
  112. $this->loadTemplate("partials/metadata.html.twig", "partials/base.html.twig", 13)->display($context);
  113. // line 14
  114. echo "
  115. <link rel=\"icon\" type=\"image/png\" href=\"";
  116. // line 15
  117. echo $this->env->getExtension('Grav\Common\Twig\TwigExtension')->urlFunc("theme://images/favicon.png");
  118. echo "\" />
  119. <link rel=\"canonical\" href=\"";
  120. // line 16
  121. echo $this->getAttribute(($context["page"] ?? null), "url", array(0 => true, 1 => true), "method");
  122. echo "\" />
  123. ";
  124. // line 18
  125. $this->displayBlock('stylesheets', $context, $blocks);
  126. // line 26
  127. echo " ";
  128. echo $this->getAttribute(($context["assets"] ?? null), "css", array(), "method");
  129. echo "
  130. ";
  131. // line 28
  132. $this->displayBlock('javascripts', $context, $blocks);
  133. // line 33
  134. echo " ";
  135. echo $this->getAttribute(($context["assets"] ?? null), "js", array(), "method");
  136. echo "
  137. ";
  138. }
  139. // line 18
  140. public function block_stylesheets($context, array $blocks = array())
  141. {
  142. // line 19
  143. echo " ";
  144. $this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => ("theme://css-compiled/spectre" . ($context["compress"] ?? null))), "method");
  145. // line 20
  146. echo " ";
  147. if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->themeVarFunc("spectre.exp")) {
  148. $this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => ("theme://css-compiled/spectre-exp" . ($context["compress"] ?? null))), "method");
  149. }
  150. // line 21
  151. echo " ";
  152. if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->themeVarFunc("spectre.icons")) {
  153. $this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => ("theme://css-compiled/spectre-icons" . ($context["compress"] ?? null))), "method");
  154. }
  155. // line 22
  156. echo " ";
  157. $this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => ("theme://css-compiled/theme" . ($context["compress"] ?? null))), "method");
  158. // line 23
  159. echo " ";
  160. $this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => "theme://css/custom.css"), "method");
  161. // line 24
  162. echo " ";
  163. $this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => "theme://css/line-awesome.min.css"), "method");
  164. // line 25
  165. echo " ";
  166. }
  167. // line 28
  168. public function block_javascripts($context, array $blocks = array())
  169. {
  170. // line 29
  171. echo " ";
  172. $this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => "jquery", 1 => 101), "method");
  173. // line 30
  174. echo " ";
  175. $this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => "theme://js/jquery.treemenu.js", 1 => array("group" => "bottom")), "method");
  176. // line 31
  177. echo " ";
  178. $this->getAttribute(($context["assets"] ?? null), "addJs", array(0 => "theme://js/site.js", 1 => array("group" => "bottom")), "method");
  179. // line 32
  180. echo " ";
  181. }
  182. // line 37
  183. public function block_body_classes($context, array $blocks = array())
  184. {
  185. echo ($context["body_classes"] ?? null);
  186. }
  187. // line 39
  188. public function block_header($context, array $blocks = array())
  189. {
  190. // line 40
  191. echo " <section id=\"header\" class=\"section\">
  192. <section class=\"container ";
  193. // line 41
  194. echo ($context["grid_size"] ?? null);
  195. echo "\">
  196. <nav class=\"navbar\">
  197. <section class=\"navbar-section logo\">
  198. <a href=\"";
  199. // line 44
  200. echo ($context["home_url"] ?? null);
  201. echo "\" class=\"navbar-brand mr-10\">";
  202. $this->loadTemplate("@images/grav-logo.svg", "partials/base.html.twig", 44)->display($context);
  203. echo "</a>
  204. </section>
  205. <section class=\"navbar-section\">
  206. <nav class=\"dropmenu animated\">
  207. ";
  208. // line 49
  209. $this->displayBlock('header_navigation', $context, $blocks);
  210. // line 52
  211. echo " </nav>
  212. ";
  213. // line 54
  214. if (($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "login", array()), "enabled", array()) && $this->getAttribute($this->getAttribute(($context["grav"] ?? null), "user", array()), "username", array()))) {
  215. // line 55
  216. echo " <span class=\"login-status-wrapper\"><i class=\"fa fa-user\"></i> ";
  217. $this->loadTemplate("partials/login-status.html.twig", "partials/base.html.twig", 55)->display($context);
  218. echo "</span>
  219. ";
  220. }
  221. // line 57
  222. echo "
  223. </section>
  224. </nav>
  225. </section>
  226. </section>
  227. <div class=\"mobile-menu\">
  228. <div class=\"button_container\" id=\"toggle\">
  229. <span class=\"top\"></span>
  230. <span class=\"middle\"></span>
  231. <span class=\"bottom\"></span>
  232. </div>
  233. </div>
  234. ";
  235. }
  236. // line 49
  237. public function block_header_navigation($context, array $blocks = array())
  238. {
  239. // line 50
  240. echo " ";
  241. $this->loadTemplate("partials/navigation.html.twig", "partials/base.html.twig", 50)->display($context);
  242. // line 51
  243. echo " ";
  244. }
  245. // line 71
  246. public function block_hero($context, array $blocks = array())
  247. {
  248. }
  249. // line 74
  250. public function block_body($context, array $blocks = array())
  251. {
  252. // line 75
  253. echo " <section id=\"body-wrapper\" class=\"section\">
  254. <section class=\"container ";
  255. // line 76
  256. echo ($context["grid_size"] ?? null);
  257. echo "\">
  258. ";
  259. // line 77
  260. $this->displayBlock('messages', $context, $blocks);
  261. // line 80
  262. echo " ";
  263. $this->displayBlock('content', $context, $blocks);
  264. // line 81
  265. echo " </section>
  266. </section>
  267. ";
  268. }
  269. // line 77
  270. public function block_messages($context, array $blocks = array())
  271. {
  272. // line 78
  273. echo " ";
  274. try {
  275. $this->loadTemplate("partials/messages.html.twig", "partials/base.html.twig", 78)->display($context);
  276. } catch (Twig_Error_Loader $e) {
  277. // ignore missing template
  278. }
  279. // line 79
  280. echo " ";
  281. }
  282. // line 80
  283. public function block_content($context, array $blocks = array())
  284. {
  285. }
  286. // line 88
  287. public function block_footer($context, array $blocks = array())
  288. {
  289. // line 89
  290. echo " <section id=\"footer\" class=\"section bg-gray\">
  291. <section class=\"container ";
  292. // line 90
  293. echo ($context["grid_size"] ?? null);
  294. echo "\">
  295. <p><a href=\"http://getgrav.org\">Grav</a> was <i class=\"fa fa-code\"></i> with <i class=\"fa fa-heart-o pulse \"></i> by <a href=\"https://trilby.media\">Trilby Media</a>.</p>
  296. </section>
  297. </section>
  298. ";
  299. }
  300. // line 108
  301. public function block_bottom($context, array $blocks = array())
  302. {
  303. // line 109
  304. echo " ";
  305. echo $this->getAttribute(($context["assets"] ?? null), "js", array(0 => "bottom"), "method");
  306. echo "
  307. ";
  308. }
  309. public function getTemplateName()
  310. {
  311. return "partials/base.html.twig";
  312. }
  313. public function isTraitable()
  314. {
  315. return false;
  316. }
  317. public function getDebugInfo()
  318. {
  319. return array ( 331 => 109, 328 => 108, 319 => 90, 316 => 89, 313 => 88, 308 => 80, 304 => 79, 296 => 78, 293 => 77, 287 => 81, 284 => 80, 282 => 77, 278 => 76, 275 => 75, 272 => 74, 267 => 71, 263 => 51, 260 => 50, 257 => 49, 241 => 57, 235 => 55, 233 => 54, 229 => 52, 227 => 49, 217 => 44, 211 => 41, 208 => 40, 205 => 39, 199 => 37, 195 => 32, 192 => 31, 189 => 30, 186 => 29, 183 => 28, 179 => 25, 176 => 24, 173 => 23, 170 => 22, 165 => 21, 160 => 20, 157 => 19, 154 => 18, 146 => 33, 144 => 28, 138 => 26, 136 => 18, 131 => 16, 127 => 15, 124 => 14, 122 => 13, 111 => 9, 108 => 8, 105 => 7, 99 => 111, 97 => 108, 91 => 104, 89 => 103, 85 => 101, 83 => 100, 76 => 95, 74 => 88, 68 => 84, 66 => 74, 62 => 72, 60 => 71, 57 => 70, 55 => 39, 50 => 37, 47 => 36, 45 => 7, 40 => 5, 37 => 4, 35 => 3, 33 => 2, 31 => 1,);
  320. }
  321. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  322. public function getSource()
  323. {
  324. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  325. return $this->getSourceContext()->getCode();
  326. }
  327. public function getSourceContext()
  328. {
  329. return new Twig_Source("{% set body_classes = body_class(['header-fixed', 'header-animated', 'header-dark', 'header-transparent', 'sticky-footer']) %}
  330. {% set grid_size = theme_var('grid-size') %}
  331. {% set compress = theme_var('production_mode') ? '.min.css' : '.css' %}
  332. <!DOCTYPE html>
  333. <html lang=\"{{ grav.language.getActive ?: grav.config.site.default_lang }}\">
  334. <head>
  335. {% block head %}
  336. <meta charset=\"utf-8\" />
  337. <title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }}</title>
  338. <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  339. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  340. {% include 'partials/metadata.html.twig' %}
  341. <link rel=\"icon\" type=\"image/png\" href=\"{{ url('theme://images/favicon.png') }}\" />
  342. <link rel=\"canonical\" href=\"{{ page.url(true, true) }}\" />
  343. {% block stylesheets %}
  344. {% do assets.addCss('theme://css-compiled/spectre'~compress) %}
  345. {% if theme_var('spectre.exp') %}{% do assets.addCss('theme://css-compiled/spectre-exp'~compress) %}{% endif %}
  346. {% if theme_var('spectre.icons') %}{% do assets.addCss('theme://css-compiled/spectre-icons'~compress) %}{% endif %}
  347. {% do assets.addCss('theme://css-compiled/theme'~compress) %}
  348. {% do assets.addCss('theme://css/custom.css') %}
  349. {% do assets.addCss('theme://css/line-awesome.min.css') %}
  350. {% endblock %}
  351. {{ assets.css() }}
  352. {% block javascripts %}
  353. {% do assets.addJs('jquery', 101) %}
  354. {% do assets.addJs('theme://js/jquery.treemenu.js', {group:'bottom'}) %}
  355. {% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
  356. {% endblock %}
  357. {{ assets.js() }}
  358. {% endblock head %}
  359. </head>
  360. <body id=\"top\" class=\"{% block body_classes %}{{ body_classes }}{% endblock %}\">
  361. <div id=\"page-wrapper\">
  362. {% block header %}
  363. <section id=\"header\" class=\"section\">
  364. <section class=\"container {{ grid_size }}\">
  365. <nav class=\"navbar\">
  366. <section class=\"navbar-section logo\">
  367. <a href=\"{{ home_url }}\" class=\"navbar-brand mr-10\">{% include('@images/grav-logo.svg') %}</a>
  368. </section>
  369. <section class=\"navbar-section\">
  370. <nav class=\"dropmenu animated\">
  371. {% block header_navigation %}
  372. {% include 'partials/navigation.html.twig' %}
  373. {% endblock %}
  374. </nav>
  375. {% if config.plugins.login.enabled and grav.user.username %}
  376. <span class=\"login-status-wrapper\"><i class=\"fa fa-user\"></i> {% include 'partials/login-status.html.twig' %}</span>
  377. {% endif %}
  378. </section>
  379. </nav>
  380. </section>
  381. </section>
  382. <div class=\"mobile-menu\">
  383. <div class=\"button_container\" id=\"toggle\">
  384. <span class=\"top\"></span>
  385. <span class=\"middle\"></span>
  386. <span class=\"bottom\"></span>
  387. </div>
  388. </div>
  389. {% endblock %}
  390. {% block hero %}{% endblock %}
  391. <section id=\"start\">
  392. {% block body %}
  393. <section id=\"body-wrapper\" class=\"section\">
  394. <section class=\"container {{ grid_size }}\">
  395. {% block messages %}
  396. {% include 'partials/messages.html.twig' ignore missing %}
  397. {% endblock %}
  398. {% block content %}{% endblock %}
  399. </section>
  400. </section>
  401. {% endblock %}
  402. </section>
  403. </div>
  404. {% block footer %}
  405. <section id=\"footer\" class=\"section bg-gray\">
  406. <section class=\"container {{ grid_size }}\">
  407. <p><a href=\"http://getgrav.org\">Grav</a> was <i class=\"fa fa-code\"></i> with <i class=\"fa fa-heart-o pulse \"></i> by <a href=\"https://trilby.media\">Trilby Media</a>.</p>
  408. </section>
  409. </section>
  410. {% endblock %}
  411. <div class=\"mobile-container\">
  412. <div class=\"overlay\" id=\"overlay\">
  413. <div class=\"mobile-logo\">
  414. {% include('@images/grav-logo.svg') %}
  415. </div>
  416. <nav class=\"overlay-menu\">
  417. {% include 'partials/navigation.html.twig' with {tree: true} %}
  418. </nav>
  419. </div>
  420. </div>
  421. {% block bottom %}
  422. {{ assets.js('bottom') }}
  423. {% endblock %}
  424. </body>
  425. ", "partials/base.html.twig", "/mnt/data/Sites/r2c.net/user/themes/r2c/templates/partials/base.html.twig");
  426. }
  427. }