var/cache/dev/twig/f9/f903b24fd1ae25b5fdf706a8d14c0dd0.php line 115

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/icon-teaser-row/view.html.twig */
  14. class __TwigTemplate_7330aca93a1afc344fc7113c57e90755 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""areas/icon-teaser-row/view.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""areas/icon-teaser-row/view.html.twig"));
  35.         // line 1
  36.         $context["icons"] = ["asterisk" => "f069""plus" => "f067""euro-sign" => "f153""minus" => "f068""cloud" => "f0c2""envelope" => "f0e0""pencil" => "f040""glass" => "f000""music" => "f001""search" => "f002""heart" => "f004""star" => "f005""star-o" => "f006""user" => "f007""film" => "f008""th-large" => "f009""th" => "f00a""th-list" => "f00b""check" => "f00c""times" => "f00d""search-plus" => "f00e""search-minus" => "f010""power-off" => "f011""signal" => "f012""gear" => "f013""trash" => "f1f8""home" => "f015""file" => "f15b""clock-o" => "f017""road" => "f018""download" => "f019""cloud-download" => "f0ed""upload" => "f093""inbox" => "f01c""play-circle" => "f144""repeat" => "f01e""refresh" => "f021""list-alt" => "f022""lock" => "f023""flag" => "f024""headphones" => "f025""volume-off" => "f026""volume-down" => "f027""volume-up" => "f028""qrcode" => "f029""barcode" => "f02a""tag" => "f02b""tags" => "f02c""book" => "f02d""bookmark" => "f097""print" => "f02f""camera" => "f030""font" => "f031""bold" => "f032""italic" => "f033""text-height" => "f034""text-width" => "f035""align-left" => "f036""align-center" => "f037""align-right" => "f038""align-justify" => "f039""list" => "f03a""indent" => "f03c""video-camera" => "f03d""picture-o" => "f03e""map-marker" => "f041""adjust" => "f042""tint" => "f043""edit" => "f044""share" => "f064""arrows" => "f047""step-backward" => "f048""fast-backward" => "f049""backward" => "f04a""play" => "f04b""pause" => "f04c""stop" => "f04d""forward" => "f04e""fast-forward" => "f050""step-forward" => "f051""eject" => "f052""chevron-left" => "f053""chevron-right" => "f054""question" => "f128""info" => "f129""crop" => "f125""minus-circle" => "f056""check-circle" => "f058""ban" => "f05e""arrow-left" => "f060""arrow-right" => "f061""arrow-up" => "f062""arrow-down" => "f063""share-alt" => "f1e0""expand" => "f065""compress" => "f066""exclamation" => "f12a""gift" => "f06b""leaf" => "f06c""fire" => "f06d""eye" => "f06e""eye-slash" => "f070""warning" => "f071""plane" => "f072""calendar" => "f073""random" => "f074""comment" => "f075""magnet" => "f076""chevron-up" => "f077""chevron-down" => "f078""retweet" => "f079""shopping-cart" => "f07a""folder" => "f07b""folder-open" => "f07c""arrows-v" => "f07d""arrows-h" => "f07e""hdd-o" => "f0a0""bullhorn" => "f0a1""bell" => "f0f3""certificate" => "f0a3""thumbs-up" => "f164""thumbs-down" => "f165""hand-o-right" => "f0a4""hand-o-left" => "f0a5""hand-o-up" => "f0a6""hand-o-down" => "f0a7""arrow-circle-right" => "f0a9""arrow-circle-left" => "f0a8""arrow-circle-up" => "f0aa""arrow-circle-down" => "f0ab""globe" => "f0ac""wrench" => "f0ad""tasks" => "f0ae""filter" => "f0b0""briefcase" => "f0b1""paperclip" => "f0c6""link" => "f0c1""phone" => "f095""dollar-sign" => "f155""pound-sign" => "f154""sort" => "f0dc""\tsort-alpha-down" => "f15d""angle-down" => "f107""angle-up" => "f106""user" => "f007""user-times" => "f235""save" => "f0c7""credit-card" => "f09d""chart-line" => "f201""copyright" => "f1f9""compass" => "f14e"];
  37.         // line 2
  38.         $context["iconStore"] = [];
  39.         // line 3
  40.         $context['_parent'] = $context;
  41.         $context['_seq'] = twig_ensure_traversable((isset($context["icons"]) || array_key_exists("icons"$context) ? $context["icons"] : (function () { throw new RuntimeError('Variable "icons" does not exist.'3$this->source); })()));
  42.         foreach ($context['_seq'] as $context["name"] => $context["code"]) {
  43.             // line 4
  44.             echo "    ";
  45.             $context["iconStore"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["iconStore"]) || array_key_exists("iconStore"$context) ? $context["iconStore"] : (function () { throw new RuntimeError('Variable "iconStore" does not exist.'4$this->source); })()), 4$this->source), [[$context["name"], (("&#x" $this->sandbox->ensureToStringAllowed($context["code"], 4$this->source)) . ";")]]);
  46.         }
  47.         $_parent $context['_parent'];
  48.         unset($context['_seq'], $context['_iterated'], $context['name'], $context['code'], $context['_parent'], $context['loop']);
  49.         $context array_intersect_key($context$_parent) + $_parent;
  50.         // line 6
  51.         echo "
  52. <section class=\"area-icon-teaser-row\">
  53.     <div class=\"row\">
  54.         ";
  55.         // line 10
  56.         $context['_parent'] = $context;
  57.         $context['_seq'] = twig_ensure_traversable(range(02));
  58.         foreach ($context['_seq'] as $context["_key"] => $context["t"]) {
  59.             // line 11
  60.             echo "
  61.             ";
  62.             // line 12
  63.             $context["iconSelect"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select", ("icon_" $this->sandbox->ensureToStringAllowed($context["t"], 12$this->source)), ["width" => 50"store" =>             // line 14
  64. (isset($context["iconStore"]) || array_key_exists("iconStore"$context) ? $context["iconStore"] : (function () { throw new RuntimeError('Variable "iconStore" does not exist.'14$this->source); })()), "reload" => true"listConfig" => ["cls" => "fa-selection"]]);
  65.             // line 18
  66.             echo "
  67.             <div class=\"col-sm-4 d-flex \">
  68.                 <div class=\"teaser-icon\">
  69.                     <div class=\"icon\">
  70.                         <div class=\"image\">
  71.                             <i class=\"fa fa-";
  72.             // line 23
  73.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["iconSelect"]) || array_key_exists("iconSelect"$context) ? $context["iconSelect"] : (function () { throw new RuntimeError('Variable "iconSelect" does not exist.'23$this->source); })()), "getData", [], "method"falsefalsetrue23), 23$this->source), "html"nulltrue);
  74.             echo "\"></i>
  75.                             ";
  76.             // line 25
  77.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'25$this->source); })())) {
  78.                 // line 26
  79.                 echo "                                ";
  80.                 echo $this->sandbox->ensureToStringAllowed((isset($context["iconSelect"]) || array_key_exists("iconSelect"$context) ? $context["iconSelect"] : (function () { throw new RuntimeError('Variable "iconSelect" does not exist.'26$this->source); })()), 26$this->source);
  81.                 echo "
  82.                             ";
  83.             }
  84.             // line 28
  85.             echo "                        </div>
  86.                         <div class=\"info\">
  87.                             <h3 class=\"title\">
  88.                                 ";
  89.             // line 31
  90.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input", ("title_" $this->sandbox->ensureToStringAllowed($context["t"], 31$this->source)));
  91.             echo "
  92.                             </h3>
  93.                             <p>
  94.                                 ";
  95.             // line 35
  96.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea", ("text_" $this->sandbox->ensureToStringAllowed($context["t"], 35$this->source)));
  97.             echo "
  98.                             </p>
  99.                             <div class=\"more\">
  100.                                 ";
  101.             // line 39
  102.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link", ("link_" $this->sandbox->ensureToStringAllowed($context["t"], 39$this->source)), ["class" => "btn btn-outline-primary"]);
  103.             // line 41
  104.             echo "
  105.                             </div>
  106.                         </div>
  107.                     </div>
  108.                 </div>
  109.             </div>
  110.         ";
  111.         }
  112.         $_parent $context['_parent'];
  113.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['t'], $context['_parent'], $context['loop']);
  114.         $context array_intersect_key($context$_parent) + $_parent;
  115.         // line 49
  116.         echo "
  117.     </div>
  118. </section>
  119. ";
  120.         
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  122.         
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  124.     }
  125.     /**
  126.      * @codeCoverageIgnore
  127.      */
  128.     public function getTemplateName()
  129.     {
  130.         return "areas/icon-teaser-row/view.html.twig";
  131.     }
  132.     /**
  133.      * @codeCoverageIgnore
  134.      */
  135.     public function isTraitable()
  136.     {
  137.         return false;
  138.     }
  139.     /**
  140.      * @codeCoverageIgnore
  141.      */
  142.     public function getDebugInfo()
  143.     {
  144.         return array (  130 => 49,  117 => 41,  115 => 39,  108 => 35,  101 => 31,  96 => 28,  90 => 26,  88 => 25,  83 => 23,  76 => 18,  74 => 14,  73 => 12,  70 => 11,  66 => 10,  60 => 6,  53 => 4,  49 => 3,  47 => 2,  45 => 1,);
  145.     }
  146.     public function getSourceContext()
  147.     {
  148.         return new Source("{% set icons = { \"asterisk\": \"f069\", \"plus\": \"f067\", \"euro-sign\": \"f153\", \"minus\": \"f068\", \"cloud\": \"f0c2\", \"envelope\": \"f0e0\", \"pencil\": \"f040\", \"glass\": \"f000\", \"music\": \"f001\", \"search\": \"f002\", \"heart\": \"f004\", \"star\": \"f005\", \"star-o\": \"f006\", \"user\": \"f007\", \"film\": \"f008\", \"th-large\": \"f009\", \"th\": \"f00a\", \"th-list\": \"f00b\", \"check\": \"f00c\", \"times\": \"f00d\", \"search-plus\": \"f00e\", \"search-minus\": \"f010\", \"power-off\": \"f011\", \"signal\": \"f012\", \"gear\": \"f013\", \"trash\": \"f1f8\", \"home\": \"f015\", \"file\": \"f15b\", \"clock-o\": \"f017\", \"road\": \"f018\", \"download\": \"f019\", \"cloud-download\": \"f0ed\", \"upload\": \"f093\", \"inbox\": \"f01c\", \"play-circle\": \"f144\", \"repeat\": \"f01e\", \"refresh\": \"f021\", \"list-alt\": \"f022\", \"lock\": \"f023\", \"flag\": \"f024\", \"headphones\": \"f025\", \"volume-off\": \"f026\", \"volume-down\": \"f027\", \"volume-up\": \"f028\", \"qrcode\": \"f029\", \"barcode\": \"f02a\", \"tag\": \"f02b\", \"tags\": \"f02c\", \"book\": \"f02d\", \"bookmark\": \"f097\", \"print\": \"f02f\", \"camera\": \"f030\", \"font\": \"f031\", \"bold\": \"f032\", \"italic\": \"f033\", \"text-height\": \"f034\", \"text-width\": \"f035\", \"align-left\": \"f036\", \"align-center\": \"f037\", \"align-right\": \"f038\", \"align-justify\": \"f039\", \"list\": \"f03a\", \"indent\": \"f03c\", \"video-camera\": \"f03d\", \"picture-o\": \"f03e\", \"map-marker\": \"f041\", \"adjust\": \"f042\", \"tint\": \"f043\", \"edit\": \"f044\", \"share\": \"f064\", \"arrows\": \"f047\", \"step-backward\": \"f048\", \"fast-backward\": \"f049\", \"backward\": \"f04a\", \"play\": \"f04b\", \"pause\": \"f04c\", \"stop\": \"f04d\", \"forward\": \"f04e\", \"fast-forward\": \"f050\", \"step-forward\": \"f051\", \"eject\": \"f052\", \"chevron-left\": \"f053\", \"chevron-right\": \"f054\", \"question\": \"f128\", \"info\": \"f129\", \"crop\": \"f125\", \"minus-circle\": \"f056\", \"check-circle\": \"f058\", \"ban\": \"f05e\", \"arrow-left\": \"f060\", \"arrow-right\": \"f061\", \"arrow-up\": \"f062\", \"arrow-down\": \"f063\", \"share-alt\": \"f1e0\", \"expand\": \"f065\", \"compress\": \"f066\", \"exclamation\": \"f12a\", \"gift\": \"f06b\", \"leaf\": \"f06c\", \"fire\": \"f06d\", \"eye\": \"f06e\", \"eye-slash\": \"f070\", \"warning\": \"f071\", \"plane\": \"f072\", \"calendar\": \"f073\", \"random\": \"f074\", \"comment\": \"f075\", \"magnet\": \"f076\", \"chevron-up\": \"f077\", \"chevron-down\": \"f078\", \"retweet\": \"f079\", \"shopping-cart\": \"f07a\", \"folder\": \"f07b\", \"folder-open\": \"f07c\", \"arrows-v\": \"f07d\", \"arrows-h\": \"f07e\", \"hdd-o\": \"f0a0\", \"bullhorn\": \"f0a1\", \"bell\": \"f0f3\", \"certificate\": \"f0a3\", \"thumbs-up\": \"f164\", \"thumbs-down\": \"f165\", \"hand-o-right\": \"f0a4\", \"hand-o-left\": \"f0a5\", \"hand-o-up\": \"f0a6\", \"hand-o-down\": \"f0a7\", \"arrow-circle-right\": \"f0a9\", \"arrow-circle-left\": \"f0a8\", \"arrow-circle-up\": \"f0aa\", \"arrow-circle-down\": \"f0ab\", \"globe\": \"f0ac\", \"wrench\": \"f0ad\", \"tasks\": \"f0ae\", \"filter\": \"f0b0\", \"briefcase\": \"f0b1\", \"paperclip\": \"f0c6\", \"link\": \"f0c1\", \"phone\": \"f095\", \"dollar-sign\": \"f155\", \"pound-sign\": \"f154\", \"sort\": \"f0dc\", \"\tsort-alpha-down\": \"f15d\", \"angle-down\": \"f107\", \"angle-up\": \"f106\", \"user\": \"f007\", \"user-times\": \"f235\", \"save\": \"f0c7\", \"credit-card\": \"f09d\", \"chart-line\": \"f201\", \"copyright\": \"f1f9\", \"compass\":\"f14e\" } %}
  149. {% set iconStore = [] %}
  150. {% for name, code in icons %}
  151.     {% set iconStore = iconStore|merge([[name, '&#x' ~ code ~ ';']]) %}
  152. {% endfor %}
  153. <section class=\"area-icon-teaser-row\">
  154.     <div class=\"row\">
  155.         {% for t in 0..2 %}
  156.             {% set iconSelect = pimcore_select('icon_' ~ t, {
  157.                 width: 50,
  158.                 store: iconStore,
  159.                 reload: true,
  160.                 listConfig: {'cls': 'fa-selection'}
  161.             }) %}
  162.             <div class=\"col-sm-4 d-flex \">
  163.                 <div class=\"teaser-icon\">
  164.                     <div class=\"icon\">
  165.                         <div class=\"image\">
  166.                             <i class=\"fa fa-{{ iconSelect.getData() }}\"></i>
  167.                             {% if editmode %}
  168.                                 {{ iconSelect|raw }}
  169.                             {% endif %}
  170.                         </div>
  171.                         <div class=\"info\">
  172.                             <h3 class=\"title\">
  173.                                 {{ pimcore_input('title_' ~ t) }}
  174.                             </h3>
  175.                             <p>
  176.                                 {{ pimcore_textarea('text_' ~ t) }}
  177.                             </p>
  178.                             <div class=\"more\">
  179.                                 {{ pimcore_link('link_' ~ t, {
  180.                                     class: 'btn btn-outline-primary'
  181.                                 }) }}
  182.                             </div>
  183.                         </div>
  184.                     </div>
  185.                 </div>
  186.             </div>
  187.         {% endfor %}
  188.     </div>
  189. </section>
  190. ""areas/icon-teaser-row/view.html.twig""/var/www/dev-10/templates/areas/icon-teaser-row/view.html.twig");
  191.     }
  192.     
  193.     public function checkSecurity()
  194.     {
  195.         static $tags = array("set" => 1"for" => 3"if" => 25);
  196.         static $filters = array("merge" => 4"escape" => 23"raw" => 26);
  197.         static $functions = array("range" => 10"pimcore_select" => 12"pimcore_input" => 31"pimcore_textarea" => 35"pimcore_link" => 39);
  198.         try {
  199.             $this->sandbox->checkSecurity(
  200.                 ['set''for''if'],
  201.                 ['merge''escape''raw'],
  202.                 ['range''pimcore_select''pimcore_input''pimcore_textarea''pimcore_link']
  203.             );
  204.         } catch (SecurityError $e) {
  205.             $e->setSourceContext($this->source);
  206.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  207.                 $e->setTemplateLine($tags[$e->getTagName()]);
  208.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  209.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  210.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  211.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  212.             }
  213.             throw $e;
  214.         }
  215.     }
  216. }