var/cache/dev/twig/13/139e5aca06ce7d8199d04f02c69a2a20.php line 127
<?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;
/* front/animal/single.html.twig */
class __TwigTemplate_4f65eec05383462cda21775d2c12cbf9 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'og_title' => [$this, 'block_og_title'],
'description' => [$this, 'block_description'],
'og_description' => [$this, 'block_og_description'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/animal/single.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/animal/single.html.twig"));
// line 6
$context["shortDesc"] = "Adopciaki.pl to program wspierający odpowiedzialne adopcje psów i kotów. Pomagamy dobrać zwierzaka do stylu życia opiekuna i zapewniamy pomoc specjalistów.";
// line 8
if (twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 8, $this->source); })()), "shortDescription", [], "any", false, false, false, 8))) {
// line 9
$context["shortDesc"] = twig_striptags(twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 9, $this->source); })()), "description", [], "any", false, false, false, 9));
} else {
// line 11
$context["shortDesc"] = twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 11, $this->source); })()), "shortDescription", [], "any", false, false, false, 11);
}
// line 15
$context["difference"] = twig_get_attribute($this->env, $this->source, twig_date_converter($this->env, twig_date_format_filter($this->env, "now", "Y-m-d")), "diff", [0 => twig_date_converter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 15, $this->source); })()), "bornDate", [], "any", false, false, false, 15), "Y-m-d"))], "method", false, false, false, 15);
// line 16
$context["diffYears"] = (twig_get_attribute($this->env, $this->source, (isset($context["difference"]) || array_key_exists("difference", $context) ? $context["difference"] : (function () { throw new RuntimeError('Variable "difference" does not exist.', 16, $this->source); })()), "days", [], "any", false, false, false, 16) / 365);
// line 18
$context["months"] = 0;
// line 19
if ((twig_get_attribute($this->env, $this->source, (isset($context["difference"]) || array_key_exists("difference", $context) ? $context["difference"] : (function () { throw new RuntimeError('Variable "difference" does not exist.', 19, $this->source); })()), "days", [], "any", false, false, false, 19) < 365)) {
// line 20
$context["months"] = 1;
// line 21
$context["diffYears"] = (twig_get_attribute($this->env, $this->source, (isset($context["difference"]) || array_key_exists("difference", $context) ? $context["difference"] : (function () { throw new RuntimeError('Variable "difference" does not exist.', 21, $this->source); })()), "days", [], "any", false, false, false, 21) / 30);
}
// line 24
if ((twig_round((isset($context["diffYears"]) || array_key_exists("diffYears", $context) ? $context["diffYears"] : (function () { throw new RuntimeError('Variable "diffYears" does not exist.', 24, $this->source); })()), 0, "floor") == 0)) {
// line 25
$context["animalAge"] = 1;
} else {
// line 27
$context["animalAge"] = twig_round((isset($context["diffYears"]) || array_key_exists("diffYears", $context) ? $context["diffYears"] : (function () { throw new RuntimeError('Variable "diffYears" does not exist.', 27, $this->source); })()), 0, "floor");
}
// line 30
if (((isset($context["months"]) || array_key_exists("months", $context) ? $context["months"] : (function () { throw new RuntimeError('Variable "months" does not exist.', 30, $this->source); })()) == 1)) {
// line 31
if (((isset($context["animalAge"]) || array_key_exists("animalAge", $context) ? $context["animalAge"] : (function () { throw new RuntimeError('Variable "animalAge" does not exist.', 31, $this->source); })()) == 1)) {
// line 32
$context["yearsMonths"] = "miesiąc";
} elseif (((( // line 33
(isset($context["animalAge"]) || array_key_exists("animalAge", $context) ? $context["animalAge"] : (function () { throw new RuntimeError('Variable "animalAge" does not exist.', 33, $this->source); })()) % 10) >= 2) && (((isset($context["animalAge"]) || array_key_exists("animalAge", $context) ? $context["animalAge"] : (function () { throw new RuntimeError('Variable "animalAge" does not exist.', 33, $this->source); })()) % 10) <= 4))) {
// line 34
if (((((isset($context["animalAge"]) || array_key_exists("animalAge", $context) ? $context["animalAge"] : (function () { throw new RuntimeError('Variable "animalAge" does not exist.', 34, $this->source); })()) % 100) >= 10) && (((isset($context["animalAge"]) || array_key_exists("animalAge", $context) ? $context["animalAge"] : (function () { throw new RuntimeError('Variable "animalAge" does not exist.', 34, $this->source); })()) % 100) <= 20))) {
// line 35
$context["yearsMonths"] = "miesięcy";
} else {
// line 37
$context["yearsMonths"] = "miesiące";
}
} else {
// line 40
$context["yearsMonths"] = "miesięcy";
}
} else {
// line 43
if (((isset($context["animalAge"]) || array_key_exists("animalAge", $context) ? $context["animalAge"] : (function () { throw new RuntimeError('Variable "animalAge" does not exist.', 43, $this->source); })()) == 1)) {
// line 44
$context["yearsMonths"] = "rok";
} elseif (((( // line 45
(isset($context["animalAge"]) || array_key_exists("animalAge", $context) ? $context["animalAge"] : (function () { throw new RuntimeError('Variable "animalAge" does not exist.', 45, $this->source); })()) % 10) >= 2) && (((isset($context["animalAge"]) || array_key_exists("animalAge", $context) ? $context["animalAge"] : (function () { throw new RuntimeError('Variable "animalAge" does not exist.', 45, $this->source); })()) % 10) <= 4))) {
// line 46
if (((((isset($context["animalAge"]) || array_key_exists("animalAge", $context) ? $context["animalAge"] : (function () { throw new RuntimeError('Variable "animalAge" does not exist.', 46, $this->source); })()) % 100) >= 10) && (((isset($context["animalAge"]) || array_key_exists("animalAge", $context) ? $context["animalAge"] : (function () { throw new RuntimeError('Variable "animalAge" does not exist.', 46, $this->source); })()) % 100) <= 20))) {
// line 47
$context["yearsMonths"] = "lat";
} else {
// line 49
$context["yearsMonths"] = "lata";
}
} else {
// line 52
$context["yearsMonths"] = "lat";
}
}
// line 56
$context["fullDesc"] = (isset($context["shortDesc"]) || array_key_exists("shortDesc", $context) ? $context["shortDesc"] : (function () { throw new RuntimeError('Variable "shortDesc" does not exist.', 56, $this->source); })());
// line 57
$context["shortDesc"] = ((((((("Cześć jestem " . twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 57, $this->source); })()), "name", [], "any", false, false, false, 57)) . ". Mam około ") . (isset($context["animalAge"]) || array_key_exists("animalAge", $context) ? $context["animalAge"] : (function () { throw new RuntimeError('Variable "animalAge" does not exist.', 57, $this->source); })())) . " ") . (isset($context["yearsMonths"]) || array_key_exists("yearsMonths", $context) ? $context["yearsMonths"] : (function () { throw new RuntimeError('Variable "yearsMonths" does not exist.', 57, $this->source); })())) . ". ") . (isset($context["shortDesc"]) || array_key_exists("shortDesc", $context) ? $context["shortDesc"] : (function () { throw new RuntimeError('Variable "shortDesc" does not exist.', 57, $this->source); })()));
// line 62
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 62, $this->source); })()), "featuredImage", [], "any", false, false, false, 62), "id", [], "any", false, false, false, 62))) {
}
// line 1
$this->parent = $this->loadTemplate("layout/base.html.twig", "front/animal/single.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Adopciaki.pl - Profil - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 3, $this->source); })()), "name", [], "any", false, false, false, 3), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 4
public function block_og_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "og_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "og_title"));
echo "Cześć jestem ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 4, $this->source); })()), "name", [], "any", false, false, false, 4), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 59
public function block_description($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
echo twig_escape_filter($this->env, (isset($context["shortDesc"]) || array_key_exists("shortDesc", $context) ? $context["shortDesc"] : (function () { throw new RuntimeError('Variable "shortDesc" does not exist.', 59, $this->source); })()), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 60
public function block_og_description($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "og_description"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "og_description"));
echo twig_escape_filter($this->env, (isset($context["shortDesc"]) || array_key_exists("shortDesc", $context) ? $context["shortDesc"] : (function () { throw new RuntimeError('Variable "shortDesc" does not exist.', 60, $this->source); })()), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 68
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 69
echo " ";
$context["pollStatus"] = "default";
// line 70
echo "
";
// line 74
echo "
";
// line 75
if (twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 75, $this->source); })()), "adoptionDate", [], "any", false, false, false, 75)) {
// line 76
echo " ";
$context["animalAdopted"] = "adopted";
// line 77
echo " ";
} else {
// line 78
echo " ";
$context["animalAdopted"] = "not-adopted";
// line 79
echo " ";
}
// line 80
echo "
";
// line 81
$context["isWatched"] = false;
// line 82
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, true, false, 82), "watchedAnimals", [], "any", true, true, false, 82)) {
// line 83
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 83, $this->source); })()), "user", [], "any", false, false, false, 83), "watchedAnimals", [], "any", false, false, false, 83));
foreach ($context['_seq'] as $context["_key"] => $context["watchAnimal"]) {
// line 84
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["watchAnimal"], "id", [], "any", false, false, false, 84) == twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 84, $this->source); })()), "id", [], "any", false, false, false, 84))) {
// line 85
echo " ";
$context["isWatched"] = true;
// line 86
echo " ";
}
// line 87
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['watchAnimal'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo " ";
}
// line 89
echo "
";
// line 91
$context["kidAccept05"] = true;
// line 92
echo " ";
$context["kidAccept510"] = true;
// line 93
echo " ";
$context["kidAccept10plus"] = true;
// line 94
echo " ";
$context["kidAcceptName"] = "Czuje się niepewnie w towarzystwie dzieci, polecamy raczej do domu bez dzieci";
// line 95
echo "
";
// line 96
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 96, $this->source); })()), "kidAcceptances", [], "any", false, false, false, 96)));
foreach ($context['_seq'] as $context["_key"] => $context["acceptance"]) {
// line 97
echo " ";
$context["kidAcceptName"] = twig_get_attribute($this->env, $this->source, $context["acceptance"], "name", [], "any", false, false, false, 97);
// line 98
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['acceptance'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 99
echo "
";
// line 100
$context["mainImage"] = "";
// line 101
echo " ";
$context["gallery"] = [];
// line 102
echo "
";
// line 103
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 103, $this->source); })()), "pictures", [], "any", false, false, false, 103));
foreach ($context['_seq'] as $context["key"] => $context["picture"]) {
// line 104
echo " ";
if (($context["key"] == 0)) {
// line 105
echo " ";
$context["mainImage"] = $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\AnimalImagePathExtension']->animalImage(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 105, $this->source); })()), "featuredImage", [], "any", false, false, false, 105), "path", [], "any", false, false, false, 105))), "animal_listing_thumb");
// line 106
echo " ";
} elseif (((($context["key"] > 0) && (twig_get_attribute($this->env, $this->source, $context["picture"], "id", [], "any", false, false, false, 106) != twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 106, $this->source); })()), "fbSqImageId", [], "any", false, false, false, 106))) && (twig_get_attribute($this->env, $this->source, $context["picture"], "id", [], "any", false, false, false, 106) != twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 106, $this->source); })()), "fbLargeImageId", [], "any", false, false, false, 106)))) {
// line 107
echo " ";
$context["gallery"] = twig_array_merge((isset($context["gallery"]) || array_key_exists("gallery", $context) ? $context["gallery"] : (function () { throw new RuntimeError('Variable "gallery" does not exist.', 107, $this->source); })()), [0 => $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\AnimalImagePathExtension']->animalImage(twig_get_attribute($this->env, $this->source, $context["picture"], "path", [], "any", false, false, false, 107))), "animal_gallery_thumb")]);
// line 108
echo " ";
}
// line 109
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['picture'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 110
echo "
";
// line 113
echo " ";
// line 114
echo " ";
// line 115
echo " ";
// line 116
echo " ";
// line 117
echo " ";
// line 118
echo " ";
// line 119
echo " ";
// line 120
echo "
";
// line 121
$context["prepSimilarAnimals"] = [];
// line 122
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["similarAnimals"]) || array_key_exists("similarAnimals", $context) ? $context["similarAnimals"] : (function () { throw new RuntimeError('Variable "similarAnimals" does not exist.', 122, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["animalItem"]) {
// line 123
echo " ";
if ( !(twig_get_attribute($this->env, $this->source, $context["animalItem"], "id", [], "any", false, false, false, 123) === twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 123, $this->source); })()), "id", [], "any", false, false, false, 123))) {
// line 124
echo " ";
$context["prepSimilarAnimals"] = twig_array_merge((isset($context["prepSimilarAnimals"]) || array_key_exists("prepSimilarAnimals", $context) ? $context["prepSimilarAnimals"] : (function () { throw new RuntimeError('Variable "prepSimilarAnimals" does not exist.', 124, $this->source); })()), [0 => ["url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("base_front_animal_single", ["id" => twig_get_attribute($this->env, $this->source, // line 125
$context["animalItem"], "id", [], "any", false, false, false, 125), "name" => twig_get_attribute($this->env, $this->source, $context["animalItem"], "name", [], "any", false, false, false, 125)]), "image" => $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\AnimalImagePathExtension']->animalImage(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 126
$context["animalItem"], "featuredImage", [], "any", false, false, false, 126), "path", [], "any", false, false, false, 126))), "animal_gallery_thumb")]]);
// line 128
echo " ";
}
// line 129
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['animalItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 130
echo "
";
// line 131
$context["isLogged"] = "false";
// line 132
echo "
";
// line 133
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED")) {
// line 134
echo " ";
$context["isLogged"] = "true";
// line 135
echo " ";
}
// line 136
echo "
<section id=\"animal-profile\">
<div class=\"container-fluid pt-0 animal-header ";
// line 138
if (((isset($context["animalAdopted"]) || array_key_exists("animalAdopted", $context) ? $context["animalAdopted"] : (function () { throw new RuntimeError('Variable "animalAdopted" does not exist.', 138, $this->source); })()) == "adopted")) {
echo "animal-adopted";
}
echo " mb-4\">
<div class=\"container\">
<div class=\"row d-flex justify-content-center pt-0 pb-5\">
<div class=\"col-12\">
<h1 class=\"animal-heading-title mt-4 mb-5\">Cześć, jestem <b>";
// line 142
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 142, $this->source); })()), "name", [], "any", false, false, false, 142), "html", null, true);
echo "</b> ";
if (((isset($context["animalAdopted"]) || array_key_exists("animalAdopted", $context) ? $context["animalAdopted"] : (function () { throw new RuntimeError('Variable "animalAdopted" does not exist.', 142, $this->source); })()) == "adopted")) {
echo "- mam dom";
}
echo "</h1>
</div>
<div class=\"row\">
<div class=\"col-12 col-lg-6 mb-5 mb-lg-0\">
<div class=\"row\">
<div class=\"col-12 col-sm-6\">
<img class=\"img-fluid\" src=\"";
// line 148
echo twig_escape_filter($this->env, (isset($context["mainImage"]) || array_key_exists("mainImage", $context) ? $context["mainImage"] : (function () { throw new RuntimeError('Variable "mainImage" does not exist.', 148, $this->source); })()), "html", null, true);
echo "\" />
</div>
<div class=\"col-12 col-sm-6\">
<div class=\"row\">
<div class=\"col-12 pt-lg-3\">
<p class=\"animal-heading-info\"><b>Zwierzak:</b> ";
// line 153
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 153, $this->source); })()), "species", [], "any", false, false, false, 153), "name", [], "any", false, false, false, 153), "html", null, true);
echo "</p>
</div>
<div class=\"col-12\">
<p class=\"animal-heading-info\"><b>Płeć:</b> ";
// line 156
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 156, $this->source); })()), "sex", [], "any", false, false, false, 156), "name", [], "any", false, false, false, 156), "html", null, true);
echo "</p>
</div>
<div class=\"col-12\">
<p class=\"animal-heading-info\"><b>Wiek:</b> ";
// line 159
if ((twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 159, $this->source); })()), "isAgeInMonths", [], "any", false, false, false, 159) == true)) {
echo "do 1 roku";
} else {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 159, $this->source); })()), "age", [], "any", false, false, false, 159), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (isset($context["yearsMonths"]) || array_key_exists("yearsMonths", $context) ? $context["yearsMonths"] : (function () { throw new RuntimeError('Variable "yearsMonths" does not exist.', 159, $this->source); })()), "html", null, true);
}
echo "</p>
</div>
<div class=\"col-12\">
<p class=\"animal-heading-info\"><b>Waga:</b> ";
// line 162
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 162, $this->source); })()), "weight", [], "any", false, false, false, 162), "html", null, true);
echo " kg</p>
</div>
<div class=\"col-12\">
<p class=\"animal-heading-info\"><b>Rozmiar:</b> ";
// line 165
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 165, $this->source); })()), "size", [], "any", false, false, false, 165), "html", null, true);
echo "</p>
</div>
<div class=\"col-12\">
<p class=\"animal-heading-info\"><b>Aktywność:</b> ";
// line 168
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 168, $this->source); })()), "lifeStyle", [], "any", false, false, false, 168), "name", [], "any", false, false, false, 168), "html", null, true);
echo "</p>
</div>
</div>
</div>
</div>
</div>
<div class=\"col-12 col-lg-6 mb-5 mb-lg-0\">
<div class=\"row\">
<div class=\"col-12 col-md-6\">
<div class=\"row pb-4 mini-gallery\">
";
// line 178
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 178, $this->source); })()), "pictures", [], "any", false, false, false, 178));
foreach ($context['_seq'] as $context["key"] => $context["picture"]) {
// line 179
echo " ";
if ((($context["key"] == 1) || ($context["key"] == 2))) {
// line 180
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["picture"], "id", [], "any", false, false, false, 180) != twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 180, $this->source); })()), "fbSqImageId", [], "any", false, false, false, 180)) && (twig_get_attribute($this->env, $this->source, $context["picture"], "id", [], "any", false, false, false, 180) != twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 180, $this->source); })()), "fbLargeImageId", [], "any", false, false, false, 180)))) {
// line 181
echo " <div class=\"col-6\">
<div class=\"image\" data-image=\"";
// line 182
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\AnimalImagePathExtension']->animalImage(twig_get_attribute($this->env, $this->source, $context["picture"], "path", [], "any", false, false, false, 182))), "animal_gallery_thumb"), "html", null, true);
echo "\">
<img src=\"";
// line 183
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\AnimalImagePathExtension']->animalImage(twig_get_attribute($this->env, $this->source, $context["picture"], "path", [], "any", false, false, false, 183))), "animal_gallery_thumb"), "html", null, true);
echo "\" class=\"img-fluid\">
</div>
</div>
";
}
// line 187
echo " ";
}
// line 188
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['picture'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 189
echo " </div>
<div class=\"row mini-gallery\">
";
// line 191
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 191, $this->source); })()), "pictures", [], "any", false, false, false, 191));
foreach ($context['_seq'] as $context["key"] => $context["picture"]) {
// line 192
echo " ";
if ((($context["key"] == 3) || ($context["key"] == 4))) {
// line 193
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["picture"], "id", [], "any", false, false, false, 193) != twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 193, $this->source); })()), "fbSqImageId", [], "any", false, false, false, 193)) && (twig_get_attribute($this->env, $this->source, $context["picture"], "id", [], "any", false, false, false, 193) != twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 193, $this->source); })()), "fbLargeImageId", [], "any", false, false, false, 193)))) {
// line 194
echo " <div class=\"col-6\">
<div class=\"image\" data-image=\"";
// line 195
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\AnimalImagePathExtension']->animalImage(twig_get_attribute($this->env, $this->source, $context["picture"], "path", [], "any", false, false, false, 195))), "animal_gallery_thumb"), "html", null, true);
echo "\">
<img src=\"";
// line 196
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\AnimalImagePathExtension']->animalImage(twig_get_attribute($this->env, $this->source, $context["picture"], "path", [], "any", false, false, false, 196))), "animal_gallery_thumb"), "html", null, true);
echo "\" class=\"img-fluid\">
</div>
</div>
";
}
// line 200
echo " ";
}
// line 201
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['picture'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 202
echo " </div>
</div>
<div class=\"col-12 col-md-6\">
<div class=\"row\">
";
// line 206
if (twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 206, $this->source); })()), "kidAcceptances", [], "any", false, false, false, 206)) {
// line 207
echo " <div class=\"col-12 pt-lg-4\">
<p class=\"animal-heading-info2\"><b>Czy może mieszkać z dziećmi?</b><br/>
";
// line 209
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 209, $this->source); })()), "kidAcceptances", [], "any", false, false, false, 209));
foreach ($context['_seq'] as $context["_key"] => $context["kidAcceptance"]) {
// line 210
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["kidAcceptance"], "name", [], "any", false, false, false, 210), "html", null, true);
echo "<br/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['kidAcceptance'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 212
echo " </p>
</div>
";
}
// line 215
echo "
";
// line 216
if (twig_test_iterable(twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 216, $this->source); })()), "notAcceptings", [], "any", false, false, false, 216))) {
// line 217
echo " <div class=\"col-12\">
<p class=\"animal-heading-info2\"><b>Czy może mieszkać z innymi zwierzętami?</b>
";
// line 219
if (twig_test_iterable(twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 219, $this->source); })()), "notAcceptings", [], "any", false, false, false, 219))) {
// line 220
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 220, $this->source); })()), "notAcceptings", [], "any", false, false, false, 220));
foreach ($context['_seq'] as $context["key"] => $context["notAccepting"]) {
// line 221
echo " <span class=\"d-block\">";
echo twig_escape_filter($this->env, $context["notAccepting"], "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['notAccepting'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 223
echo " ";
} else {
// line 224
echo " <br>
";
// line 225
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 225, $this->source); })()), "notAcceptings", [], "any", false, false, false, 225), "html", null, true);
echo "
";
}
// line 227
echo " </p>
</div>
";
}
// line 230
echo "
";
// line 231
if (twig_test_iterable(twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 231, $this->source); })()), "timeCareNeeded", [], "any", false, false, false, 231))) {
// line 232
echo " <div class=\"col-12\">
<p class=\"animal-heading-info2\"><b>Czy może zostawać sam w domu?</b><br/>
";
// line 234
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 234, $this->source); })()), "timeCareNeeded", [], "any", false, false, false, 234));
foreach ($context['_seq'] as $context["key"] => $context["timeCare"]) {
// line 235
echo " <span class=\"d-block\">";
echo twig_escape_filter($this->env, $context["timeCare"], "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['timeCare'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 237
echo " </p>
</div>
";
}
// line 240
echo "
";
// line 241
if (twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 241, $this->source); })()), "city2", [], "any", false, false, false, 241)) {
// line 242
echo " <div class=\"col-12\">
<p class=\"animal-heading-info2\"><b>Miejsce tymczasowego pobytu:</b> ";
// line 243
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 243, $this->source); })()), "city2", [], "any", false, false, false, 243), "html", null, true);
echo "
</p>
</div>
";
}
// line 247
echo "
";
// line 248
if (twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 248, $this->source); })()), "possibility", [], "any", false, false, false, 248)) {
// line 249
echo " <div class=\"col-12\">
<p class=\"animal-heading-info2\"><b>Możliwość adopcji:</b> ";
// line 250
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 250, $this->source); })()), "possibility", [], "any", false, false, false, 250), "name", [], "any", false, false, false, 250), "html", null, true);
echo "</p>
</div>
";
}
// line 253
echo " </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"container-fluid pt-0 pt-md-5\">
<div class=\"container\">
<div class=\"row d-flex justify-content-center pt-0\">
<div class=\"col-12\">
<p class=\"animal-sub-info\">";
// line 265
echo twig_escape_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 265, $this->source); })()), "description", [], "any", false, false, false, 265)), "html", null, true);
echo "</p>
</div>
<div class=\"col-12 mt-4 mb-5\">
<div class=\"gallery gallery-not-adopted\">
<div class=\"row\">
<gallery :images=\"";
// line 270
echo twig_escape_filter($this->env, json_encode((isset($context["gallery"]) || array_key_exists("gallery", $context) ? $context["gallery"] : (function () { throw new RuntimeError('Variable "gallery" does not exist.', 270, $this->source); })())), "html", null, true);
echo "\"></gallery>
</div>
</div>
</div>
</div>
</div>
</div>
";
// line 278
if (((isset($context["animalAdopted"]) || array_key_exists("animalAdopted", $context) ? $context["animalAdopted"] : (function () { throw new RuntimeError('Variable "animalAdopted" does not exist.', 278, $this->source); })()) == "not-adopted")) {
// line 279
echo " <div class=\"mb-md-5\">
<animal-poll
is-logged=\"";
// line 281
echo twig_escape_filter($this->env, (isset($context["isLogged"]) || array_key_exists("isLogged", $context) ? $context["isLogged"] : (function () { throw new RuntimeError('Variable "isLogged" does not exist.', 281, $this->source); })()), "html", null, true);
echo "\"
animal-path=\"";
// line 282
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("animal_poll_step", ["animal" => twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 282, $this->source); })()), "id", [], "any", false, false, false, 282)]), "html", null, true);
echo "\"
animal-specie-type=\"";
// line 283
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["animal"]) || array_key_exists("animal", $context) ? $context["animal"] : (function () { throw new RuntimeError('Variable "animal" does not exist.', 283, $this->source); })()), "species", [], "any", false, false, false, 283), "name", [], "any", false, false, false, 283), "html", null, true);
echo "\"
image=\"";
// line 284
echo twig_escape_filter($this->env, (isset($context["mainImage"]) || array_key_exists("mainImage", $context) ? $context["mainImage"] : (function () { throw new RuntimeError('Variable "mainImage" does not exist.', 284, $this->source); })()), "html", null, true);
echo "\"
></animal-poll>
</div>
";
}
// line 288
echo "
<div class=\"container-fluid pt-4 pb-5\">
<div class=\"container\">
<div class=\"row d-flex justify-content-center pt-0\">
<div class=\"col-12 col-md-12 col-lg-12\">
<div class=\"row\">
<div class=\"col-12 col-md-4\">
<div class=\"col-12\">
<a href=\"";
// line 296
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("animals_all");
echo "\" class=\"btn btn-primary btn-lg mb-2 mt-2 w-100\">Poznaj wszystkie
nasze
Adopciaki</a>
</div>
<div class=\"col-12\">
<a href=\"";
// line 301
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_adoption_process");
echo "\" class=\"btn btn-primary btn-lg mb-2 mt-2 w-100\">Sprawdź, jak adoptować</a>
</div>
</div>
<div class=\"col-12 col-md-4\">
<div class=\"col-12\">
<a href=\"";
// line 306
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_about_us");
echo "\" class=\"btn btn-secondary btn-lg mb-2 mt-2 w-100\">Zobacz, jak działamy</a>
</div>
<div class=\"col-12\">
<a href=\"";
// line 309
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_support_us");
echo "\" class=\"btn btn-secondary btn-lg mb-2 mt-2 w-100\">Sprawdź, jak możesz pomóc</a>
</div>
</div>
<div class=\"col-12 col-md-4\">
<div class=\"col-12\">
<a href=\"";
// line 314
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("animals_all");
echo "\" class=\"btn btn-secondary btn-lg mb-2 mt-2 w-100\">Mogą do Ciebie pasować również</a>
</div>
<div class=\"col-12\">
<div class=\"similar-animals\">
<similar-animals :similar-animals=\"";
// line 318
echo twig_escape_filter($this->env, json_encode((isset($context["prepSimilarAnimals"]) || array_key_exists("prepSimilarAnimals", $context) ? $context["prepSimilarAnimals"] : (function () { throw new RuntimeError('Variable "prepSimilarAnimals" does not exist.', 318, $this->source); })())), "html", null, true);
echo "\"></similar-animals>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
// line 328
if ((isset($context["notes"]) || array_key_exists("notes", $context) ? $context["notes"] : (function () { throw new RuntimeError('Variable "notes" does not exist.', 328, $this->source); })())) {
// line 329
echo " <div class=\"container-fluid pt-4 pb-5\">
<div class=\"container\">
<div class=\"row d-flex justify-content-center pt-0\">
<div class=\"col-12 col-md-12 col-lg-12\">
<div class=\"adopt-news\">
<h3>Z dzienniczka <span>Adopciaka</span></h3>
<div class=\"block-wrapper\">
";
// line 337
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["notes"]) || array_key_exists("notes", $context) ? $context["notes"] : (function () { throw new RuntimeError('Variable "notes" does not exist.', 337, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["noteItem"]) {
// line 338
echo " <div class=\"note-item\">
<div class=\"row\">
<div class=\"col-auto\">
<p class=\"date\">";
// line 341
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["noteItem"], "publishedDate", [], "any", false, false, false, 341), "d.m.Y"), "html", null, true);
echo "</p>
</div>
<div class=\"col\">
";
// line 344
if ( !(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["noteItem"], "title", [], "any", false, false, false, 344)) === 0)) {
// line 345
echo " <p class=\"title\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["noteItem"], "title", [], "any", false, false, false, 345), "html", null, true);
echo "</p>
";
}
// line 347
echo " <div class=\"text\">";
echo twig_replace_filter(twig_get_attribute($this->env, $this->source, $context["noteItem"], "content", [], "any", false, false, false, 347), ["<p></p>" => ""]);
echo "</div>
";
// line 349
if ( !(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["noteItem"], "pictures", [], "any", false, false, false, 349)) === 0)) {
// line 350
echo " <div class=\"image\">
<img src=\"";
// line 351
echo twig_escape_filter($this->env, $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['App\Twig\AnimalImagePathExtension']->animalImage(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["noteItem"], "pictures", [], "any", false, false, false, 351), 0, [], "array", false, false, false, 351), "path", [], "any", false, false, false, 351))), "animal_gallery_thumb"), "html", null, true);
echo "\" alt=\"\">
</div>
";
}
// line 354
echo " </div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['noteItem'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 358
echo " </div>
</div>
</div>
</div>
</div>
</div>
";
}
// line 365
echo " </section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "front/animal/single.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 879 => 365, 870 => 358, 861 => 354, 855 => 351, 852 => 350, 850 => 349, 844 => 347, 838 => 345, 836 => 344, 830 => 341, 825 => 338, 821 => 337, 811 => 329, 809 => 328, 796 => 318, 789 => 314, 781 => 309, 775 => 306, 767 => 301, 759 => 296, 749 => 288, 742 => 284, 738 => 283, 734 => 282, 730 => 281, 726 => 279, 724 => 278, 713 => 270, 705 => 265, 691 => 253, 685 => 250, 682 => 249, 680 => 248, 677 => 247, 670 => 243, 667 => 242, 665 => 241, 662 => 240, 657 => 237, 648 => 235, 644 => 234, 640 => 232, 638 => 231, 635 => 230, 630 => 227, 625 => 225, 622 => 224, 619 => 223, 610 => 221, 605 => 220, 603 => 219, 599 => 217, 597 => 216, 594 => 215, 589 => 212, 580 => 210, 576 => 209, 572 => 207, 570 => 206, 564 => 202, 558 => 201, 555 => 200, 548 => 196, 544 => 195, 541 => 194, 538 => 193, 535 => 192, 531 => 191, 527 => 189, 521 => 188, 518 => 187, 511 => 183, 507 => 182, 504 => 181, 501 => 180, 498 => 179, 494 => 178, 481 => 168, 475 => 165, 469 => 162, 457 => 159, 451 => 156, 445 => 153, 437 => 148, 424 => 142, 415 => 138, 411 => 136, 408 => 135, 405 => 134, 403 => 133, 400 => 132, 398 => 131, 395 => 130, 389 => 129, 386 => 128, 384 => 126, 383 => 125, 381 => 124, 378 => 123, 373 => 122, 371 => 121, 368 => 120, 366 => 119, 364 => 118, 362 => 117, 360 => 116, 358 => 115, 356 => 114, 354 => 113, 350 => 110, 344 => 109, 341 => 108, 338 => 107, 335 => 106, 332 => 105, 329 => 104, 325 => 103, 322 => 102, 319 => 101, 317 => 100, 314 => 99, 308 => 98, 305 => 97, 301 => 96, 298 => 95, 295 => 94, 292 => 93, 289 => 92, 287 => 91, 283 => 89, 280 => 88, 274 => 87, 271 => 86, 268 => 85, 265 => 84, 260 => 83, 257 => 82, 255 => 81, 252 => 80, 249 => 79, 246 => 78, 243 => 77, 240 => 76, 238 => 75, 235 => 74, 232 => 70, 229 => 69, 219 => 68, 200 => 60, 181 => 59, 161 => 4, 141 => 3, 130 => 1, 127 => 62, 125 => 57, 123 => 56, 119 => 52, 115 => 49, 112 => 47, 110 => 46, 108 => 45, 106 => 44, 104 => 43, 100 => 40, 96 => 37, 93 => 35, 91 => 34, 89 => 33, 87 => 32, 85 => 31, 83 => 30, 80 => 27, 77 => 25, 75 => 24, 72 => 21, 70 => 20, 68 => 19, 66 => 18, 64 => 16, 62 => 15, 59 => 11, 56 => 9, 54 => 8, 52 => 6, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout/base.html.twig' %}
{% block title %}Adopciaki.pl - Profil - {{ animal.name }}{% endblock %}
{% block og_title %}Cześć jestem {{ animal.name }}{% endblock %}
{% set shortDesc = 'Adopciaki.pl to program wspierający odpowiedzialne adopcje psów i kotów. Pomagamy dobrać zwierzaka do stylu życia opiekuna i zapewniamy pomoc specjalistów.' %}
{% if(animal.shortDescription is empty) %}
{% set shortDesc = animal.description|striptags %}
{% else %}
{% set shortDesc = animal.shortDescription %}
{% endif %}
{# Animal Age #}
{% set difference = date(\"now\"|date(\"Y-m-d\")).diff(date(animal.bornDate|date('Y-m-d'))) %}
{% set diffYears = difference.days / 365 %}
{% set months = 0 %}
{% if difference.days < 365 %}
{% set months = 1 %}
{% set diffYears = difference.days / 30 %}
{% endif %}
{% if diffYears|round(0, 'floor') == 0 %}
{% set animalAge = 1 %}
{% else %}
{% set animalAge = diffYears|round(0, 'floor') %}
{% endif %}
{% if months == 1 %}
{% if animalAge == 1 %}
{% set yearsMonths = 'miesiąc' %}
{% elseif (animalAge % 10 ) >= 2 and (animalAge % 10) <= 4 %}
{% if (animalAge % 100) >= 10 and (animalAge % 100) <= 20 %}
{% set yearsMonths = 'miesięcy' %}
{% else %}
{% set yearsMonths = 'miesiące' %}
{% endif %}
{% else %}
{% set yearsMonths = 'miesięcy' %}
{% endif %}
{% else %}
{% if animalAge == 1 %}
{% set yearsMonths = 'rok' %}
{% elseif (animalAge % 10 ) >= 2 and (animalAge % 10) <= 4 %}
{% if (animalAge % 100) >= 10 and (animalAge % 100) <= 20 %}
{% set yearsMonths = 'lat' %}
{% else %}
{% set yearsMonths = 'lata' %}
{% endif %}
{% else %}
{% set yearsMonths = 'lat' %}
{% endif %}
{% endif %}
{% set fullDesc = shortDesc %}
{% set shortDesc = 'Cześć jestem '~ animal.name ~'. Mam około '~animalAge~' '~yearsMonths~'. '~shortDesc %}
{% block description %}{{ shortDesc }}{% endblock %}
{% block og_description %}{{ shortDesc }}{% endblock %}
{% if animal.featuredImage.id is not empty %}
{# {% block og_image %}#}
{# {{ asset(animalImage(animal.featuredImage.path)) | imagine_filter('animal_og_image') }}#}
{# {% endblock %}#}
{% endif %}
{% block content %}
{% set pollStatus = 'default' %}
{# {% if poll is not empty %}#}
{# {% set pollStatus = poll %}#}
{# {% endif %}#}
{% if animal.adoptionDate %}
{% set animalAdopted = 'adopted' %}
{% else %}
{% set animalAdopted = 'not-adopted' %}
{% endif %}
{% set isWatched = false %}
{% if app.user.watchedAnimals is defined %}
{% for watchAnimal in app.user.watchedAnimals%}
{% if watchAnimal.id == animal.id %}
{% set isWatched = true %}
{% endif %}
{% endfor %}
{% endif %}
{% set kidAccept05 = true %}
{% set kidAccept510 = true %}
{% set kidAccept10plus = true %}
{% set kidAcceptName = 'Czuje się niepewnie w towarzystwie dzieci, polecamy raczej do domu bez dzieci' %}
{% for acceptance in animal.kidAcceptances | sort %}
{% set kidAcceptName = acceptance.name %}
{% endfor %}
{% set mainImage = '' %}
{% set gallery = [] %}
{% for key,picture in animal.pictures %}
{% if key == 0 %}
{% set mainImage = asset(animalImage(animal.featuredImage.path)) | imagine_filter('animal_listing_thumb') %}
{% elseif key > 0 and picture.id != animal.fbSqImageId and picture.id != animal.fbLargeImageId %}
{% set gallery = gallery|merge([asset(animalImage(picture.path)) | imagine_filter('animal_gallery_thumb')]) %}
{% endif %}
{% endfor %}
{# {% set noteItemGallery = [] %}#}
{# {% for key,note in notes %}#}
{# {% if note.pictures %}#}
{# {% for key,picture in note.pictures %}#}
{# {% set noteItemGallery = noteItemGallery|merge([asset(animalImage(picture.path)) | imagine_filter('animal_gallery_image')]) %}#}
{# {% endfor %}#}
{# {% endif %}#}
{# {% endfor %}#}
{% set prepSimilarAnimals = [] %}
{% for key,animalItem in similarAnimals %}
{% if animalItem.id is not same as(animal.id) %}
{% set prepSimilarAnimals = prepSimilarAnimals|merge([{
'url' : path('base_front_animal_single', {'id':animalItem.id, 'name': animalItem.name}),
'image' : asset(animalImage(animalItem.featuredImage.path)) | imagine_filter('animal_gallery_thumb')
}]) %}
{% endif %}
{% endfor %}
{% set isLogged = 'false' %}
{% if is_granted('IS_AUTHENTICATED') %}
{% set isLogged = 'true' %}
{% endif %}
<section id=\"animal-profile\">
<div class=\"container-fluid pt-0 animal-header {% if(animalAdopted == 'adopted') %}animal-adopted{% endif %} mb-4\">
<div class=\"container\">
<div class=\"row d-flex justify-content-center pt-0 pb-5\">
<div class=\"col-12\">
<h1 class=\"animal-heading-title mt-4 mb-5\">Cześć, jestem <b>{{ animal.name }}</b> {% if(animalAdopted == 'adopted') %}- mam dom{% endif %}</h1>
</div>
<div class=\"row\">
<div class=\"col-12 col-lg-6 mb-5 mb-lg-0\">
<div class=\"row\">
<div class=\"col-12 col-sm-6\">
<img class=\"img-fluid\" src=\"{{ mainImage }}\" />
</div>
<div class=\"col-12 col-sm-6\">
<div class=\"row\">
<div class=\"col-12 pt-lg-3\">
<p class=\"animal-heading-info\"><b>Zwierzak:</b> {{ animal.species.name }}</p>
</div>
<div class=\"col-12\">
<p class=\"animal-heading-info\"><b>Płeć:</b> {{ animal.sex.name }}</p>
</div>
<div class=\"col-12\">
<p class=\"animal-heading-info\"><b>Wiek:</b> {% if animal.isAgeInMonths == true %}do 1 roku{% else %}{{ animal.age }} {{ yearsMonths }}{% endif %}</p>
</div>
<div class=\"col-12\">
<p class=\"animal-heading-info\"><b>Waga:</b> {{ animal.weight }} kg</p>
</div>
<div class=\"col-12\">
<p class=\"animal-heading-info\"><b>Rozmiar:</b> {{ animal.size }}</p>
</div>
<div class=\"col-12\">
<p class=\"animal-heading-info\"><b>Aktywność:</b> {{ animal.lifeStyle.name }}</p>
</div>
</div>
</div>
</div>
</div>
<div class=\"col-12 col-lg-6 mb-5 mb-lg-0\">
<div class=\"row\">
<div class=\"col-12 col-md-6\">
<div class=\"row pb-4 mini-gallery\">
{% for key,picture in animal.pictures %}
{% if key == 1 or key == 2 %}
{% if picture.id != animal.fbSqImageId and picture.id != animal.fbLargeImageId %}
<div class=\"col-6\">
<div class=\"image\" data-image=\"{{ asset(animalImage(picture.path)) | imagine_filter('animal_gallery_thumb') }}\">
<img src=\"{{ asset(animalImage(picture.path)) | imagine_filter('animal_gallery_thumb') }}\" class=\"img-fluid\">
</div>
</div>
{% endif %}
{% endif %}
{% endfor %}
</div>
<div class=\"row mini-gallery\">
{% for key,picture in animal.pictures %}
{% if key == 3 or key == 4 %}
{% if picture.id != animal.fbSqImageId and picture.id != animal.fbLargeImageId %}
<div class=\"col-6\">
<div class=\"image\" data-image=\"{{ asset(animalImage(picture.path)) | imagine_filter('animal_gallery_thumb') }}\">
<img src=\"{{ asset(animalImage(picture.path)) | imagine_filter('animal_gallery_thumb') }}\" class=\"img-fluid\">
</div>
</div>
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>
<div class=\"col-12 col-md-6\">
<div class=\"row\">
{% if animal.kidAcceptances %}
<div class=\"col-12 pt-lg-4\">
<p class=\"animal-heading-info2\"><b>Czy może mieszkać z dziećmi?</b><br/>
{% for kidAcceptance in animal.kidAcceptances %}
{{ kidAcceptance.name }}<br/>
{% endfor %}
</p>
</div>
{% endif %}
{% if animal.notAcceptings is iterable %}
<div class=\"col-12\">
<p class=\"animal-heading-info2\"><b>Czy może mieszkać z innymi zwierzętami?</b>
{% if animal.notAcceptings is iterable %}
{% for key,notAccepting in animal.notAcceptings %}
<span class=\"d-block\">{{ notAccepting }}</span>
{% endfor %}
{% else %}
<br>
{{ animal.notAcceptings }}
{% endif %}
</p>
</div>
{% endif %}
{% if animal.timeCareNeeded is iterable %}
<div class=\"col-12\">
<p class=\"animal-heading-info2\"><b>Czy może zostawać sam w domu?</b><br/>
{% for key,timeCare in animal.timeCareNeeded %}
<span class=\"d-block\">{{ timeCare }}</span>
{% endfor %}
</p>
</div>
{% endif %}
{% if animal.city2 %}
<div class=\"col-12\">
<p class=\"animal-heading-info2\"><b>Miejsce tymczasowego pobytu:</b> {{ animal.city2 }}
</p>
</div>
{% endif %}
{% if animal.possibility %}
<div class=\"col-12\">
<p class=\"animal-heading-info2\"><b>Możliwość adopcji:</b> {{ animal.possibility.name }}</p>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"container-fluid pt-0 pt-md-5\">
<div class=\"container\">
<div class=\"row d-flex justify-content-center pt-0\">
<div class=\"col-12\">
<p class=\"animal-sub-info\">{{ animal.description|striptags }}</p>
</div>
<div class=\"col-12 mt-4 mb-5\">
<div class=\"gallery gallery-not-adopted\">
<div class=\"row\">
<gallery :images=\"{{ gallery | json_encode }}\"></gallery>
</div>
</div>
</div>
</div>
</div>
</div>
{% if(animalAdopted == 'not-adopted') %}
<div class=\"mb-md-5\">
<animal-poll
is-logged=\"{{ isLogged }}\"
animal-path=\"{{ path('animal_poll_step', {animal : animal.id}) }}\"
animal-specie-type=\"{{ animal.species.name }}\"
image=\"{{ mainImage }}\"
></animal-poll>
</div>
{% endif %}
<div class=\"container-fluid pt-4 pb-5\">
<div class=\"container\">
<div class=\"row d-flex justify-content-center pt-0\">
<div class=\"col-12 col-md-12 col-lg-12\">
<div class=\"row\">
<div class=\"col-12 col-md-4\">
<div class=\"col-12\">
<a href=\"{{ path('animals_all') }}\" class=\"btn btn-primary btn-lg mb-2 mt-2 w-100\">Poznaj wszystkie
nasze
Adopciaki</a>
</div>
<div class=\"col-12\">
<a href=\"{{ path('app_adoption_process') }}\" class=\"btn btn-primary btn-lg mb-2 mt-2 w-100\">Sprawdź, jak adoptować</a>
</div>
</div>
<div class=\"col-12 col-md-4\">
<div class=\"col-12\">
<a href=\"{{ path('app_about_us') }}\" class=\"btn btn-secondary btn-lg mb-2 mt-2 w-100\">Zobacz, jak działamy</a>
</div>
<div class=\"col-12\">
<a href=\"{{ path('app_support_us') }}\" class=\"btn btn-secondary btn-lg mb-2 mt-2 w-100\">Sprawdź, jak możesz pomóc</a>
</div>
</div>
<div class=\"col-12 col-md-4\">
<div class=\"col-12\">
<a href=\"{{ path('animals_all') }}\" class=\"btn btn-secondary btn-lg mb-2 mt-2 w-100\">Mogą do Ciebie pasować również</a>
</div>
<div class=\"col-12\">
<div class=\"similar-animals\">
<similar-animals :similar-animals=\"{{ prepSimilarAnimals | json_encode }}\"></similar-animals>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% if notes %}
<div class=\"container-fluid pt-4 pb-5\">
<div class=\"container\">
<div class=\"row d-flex justify-content-center pt-0\">
<div class=\"col-12 col-md-12 col-lg-12\">
<div class=\"adopt-news\">
<h3>Z dzienniczka <span>Adopciaka</span></h3>
<div class=\"block-wrapper\">
{% for noteItem in notes %}
<div class=\"note-item\">
<div class=\"row\">
<div class=\"col-auto\">
<p class=\"date\">{{ noteItem.publishedDate|date(\"d.m.Y\") }}</p>
</div>
<div class=\"col\">
{% if(noteItem.title | length is not same as(0)) %}
<p class=\"title\">{{ noteItem.title }}</p>
{% endif %}
<div class=\"text\">{{ noteItem.content | replace({'<p></p>': \"\"}) | raw }}</div>
{% if(noteItem.pictures | length is not same as(0)) %}
<div class=\"image\">
<img src=\"{{ asset(animalImage(noteItem.pictures[0].path)) | imagine_filter('animal_gallery_thumb') }}\" alt=\"\">
</div>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}
</section>
{% endblock %}
", "front/animal/single.html.twig", "/home/adopt/web/adopciaki.pl/public_html/templates/front/animal/single.html.twig");
}
}