var/cache/dev/twig/ea/ea924cbbe50f69c4aa0bd27faf4a4b3c.php line 148

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/featurette/view.html.twig */
  14. class __TwigTemplate_f5779cd873e39bb293d6f0ac8073d6b4 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/featurette/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/featurette/view.html.twig"));
  33.         // line 1
  34.         $context["featuretteBlock"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""block");
  35.         // line 2
  36.         echo "
  37. <section class=\"area-featurette\">
  38.     ";
  39.         // line 4
  40.         $context['_parent'] = $context;
  41.         $context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator((isset($context["featuretteBlock"]) || array_key_exists("featuretteBlock"$context) ? $context["featuretteBlock"] : (function () { throw new RuntimeError('Variable "featuretteBlock" does not exist.'4$this->source); })())));
  42.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  43.             // line 5
  44.             echo "        ";
  45.             $context["positionSelect"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""position", ["store" => [=> [=> "left"=> "left"], => [=> "right"=> "right"]], "reload" => true"class" => "align-middle"]);
  46.             // line 10
  47.             echo "
  48.         ";
  49.             // line 11
  50.             $context["typeSelect"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""type", ["reload" => true"store" => [=> [=> "video"=> "video"], => [=> "image"=> "image"]], "class" => "align-middle"]);
  51.             // line 16
  52.             echo "
  53.         ";
  54.             // line 17
  55.             $context["position"] = ((twig_get_attribute($this->env$this->source, ($context["positionSelect"] ?? null), "getData", [], "method"truetruefalse17)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["positionSelect"] ?? null), "getData", [], "method"falsefalsefalse17), "left")) : ("left"));
  56.             // line 18
  57.             echo "        ";
  58.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'18$this->source); })())) {
  59.                 // line 19
  60.                 echo "            <div class=\"mb-3\">
  61.                 <span class=\"editmode-label align-middle\">Orientation:</span>
  62.                 ";
  63.                 // line 21
  64.                 echo (isset($context["positionSelect"]) || array_key_exists("positionSelect"$context) ? $context["positionSelect"] : (function () { throw new RuntimeError('Variable "positionSelect" does not exist.'21$this->source); })());
  65.                 echo "
  66.             </div>
  67.         ";
  68.             }
  69.             // line 24
  70.             echo "
  71.         <div class=\"row featurette\">
  72.             <div class=\"col-sm-7 ";
  73.             // line 26
  74.             echo ((((isset($context["position"]) || array_key_exists("position"$context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.'26$this->source); })()) == "right")) ? ("order-md-2") : (""));
  75.             echo "\">
  76.                 <h2 class=\"featurette-heading\">
  77.                     ";
  78.             // line 28
  79.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline");
  80.             echo "
  81.                     <br>
  82.                     <span class=\"text-muted\">";
  83.             // line 30
  84.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""subline");
  85.             echo "</span>
  86.                 </h2>
  87.                 <div class=\"lead\">
  88.                     ";
  89.             // line 34
  90.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""content", ["height" => 200]);
  91.             // line 36
  92.             echo "
  93.                 </div>
  94.             </div>
  95.             <div class=\"col-sm-5 ";
  96.             // line 40
  97.             echo ((((isset($context["position"]) || array_key_exists("position"$context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.'40$this->source); })()) == "right")) ? ("order-md-1") : (""));
  98.             echo "\">
  99.                 ";
  100.             // line 42
  101.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'42$this->source); })())) {
  102.                 // line 43
  103.                 echo "                    <div class=\"mb-3\">
  104.                         <span class=\"editmode-label align-middle\">Type:</span>
  105.                         ";
  106.                 // line 45
  107.                 echo (isset($context["typeSelect"]) || array_key_exists("typeSelect"$context) ? $context["typeSelect"] : (function () { throw new RuntimeError('Variable "typeSelect" does not exist.'45$this->source); })());
  108.                 echo "
  109.                     </div>
  110.                 ";
  111.             }
  112.             // line 48
  113.             echo "
  114.                 ";
  115.             // line 49
  116.             $context["type"] = twig_get_attribute($this->env$this->source, (isset($context["typeSelect"]) || array_key_exists("typeSelect"$context) ? $context["typeSelect"] : (function () { throw new RuntimeError('Variable "typeSelect" does not exist.'49$this->source); })()), "getData", [], "method"falsefalsefalse49);
  117.             // line 50
  118.             echo "
  119.                 ";
  120.             // line 51
  121.             if (((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'51$this->source); })()) == "video")) {
  122.                 // line 52
  123.                 echo "
  124.                     ";
  125.                 // line 53
  126.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"video""video", ["thumbnail" => "featurerette""attributes" => ["class" => "video-js vjs-default-skin vjs-big-play-centered""data-setup" => "{}"]]);
  127.                 // line 61
  128.                 echo "
  129.                 ";
  130.             } else {
  131.                 // line 64
  132.                 echo "
  133.                     ";
  134.                 // line 65
  135.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image", ["imgAttributes" => ["class" => "featurette-image img-responsive"], "thumbnail" => "featurerette"]);
  136.                 // line 70
  137.                 echo "
  138.                 ";
  139.             }
  140.             // line 73
  141.             echo "
  142.             </div>
  143.         </div>
  144.         ";
  145.             // line 77
  146.             if ((twig_get_attribute($this->env$this->source, (isset($context["featuretteBlock"]) || array_key_exists("featuretteBlock"$context) ? $context["featuretteBlock"] : (function () { throw new RuntimeError('Variable "featuretteBlock" does not exist.'77$this->source); })()), "getCurrent", [], "method"falsefalsefalse77) < (twig_get_attribute($this->env$this->source, (isset($context["featuretteBlock"]) || array_key_exists("featuretteBlock"$context) ? $context["featuretteBlock"] : (function () { throw new RuntimeError('Variable "featuretteBlock" does not exist.'77$this->source); })()), "getCount", [], "method"falsefalsefalse77) - 1))) {
  147.                 // line 78
  148.                 echo "            <hr class=\"featurette-divider\">
  149.         ";
  150.             }
  151.             // line 80
  152.             echo "
  153.     ";
  154.         }
  155.         $_parent $context['_parent'];
  156.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  157.         $context array_intersect_key($context$_parent) + $_parent;
  158.         // line 82
  159.         echo "</section>
  160. ";
  161.         
  162.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  163.         
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  165.     }
  166.     public function getTemplateName()
  167.     {
  168.         return "areas/featurette/view.html.twig";
  169.     }
  170.     public function isTraitable()
  171.     {
  172.         return false;
  173.     }
  174.     public function getDebugInfo()
  175.     {
  176.         return array (  174 => 82,  167 => 80,  163 => 78,  161 => 77,  155 => 73,  150 => 70,  148 => 65,  145 => 64,  140 => 61,  138 => 53,  135 => 52,  133 => 51,  130 => 50,  128 => 49,  125 => 48,  119 => 45,  115 => 43,  113 => 42,  108 => 40,  102 => 36,  100 => 34,  93 => 30,  88 => 28,  83 => 26,  79 => 24,  73 => 21,  69 => 19,  66 => 18,  64 => 17,  61 => 16,  59 => 11,  56 => 10,  53 => 5,  49 => 4,  45 => 2,  43 => 1,);
  177.     }
  178.     public function getSourceContext()
  179.     {
  180.         return new Source("{% set featuretteBlock = pimcore_block('block') %}
  181. <section class=\"area-featurette\">
  182.     {% for i in pimcore_iterate_block(featuretteBlock) %}
  183.         {% set positionSelect = pimcore_select('position', {
  184.             store: [[\"left\",\"left\"],[\"right\",\"right\"]],
  185.             reload: true,
  186.             class: 'align-middle'
  187.         }) %}
  188.         {% set typeSelect = pimcore_select('type', {
  189.             reload: true,
  190.             store: [[\"video\",\"video\"], [\"image\",\"image\"]],
  191.             class: 'align-middle'
  192.         }) %}
  193.         {% set position = positionSelect.getData()|default('left') %}
  194.         {% if editmode %}
  195.             <div class=\"mb-3\">
  196.                 <span class=\"editmode-label align-middle\">Orientation:</span>
  197.                 {{ positionSelect | raw }}
  198.             </div>
  199.         {% endif %}
  200.         <div class=\"row featurette\">
  201.             <div class=\"col-sm-7 {{ position == 'right' ? 'order-md-2' : '' }}\">
  202.                 <h2 class=\"featurette-heading\">
  203.                     {{ pimcore_input('headline') }}
  204.                     <br>
  205.                     <span class=\"text-muted\">{{ pimcore_input('subline') }}</span>
  206.                 </h2>
  207.                 <div class=\"lead\">
  208.                     {{ pimcore_wysiwyg('content', {
  209.                         height: 200
  210.                     }) }}
  211.                 </div>
  212.             </div>
  213.             <div class=\"col-sm-5 {{ position == 'right' ? 'order-md-1' : '' }}\">
  214.                 {% if editmode %}
  215.                     <div class=\"mb-3\">
  216.                         <span class=\"editmode-label align-middle\">Type:</span>
  217.                         {{ typeSelect|raw }}
  218.                     </div>
  219.                 {% endif %}
  220.                 {% set type = typeSelect.getData() %}
  221.                 {% if type == 'video' %}
  222.                     {{
  223.                         pimcore_video('video', {
  224.                             thumbnail: 'featurerette',
  225.                             attributes: {
  226.                                 class: 'video-js vjs-default-skin vjs-big-play-centered',
  227.                                 'data-setup': '{}'
  228.                             }
  229.                         })
  230.                     }}
  231.                 {% else %}
  232.                     {{
  233.                         pimcore_image('image', {
  234.                             imgAttributes: {class: 'featurette-image img-responsive'},
  235.                             thumbnail: 'featurerette'
  236.                         })
  237.                     }}
  238.                 {% endif %}
  239.             </div>
  240.         </div>
  241.         {% if featuretteBlock.getCurrent() < (featuretteBlock.getCount() - 1) %}
  242.             <hr class=\"featurette-divider\">
  243.         {% endif %}
  244.     {% endfor %}
  245. </section>
  246. ""areas/featurette/view.html.twig""/var/www/html/pimcore/templates/areas/featurette/view.html.twig");
  247.     }
  248. }