<?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;
/* default/gallery_renderlet.html.twig */
class __TwigTemplate_d4628ae8b15cecf6101c1303dd119670 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "default/gallery_renderlet.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/gallery_renderlet.html.twig"));
// line 1
echo "<section class=\"row\">
";
// line 2
if ((isset($context["asset"]) || array_key_exists("asset", $context) ? $context["asset"] : (function () { throw new RuntimeError('Variable "asset" does not exist.', 2, $this->source); })())) {
// line 3
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["asset"]) || array_key_exists("asset", $context) ? $context["asset"] : (function () { throw new RuntimeError('Variable "asset" does not exist.', 3, $this->source); })()), "getChildren", [], "method", false, false, false, 3));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 4
echo " ";
if (call_user_func_array($this->env->getTest('instanceof')->getCallable(), [$context["image"], "\\Pimcore\\Model\\Asset\\Image"])) {
// line 5
echo " <div class=\"col-md-4\">
<a href=\"";
// line 6
echo twig_get_attribute($this->env, $this->source, $context["image"], "getThumbnail", [0 => "galleryLightbox"], "method", false, false, false, 6);
echo "\" class=\"thumbnail\">
";
// line 7
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "getThumbnail", [0 => "galleryThumbnail"], "method", false, false, false, 7), "getHTML", [0 => ["imgAttributes" => ["class" => "img-thumbnail img-responsive"]]], "method", false, false, false, 7);
echo "
</a>
</div>
";
}
// line 11
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 12
echo " ";
}
// line 13
echo "</section>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "default/gallery_renderlet.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 79 => 13, 76 => 12, 70 => 11, 63 => 7, 59 => 6, 56 => 5, 53 => 4, 48 => 3, 46 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<section class=\"row\">
{% if asset %}
{% for image in asset.getChildren() %}
{% if image is instanceof('\\\\Pimcore\\\\Model\\\\Asset\\\\Image') %}
<div class=\"col-md-4\">
<a href=\"{{ image.getThumbnail('galleryLightbox')|raw }}\" class=\"thumbnail\">
{{ image.getThumbnail('galleryThumbnail').getHTML({imgAttributes: {class: 'img-thumbnail img-responsive'}})|raw }}
</a>
</div>
{% endif %}
{% endfor %}
{% endif %}
</section>
", "default/gallery_renderlet.html.twig", "/var/www/html/siteone/templates/default/gallery_renderlet.html.twig");
}
}