<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* VisualMediaPageBundle/views/Page/home.html.twig */
class __TwigTemplate_ae6628b8198fc0ffd5b2c08e0af4e8f8 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Layout/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "VisualMediaPageBundle/views/Page/home.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "VisualMediaPageBundle/views/Page/home.html.twig"));
$this->parent = $this->loadTemplate("Layout/base.html.twig", "VisualMediaPageBundle/views/Page/home.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 4
echo " ";
$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)]));
// line 5
echo "
<section class=\"home-content\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
<h1>";
// line 10
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);
echo "</h1>
";
// line 12
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);
echo "
<section class=\"standard-alinea alinea1\">
<div class=\"container\">
";
// line 16
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");
echo "
</div>
</section>
<section class=\"standard-alinea alinea2\">
<div class=\"container\">
";
// line 21
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");
echo "
</div>
</section>
<section class=\"standard-alinea alinea3\">
<div class=\"container\">
";
// line 26
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");
echo "
</div>
</section>
</div>
</div>
</div>
";
// line 33
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))) {
// line 34
echo " ";
$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));
// line 35
echo " <div class=\"container\">
<div class=\"row\">
<div class=\"col-12 mb-3\">
<img ";
// line 38
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);
echo " title=\"";
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);
echo "\" alt=\"";
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);
echo "\" style=\"width: 100%\">
</div>
<div class=\"col-6\">
";
// line 41
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);
echo "
</div>
<div class=\"col-6\">
";
// line 44
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);
echo "
</div>
</div>
</div>
";
}
// line 49
echo "
<div class=\"container mt-3\">
<div class=\"row\">
<div class=\"col-12 mb-3\">
<img
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\"
sizes=\"(max-width: 320px) 320px, (max-width: 480px) 480px, (max-width: 800px) 800px, (max-width: 1200px) 1200px, (max-width: 1600px) 1600px, 1920px\"
style=\"width: 100%;\">
</div>
<div class=\"col-6\">
<img
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\"
sizes=\"(max-width: 320px) 320px, (max-width: 480px) 480px, (max-width: 800px) 800px, (max-width: 1200px) 1200px, (max-width: 1600px) 1600px, 1920px\"
style=\"width: 100%;\">
</div>
<div class=\"col-6\">
<img
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\"
sizes=\"(max-width: 320px) 320px, (max-width: 480px) 480px, (max-width: 800px) 800px, (max-width: 1200px) 1200px, (max-width: 1600px) 1600px, 1920px\"
style=\"width: 100%;\">
</div>
</div>
</div>
";
// line 74
echo "
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "VisualMediaPageBundle/views/Page/home.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'Layout/base.html.twig' %}
{% block main %}
{% include '@VisualMediaVisual/Visual/visual.html.twig' with { visuals: page.visuals } %}
<section class=\"home-content\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
<h1>{{ page.title }}</h1>
{{ page.htmlContent|scan }}
<section class=\"standard-alinea alinea1\">
<div class=\"container\">
{{ blockscan(page,'alinea1','@VisualMediaBlockTemplate/Blocks/contentblock.html.twig')|raw }}
</div>
</section>
<section class=\"standard-alinea alinea2\">
<div class=\"container\">
{{ blockscan(page,'alinea2','@VisualMediaBlockTemplate/Blocks/contentblock.html.twig')|raw }}
</div>
</section>
<section class=\"standard-alinea alinea3\">
<div class=\"container\">
{{ blockscan(page,'alinea3','@VisualMediaBlockTemplate/Blocks/contentblock.html.twig')|raw }}
</div>
</section>
</div>
</div>
</div>
{% if page.visuals|first %}
{% set visual = page.visuals|first %}
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12 mb-3\">
<img {{ visual.upload.getSrcSet() }} title=\"{{ visual.imageTitle }}\" alt=\"{{ visual.imageAlt }}\" style=\"width: 100%\">
</div>
<div class=\"col-6\">
{{ visual.upload.getImageTag() }}
</div>
<div class=\"col-6\">
{{ visual.upload.getImageTag('img-thumbnail rounded') }}
</div>
</div>
</div>
{% endif %}
<div class=\"container mt-3\">
<div class=\"row\">
<div class=\"col-12 mb-3\">
<img
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\"
sizes=\"(max-width: 320px) 320px, (max-width: 480px) 480px, (max-width: 800px) 800px, (max-width: 1200px) 1200px, (max-width: 1600px) 1600px, 1920px\"
style=\"width: 100%;\">
</div>
<div class=\"col-6\">
<img
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\"
sizes=\"(max-width: 320px) 320px, (max-width: 480px) 480px, (max-width: 800px) 800px, (max-width: 1200px) 1200px, (max-width: 1600px) 1600px, 1920px\"
style=\"width: 100%;\">
</div>
<div class=\"col-6\">
<img
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\"
sizes=\"(max-width: 320px) 320px, (max-width: 480px) 480px, (max-width: 800px) 800px, (max-width: 1200px) 1200px, (max-width: 1600px) 1600px, 1920px\"
style=\"width: 100%;\">
</div>
</div>
</div>
{# {{ render(controller('VisualMedia\\\\NewsBundle\\\\Controller\\\\NewsController::ssiAction', { 'count': 3} )) }} #}
</section>
{% endblock %}
", "VisualMediaPageBundle/views/Page/home.html.twig", "/var/www/public_html/templates/VisualMediaPageBundle/views/Page/home.html.twig");
}
}