<?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;
/* areas/gallery-single-images/view.html.twig */
class __TwigTemplate_24ab47e17e156dcc5ecb818223c7147c 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", "areas/gallery-single-images/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/gallery-single-images/view.html.twig"));
// line 1
$macros["macros"] = $this->macros["macros"] = $this->loadTemplate("includes/macros.html.twig", "areas/gallery-single-images/view.html.twig", 1)->unwrap();
// line 2
echo "
<section class=\"area-gallery-single-images ";
// line 3
echo (( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 3, $this->source); })())) ? ("row") : (""));
echo "\">
";
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "gallery")));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 5
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 5, $this->source); })())) {
// line 6
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["thumbnail" => "galleryThumbnail", "imgAttributes" => ["class" => "img-thumbnail"]]);
echo "
";
} else {
// line 8
echo " <div class=\"col-md-4\">
";
// line 9
echo twig_call_macro($macros["macros"], "macro_image_link", [$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["thumbnail" => "galleryThumbnail", "imgAttributes" => ["class" => "img-thumbnail"]]), (isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 9, $this->source); })()), "galleryLightbox"], 9, $context, $this->getSourceContext());
echo "
</div>
";
}
// line 12
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 14
echo "</section>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "areas/gallery-single-images/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 81 => 14, 74 => 12, 68 => 9, 65 => 8, 59 => 6, 56 => 5, 52 => 4, 48 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% import 'includes/macros.html.twig' as macros %}
<section class=\"area-gallery-single-images {{ ( not editmode ? 'row':'') }}\">
{% for i in pimcore_iterate_block(pimcore_block('gallery')) %}
{% if editmode %}
{{ pimcore_image('image', { thumbnail: 'galleryThumbnail', imgAttributes: {class: 'img-thumbnail'}}) }}
{% else %}
<div class=\"col-md-4\">
{{ macros.image_link(pimcore_image('image', { thumbnail: 'galleryThumbnail', imgAttributes: {class: 'img-thumbnail'}}), editmode, 'galleryLightbox') }}
</div>
{% endif %}
{% endfor %}
</section>
", "areas/gallery-single-images/view.html.twig", "/var/www/html/siteone/templates/areas/gallery-single-images/view.html.twig");
}
}