var/cache/dev/twig/12/12027ba9fea09c711d830318c5190306.php line 48

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* VisualMediaPageBundle/views/Page/home.html.twig */
  14. class __TwigTemplate_ae6628b8198fc0ffd5b2c08e0af4e8f8 extends \Twig\Template
  15. {
  16. private $source;
  17. private $macros = [];
  18. public function __construct(Environment $env)
  19. {
  20. parent::__construct($env);
  21. $this->source = $this->getSourceContext();
  22. $this->blocks = [
  23. 'main' => [$this, 'block_main'],
  24. ];
  25. }
  26. protected function doGetParent(array $context)
  27. {
  28. // line 1
  29. return "Layout/base.html.twig";
  30. }
  31. protected function doDisplay(array $context, array $blocks = [])
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "VisualMediaPageBundle/views/Page/home.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "VisualMediaPageBundle/views/Page/home.html.twig"));
  38. $this->parent = $this->loadTemplate("Layout/base.html.twig", "VisualMediaPageBundle/views/Page/home.html.twig", 1);
  39. $this->parent->display($context, array_merge($this->blocks, $blocks));
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  42. }
  43. // line 3
  44. public function block_main($context, array $blocks = [])
  45. {
  46. $macros = $this->macros;
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  50. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  51. // line 4
  52. echo " ";
  53. $this->loadTemplate("@VisualMediaVisual/Visual/visual.html.twig", "VisualMediaPageBundle/views/Page/home.html.twig", 4)->display(twig_array_merge($context, ["visuals" => twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 4, $this->source); })()), "visuals", [], "any", false, false, false, 4)]));
  54. // line 5
  55. echo "
  56. <section class=\"home-content\">
  57. <div class=\"container\">
  58. <div class=\"row\">
  59. <div class=\"col-12\">
  60. <h1>";
  61. // line 10
  62. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 10, $this->source); })()), "title", [], "any", false, false, false, 10), "html", null, true);
  63. echo "</h1>
  64. ";
  65. // line 12
  66. echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigContentScan']->scan(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 12, $this->source); })()), "htmlContent", [], "any", false, false, false, 12)), "html", null, true);
  67. echo "
  68. <section class=\"standard-alinea alinea1\">
  69. <div class=\"container\">
  70. ";
  71. // line 16
  72. echo $this->extensions['VisualMedia\BlockTemplateBundle\Twig\TwigScanBlock']->blockScan((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 16, $this->source); })()), "alinea1", "@VisualMediaBlockTemplate/Blocks/contentblock.html.twig");
  73. echo "
  74. </div>
  75. </section>
  76. <section class=\"standard-alinea alinea2\">
  77. <div class=\"container\">
  78. ";
  79. // line 21
  80. echo $this->extensions['VisualMedia\BlockTemplateBundle\Twig\TwigScanBlock']->blockScan((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 21, $this->source); })()), "alinea2", "@VisualMediaBlockTemplate/Blocks/contentblock.html.twig");
  81. echo "
  82. </div>
  83. </section>
  84. <section class=\"standard-alinea alinea3\">
  85. <div class=\"container\">
  86. ";
  87. // line 26
  88. echo $this->extensions['VisualMedia\BlockTemplateBundle\Twig\TwigScanBlock']->blockScan((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 26, $this->source); })()), "alinea3", "@VisualMediaBlockTemplate/Blocks/contentblock.html.twig");
  89. echo "
  90. </div>
  91. </section>
  92. </div>
  93. </div>
  94. </div>
  95. ";
  96. // line 33
  97. if (twig_first($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 33, $this->source); })()), "visuals", [], "any", false, false, false, 33))) {
  98. // line 34
  99. echo " ";
  100. $context["visual"] = twig_first($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 34, $this->source); })()), "visuals", [], "any", false, false, false, 34));
  101. // line 35
  102. echo " <div class=\"container\">
  103. <div class=\"row\">
  104. <div class=\"col-12 mb-3\">
  105. <img ";
  106. // line 38
  107. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["visual"]) || array_key_exists("visual", $context) ? $context["visual"] : (function () { throw new RuntimeError('Variable "visual" does not exist.', 38, $this->source); })()), "upload", [], "any", false, false, false, 38), "getSrcSet", [], "method", false, false, false, 38), "html", null, true);
  108. echo " title=\"";
  109. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["visual"]) || array_key_exists("visual", $context) ? $context["visual"] : (function () { throw new RuntimeError('Variable "visual" does not exist.', 38, $this->source); })()), "imageTitle", [], "any", false, false, false, 38), "html", null, true);
  110. echo "\" alt=\"";
  111. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["visual"]) || array_key_exists("visual", $context) ? $context["visual"] : (function () { throw new RuntimeError('Variable "visual" does not exist.', 38, $this->source); })()), "imageAlt", [], "any", false, false, false, 38), "html", null, true);
  112. echo "\" style=\"width: 100%\">
  113. </div>
  114. <div class=\"col-6\">
  115. ";
  116. // line 41
  117. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["visual"]) || array_key_exists("visual", $context) ? $context["visual"] : (function () { throw new RuntimeError('Variable "visual" does not exist.', 41, $this->source); })()), "upload", [], "any", false, false, false, 41), "getImageTag", [], "method", false, false, false, 41), "html", null, true);
  118. echo "
  119. </div>
  120. <div class=\"col-6\">
  121. ";
  122. // line 44
  123. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["visual"]) || array_key_exists("visual", $context) ? $context["visual"] : (function () { throw new RuntimeError('Variable "visual" does not exist.', 44, $this->source); })()), "upload", [], "any", false, false, false, 44), "getImageTag", [0 => "img-thumbnail rounded"], "method", false, false, false, 44), "html", null, true);
  124. echo "
  125. </div>
  126. </div>
  127. </div>
  128. ";
  129. }
  130. // line 49
  131. echo "
  132. <div class=\"container mt-3\">
  133. <div class=\"row\">
  134. <div class=\"col-12 mb-3\">
  135. <img
  136. srcset=\"/test/1920.webp 1920w, /test/1600.webp 1600w, /test/1200.webp 1200w, /test/800.webp 800w, /test/480.webp 480w, /test/320.webp 320w\"
  137. sizes=\"(max-width: 320px) 320px, (max-width: 480px) 480px, (max-width: 800px) 800px, (max-width: 1200px) 1200px, (max-width: 1600px) 1600px, 1920px\"
  138. style=\"width: 100%;\">
  139. </div>
  140. <div class=\"col-6\">
  141. <img
  142. srcset=\"/test/1920.webp 1920w, /test/1600.webp 1600w, /test/1200.webp 1200w, /test/800.webp 800w, /test/480.webp 480w, /test/320.webp 320w\"
  143. sizes=\"(max-width: 320px) 320px, (max-width: 480px) 480px, (max-width: 800px) 800px, (max-width: 1200px) 1200px, (max-width: 1600px) 1600px, 1920px\"
  144. style=\"width: 100%;\">
  145. </div>
  146. <div class=\"col-6\">
  147. <img
  148. srcset=\"/test/1920.webp 1920w, /test/1600.webp 1600w, /test/1200.webp 1200w, /test/800.webp 800w, /test/480.webp 480w, /test/320.webp 320w\"
  149. sizes=\"(max-width: 320px) 320px, (max-width: 480px) 480px, (max-width: 800px) 800px, (max-width: 1200px) 1200px, (max-width: 1600px) 1600px, 1920px\"
  150. style=\"width: 100%;\">
  151. </div>
  152. </div>
  153. </div>
  154. ";
  155. // line 74
  156. echo "
  157. </section>
  158. ";
  159. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  160. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  161. }
  162. public function getTemplateName()
  163. {
  164. return "VisualMediaPageBundle/views/Page/home.html.twig";
  165. }
  166. public function isTraitable()
  167. {
  168. return false;
  169. }
  170. public function getDebugInfo()
  171. {
  172. return array ( 176 => 74, 150 => 49, 142 => 44, 136 => 41, 126 => 38, 121 => 35, 118 => 34, 116 => 33, 106 => 26, 98 => 21, 90 => 16, 83 => 12, 78 => 10, 71 => 5, 68 => 4, 58 => 3, 35 => 1,);
  173. }
  174. public function getSourceContext()
  175. {
  176. return new Source("{% extends 'Layout/base.html.twig' %}
  177. {% block main %}
  178. {% include '@VisualMediaVisual/Visual/visual.html.twig' with { visuals: page.visuals } %}
  179. <section class=\"home-content\">
  180. <div class=\"container\">
  181. <div class=\"row\">
  182. <div class=\"col-12\">
  183. <h1>{{ page.title }}</h1>
  184. {{ page.htmlContent|scan }}
  185. <section class=\"standard-alinea alinea1\">
  186. <div class=\"container\">
  187. {{ blockscan(page,'alinea1','@VisualMediaBlockTemplate/Blocks/contentblock.html.twig')|raw }}
  188. </div>
  189. </section>
  190. <section class=\"standard-alinea alinea2\">
  191. <div class=\"container\">
  192. {{ blockscan(page,'alinea2','@VisualMediaBlockTemplate/Blocks/contentblock.html.twig')|raw }}
  193. </div>
  194. </section>
  195. <section class=\"standard-alinea alinea3\">
  196. <div class=\"container\">
  197. {{ blockscan(page,'alinea3','@VisualMediaBlockTemplate/Blocks/contentblock.html.twig')|raw }}
  198. </div>
  199. </section>
  200. </div>
  201. </div>
  202. </div>
  203. {% if page.visuals|first %}
  204. {% set visual = page.visuals|first %}
  205. <div class=\"container\">
  206. <div class=\"row\">
  207. <div class=\"col-12 mb-3\">
  208. <img {{ visual.upload.getSrcSet() }} title=\"{{ visual.imageTitle }}\" alt=\"{{ visual.imageAlt }}\" style=\"width: 100%\">
  209. </div>
  210. <div class=\"col-6\">
  211. {{ visual.upload.getImageTag() }}
  212. </div>
  213. <div class=\"col-6\">
  214. {{ visual.upload.getImageTag('img-thumbnail rounded') }}
  215. </div>
  216. </div>
  217. </div>
  218. {% endif %}
  219. <div class=\"container mt-3\">
  220. <div class=\"row\">
  221. <div class=\"col-12 mb-3\">
  222. <img
  223. srcset=\"/test/1920.webp 1920w, /test/1600.webp 1600w, /test/1200.webp 1200w, /test/800.webp 800w, /test/480.webp 480w, /test/320.webp 320w\"
  224. sizes=\"(max-width: 320px) 320px, (max-width: 480px) 480px, (max-width: 800px) 800px, (max-width: 1200px) 1200px, (max-width: 1600px) 1600px, 1920px\"
  225. style=\"width: 100%;\">
  226. </div>
  227. <div class=\"col-6\">
  228. <img
  229. srcset=\"/test/1920.webp 1920w, /test/1600.webp 1600w, /test/1200.webp 1200w, /test/800.webp 800w, /test/480.webp 480w, /test/320.webp 320w\"
  230. sizes=\"(max-width: 320px) 320px, (max-width: 480px) 480px, (max-width: 800px) 800px, (max-width: 1200px) 1200px, (max-width: 1600px) 1600px, 1920px\"
  231. style=\"width: 100%;\">
  232. </div>
  233. <div class=\"col-6\">
  234. <img
  235. srcset=\"/test/1920.webp 1920w, /test/1600.webp 1600w, /test/1200.webp 1200w, /test/800.webp 800w, /test/480.webp 480w, /test/320.webp 320w\"
  236. sizes=\"(max-width: 320px) 320px, (max-width: 480px) 480px, (max-width: 800px) 800px, (max-width: 1200px) 1200px, (max-width: 1600px) 1600px, 1920px\"
  237. style=\"width: 100%;\">
  238. </div>
  239. </div>
  240. </div>
  241. {# {{ render(controller('VisualMedia\\\\NewsBundle\\\\Controller\\\\NewsController::ssiAction', { 'count': 3} )) }} #}
  242. </section>
  243. {% endblock %}
  244. ", "VisualMediaPageBundle/views/Page/home.html.twig", "/var/www/public_html/templates/VisualMediaPageBundle/views/Page/home.html.twig");
  245. }
  246. }