<?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;
/* @AqarmapListingBundle/Listing/compoundCardDeveloperData.html.twig */
class __TwigTemplate_c47c2d8c6dc1e8a11b415800c8349d33925f4fd4e196d1e0d9a08ede2ffe76c2 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "@AqarmapListingBundle/Listing/compoundCardDeveloperData.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AqarmapListingBundle/Listing/compoundCardDeveloperData.html.twig"));
// line 1
$context["isCompound"] = (array_key_exists("compound", $context) && (twig_length_filter($this->env, (isset($context["compound"]) || array_key_exists("compound", $context) ? $context["compound"] : (function () { throw new RuntimeError('Variable "compound" does not exist.', 1, $this->source); })())) > 0));
// line 2
$context["numberOfProjects"] = null;
// line 3
$context["developerName"] = "";
// line 4
$context["imageSize"] = 56;
// line 5
$context["logo"] = ((twig_get_attribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 5, $this->source); })()), "logo", [], "any", false, false, false, 5)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 5, $this->source); })()), "logo", [], "any", false, false, false, 5), "file", [], "any", false, false, false, 5)) : (null));
// line 6
$context["developerLogo"] = (((isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 6, $this->source); })())) ? ((isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 6, $this->source); })())) : ((isset($context["userLogo"]) || array_key_exists("userLogo", $context) ? $context["userLogo"] : (function () { throw new RuntimeError('Variable "userLogo" does not exist.', 6, $this->source); })())));
// line 7
echo "
";
// line 8
if ((isset($context["isCompound"]) || array_key_exists("isCompound", $context) ? $context["isCompound"] : (function () { throw new RuntimeError('Variable "isCompound" does not exist.', 8, $this->source); })())) {
// line 9
echo " ";
$context["numberOfProjects"] = twig_get_attribute($this->env, $this->source, (isset($context["compound"]) || array_key_exists("compound", $context) ? $context["compound"] : (function () { throw new RuntimeError('Variable "compound" does not exist.', 9, $this->source); })()), "numberOfProjects", [], "any", false, false, false, 9);
// line 10
echo " ";
$context["developerName"] = twig_get_attribute($this->env, $this->source, (isset($context["compound"]) || array_key_exists("compound", $context) ? $context["compound"] : (function () { throw new RuntimeError('Variable "compound" does not exist.', 10, $this->source); })()), "developerName", [], "any", false, false, false, 10);
}
// line 12
echo "
<div class=\"user-info d-flex w-100\">
<div class=\"user-card__img-container user-card__img-container_ml-0 rounded-circle\">
";
// line 15
if ((isset($context["developerLogo"]) || array_key_exists("developerLogo", $context) ? $context["developerLogo"] : (function () { throw new RuntimeError('Variable "developerLogo" does not exist.', 15, $this->source); })())) {
// line 16
echo " <img class=\"user-card__img lazyload\"
src=\"/images/BrandsIcons/listing/ic_profile.svg\"
data-src=\"";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Aqarmap\Bundle\MainBundle\Twig\ThumbnailExtension']->getThumbnail($this->extensions['Aqarmap\Bundle\ListingBundle\Twig\ListingShareExtension']->customVichUploaderAsset((isset($context["developerLogo"]) || array_key_exists("developerLogo", $context) ? $context["developerLogo"] : (function () { throw new RuntimeError('Variable "developerLogo" does not exist.', 18, $this->source); })()), "file"), "logo"), "html", null, true);
echo "\"
alt=\"";
// line 19
echo twig_escape_filter($this->env, (isset($context["developerName"]) || array_key_exists("developerName", $context) ? $context["developerName"] : (function () { throw new RuntimeError('Variable "developerName" does not exist.', 19, $this->source); })()), "html", null, true);
echo "\" width=\"";
echo twig_escape_filter($this->env, (isset($context["imageSize"]) || array_key_exists("imageSize", $context) ? $context["imageSize"] : (function () { throw new RuntimeError('Variable "imageSize" does not exist.', 19, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["imageSize"]) || array_key_exists("imageSize", $context) ? $context["imageSize"] : (function () { throw new RuntimeError('Variable "imageSize" does not exist.', 19, $this->source); })()), "html", null, true);
echo "\" />
";
} else {
// line 21
echo " <img class=\"user-card__img lazyload rounded-circle user-card__img_empty\"
src=\"\" data-src=\"/images/BrandsIcons/listing/ic_profile.svg\"
alt=\"compound-logo\" width=\"";
// line 23
echo twig_escape_filter($this->env, (isset($context["imageSize"]) || array_key_exists("imageSize", $context) ? $context["imageSize"] : (function () { throw new RuntimeError('Variable "imageSize" does not exist.', 23, $this->source); })()), "html", null, true);
echo "\" height=\"";
echo twig_escape_filter($this->env, (isset($context["imageSize"]) || array_key_exists("imageSize", $context) ? $context["imageSize"] : (function () { throw new RuntimeError('Variable "imageSize" does not exist.', 23, $this->source); })()), "html", null, true);
echo "\" />
";
}
// line 25
echo " </div>
<div class=\"user-card__data w-80 np-border\">
<div class=\"user-card__name\">
<b class=\"user-card__name-text\" title=\"";
// line 28
echo twig_escape_filter($this->env, (isset($context["developerName"]) || array_key_exists("developerName", $context) ? $context["developerName"] : (function () { throw new RuntimeError('Variable "developerName" does not exist.', 28, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["developerName"]) || array_key_exists("developerName", $context) ? $context["developerName"] : (function () { throw new RuntimeError('Variable "developerName" does not exist.', 28, $this->source); })()), "html", null, true);
echo "</b>
</div>
<div class=\"user-card__stat\">
<span class=\"user-card__joined-text w-100\">
";
// line 32
if ( !(null === (isset($context["numberOfProjects"]) || array_key_exists("numberOfProjects", $context) ? $context["numberOfProjects"] : (function () { throw new RuntimeError('Variable "numberOfProjects" does not exist.', 32, $this->source); })()))) {
// line 33
echo " ";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("labels.compound.aqarmap_projects", ["%count%" => (isset($context["numberOfProjects"]) || array_key_exists("numberOfProjects", $context) ? $context["numberOfProjects"] : (function () { throw new RuntimeError('Variable "numberOfProjects" does not exist.', 33, $this->source); })())], "messages");
// line 36
echo " ";
}
// line 37
echo " </span>
</div>
</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@AqarmapListingBundle/Listing/compoundCardDeveloperData.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 124 => 37, 121 => 36, 118 => 33, 116 => 32, 107 => 28, 102 => 25, 95 => 23, 91 => 21, 82 => 19, 78 => 18, 74 => 16, 72 => 15, 67 => 12, 63 => 10, 60 => 9, 58 => 8, 55 => 7, 53 => 6, 51 => 5, 49 => 4, 47 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set isCompound = compound is defined and compound|length > 0 %}
{% set numberOfProjects = null %}
{% set developerName = '' %}
{% set imageSize = 56 %}
{% set logo = listing.logo ? listing.logo.file : null %}
{% set developerLogo = logo ? logo : userLogo %}
{% if isCompound %}
{% set numberOfProjects = compound.numberOfProjects %}
{% set developerName = compound.developerName %}
{% endif %}
<div class=\"user-info d-flex w-100\">
<div class=\"user-card__img-container user-card__img-container_ml-0 rounded-circle\">
{% if developerLogo %}
<img class=\"user-card__img lazyload\"
src=\"/images/BrandsIcons/listing/ic_profile.svg\"
data-src=\"{{ custom_vich_uploader_asset(developerLogo, 'file') | thumbnail('logo') }}\"
alt=\"{{ developerName }}\" width=\"{{imageSize}}\" height=\"{{imageSize}}\" />
{% else %}
<img class=\"user-card__img lazyload rounded-circle user-card__img_empty\"
src=\"\" data-src=\"/images/BrandsIcons/listing/ic_profile.svg\"
alt=\"compound-logo\" width=\"{{imageSize}}\" height=\"{{imageSize}}\" />
{% endif %}
</div>
<div class=\"user-card__data w-80 np-border\">
<div class=\"user-card__name\">
<b class=\"user-card__name-text\" title=\"{{ developerName }}\">{{ developerName }}</b>
</div>
<div class=\"user-card__stat\">
<span class=\"user-card__joined-text w-100\">
{% if numberOfProjects is not null %}
{% trans with {'%count%': numberOfProjects} %}
labels.compound.aqarmap_projects
{% endtrans %}
{% endif %}
</span>
</div>
</div>
</div>
", "@AqarmapListingBundle/Listing/compoundCardDeveloperData.html.twig", "/srv/moonshot/src/Aqarmap/Bundle/ListingBundle/Resources/views/Listing/compoundCardDeveloperData.html.twig");
}
}