3938f9e899309496cdeaa3294d51c798f32c63944f7aa1d2f3000a92e25b8b78.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. /* modular/text.html.twig */
  3. class __TwigTemplate_44887039fe09cb2db34f737138845bb2076ba80ead18245c9f02d87167146bfc 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. );
  11. }
  12. protected function doDisplay(array $context, array $blocks = array())
  13. {
  14. // line 1
  15. $context["grid_size"] = $this->env->getExtension('Grav\Common\Twig\TwigExtension')->themeVarFunc("grid-size");
  16. // line 2
  17. $context["image"] = twig_first($this->env, $this->getAttribute($this->getAttribute(($context["page"] ?? null), "media", array()), "images", array()));
  18. // line 3
  19. echo "
  20. <section id=\"modular-text\" class=\"section ";
  21. // line 4
  22. echo $this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", array()), "class", array());
  23. echo " bg-gray\">
  24. <section class=\"container ";
  25. // line 5
  26. echo ($context["grid_size"] ?? null);
  27. echo "\">
  28. <div class=\"columns\">
  29. <div class=\"column col-6 col-md-12\">
  30. ";
  31. // line 8
  32. echo ($context["content"] ?? null);
  33. echo "
  34. </div>
  35. <div class=\"column col-6 col-md-12\">
  36. ";
  37. // line 11
  38. if (($context["image"] ?? null)) {
  39. // line 12
  40. echo " ";
  41. echo $this->getAttribute(($context["image"] ?? null), "html", array(0 => "", 1 => "", 2 => ("align-" . $this->getAttribute($this->getAttribute(($context["page"] ?? null), "header", array()), "image_align", array()))), "method");
  42. echo "
  43. ";
  44. }
  45. // line 14
  46. echo " </div>
  47. </div>
  48. </section>
  49. </section>
  50. ";
  51. }
  52. public function getTemplateName()
  53. {
  54. return "modular/text.html.twig";
  55. }
  56. public function isTraitable()
  57. {
  58. return false;
  59. }
  60. public function getDebugInfo()
  61. {
  62. return array ( 50 => 14, 44 => 12, 42 => 11, 36 => 8, 30 => 5, 26 => 4, 23 => 3, 21 => 2, 19 => 1,);
  63. }
  64. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  65. public function getSource()
  66. {
  67. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  68. return $this->getSourceContext()->getCode();
  69. }
  70. public function getSourceContext()
  71. {
  72. return new Twig_Source("{% set grid_size = theme_var('grid-size') %}
  73. {% set image = page.media.images|first %}
  74. <section id=\"modular-text\" class=\"section {{ page.header.class}} bg-gray\">
  75. <section class=\"container {{ grid_size }}\">
  76. <div class=\"columns\">
  77. <div class=\"column col-6 col-md-12\">
  78. {{ content }}
  79. </div>
  80. <div class=\"column col-6 col-md-12\">
  81. {% if image %}
  82. {{ image.html('','','align-'~page.header.image_align) }}
  83. {% endif %}
  84. </div>
  85. </div>
  86. </section>
  87. </section>
  88. ", "modular/text.html.twig", "/mnt/data/Sites/r2c.net/user/themes/r2c/templates/modular/text.html.twig");
  89. }
  90. }