<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* network/profile/components/listing.html.twig */
class __TwigTemplate_e5ce147a3c0a41af4e71e5c5609cd52252122e6bc866d782877d785c0fb9eec6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'listing_container' => [$this, 'block_listing_container'],
'listing' => [$this, 'block_listing'],
'list_item' => [$this, 'block_list_item'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "network/profile/components/listing.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "network/profile/components/listing.html.twig"));
// line 1
if ((isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 1, $this->source); })())) {
// line 2
echo " ";
$this->displayBlock('listing_container', $context, $blocks);
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function block_listing_container($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "listing_container"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "listing_container"));
// line 3
echo " <section class=\"py-8\">
<div class=\"container mx-auto max-w-screen-3xl\">
<div class=\"grid gap-6 md:grid-cols-2 xl:grid-cols-2\">
";
// line 6
$this->displayBlock('listing', $context, $blocks);
// line 89
echo " </div>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 6
public function block_listing($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "listing"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "listing"));
// line 7
echo " ";
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["profile"]) {
// line 8
echo " ";
$this->displayBlock('list_item', $context, $blocks);
// line 87
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['profile'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 8
public function block_list_item($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "list_item"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "list_item"));
// line 9
echo " <a href=\"";
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", null, true);
echo "\">
<div class=\"relative flex items-center justify-center h-64 overflow-hidden\"
style=\"background-color:";
// line 11
echo twig_escape_filter($this->env, 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.', 11, $this->source); })()), "color", [], "any", false, false, false, 11), "html", null, true);
echo ";\">
";
// line 12
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", false, false, false, 12)) {
// line 13
echo " <div class=\"absolute w-full h-full opacity-25\">
";
// line 16
echo " ";
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 17
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 17, $this->source); })()), "banner", [], "any", false, false, false, 17), "thumbnail", [0 => "auctionhouse-listing-banner"], "method", false, false, false, 17), "html", [0 => ["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", false, false, false, 17);
// line 25
echo "
</div>
";
}
// line 28
echo " ";
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", false, false, false, 28) && (twig_get_attribute($this->env, $this->source, 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", false, false, false, 28), "mimetype", [], "any", false, false, false, 28) != "image/svg+xml"))) {
// line 29
echo " <div class=\"z-30 w-8/12 sm:w-6/12\" style=\"\">
<div class=\"grid grid-cols-1 gap-10\">
<div class=\"items-center justify-center ";
// line 31
echo (((twig_get_attribute($this->env, $this->source, // line 32
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 32, $this->source); })()), "avatar", [], "any", false, false, false, 32) == true)) ? ("flex") : ("hidden"));
// line 35
echo " w-24 h-24 mx-auto text-center bg-white\">
";
// line 37
echo " ";
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 38
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 38, $this->source); })()), "avatar", [], "any", false, false, false, 38), "thumbnail", [0 => "auctionhouse-listing-avatar"], "method", false, false, false, 38), "html", [0 => ["pictureAttributes" => ["class" => "w-full h-auto mx-auto max-h-full"], "imgAttributes" => ["class" => "w-full h-auto mx-auto max-h-full"]]], "method", false, false, false, 38);
// line 42
echo "
</div>
<div class=\"text-sm\">
<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\">
<p class=\"w-8/12\">
";
// line 47
echo twig_escape_filter($this->env, 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.', 47, $this->source); })()), "name", [], "any", false, false, false, 47), "html", null, true);
echo "
</p>
<div class=\"flex justify-center w-3/12\">
";
// line 50
$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"]));
// line 53
echo " </div>
</div>
</div>
</div>
</div>
";
} else {
// line 59
echo " <div class=\"z-30 w-8/12 sm:w-6/12\" style=\"\">
<div class=\"grid grid-cols-1 gap-10\">
<div class=\"flex items-center justify-center w-24 h-24 mx-auto text-center bg-white\">
";
// line 62
$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
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 63, $this->source); })()), "avatar", [], "any", false, false, false, 63), "initials" => $this->extensions['App\Core\Twig\Extension\InitialsExtension']->generateInitials(twig_get_attribute($this->env, $this->source, // line 64
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 64, $this->source); })()), "name", [], "any", false, false, false, 64)), "rounded" => false, "size" => "small"]));
// line 68
echo " </div>
<div class=\"text-sm\">
<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\">
<p class=\"w-8/12\">
";
// line 72
echo twig_escape_filter($this->env, 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.', 72, $this->source); })()), "name", [], "any", false, false, false, 72), "html", null, true);
echo "
</p>
<div class=\"flex justify-center w-3/12\">
";
// line 75
$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"]));
// line 78
echo " </div>
</div>
</div>
</div>
</div>
";
}
// line 84
echo " </div>
</a>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "network/profile/components/listing.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% if listing %}
{% block listing_container %}
<section class=\"py-8\">
<div class=\"container mx-auto max-w-screen-3xl\">
<div class=\"grid gap-6 md:grid-cols-2 xl:grid-cols-2\">
{% block listing %}
{% for profile in listing %}
{% block list_item %}
<a href=\"{{ pimcore_url({ object: profile }) }}\">
<div class=\"relative flex items-center justify-center h-64 overflow-hidden\"
style=\"background-color:{{ profile.color }};\">
{% if profile.banner %}
<div class=\"absolute w-full h-full opacity-25\">
{# <img class=\"object-cover object-center w-full h-full mx-auto\"
src=\"{{ profile.banner }}\" /> #}
{{
profile.banner.thumbnail('auctionhouse-listing-banner').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'
}
})|raw
}}
</div>
{% endif %}
{% if profile.avatar and profile.avatar.mimetype != 'image/svg+xml' %}
<div class=\"z-30 w-8/12 sm:w-6/12\" style=\"\">
<div class=\"grid grid-cols-1 gap-10\">
<div class=\"items-center justify-center {{
profile.avatar == true
? 'flex'
: 'hidden'
}} w-24 h-24 mx-auto text-center bg-white\">
{# <img src=\"{{ profile.avatar }}\" class=\"w-full h-auto max-h-full mx-auto\" /> #}
{{
profile.avatar.thumbnail('auctionhouse-listing-avatar').html({
pictureAttributes: { class: 'w-full h-auto mx-auto max-h-full' },
imgAttributes: { class: 'w-full h-auto mx-auto max-h-full' }
})|raw
}}
</div>
<div class=\"text-sm\">
<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\">
<p class=\"w-8/12\">
{{ profile.name }}
</p>
<div class=\"flex justify-center w-3/12\">
{% include 'icons/arrow-right-tail.svg.twig' with {
class: 'text-black h-4 w-4'
} %}
</div>
</div>
</div>
</div>
</div>
{% else %}
<div class=\"z-30 w-8/12 sm:w-6/12\" style=\"\">
<div class=\"grid grid-cols-1 gap-10\">
<div class=\"flex items-center justify-center w-24 h-24 mx-auto text-center bg-white\">
{% include 'component/avatar.html.twig' with {
avatar: profile.avatar,
initials: profile.name|initials,
rounded: false,
size: 'small'
} only %}
</div>
<div class=\"text-sm\">
<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\">
<p class=\"w-8/12\">
{{ profile.name }}
</p>
<div class=\"flex justify-center w-3/12\">
{% include 'icons/arrow-right-tail.svg.twig' with {
class: 'text-black h-4 w-4'
} %}
</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
</a>
{% endblock %}
{% endfor %}
{% endblock %}
</div>
</div>
</section>
{% endblock %}
{% endif %}
", "network/profile/components/listing.html.twig", "/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/network/profile/components/listing.html.twig");
}
}