var/cache/dev/twig/4d/4d7c09eec33cfde76f0a24e6a11aa6b2.php line 69

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. /* snippets/standard-teaser.html.twig */
  14. class __TwigTemplate_81036d8594a5aede08cf14cbc5d1ceb0 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""snippets/standard-teaser.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""snippets/standard-teaser.html.twig"));
  35.         // line 1
  36.         $context["suffix"] = (($context["suffix"]) ?? (""));
  37.         // line 2
  38.         echo "
  39. ";
  40.         // line 3
  41.         if ((twig_test_empty((isset($context["suffix"]) || array_key_exists("suffix"$context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.'3$this->source); })())) && (isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'3$this->source); })()))) {
  42.             // line 4
  43.             echo "    <style type=\"text/css\">
  44.         .teaser {
  45.             max-width: 250px;
  46.         }
  47.         .teaser img {
  48.             max-width: 100%;
  49.         }
  50.     </style>
  51. ";
  52.         }
  53.         // line 14
  54.         echo "
  55. <div class=\"teaser card custom-standard-card mb-4 shadow-sm\">
  56.     ";
  57.         // line 16
  58.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image", ("image" $this->sandbox->ensureToStringAllowed(        // line 17
  59. (isset($context["suffix"]) || array_key_exists("suffix"$context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.'17$this->source); })()), 17$this->source)), ["thumbnail" => "standardTeaser""imgAttributes" => ["class" => "img-fluid w-100"]]);
  60.         // line 21
  61.         echo "
  62.     <div class=\"card-body\">
  63.         <h4 class=\"card-title pricing-card-title text-uppercase\">";
  64.         // line 24
  65.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input", ("title" $this->sandbox->ensureToStringAllowed((isset($context["suffix"]) || array_key_exists("suffix"$context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.'24$this->source); })()), 24$this->source)));
  66.         echo "</h4>
  67.         <p class=\"card-text\">
  68.             ";
  69.         // line 26
  70.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg", ("text" $this->sandbox->ensureToStringAllowed(        // line 27
  71. (isset($context["suffix"]) || array_key_exists("suffix"$context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.'27$this->source); })()), 27$this->source)), ["height" => 100"enterMode" => 2]);
  72.         // line 31
  73.         echo "
  74.         </p>
  75.         <p>
  76.             ";
  77.         // line 34
  78.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link", ("link" $this->sandbox->ensureToStringAllowed(        // line 35
  79. (isset($context["suffix"]) || array_key_exists("suffix"$context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.'35$this->source); })()), 35$this->source)), ["class" => "btn btn-lg btn-secondary"]);
  80.         // line 38
  81.         echo "
  82.         </p>
  83.     </div>
  84. </div>
  85. ";
  86.         
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  88.         
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  90.     }
  91.     /**
  92.      * @codeCoverageIgnore
  93.      */
  94.     public function getTemplateName()
  95.     {
  96.         return "snippets/standard-teaser.html.twig";
  97.     }
  98.     /**
  99.      * @codeCoverageIgnore
  100.      */
  101.     public function isTraitable()
  102.     {
  103.         return false;
  104.     }
  105.     /**
  106.      * @codeCoverageIgnore
  107.      */
  108.     public function getDebugInfo()
  109.     {
  110.         return array (  92 => 38,  90 => 35,  89 => 34,  84 => 31,  82 => 27,  81 => 26,  76 => 24,  71 => 21,  69 => 17,  68 => 16,  64 => 14,  52 => 4,  50 => 3,  47 => 2,  45 => 1,);
  111.     }
  112.     public function getSourceContext()
  113.     {
  114.         return new Source("{% set suffix = suffix ?? '' %}
  115. {% if suffix is empty and editmode %}
  116.     <style type=\"text/css\">
  117.         .teaser {
  118.             max-width: 250px;
  119.         }
  120.         .teaser img {
  121.             max-width: 100%;
  122.         }
  123.     </style>
  124. {% endif %}
  125. <div class=\"teaser card custom-standard-card mb-4 shadow-sm\">
  126.     {{
  127.         pimcore_image('image' ~ suffix, {
  128.             thumbnail: 'standardTeaser',
  129.             imgAttributes: {class: 'img-fluid w-100'}
  130.         })
  131.     }}
  132.     <div class=\"card-body\">
  133.         <h4 class=\"card-title pricing-card-title text-uppercase\">{{ pimcore_input('title' ~ suffix) }}</h4>
  134.         <p class=\"card-text\">
  135.             {{
  136.                     pimcore_wysiwyg('text' ~ suffix, {
  137.                     height: 100,
  138.                     enterMode: 2,
  139.                 })
  140.             }}
  141.         </p>
  142.         <p>
  143.             {{
  144.                 pimcore_link('link' ~ suffix, {
  145.                     class: 'btn btn-lg btn-secondary'
  146.                 })
  147.             }}
  148.         </p>
  149.     </div>
  150. </div>
  151. ""snippets/standard-teaser.html.twig""/var/www/dev-10/templates/snippets/standard-teaser.html.twig");
  152.     }
  153.     
  154.     public function checkSecurity()
  155.     {
  156.         static $tags = array("set" => 1"if" => 3);
  157.         static $filters = array();
  158.         static $functions = array("pimcore_image" => 17"pimcore_input" => 24"pimcore_wysiwyg" => 27"pimcore_link" => 35);
  159.         try {
  160.             $this->sandbox->checkSecurity(
  161.                 ['set''if'],
  162.                 [],
  163.                 ['pimcore_image''pimcore_input''pimcore_wysiwyg''pimcore_link']
  164.             );
  165.         } catch (SecurityError $e) {
  166.             $e->setSourceContext($this->source);
  167.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  168.                 $e->setTemplateLine($tags[$e->getTagName()]);
  169.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  170.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  171.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  172.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  173.             }
  174.             throw $e;
  175.         }
  176.     }
  177. }