var/cache/dev/twig/4b/4b5ddf35eb2b6ff9f109e8b112003ff006c9adaaf586f41cd97a209886694a25.php line 38

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. /* CoreBundle:Magazine:showById.html.twig */
  14. class __TwigTemplate_c84f24db28df79f6e01341bb7bc98fcf88fa7d148ee5950c1840a0f3391dcdb5 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.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "pageTemplateDefault.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""CoreBundle:Magazine:showById.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""CoreBundle:Magazine:showById.html.twig"));
  38.         $this->parent $this->loadTemplate("pageTemplateDefault.html.twig""CoreBundle:Magazine:showById.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 2
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         // line 3
  54.         echo "
  55.     <div class=\"magazine-detail-wrapper\">
  56.         ";
  57.         // line 6
  58.         echo "        ";
  59.         if (twig_get_attribute($this->env$this->source, (isset($context["magazine"]) || array_key_exists("magazine"$context) ? $context["magazine"] : (function () { throw new RuntimeError('Variable "magazine" does not exist.'6$this->source); })()), "HeaderImage", [], "any"falsefalsefalse6)) {
  60.             // line 7
  61.             echo "            <div class=\"stage\">
  62.                 <div class=\"stage-image main stage-with-anchor\">
  63.                     <div class=\"image-wrapper\">
  64.                         ";
  65.             // line 10
  66.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["magazine"]) || array_key_exists("magazine"$context) ? $context["magazine"] : (function () { throw new RuntimeError('Variable "magazine" does not exist.'10$this->source); })()), "getHeaderImage", [], "method"falsefalsefalse10), "getThumbnail", [=> ("magazineHeaderImage" . (isset($context["bundleName"]) || array_key_exists("bundleName"$context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.'10$this->source); })()))], "method"falsefalsefalse10)) {
  67.                 // line 11
  68.                 echo "                            ";
  69.                 echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["magazine"]) || array_key_exists("magazine"$context) ? $context["magazine"] : (function () { throw new RuntimeError('Variable "magazine" does not exist.'11$this->source); })()), "getHeaderImage", [], "method"falsefalsefalse11), "getThumbnail", [=> ("magazineHeaderImage" . (isset($context["bundleName"]) || array_key_exists("bundleName"$context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.'11$this->source); })()))], "method"falsefalsefalse11), "getHTML", [], "method"falsefalsefalse11);
  70.                 echo "
  71.                             ";
  72.                 // line 13
  73.                 echo "                            <style>
  74.                                 @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  75.                                     .stage-image.main .image-wrapper {
  76.                                         width: 100%;
  77.                                         height: 100%;
  78.                                         background: url( ";
  79.                 // line 18
  80.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentTagExtension']->renderTag($context"image""stageFlatImage"), "getSrc", [], "method"falsefalsefalse18), "html"nulltrue);
  81.                 echo " ) center right 100%/cover no-repeat;
  82.                                     }
  83.                                     .stage-image.main > .image-wrapper img {
  84.                                         display: none;
  85.                                     }
  86.                                 }
  87.                             </style>
  88.                             ";
  89.                 // line 27
  90.                 echo "                        ";
  91.             }
  92.             // line 28
  93.             echo "                    </div>
  94.                     <div class=\"text-container\">
  95.                         <div class=\"main-content\">
  96.                             <div class=\"text\">
  97.                                 <div class=\"special-headline\">
  98.                                     <h1>
  99.                             <span class=\"special-headline-first\">
  100.                                  ";
  101.             // line 35
  102.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["magazine"]) || array_key_exists("magazine"$context) ? $context["magazine"] : (function () { throw new RuntimeError('Variable "magazine" does not exist.'35$this->source); })()), "getSubline", [], "method"falsefalsefalse35), "html"nulltrue);
  103.             echo "
  104.                             </span>
  105.                                         <span class=\"special-headline-second\">
  106.                                  ";
  107.             // line 38
  108.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["magazine"]) || array_key_exists("magazine"$context) ? $context["magazine"] : (function () { throw new RuntimeError('Variable "magazine" does not exist.'38$this->source); })()), "getTitle", [], "method"falsefalsefalse38), "html"nulltrue);
  109.             echo "
  110.                             </span>
  111.                                     </h1>
  112.                                 </div>
  113.                             </div>
  114.                         </div>
  115.                         <div class=\"with-anchor\">
  116.                             <a href=\"#content-section\" class=\"content-anchor offset-top\"></a>
  117.                         </div>
  118.                     </div>
  119.                 </div>
  120.             </div>
  121.         ";
  122.         }
  123.         // line 51
  124.         echo "        ";
  125.         // line 52
  126.         echo "
  127.         ";
  128.         // line 53
  129.         $context["items"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["magazine"]) || array_key_exists("magazine"$context) ? $context["magazine"] : (function () { throw new RuntimeError('Variable "magazine" does not exist.'53$this->source); })()), "getElemente", [], "method"falsefalsefalse53), "getItems", [], "method"falsefalsefalse53);
  130.         // line 54
  131.         echo "        ";
  132.         $context['_parent'] = $context;
  133.         $context['_seq'] = twig_ensure_traversable((isset($context["items"]) || array_key_exists("items"$context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.'54$this->source); })()));
  134.         $context['loop'] = [
  135.           'parent' => $context['_parent'],
  136.           'index0' => 0,
  137.           'index'  => 1,
  138.           'first'  => true,
  139.         ];
  140.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  141.             $length count($context['_seq']);
  142.             $context['loop']['revindex0'] = $length 1;
  143.             $context['loop']['revindex'] = $length;
  144.             $context['loop']['length'] = $length;
  145.             $context['loop']['last'] = === $length;
  146.         }
  147.         foreach ($context['_seq'] as $context["key"] => $context["item"]) {
  148.             // line 55
  149.             echo "            ";
  150.             $__internal_compile_0 null;
  151.             try {
  152.                 $__internal_compile_0 =                 $this->loadTemplate((("FieldCollections/" twig_get_attribute($this->env$this->source$context["item"], "getType", [], "method"falsefalsefalse55)) . ".html.twig"), "CoreBundle:Magazine:showById.html.twig"55);
  153.             } catch (LoaderError $e) {
  154.                 // ignore missing template
  155.             }
  156.             if ($__internal_compile_0) {
  157.                 $__internal_compile_0->display($context);
  158.             }
  159.             // line 56
  160.             echo "        ";
  161.             ++$context['loop']['index0'];
  162.             ++$context['loop']['index'];
  163.             $context['loop']['first'] = false;
  164.             if (isset($context['loop']['length'])) {
  165.                 --$context['loop']['revindex0'];
  166.                 --$context['loop']['revindex'];
  167.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  168.             }
  169.         }
  170.         $_parent $context['_parent'];
  171.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
  172.         $context array_intersect_key($context$_parent) + $_parent;
  173.         // line 57
  174.         echo "
  175.         ";
  176.         // line 58
  177.         $context["magazineSelect"] = twig_get_attribute($this->env$this->source, (isset($context["magazine"]) || array_key_exists("magazine"$context) ? $context["magazine"] : (function () { throw new RuntimeError('Variable "magazine" does not exist.'58$this->source); })()), "getMagazineSelect", [], "method"falsefalsefalse58);
  178.         // line 59
  179.         echo "        ";
  180.         if ( !twig_test_empty((isset($context["magazineSelect"]) || array_key_exists("magazineSelect"$context) ? $context["magazineSelect"] : (function () { throw new RuntimeError('Variable "magazineSelect" does not exist.'59$this->source); })()))) {
  181.             // line 60
  182.             echo "            ";
  183.             $this->loadTemplate("Partials/relatedMagazines.html.twig""CoreBundle:Magazine:showById.html.twig"60)->display($context);
  184.             // line 61
  185.             echo "        ";
  186.         }
  187.         // line 62
  188.         echo "    </div>
  189. ";
  190.         
  191.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  192.         
  193.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  194.     }
  195.     public function getTemplateName()
  196.     {
  197.         return "CoreBundle:Magazine:showById.html.twig";
  198.     }
  199.     public function isTraitable()
  200.     {
  201.         return false;
  202.     }
  203.     public function getDebugInfo()
  204.     {
  205.         return array (  203 => 62,  200 => 61,  197 => 60,  194 => 59,  192 => 58,  189 => 57,  175 => 56,  164 => 55,  146 => 54,  144 => 53,  141 => 52,  139 => 51,  123 => 38,  117 => 35,  108 => 28,  105 => 27,  94 => 18,  87 => 13,  82 => 11,  80 => 10,  75 => 7,  72 => 6,  68 => 3,  58 => 2,  35 => 1,);
  206.     }
  207.     public function getSourceContext()
  208.     {
  209.         return new Source("{% extends 'pageTemplateDefault.html.twig' %}
  210. {% block content %}
  211.     <div class=\"magazine-detail-wrapper\">
  212.         {# --- stage --- #}
  213.         {% if magazine.HeaderImage %}
  214.             <div class=\"stage\">
  215.                 <div class=\"stage-image main stage-with-anchor\">
  216.                     <div class=\"image-wrapper\">
  217.                         {% if magazine.getHeaderImage().getThumbnail(\"magazineHeaderImage\" ~ bundleName) %}
  218.                             {{ magazine.getHeaderImage().getThumbnail(\"magazineHeaderImage\" ~ bundleName).getHTML() |raw }}
  219.                             {#IE Fix for thumbnails rendering start#}
  220.                             <style>
  221.                                 @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  222.                                     .stage-image.main .image-wrapper {
  223.                                         width: 100%;
  224.                                         height: 100%;
  225.                                         background: url( {{ pimcore_image(\"stageFlatImage\").getSrc() }} ) center right 100%/cover no-repeat;
  226.                                     }
  227.                                     .stage-image.main > .image-wrapper img {
  228.                                         display: none;
  229.                                     }
  230.                                 }
  231.                             </style>
  232.                             {#IE Fix for thumbnails rendering end#}
  233.                         {% endif %}
  234.                     </div>
  235.                     <div class=\"text-container\">
  236.                         <div class=\"main-content\">
  237.                             <div class=\"text\">
  238.                                 <div class=\"special-headline\">
  239.                                     <h1>
  240.                             <span class=\"special-headline-first\">
  241.                                  {{ magazine.getSubline() }}
  242.                             </span>
  243.                                         <span class=\"special-headline-second\">
  244.                                  {{ magazine.getTitle() }}
  245.                             </span>
  246.                                     </h1>
  247.                                 </div>
  248.                             </div>
  249.                         </div>
  250.                         <div class=\"with-anchor\">
  251.                             <a href=\"#content-section\" class=\"content-anchor offset-top\"></a>
  252.                         </div>
  253.                     </div>
  254.                 </div>
  255.             </div>
  256.         {% endif %}
  257.         {# --- end stage --- #}
  258.         {% set items = magazine.getElemente().getItems() %}
  259.         {% for key,item in items %}
  260.             {% include 'FieldCollections/'~item.getType()~'.html.twig' ignore missing %}
  261.         {% endfor %}
  262.         {% set magazineSelect = magazine.getMagazineSelect() %}
  263.         {% if magazineSelect is not empty %}
  264.             {% include 'Partials/relatedMagazines.html.twig' %}
  265.         {% endif %}
  266.     </div>
  267. {% endblock %}
  268. ""CoreBundle:Magazine:showById.html.twig""/var/www/share/test.develey/src/CoreBundle/Resources/views/Magazine/showById.html.twig");
  269.     }
  270. }