var/cache/dev/twig/e5/e5e9d2c59731de1500626305238449db73d4b60480673e10b7983c96cf61c07c.php line 144

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. /* network/profile/components/listing.html.twig */
  14. class __TwigTemplate_e5ce147a3c0a41af4e71e5c5609cd52252122e6bc866d782877d785c0fb9eec6 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.             'listing_container' => [$this'block_listing_container'],
  25.             'listing' => [$this'block_listing'],
  26.             'list_item' => [$this'block_list_item'],
  27.         ];
  28.     }
  29.     protected function doDisplay(array $context, array $blocks = [])
  30.     {
  31.         $macros $this->macros;
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  33.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""network/profile/components/listing.html.twig"));
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  35.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""network/profile/components/listing.html.twig"));
  36.         // line 1
  37.         if ((isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'1$this->source); })())) {
  38.             // line 2
  39.             echo "  ";
  40.             $this->displayBlock('listing_container'$context$blocks);
  41.         }
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     public function block_listing_container($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""listing_container"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""listing_container"));
  54.         // line 3
  55.         echo "    <section class=\"py-8\">
  56.       <div class=\"container mx-auto max-w-screen-3xl\">
  57.         <div class=\"grid gap-6 md:grid-cols-2 xl:grid-cols-2\">
  58.           ";
  59.         // line 6
  60.         $this->displayBlock('listing'$context$blocks);
  61.         // line 89
  62.         echo "        </div>
  63.       </div>
  64.     </section>
  65.   ";
  66.         
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  68.         
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  70.     }
  71.     // line 6
  72.     public function block_listing($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""listing"));
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""listing"));
  79.         // line 7
  80.         echo "            ";
  81.         $context['_parent'] = $context;
  82.         $context['_seq'] = twig_ensure_traversable((isset($context["listing"]) || array_key_exists("listing"$context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.'7$this->source); })()));
  83.         $context['loop'] = [
  84.           'parent' => $context['_parent'],
  85.           'index0' => 0,
  86.           'index'  => 1,
  87.           'first'  => true,
  88.         ];
  89.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  90.             $length count($context['_seq']);
  91.             $context['loop']['revindex0'] = $length 1;
  92.             $context['loop']['revindex'] = $length;
  93.             $context['loop']['length'] = $length;
  94.             $context['loop']['last'] = === $length;
  95.         }
  96.         foreach ($context['_seq'] as $context["_key"] => $context["profile"]) {
  97.             // line 8
  98.             echo "              ";
  99.             $this->displayBlock('list_item'$context$blocks);
  100.             // line 87
  101.             echo "            ";
  102.             ++$context['loop']['index0'];
  103.             ++$context['loop']['index'];
  104.             $context['loop']['first'] = false;
  105.             if (isset($context['loop']['length'])) {
  106.                 --$context['loop']['revindex0'];
  107.                 --$context['loop']['revindex'];
  108.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  109.             }
  110.         }
  111.         $_parent $context['_parent'];
  112.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['profile'], $context['_parent'], $context['loop']);
  113.         $context array_intersect_key($context$_parent) + $_parent;
  114.         // line 88
  115.         echo "          ";
  116.         
  117.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  118.         
  119.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  120.     }
  121.     // line 8
  122.     public function block_list_item($context, array $blocks = [])
  123.     {
  124.         $macros $this->macros;
  125.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  126.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""list_item"));
  127.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  128.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""list_item"));
  129.         // line 9
  130.         echo "                <a href=\"";
  131.         echo twig_escape_filter($this->env$this->env->getFunction('pimcore_url')->getCallable()(["object" => (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'9$this->source); })())]), "html"nulltrue);
  132.         echo "\">
  133.                   <div class=\"relative flex items-center justify-center h-64 overflow-hidden\"
  134.                     style=\"background-color:";
  135.         // line 11
  136.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'11$this->source); })()), "color", [], "any"falsefalsefalse11), "html"nulltrue);
  137.         echo ";\">
  138.                     ";
  139.         // line 12
  140.         if (twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'12$this->source); })()), "banner", [], "any"falsefalsefalse12)) {
  141.             // line 13
  142.             echo "                      <div class=\"absolute w-full h-full opacity-25\">
  143.                         ";
  144.             // line 16
  145.             echo "                        ";
  146.             echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 17
  147. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'17$this->source); })()), "banner", [], "any"falsefalsefalse17), "thumbnail", [=> "auctionhouse-listing-banner"], "method"falsefalsefalse17), "html", [=> ["pictureAttributes" => ["class" => "object-cover object-center w-full h-full mx-auto"], "imgAttributes" => ["class" => "object-cover object-center w-full h-full mx-auto"]]], "method"falsefalsefalse17);
  148.             // line 25
  149.             echo "
  150.                       </div>
  151.                     ";
  152.         }
  153.         // line 28
  154.         echo "                    ";
  155.         if ((twig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'28$this->source); })()), "avatar", [], "any"falsefalsefalse28) && (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'28$this->source); })()), "avatar", [], "any"falsefalsefalse28), "mimetype", [], "any"falsefalsefalse28) != "image/svg+xml"))) {
  156.             // line 29
  157.             echo "                      <div class=\"z-30 w-8/12 sm:w-6/12\" style=\"\">
  158.                         <div class=\"grid grid-cols-1 gap-10\">
  159.                           <div class=\"items-center justify-center ";
  160.             // line 31
  161.             echo (((twig_get_attribute($this->env$this->source,             // line 32
  162. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'32$this->source); })()), "avatar", [], "any"falsefalsefalse32) == true)) ? ("flex") : ("hidden"));
  163.             // line 35
  164.             echo " w-24 h-24 mx-auto text-center bg-white\">
  165.                             ";
  166.             // line 37
  167.             echo "                            ";
  168.             echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 38
  169. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'38$this->source); })()), "avatar", [], "any"falsefalsefalse38), "thumbnail", [=> "auctionhouse-listing-avatar"], "method"falsefalsefalse38), "html", [=> ["pictureAttributes" => ["class" => "w-full h-auto mx-auto max-h-full"], "imgAttributes" => ["class" => "w-full h-auto mx-auto max-h-full"]]], "method"falsefalsefalse38);
  170.             // line 42
  171.             echo "
  172.                           </div>
  173.                           <div class=\"text-sm\">
  174.                             <div class=\"flex flex-col items-center justify-between gap-3 p-3 mx-auto font-medium text-center uppercase whitespace-no-wrap bg-white lg:p-5 sm:font-medium sm:text-left sm:flex-row gap-x-2\">
  175.                               <p class=\"w-8/12\">
  176.                                 ";
  177.             // line 47
  178.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'47$this->source); })()), "name", [], "any"falsefalsefalse47), "html"nulltrue);
  179.             echo "
  180.                               </p>
  181.                               <div class=\"flex justify-center w-3/12\">
  182.                                 ";
  183.             // line 50
  184.             $this->loadTemplate("icons/arrow-right-tail.svg.twig""network/profile/components/listing.html.twig"50)->display(twig_array_merge($context, ["class" => "text-black h-4 w-4"]));
  185.             // line 53
  186.             echo "                              </div>
  187.                             </div>
  188.                           </div>
  189.                         </div>
  190.                       </div>
  191.                     ";
  192.         } else {
  193.             // line 59
  194.             echo "                      <div class=\"z-30 w-8/12 sm:w-6/12\" style=\"\">
  195.                         <div class=\"grid grid-cols-1 gap-10\">
  196.                           <div class=\"flex items-center justify-center w-24 h-24 mx-auto text-center bg-white\">
  197.                             ";
  198.             // line 62
  199.             $this->loadTemplate("component/avatar.html.twig""network/profile/components/listing.html.twig"62)->display(twig_to_array(["avatar" => twig_get_attribute($this->env$this->source,             // line 63
  200. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'63$this->source); })()), "avatar", [], "any"falsefalsefalse63), "initials" => $this->extensions['App\Core\Twig\Extension\InitialsExtension']->generateInitials(twig_get_attribute($this->env$this->source,             // line 64
  201. (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'64$this->source); })()), "name", [], "any"falsefalsefalse64)), "rounded" => false"size" => "small"]));
  202.             // line 68
  203.             echo "                          </div>
  204.                           <div class=\"text-sm\">
  205.                             <div class=\"flex flex-col items-center justify-between gap-3 p-3 mx-auto font-medium text-center uppercase whitespace-no-wrap bg-white lg:p-5 sm:font-medium sm:text-left sm:flex-row gap-x-2\">
  206.                               <p class=\"w-8/12\">
  207.                                 ";
  208.             // line 72
  209.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["profile"]) || array_key_exists("profile"$context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.'72$this->source); })()), "name", [], "any"falsefalsefalse72), "html"nulltrue);
  210.             echo "
  211.                               </p>
  212.                               <div class=\"flex justify-center w-3/12\">
  213.                                 ";
  214.             // line 75
  215.             $this->loadTemplate("icons/arrow-right-tail.svg.twig""network/profile/components/listing.html.twig"75)->display(twig_array_merge($context, ["class" => "text-black h-4 w-4"]));
  216.             // line 78
  217.             echo "                              </div>
  218.                             </div>
  219.                           </div>
  220.                         </div>
  221.                       </div>
  222.                     ";
  223.         }
  224.         // line 84
  225.         echo "                  </div>
  226.                 </a>
  227.               ";
  228.         
  229.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  230.         
  231.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  232.     }
  233.     public function getTemplateName()
  234.     {
  235.         return "network/profile/components/listing.html.twig";
  236.     }
  237.     public function isTraitable()
  238.     {
  239.         return false;
  240.     }
  241.     public function getDebugInfo()
  242.     {
  243.         return array (  249 => 84,  241 => 78,  239 => 75,  233 => 72,  227 => 68,  225 => 64,  224 => 63,  223 => 62,  218 => 59,  210 => 53,  208 => 50,  202 => 47,  195 => 42,  193 => 38,  191 => 37,  188 => 35,  186 => 32,  185 => 31,  181 => 29,  178 => 28,  173 => 25,  171 => 17,  169 => 16,  166 => 13,  164 => 12,  160 => 11,  154 => 9,  144 => 8,  134 => 88,  120 => 87,  117 => 8,  99 => 7,  89 => 6,  76 => 89,  74 => 6,  69 => 3,  48 => 2,  46 => 1,);
  244.     }
  245.     public function getSourceContext()
  246.     {
  247.         return new Source("{% if listing %}
  248.   {% block listing_container %}
  249.     <section class=\"py-8\">
  250.       <div class=\"container mx-auto max-w-screen-3xl\">
  251.         <div class=\"grid gap-6 md:grid-cols-2 xl:grid-cols-2\">
  252.           {% block listing %}
  253.             {% for profile in listing %}
  254.               {% block list_item %}
  255.                 <a href=\"{{ pimcore_url({ object: profile }) }}\">
  256.                   <div class=\"relative flex items-center justify-center h-64 overflow-hidden\"
  257.                     style=\"background-color:{{ profile.color }};\">
  258.                     {% if profile.banner %}
  259.                       <div class=\"absolute w-full h-full opacity-25\">
  260.                         {# <img class=\"object-cover object-center w-full h-full mx-auto\"
  261.                       src=\"{{ profile.banner }}\" /> #}
  262.                         {{
  263.                           profile.banner.thumbnail('auctionhouse-listing-banner').html({
  264.                             pictureAttributes: {
  265.                               class: 'object-cover object-center w-full h-full mx-auto'
  266.                             },
  267.                             imgAttributes: {
  268.                               class: 'object-cover object-center w-full h-full mx-auto'
  269.                             }
  270.                           })|raw
  271.                         }}
  272.                       </div>
  273.                     {% endif %}
  274.                     {% if profile.avatar and profile.avatar.mimetype != 'image/svg+xml' %}
  275.                       <div class=\"z-30 w-8/12 sm:w-6/12\" style=\"\">
  276.                         <div class=\"grid grid-cols-1 gap-10\">
  277.                           <div class=\"items-center justify-center {{
  278.                             profile.avatar == true
  279.                               ? 'flex'
  280.                               : 'hidden'
  281.                             }} w-24 h-24 mx-auto text-center bg-white\">
  282.                             {# <img src=\"{{ profile.avatar }}\" class=\"w-full h-auto max-h-full mx-auto\" /> #}
  283.                             {{
  284.                               profile.avatar.thumbnail('auctionhouse-listing-avatar').html({
  285.                                 pictureAttributes: { class: 'w-full h-auto mx-auto max-h-full' },
  286.                                 imgAttributes: { class: 'w-full h-auto mx-auto max-h-full' }
  287.                               })|raw
  288.                             }}
  289.                           </div>
  290.                           <div class=\"text-sm\">
  291.                             <div class=\"flex flex-col items-center justify-between gap-3 p-3 mx-auto font-medium text-center uppercase whitespace-no-wrap bg-white lg:p-5 sm:font-medium sm:text-left sm:flex-row gap-x-2\">
  292.                               <p class=\"w-8/12\">
  293.                                 {{ profile.name }}
  294.                               </p>
  295.                               <div class=\"flex justify-center w-3/12\">
  296.                                 {% include 'icons/arrow-right-tail.svg.twig' with {
  297.                                   class: 'text-black h-4 w-4'
  298.                                 } %}
  299.                               </div>
  300.                             </div>
  301.                           </div>
  302.                         </div>
  303.                       </div>
  304.                     {% else %}
  305.                       <div class=\"z-30 w-8/12 sm:w-6/12\" style=\"\">
  306.                         <div class=\"grid grid-cols-1 gap-10\">
  307.                           <div class=\"flex items-center justify-center w-24 h-24 mx-auto text-center bg-white\">
  308.                             {% include 'component/avatar.html.twig' with {
  309.                               avatar: profile.avatar,
  310.                               initials: profile.name|initials,
  311.                               rounded: false,
  312.                               size: 'small'
  313.                             } only %}
  314.                           </div>
  315.                           <div class=\"text-sm\">
  316.                             <div class=\"flex flex-col items-center justify-between gap-3 p-3 mx-auto font-medium text-center uppercase whitespace-no-wrap bg-white lg:p-5 sm:font-medium sm:text-left sm:flex-row gap-x-2\">
  317.                               <p class=\"w-8/12\">
  318.                                 {{ profile.name }}
  319.                               </p>
  320.                               <div class=\"flex justify-center w-3/12\">
  321.                                 {% include 'icons/arrow-right-tail.svg.twig' with {
  322.                                   class: 'text-black h-4 w-4'
  323.                                 } %}
  324.                               </div>
  325.                             </div>
  326.                           </div>
  327.                         </div>
  328.                       </div>
  329.                     {% endif %}
  330.                   </div>
  331.                 </a>
  332.               {% endblock %}
  333.             {% endfor %}
  334.           {% endblock %}
  335.         </div>
  336.       </div>
  337.     </section>
  338.   {% endblock %}
  339. {% endif %}
  340. ""network/profile/components/listing.html.twig""/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/network/profile/components/listing.html.twig");
  341.     }
  342. }