var/cache/dev/twig/14/141e9bf8cc2f79a54e42e67864a8801a13029fabd7e670cfa887ca2565a000f3.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. /* :snippets:standard-teaser.html.twig */
  14. class __TwigTemplate_3ce87fac1feba1f036a92a8016a4e741a9750172b9a6c313a93e32ca4d7e71b9 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template"":snippets:standard-teaser.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template"":snippets:standard-teaser.html.twig"));
  33.         // line 1
  34.         $context["suffix"] = (($context["suffix"]) ?? (""));
  35.         // line 2
  36.         echo "
  37. ";
  38.         // line 3
  39.         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); })()))) {
  40.             // line 4
  41.             echo "    <style type=\"text/css\">
  42.         .teaser {
  43.             max-width: 250px;
  44.         }
  45.         .teaser img {
  46.             max-width: 100%;
  47.         }
  48.     </style>
  49. ";
  50.         }
  51.         // line 14
  52.         echo "
  53. <div class=\"teaser card custom-standard-card mb-4 shadow-sm\">
  54.     ";
  55.         // line 16
  56.         echo $this->extensions['Pimcore\Twig\Extension\DocumentTagExtension']->renderTag($context"image", ("image" .         // line 17
  57. (isset($context["suffix"]) || array_key_exists("suffix"$context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.'17$this->source); })())), ["thumbnail" => "standardTeaser""class" => "img-fluid w-100"]);
  58.         // line 21
  59.         echo "
  60.     <div class=\"card-body\">
  61.         <h4 class=\"card-title pricing-card-title text-uppercase\">";
  62.         // line 24
  63.         echo $this->extensions['Pimcore\Twig\Extension\DocumentTagExtension']->renderTag($context"input", ("title" . (isset($context["suffix"]) || array_key_exists("suffix"$context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.'24$this->source); })())));
  64.         echo "</h4>
  65.         <p class=\"card-text\">
  66.             ";
  67.         // line 26
  68.         echo $this->extensions['Pimcore\Twig\Extension\DocumentTagExtension']->renderTag($context"wysiwyg", ("text" .         // line 27
  69. (isset($context["suffix"]) || array_key_exists("suffix"$context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.'27$this->source); })())), ["height" => 100"enterMode" => 2]);
  70.         // line 31
  71.         echo "
  72.         </p>
  73.         <p>
  74.             ";
  75.         // line 34
  76.         echo $this->extensions['Pimcore\Twig\Extension\DocumentTagExtension']->renderTag($context"link", ("link" .         // line 35
  77. (isset($context["suffix"]) || array_key_exists("suffix"$context) ? $context["suffix"] : (function () { throw new RuntimeError('Variable "suffix" does not exist.'35$this->source); })())), ["class" => "btn btn-lg btn-secondary"]);
  78.         // line 38
  79.         echo "
  80.         </p>
  81.     </div>
  82. </div>
  83. ";
  84.         
  85.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  86.         
  87.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  88.     }
  89.     public function getTemplateName()
  90.     {
  91.         return ":snippets:standard-teaser.html.twig";
  92.     }
  93.     public function isTraitable()
  94.     {
  95.         return false;
  96.     }
  97.     public function getDebugInfo()
  98.     {
  99.         return array (  90 => 38,  88 => 35,  87 => 34,  82 => 31,  80 => 27,  79 => 26,  74 => 24,  69 => 21,  67 => 17,  66 => 16,  62 => 14,  50 => 4,  48 => 3,  45 => 2,  43 => 1,);
  100.     }
  101.     public function getSourceContext()
  102.     {
  103.         return new Source("{% set suffix = suffix ?? '' %}
  104. {% if suffix is empty and editmode %}
  105.     <style type=\"text/css\">
  106.         .teaser {
  107.             max-width: 250px;
  108.         }
  109.         .teaser img {
  110.             max-width: 100%;
  111.         }
  112.     </style>
  113. {% endif %}
  114. <div class=\"teaser card custom-standard-card mb-4 shadow-sm\">
  115.     {{
  116.         pimcore_image('image' ~ suffix, {
  117.             thumbnail: 'standardTeaser',
  118.             class: 'img-fluid w-100'
  119.         })
  120.     }}
  121.     <div class=\"card-body\">
  122.         <h4 class=\"card-title pricing-card-title text-uppercase\">{{ pimcore_input('title' ~ suffix) }}</h4>
  123.         <p class=\"card-text\">
  124.             {{
  125.                     pimcore_wysiwyg('text' ~ suffix, {
  126.                     height: 100,
  127.                     enterMode: 2,
  128.                 })
  129.             }}
  130.         </p>
  131.         <p>
  132.             {{
  133.                 pimcore_link('link' ~ suffix, {
  134.                     class: 'btn btn-lg btn-secondary'
  135.                 })
  136.             }}
  137.         </p>
  138.     </div>
  139. </div>
  140. "":snippets:standard-teaser.html.twig""/var/www/html/pimcore/app/Resources/views/snippets/standard-teaser.html.twig");
  141.     }
  142. }