var/cache/dev/twig/31/31fdeb8f98ed4274310bb3a6fa5fafa4.php line 33

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. /* areas/wysiwyg-with-images/view.html.twig */
  14. class __TwigTemplate_2483a85a66d57974173247933633ea3b extends 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/wysiwyg-with-images/view.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/wysiwyg-with-images/view.html.twig"));
  33.         // line 1
  34.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("includes/macros.html.twig""areas/wysiwyg-with-images/view.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "
  37. ";
  38.         // line 3
  39.         $context["content"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""content");
  40.         // line 4
  41.         echo "
  42. ";
  43.         // line 6
  44.         if (twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'6$this->source); })()), "getDescription", [], "method"falsefalsefalse6))) {
  45.             // line 7
  46.             echo "    ";
  47.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_meta')->getCallable()(), "setDescription", [=> twig_get_attribute($this->env$this->source, (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'7$this->source); })()), "getData", [], "method"falsefalsefalse7), => 160], "method"falsefalsefalse7);
  48.         }
  49.         // line 9
  50.         echo "
  51. <section class=\"area-wysiwyg\">
  52.     <div class=\"row\">
  53.         <div class=\"col-sm-8\">
  54.             ";
  55.         // line 13
  56.         $this->env->getExtension('Pimcore\Twig\Extension\GlossaryExtension')->start();
  57.         // line 14
  58.         echo "                ";
  59.         echo (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'14$this->source); })());
  60.         echo "
  61.             ";
  62.         $this->env->getExtension('Pimcore\Twig\Extension\GlossaryExtension')->stop();
  63.         // line 16
  64.         echo "        </div>
  65.         <div class=\"col-sm-4\">
  66.             ";
  67.         // line 18
  68.         $context['_parent'] = $context;
  69.         $context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""images")));
  70.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  71.             // line 19
  72.             echo "                ";
  73.             echo twig_call_macro($macros["macros"], "macro_image_link", [$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image", ["thumbnail" => "galleryThumbnail""imgAttributes" => ["class" => "img-responsive img-thumbnail mb-3"]]), (isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'19$this->source); })()), "galleryLightbox"], 19$context$this->getSourceContext());
  74.             echo "
  75.             ";
  76.         }
  77.         $_parent $context['_parent'];
  78.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  79.         $context array_intersect_key($context$_parent) + $_parent;
  80.         // line 21
  81.         echo "        </div>
  82.     </div>
  83. </section>
  84. ";
  85.         
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  87.         
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  89.     }
  90.     public function getTemplateName()
  91.     {
  92.         return "areas/wysiwyg-with-images/view.html.twig";
  93.     }
  94.     public function isTraitable()
  95.     {
  96.         return false;
  97.     }
  98.     public function getDebugInfo()
  99.     {
  100.         return array (  91 => 21,  82 => 19,  78 => 18,  74 => 16,  67 => 14,  65 => 13,  59 => 9,  55 => 7,  53 => 6,  50 => 4,  48 => 3,  45 => 2,  43 => 1,);
  101.     }
  102.     public function getSourceContext()
  103.     {
  104.         return new Source("{% import 'includes/macros.html.twig' as macros %}
  105. {% set content = pimcore_wysiwyg('content') %}
  106. {# add autogenerated meta description #}
  107. {% if document.getDescription() is empty %}
  108.     {% do pimcore_head_meta().setDescription(content.getData(), 160) %}
  109. {% endif %}
  110. <section class=\"area-wysiwyg\">
  111.     <div class=\"row\">
  112.         <div class=\"col-sm-8\">
  113.             {% pimcoreglossary %}
  114.                 {{ content|raw }}
  115.             {% endpimcoreglossary %}
  116.         </div>
  117.         <div class=\"col-sm-4\">
  118.             {% for i in pimcore_iterate_block(pimcore_block('images')) %}
  119.                 {{ macros.image_link(pimcore_image('image', { thumbnail: 'galleryThumbnail', imgAttributes: {class: 'img-responsive img-thumbnail mb-3' }}), editmode, 'galleryLightbox') }}
  120.             {% endfor %}
  121.         </div>
  122.     </div>
  123. </section>
  124. ""areas/wysiwyg-with-images/view.html.twig""/www/htdocs/w0189996/pimcore-demo/templates/areas/wysiwyg-with-images/view.html.twig");
  125.     }
  126. }