var/cache/dev/twig/13/139e5aca06ce7d8199d04f02c69a2a20.php line 127

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* front/animal/single.html.twig */
  14. class __TwigTemplate_4f65eec05383462cda21775d2c12cbf9 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'og_title' => [$this'block_og_title'],
  25.             'description' => [$this'block_description'],
  26.             'og_description' => [$this'block_og_description'],
  27.             'content' => [$this'block_content'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "layout/base.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/animal/single.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/animal/single.html.twig"));
  42.         // line 6
  43.         $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.";
  44.         // line 8
  45.         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"falsefalsefalse8))) {
  46.             // line 9
  47.             $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"falsefalsefalse9));
  48.         } else {
  49.             // line 11
  50.             $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"falsefalsefalse11);
  51.         }
  52.         // line 15
  53.         $context["difference"] = twig_get_attribute($this->env$this->sourcetwig_date_converter($this->envtwig_date_format_filter($this->env"now""Y-m-d")), "diff", [=> twig_date_converter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse15), "Y-m-d"))], "method"falsefalsefalse15);
  54.         // line 16
  55.         $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"falsefalsefalse16) / 365);
  56.         // line 18
  57.         $context["months"] = 0;
  58.         // line 19
  59.         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"falsefalsefalse19) < 365)) {
  60.             // line 20
  61.             $context["months"] = 1;
  62.             // line 21
  63.             $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"falsefalsefalse21) / 30);
  64.         }
  65.         // line 24
  66.         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)) {
  67.             // line 25
  68.             $context["animalAge"] = 1;
  69.         } else {
  70.             // line 27
  71.             $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");
  72.         }
  73.         // line 30
  74.         if (((isset($context["months"]) || array_key_exists("months"$context) ? $context["months"] : (function () { throw new RuntimeError('Variable "months" does not exist.'30$this->source); })()) == 1)) {
  75.             // line 31
  76.             if (((isset($context["animalAge"]) || array_key_exists("animalAge"$context) ? $context["animalAge"] : (function () { throw new RuntimeError('Variable "animalAge" does not exist.'31$this->source); })()) == 1)) {
  77.                 // line 32
  78.                 $context["yearsMonths"] = "miesiąc";
  79.             } elseif ((((            // line 33
  80. (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))) {
  81.                 // line 34
  82.                 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))) {
  83.                     // line 35
  84.                     $context["yearsMonths"] = "miesięcy";
  85.                 } else {
  86.                     // line 37
  87.                     $context["yearsMonths"] = "miesiące";
  88.                 }
  89.             } else {
  90.                 // line 40
  91.                 $context["yearsMonths"] = "miesięcy";
  92.             }
  93.         } else {
  94.             // line 43
  95.             if (((isset($context["animalAge"]) || array_key_exists("animalAge"$context) ? $context["animalAge"] : (function () { throw new RuntimeError('Variable "animalAge" does not exist.'43$this->source); })()) == 1)) {
  96.                 // line 44
  97.                 $context["yearsMonths"] = "rok";
  98.             } elseif ((((            // line 45
  99. (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))) {
  100.                 // line 46
  101.                 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))) {
  102.                     // line 47
  103.                     $context["yearsMonths"] = "lat";
  104.                 } else {
  105.                     // line 49
  106.                     $context["yearsMonths"] = "lata";
  107.                 }
  108.             } else {
  109.                 // line 52
  110.                 $context["yearsMonths"] = "lat";
  111.             }
  112.         }
  113.         // line 56
  114.         $context["fullDesc"] = (isset($context["shortDesc"]) || array_key_exists("shortDesc"$context) ? $context["shortDesc"] : (function () { throw new RuntimeError('Variable "shortDesc" does not exist.'56$this->source); })());
  115.         // line 57
  116.         $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"falsefalsefalse57)) . ". 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); })()));
  117.         // line 62
  118.         if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse62), "id", [], "any"falsefalsefalse62))) {
  119.         }
  120.         // line 1
  121.         $this->parent $this->loadTemplate("layout/base.html.twig""front/animal/single.html.twig"1);
  122.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  123.         
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  125.         
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  127.     }
  128.     // line 3
  129.     public function block_title($context, array $blocks = [])
  130.     {
  131.         $macros $this->macros;
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  133.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  134.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  135.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  136.         echo "Adopciaki.pl - Profil - ";
  137.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse3), "html"nulltrue);
  138.         
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  140.         
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  142.     }
  143.     // line 4
  144.     public function block_og_title($context, array $blocks = [])
  145.     {
  146.         $macros $this->macros;
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  148.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""og_title"));
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""og_title"));
  151.         echo "Cześć jestem ";
  152.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse4), "html"nulltrue);
  153.         
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  155.         
  156.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  157.     }
  158.     // line 59
  159.     public function block_description($context, array $blocks = [])
  160.     {
  161.         $macros $this->macros;
  162.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  163.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  165.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  166.         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"nulltrue);
  167.         
  168.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  169.         
  170.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  171.     }
  172.     // line 60
  173.     public function block_og_description($context, array $blocks = [])
  174.     {
  175.         $macros $this->macros;
  176.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""og_description"));
  178.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  179.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""og_description"));
  180.         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"nulltrue);
  181.         
  182.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  183.         
  184.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  185.     }
  186.     // line 68
  187.     public function block_content($context, array $blocks = [])
  188.     {
  189.         $macros $this->macros;
  190.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  192.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  193.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  194.         // line 69
  195.         echo "    ";
  196.         $context["pollStatus"] = "default";
  197.         // line 70
  198.         echo "
  199. ";
  200.         // line 74
  201.         echo "
  202.     ";
  203.         // line 75
  204.         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"falsefalsefalse75)) {
  205.             // line 76
  206.             echo "        ";
  207.             $context["animalAdopted"] = "adopted";
  208.             // line 77
  209.             echo "    ";
  210.         } else {
  211.             // line 78
  212.             echo "        ";
  213.             $context["animalAdopted"] = "not-adopted";
  214.             // line 79
  215.             echo "    ";
  216.         }
  217.         // line 80
  218.         echo "
  219.     ";
  220.         // line 81
  221.         $context["isWatched"] = false;
  222.         // line 82
  223.         echo "    ";
  224.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "user", [], "any"falsetruefalse82), "watchedAnimals", [], "any"truetruefalse82)) {
  225.             // line 83
  226.             echo "        ";
  227.             $context['_parent'] = $context;
  228.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse83), "watchedAnimals", [], "any"falsefalsefalse83));
  229.             foreach ($context['_seq'] as $context["_key"] => $context["watchAnimal"]) {
  230.                 // line 84
  231.                 echo "            ";
  232.                 if ((twig_get_attribute($this->env$this->source$context["watchAnimal"], "id", [], "any"falsefalsefalse84) == 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"falsefalsefalse84))) {
  233.                     // line 85
  234.                     echo "                ";
  235.                     $context["isWatched"] = true;
  236.                     // line 86
  237.                     echo "            ";
  238.                 }
  239.                 // line 87
  240.                 echo "        ";
  241.             }
  242.             $_parent $context['_parent'];
  243.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['watchAnimal'], $context['_parent'], $context['loop']);
  244.             $context array_intersect_key($context$_parent) + $_parent;
  245.             // line 88
  246.             echo "    ";
  247.         }
  248.         // line 89
  249.         echo "
  250.     ";
  251.         // line 91
  252.         $context["kidAccept05"] = true;
  253.         // line 92
  254.         echo "    ";
  255.         $context["kidAccept510"] = true;
  256.         // line 93
  257.         echo "    ";
  258.         $context["kidAccept10plus"] = true;
  259.         // line 94
  260.         echo "    ";
  261.         $context["kidAcceptName"] = "Czuje się niepewnie w towarzystwie dzieci, polecamy raczej do domu bez dzieci";
  262.         // line 95
  263.         echo "
  264.     ";
  265.         // line 96
  266.         $context['_parent'] = $context;
  267.         $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->envtwig_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"falsefalsefalse96)));
  268.         foreach ($context['_seq'] as $context["_key"] => $context["acceptance"]) {
  269.             // line 97
  270.             echo "        ";
  271.             $context["kidAcceptName"] = twig_get_attribute($this->env$this->source$context["acceptance"], "name", [], "any"falsefalsefalse97);
  272.             // line 98
  273.             echo "    ";
  274.         }
  275.         $_parent $context['_parent'];
  276.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['acceptance'], $context['_parent'], $context['loop']);
  277.         $context array_intersect_key($context$_parent) + $_parent;
  278.         // line 99
  279.         echo "
  280.     ";
  281.         // line 100
  282.         $context["mainImage"] = "";
  283.         // line 101
  284.         echo "    ";
  285.         $context["gallery"] = [];
  286.         // line 102
  287.         echo "
  288.     ";
  289.         // line 103
  290.         $context['_parent'] = $context;
  291.         $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"falsefalsefalse103));
  292.         foreach ($context['_seq'] as $context["key"] => $context["picture"]) {
  293.             // line 104
  294.             echo "        ";
  295.             if (($context["key"] == 0)) {
  296.                 // line 105
  297.                 echo "            ";
  298.                 $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->sourcetwig_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"falsefalsefalse105), "path", [], "any"falsefalsefalse105))), "animal_listing_thumb");
  299.                 // line 106
  300.                 echo "        ";
  301.             } elseif (((($context["key"] > 0) && (twig_get_attribute($this->env$this->source$context["picture"], "id", [], "any"falsefalsefalse106) != 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"falsefalsefalse106))) && (twig_get_attribute($this->env$this->source$context["picture"], "id", [], "any"falsefalsefalse106) != 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"falsefalsefalse106)))) {
  302.                 // line 107
  303.                 echo "            ";
  304.                 $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); })()), [=> $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"falsefalsefalse107))), "animal_gallery_thumb")]);
  305.                 // line 108
  306.                 echo "        ";
  307.             }
  308.             // line 109
  309.             echo "    ";
  310.         }
  311.         $_parent $context['_parent'];
  312.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['picture'], $context['_parent'], $context['loop']);
  313.         $context array_intersect_key($context$_parent) + $_parent;
  314.         // line 110
  315.         echo "
  316.     ";
  317.         // line 113
  318.         echo "    ";
  319.         // line 114
  320.         echo "    ";
  321.         // line 115
  322.         echo "    ";
  323.         // line 116
  324.         echo "    ";
  325.         // line 117
  326.         echo "    ";
  327.         // line 118
  328.         echo "    ";
  329.         // line 119
  330.         echo "    ";
  331.         // line 120
  332.         echo "
  333.     ";
  334.         // line 121
  335.         $context["prepSimilarAnimals"] = [];
  336.         // line 122
  337.         echo "    ";
  338.         $context['_parent'] = $context;
  339.         $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); })()));
  340.         foreach ($context['_seq'] as $context["key"] => $context["animalItem"]) {
  341.             // line 123
  342.             echo "        ";
  343.             if ( !(twig_get_attribute($this->env$this->source$context["animalItem"], "id", [], "any"falsefalsefalse123) === 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"falsefalsefalse123))) {
  344.                 // line 124
  345.                 echo "            ";
  346.                 $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); })()), [=> ["url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("base_front_animal_single", ["id" => twig_get_attribute($this->env$this->source,                 // line 125
  347. $context["animalItem"], "id", [], "any"falsefalsefalse125), "name" => twig_get_attribute($this->env$this->source$context["animalItem"], "name", [], "any"falsefalsefalse125)]), "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->sourcetwig_get_attribute($this->env$this->source,                 // line 126
  348. $context["animalItem"], "featuredImage", [], "any"falsefalsefalse126), "path", [], "any"falsefalsefalse126))), "animal_gallery_thumb")]]);
  349.                 // line 128
  350.                 echo "        ";
  351.             }
  352.             // line 129
  353.             echo "    ";
  354.         }
  355.         $_parent $context['_parent'];
  356.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['animalItem'], $context['_parent'], $context['loop']);
  357.         $context array_intersect_key($context$_parent) + $_parent;
  358.         // line 130
  359.         echo "
  360.     ";
  361.         // line 131
  362.         $context["isLogged"] = "false";
  363.         // line 132
  364.         echo "
  365.     ";
  366.         // line 133
  367.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED")) {
  368.             // line 134
  369.             echo "        ";
  370.             $context["isLogged"] = "true";
  371.             // line 135
  372.             echo "    ";
  373.         }
  374.         // line 136
  375.         echo "
  376.     <section id=\"animal-profile\">
  377.         <div class=\"container-fluid pt-0 animal-header ";
  378.         // line 138
  379.         if (((isset($context["animalAdopted"]) || array_key_exists("animalAdopted"$context) ? $context["animalAdopted"] : (function () { throw new RuntimeError('Variable "animalAdopted" does not exist.'138$this->source); })()) == "adopted")) {
  380.             echo "animal-adopted";
  381.         }
  382.         echo " mb-4\">
  383.             <div class=\"container\">
  384.                 <div class=\"row d-flex justify-content-center pt-0 pb-5\">
  385.                     <div class=\"col-12\">
  386.                         <h1 class=\"animal-heading-title mt-4 mb-5\">Cześć, jestem <b>";
  387.         // line 142
  388.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse142), "html"nulltrue);
  389.         echo "</b> ";
  390.         if (((isset($context["animalAdopted"]) || array_key_exists("animalAdopted"$context) ? $context["animalAdopted"] : (function () { throw new RuntimeError('Variable "animalAdopted" does not exist.'142$this->source); })()) == "adopted")) {
  391.             echo "- mam dom";
  392.         }
  393.         echo "</h1>
  394.                     </div>
  395.                     <div class=\"row\">
  396.                         <div class=\"col-12 col-lg-6 mb-5 mb-lg-0\">
  397.                             <div class=\"row\">
  398.                                 <div class=\"col-12 col-sm-6\">
  399.                                     <img class=\"img-fluid\" src=\"";
  400.         // line 148
  401.         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"nulltrue);
  402.         echo "\" />
  403.                                 </div>
  404.                                 <div class=\"col-12 col-sm-6\">
  405.                                     <div class=\"row\">
  406.                                         <div class=\"col-12 pt-lg-3\">
  407.                                             <p class=\"animal-heading-info\"><b>Zwierzak:</b> ";
  408.         // line 153
  409.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse153), "name", [], "any"falsefalsefalse153), "html"nulltrue);
  410.         echo "</p>
  411.                                         </div>
  412.                                         <div class=\"col-12\">
  413.                                             <p class=\"animal-heading-info\"><b>Płeć:</b> ";
  414.         // line 156
  415.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse156), "name", [], "any"falsefalsefalse156), "html"nulltrue);
  416.         echo "</p>
  417.                                         </div>
  418.                                         <div class=\"col-12\">
  419.                                             <p class=\"animal-heading-info\"><b>Wiek:</b> ";
  420.         // line 159
  421.         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"falsefalsefalse159) == true)) {
  422.             echo "do 1 roku";
  423.         } else {
  424.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse159), "html"nulltrue);
  425.             echo " ";
  426.             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"nulltrue);
  427.         }
  428.         echo "</p>
  429.                                         </div>
  430.                                         <div class=\"col-12\">
  431.                                             <p class=\"animal-heading-info\"><b>Waga:</b> ";
  432.         // line 162
  433.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse162), "html"nulltrue);
  434.         echo " kg</p>
  435.                                         </div>
  436.                                         <div class=\"col-12\">
  437.                                             <p class=\"animal-heading-info\"><b>Rozmiar:</b> ";
  438.         // line 165
  439.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse165), "html"nulltrue);
  440.         echo "</p>
  441.                                         </div>
  442.                                         <div class=\"col-12\">
  443.                                             <p class=\"animal-heading-info\"><b>Aktywność:</b> ";
  444.         // line 168
  445.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse168), "name", [], "any"falsefalsefalse168), "html"nulltrue);
  446.         echo "</p>
  447.                                         </div>
  448.                                     </div>
  449.                                 </div>
  450.                             </div>
  451.                         </div>
  452.                         <div class=\"col-12 col-lg-6 mb-5 mb-lg-0\">
  453.                             <div class=\"row\">
  454.                                 <div class=\"col-12 col-md-6\">
  455.                                     <div class=\"row pb-4 mini-gallery\">
  456.                                         ";
  457.         // line 178
  458.         $context['_parent'] = $context;
  459.         $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"falsefalsefalse178));
  460.         foreach ($context['_seq'] as $context["key"] => $context["picture"]) {
  461.             // line 179
  462.             echo "                                            ";
  463.             if ((($context["key"] == 1) || ($context["key"] == 2))) {
  464.                 // line 180
  465.                 echo "                                                ";
  466.                 if (((twig_get_attribute($this->env$this->source$context["picture"], "id", [], "any"falsefalsefalse180) != 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"falsefalsefalse180)) && (twig_get_attribute($this->env$this->source$context["picture"], "id", [], "any"falsefalsefalse180) != 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"falsefalsefalse180)))) {
  467.                     // line 181
  468.                     echo "                                                    <div class=\"col-6\">
  469.                                                         <div class=\"image\" data-image=\"";
  470.                     // line 182
  471.                     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"falsefalsefalse182))), "animal_gallery_thumb"), "html"nulltrue);
  472.                     echo "\">
  473.                                                             <img src=\"";
  474.                     // line 183
  475.                     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"falsefalsefalse183))), "animal_gallery_thumb"), "html"nulltrue);
  476.                     echo "\" class=\"img-fluid\">
  477.                                                         </div>
  478.                                                     </div>
  479.                                                 ";
  480.                 }
  481.                 // line 187
  482.                 echo "                                            ";
  483.             }
  484.             // line 188
  485.             echo "                                        ";
  486.         }
  487.         $_parent $context['_parent'];
  488.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['picture'], $context['_parent'], $context['loop']);
  489.         $context array_intersect_key($context$_parent) + $_parent;
  490.         // line 189
  491.         echo "                                    </div>
  492.                                     <div class=\"row mini-gallery\">
  493.                                         ";
  494.         // line 191
  495.         $context['_parent'] = $context;
  496.         $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"falsefalsefalse191));
  497.         foreach ($context['_seq'] as $context["key"] => $context["picture"]) {
  498.             // line 192
  499.             echo "                                            ";
  500.             if ((($context["key"] == 3) || ($context["key"] == 4))) {
  501.                 // line 193
  502.                 echo "                                                ";
  503.                 if (((twig_get_attribute($this->env$this->source$context["picture"], "id", [], "any"falsefalsefalse193) != 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"falsefalsefalse193)) && (twig_get_attribute($this->env$this->source$context["picture"], "id", [], "any"falsefalsefalse193) != 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"falsefalsefalse193)))) {
  504.                     // line 194
  505.                     echo "                                                    <div class=\"col-6\">
  506.                                                         <div class=\"image\" data-image=\"";
  507.                     // line 195
  508.                     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"falsefalsefalse195))), "animal_gallery_thumb"), "html"nulltrue);
  509.                     echo "\">
  510.                                                             <img src=\"";
  511.                     // line 196
  512.                     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"falsefalsefalse196))), "animal_gallery_thumb"), "html"nulltrue);
  513.                     echo "\" class=\"img-fluid\">
  514.                                                         </div>
  515.                                                     </div>
  516.                                                 ";
  517.                 }
  518.                 // line 200
  519.                 echo "                                            ";
  520.             }
  521.             // line 201
  522.             echo "                                        ";
  523.         }
  524.         $_parent $context['_parent'];
  525.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['picture'], $context['_parent'], $context['loop']);
  526.         $context array_intersect_key($context$_parent) + $_parent;
  527.         // line 202
  528.         echo "                                    </div>
  529.                                 </div>
  530.                                 <div class=\"col-12 col-md-6\">
  531.                                     <div class=\"row\">
  532.                                         ";
  533.         // line 206
  534.         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"falsefalsefalse206)) {
  535.             // line 207
  536.             echo "                                            <div class=\"col-12 pt-lg-4\">
  537.                                                 <p class=\"animal-heading-info2\"><b>Czy może mieszkać z dziećmi?</b><br/>
  538.                                                     ";
  539.             // line 209
  540.             $context['_parent'] = $context;
  541.             $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"falsefalsefalse209));
  542.             foreach ($context['_seq'] as $context["_key"] => $context["kidAcceptance"]) {
  543.                 // line 210
  544.                 echo "                                                        ";
  545.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["kidAcceptance"], "name", [], "any"falsefalsefalse210), "html"nulltrue);
  546.                 echo "<br/>
  547.                                                     ";
  548.             }
  549.             $_parent $context['_parent'];
  550.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['kidAcceptance'], $context['_parent'], $context['loop']);
  551.             $context array_intersect_key($context$_parent) + $_parent;
  552.             // line 212
  553.             echo "                                                </p>
  554.                                             </div>
  555.                                         ";
  556.         }
  557.         // line 215
  558.         echo "
  559.                                         ";
  560.         // line 216
  561.         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"falsefalsefalse216))) {
  562.             // line 217
  563.             echo "                                            <div class=\"col-12\">
  564.                                                 <p class=\"animal-heading-info2\"><b>Czy może mieszkać z innymi zwierzętami?</b>
  565.                                                     ";
  566.             // line 219
  567.             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"falsefalsefalse219))) {
  568.                 // line 220
  569.                 echo "                                                        ";
  570.                 $context['_parent'] = $context;
  571.                 $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"falsefalsefalse220));
  572.                 foreach ($context['_seq'] as $context["key"] => $context["notAccepting"]) {
  573.                     // line 221
  574.                     echo "                                                            <span class=\"d-block\">";
  575.                     echo twig_escape_filter($this->env$context["notAccepting"], "html"nulltrue);
  576.                     echo "</span>
  577.                                                         ";
  578.                 }
  579.                 $_parent $context['_parent'];
  580.                 unset($context['_seq'], $context['_iterated'], $context['key'], $context['notAccepting'], $context['_parent'], $context['loop']);
  581.                 $context array_intersect_key($context$_parent) + $_parent;
  582.                 // line 223
  583.                 echo "                                                    ";
  584.             } else {
  585.                 // line 224
  586.                 echo "                                                        <br>
  587.                                                         ";
  588.                 // line 225
  589.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse225), "html"nulltrue);
  590.                 echo "
  591.                                                     ";
  592.             }
  593.             // line 227
  594.             echo "                                                </p>
  595.                                             </div>
  596.                                         ";
  597.         }
  598.         // line 230
  599.         echo "
  600.                                         ";
  601.         // line 231
  602.         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"falsefalsefalse231))) {
  603.             // line 232
  604.             echo "                                            <div class=\"col-12\">
  605.                                                 <p class=\"animal-heading-info2\"><b>Czy może zostawać sam w domu?</b><br/>
  606.                                                     ";
  607.             // line 234
  608.             $context['_parent'] = $context;
  609.             $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"falsefalsefalse234));
  610.             foreach ($context['_seq'] as $context["key"] => $context["timeCare"]) {
  611.                 // line 235
  612.                 echo "                                                        <span class=\"d-block\">";
  613.                 echo twig_escape_filter($this->env$context["timeCare"], "html"nulltrue);
  614.                 echo "</span>
  615.                                                     ";
  616.             }
  617.             $_parent $context['_parent'];
  618.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['timeCare'], $context['_parent'], $context['loop']);
  619.             $context array_intersect_key($context$_parent) + $_parent;
  620.             // line 237
  621.             echo "                                                </p>
  622.                                             </div>
  623.                                         ";
  624.         }
  625.         // line 240
  626.         echo "
  627.                                         ";
  628.         // line 241
  629.         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"falsefalsefalse241)) {
  630.             // line 242
  631.             echo "                                            <div class=\"col-12\">
  632.                                                 <p class=\"animal-heading-info2\"><b>Miejsce tymczasowego pobytu:</b> ";
  633.             // line 243
  634.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse243), "html"nulltrue);
  635.             echo "
  636.                                                 </p>
  637.                                             </div>
  638.                                         ";
  639.         }
  640.         // line 247
  641.         echo "
  642.                                         ";
  643.         // line 248
  644.         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"falsefalsefalse248)) {
  645.             // line 249
  646.             echo "                                            <div class=\"col-12\">
  647.                                                 <p class=\"animal-heading-info2\"><b>Możliwość adopcji:</b> ";
  648.             // line 250
  649.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse250), "name", [], "any"falsefalsefalse250), "html"nulltrue);
  650.             echo "</p>
  651.                                             </div>
  652.                                         ";
  653.         }
  654.         // line 253
  655.         echo "                                    </div>
  656.                                 </div>
  657.                             </div>
  658.                         </div>
  659.                     </div>
  660.                 </div>
  661.             </div>
  662.         </div>
  663.         <div class=\"container-fluid pt-0 pt-md-5\">
  664.             <div class=\"container\">
  665.                 <div class=\"row d-flex justify-content-center pt-0\">
  666.                     <div class=\"col-12\">
  667.                         <p class=\"animal-sub-info\">";
  668.         // line 265
  669.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse265)), "html"nulltrue);
  670.         echo "</p>
  671.                     </div>
  672.                     <div class=\"col-12 mt-4 mb-5\">
  673.                         <div class=\"gallery gallery-not-adopted\">
  674.                             <div class=\"row\">
  675.                                 <gallery :images=\"";
  676.         // line 270
  677.         echo twig_escape_filter($this->envjson_encode((isset($context["gallery"]) || array_key_exists("gallery"$context) ? $context["gallery"] : (function () { throw new RuntimeError('Variable "gallery" does not exist.'270$this->source); })())), "html"nulltrue);
  678.         echo "\"></gallery>
  679.                             </div>
  680.                         </div>
  681.                     </div>
  682.                 </div>
  683.             </div>
  684.         </div>
  685.         ";
  686.         // line 278
  687.         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")) {
  688.             // line 279
  689.             echo "            <div class=\"mb-md-5\">
  690.                 <animal-poll
  691.                         is-logged=\"";
  692.             // line 281
  693.             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"nulltrue);
  694.             echo "\"
  695.                         animal-path=\"";
  696.             // line 282
  697.             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"falsefalsefalse282)]), "html"nulltrue);
  698.             echo "\"
  699.                         animal-specie-type=\"";
  700.             // line 283
  701.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse283), "name", [], "any"falsefalsefalse283), "html"nulltrue);
  702.             echo "\"
  703.                         image=\"";
  704.             // line 284
  705.             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"nulltrue);
  706.             echo "\"
  707.                 ></animal-poll>
  708.             </div>
  709.         ";
  710.         }
  711.         // line 288
  712.         echo "
  713.         <div class=\"container-fluid pt-4 pb-5\">
  714.             <div class=\"container\">
  715.                 <div class=\"row d-flex justify-content-center pt-0\">
  716.                     <div class=\"col-12 col-md-12 col-lg-12\">
  717.                         <div class=\"row\">
  718.                             <div class=\"col-12 col-md-4\">
  719.                                 <div class=\"col-12\">
  720.                                     <a href=\"";
  721.         // line 296
  722.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("animals_all");
  723.         echo "\" class=\"btn btn-primary btn-lg mb-2 mt-2 w-100\">Poznaj wszystkie
  724.                                         nasze
  725.                                         Adopciaki</a>
  726.                                 </div>
  727.                                 <div class=\"col-12\">
  728.                                     <a href=\"";
  729.         // line 301
  730.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_adoption_process");
  731.         echo "\" class=\"btn btn-primary btn-lg mb-2 mt-2 w-100\">Sprawdź, jak adoptować</a>
  732.                                 </div>
  733.                             </div>
  734.                             <div class=\"col-12 col-md-4\">
  735.                                 <div class=\"col-12\">
  736.                                     <a href=\"";
  737.         // line 306
  738.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_about_us");
  739.         echo "\" class=\"btn btn-secondary btn-lg mb-2 mt-2 w-100\">Zobacz, jak działamy</a>
  740.                                 </div>
  741.                                 <div class=\"col-12\">
  742.                                     <a href=\"";
  743.         // line 309
  744.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_support_us");
  745.         echo "\" class=\"btn btn-secondary btn-lg mb-2 mt-2  w-100\">Sprawdź, jak możesz pomóc</a>
  746.                                 </div>
  747.                             </div>
  748.                             <div class=\"col-12 col-md-4\">
  749.                                 <div class=\"col-12\">
  750.                                     <a href=\"";
  751.         // line 314
  752.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("animals_all");
  753.         echo "\" class=\"btn btn-secondary btn-lg mb-2 mt-2 w-100\">Mogą do Ciebie pasować również</a>
  754.                                 </div>
  755.                                 <div class=\"col-12\">
  756.                                     <div class=\"similar-animals\">
  757.                                         <similar-animals :similar-animals=\"";
  758.         // line 318
  759.         echo twig_escape_filter($this->envjson_encode((isset($context["prepSimilarAnimals"]) || array_key_exists("prepSimilarAnimals"$context) ? $context["prepSimilarAnimals"] : (function () { throw new RuntimeError('Variable "prepSimilarAnimals" does not exist.'318$this->source); })())), "html"nulltrue);
  760.         echo "\"></similar-animals>
  761.                                     </div>
  762.                                 </div>
  763.                             </div>
  764.                         </div>
  765.                     </div>
  766.                 </div>
  767.             </div>
  768.         </div>
  769.         ";
  770.         // line 328
  771.         if ((isset($context["notes"]) || array_key_exists("notes"$context) ? $context["notes"] : (function () { throw new RuntimeError('Variable "notes" does not exist.'328$this->source); })())) {
  772.             // line 329
  773.             echo "            <div class=\"container-fluid pt-4 pb-5\">
  774.             <div class=\"container\">
  775.                 <div class=\"row d-flex justify-content-center pt-0\">
  776.                     <div class=\"col-12 col-md-12 col-lg-12\">
  777.                         <div class=\"adopt-news\">
  778.                             <h3>Z dzienniczka <span>Adopciaka</span></h3>
  779.                             <div class=\"block-wrapper\">
  780.                                 ";
  781.             // line 337
  782.             $context['_parent'] = $context;
  783.             $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); })()));
  784.             foreach ($context['_seq'] as $context["_key"] => $context["noteItem"]) {
  785.                 // line 338
  786.                 echo "                                    <div class=\"note-item\">
  787.                                         <div class=\"row\">
  788.                                             <div class=\"col-auto\">
  789.                                                 <p class=\"date\">";
  790.                 // line 341
  791.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["noteItem"], "publishedDate", [], "any"falsefalsefalse341), "d.m.Y"), "html"nulltrue);
  792.                 echo "</p>
  793.                                             </div>
  794.                                             <div class=\"col\">
  795.                                                 ";
  796.                 // line 344
  797.                 if ( !(twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["noteItem"], "title", [], "any"falsefalsefalse344)) === 0)) {
  798.                     // line 345
  799.                     echo "                                                    <p class=\"title\">";
  800.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["noteItem"], "title", [], "any"falsefalsefalse345), "html"nulltrue);
  801.                     echo "</p>
  802.                                                 ";
  803.                 }
  804.                 // line 347
  805.                 echo "                                                <div class=\"text\">";
  806.                 echo twig_replace_filter(twig_get_attribute($this->env$this->source$context["noteItem"], "content", [], "any"falsefalsefalse347), ["<p>​</p>" => ""]);
  807.                 echo "</div>
  808.                                                 ";
  809.                 // line 349
  810.                 if ( !(twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["noteItem"], "pictures", [], "any"falsefalsefalse349)) === 0)) {
  811.                     // line 350
  812.                     echo "                                                    <div class=\"image\">
  813.                                                         <img src=\"";
  814.                     // line 351
  815.                     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->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["noteItem"], "pictures", [], "any"falsefalsefalse351), 0, [], "array"falsefalsefalse351), "path", [], "any"falsefalsefalse351))), "animal_gallery_thumb"), "html"nulltrue);
  816.                     echo "\" alt=\"\">
  817.                                                     </div>
  818.                                                 ";
  819.                 }
  820.                 // line 354
  821.                 echo "                                            </div>
  822.                                         </div>
  823.                                     </div>
  824.                                 ";
  825.             }
  826.             $_parent $context['_parent'];
  827.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['noteItem'], $context['_parent'], $context['loop']);
  828.             $context array_intersect_key($context$_parent) + $_parent;
  829.             // line 358
  830.             echo "                            </div>
  831.                         </div>
  832.                     </div>
  833.                 </div>
  834.             </div>
  835.         </div>
  836.         ";
  837.         }
  838.         // line 365
  839.         echo "    </section>
  840. ";
  841.         
  842.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  843.         
  844.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  845.     }
  846.     public function getTemplateName()
  847.     {
  848.         return "front/animal/single.html.twig";
  849.     }
  850.     public function isTraitable()
  851.     {
  852.         return false;
  853.     }
  854.     public function getDebugInfo()
  855.     {
  856.         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,);
  857.     }
  858.     public function getSourceContext()
  859.     {
  860.         return new Source("{% extends 'layout/base.html.twig' %}
  861. {% block title %}Adopciaki.pl - Profil - {{ animal.name }}{% endblock %}
  862. {% block og_title %}Cześć jestem {{ animal.name }}{% endblock %}
  863. {% 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.' %}
  864. {% if(animal.shortDescription is empty) %}
  865.     {% set shortDesc = animal.description|striptags %}
  866. {% else %}
  867.     {% set shortDesc = animal.shortDescription %}
  868. {% endif %}
  869. {# Animal Age #}
  870. {% set difference = date(\"now\"|date(\"Y-m-d\")).diff(date(animal.bornDate|date('Y-m-d'))) %}
  871. {%  set diffYears = difference.days / 365 %}
  872. {% set months = 0 %}
  873. {% if difference.days < 365 %}
  874.     {% set months = 1 %}
  875.     {%  set diffYears = difference.days / 30 %}
  876. {% endif %}
  877. {% if diffYears|round(0, 'floor') == 0 %}
  878.     {% set animalAge = 1 %}
  879. {% else %}
  880.     {% set animalAge = diffYears|round(0, 'floor') %}
  881. {% endif %}
  882. {% if months == 1 %}
  883.     {% if animalAge == 1 %}
  884.         {% set yearsMonths = 'miesiąc' %}
  885.     {% elseif (animalAge % 10 ) >= 2 and (animalAge % 10) <= 4 %}
  886.         {% if (animalAge % 100) >= 10 and (animalAge % 100) <= 20 %}
  887.             {% set yearsMonths = 'miesięcy' %}
  888.         {% else %}
  889.             {% set yearsMonths = 'miesiące' %}
  890.         {% endif %}
  891.     {% else %}
  892.         {% set yearsMonths = 'miesięcy' %}
  893.     {% endif %}
  894. {% else %}
  895.     {% if animalAge == 1 %}
  896.         {% set yearsMonths = 'rok' %}
  897.     {% elseif (animalAge % 10 ) >= 2 and (animalAge % 10) <= 4 %}
  898.         {% if (animalAge % 100) >= 10 and (animalAge % 100) <= 20 %}
  899.             {% set yearsMonths = 'lat' %}
  900.         {% else %}
  901.             {% set yearsMonths = 'lata' %}
  902.         {% endif %}
  903.     {% else %}
  904.         {% set yearsMonths = 'lat' %}
  905.     {% endif %}
  906. {% endif %}
  907. {% set fullDesc = shortDesc %}
  908. {% set shortDesc = 'Cześć jestem '~ animal.name ~'. Mam około '~animalAge~' '~yearsMonths~'. '~shortDesc %}
  909. {% block description %}{{ shortDesc }}{% endblock %}
  910. {% block og_description %}{{ shortDesc }}{% endblock %}
  911. {% if animal.featuredImage.id is not empty %}
  912. {#    {% block og_image %}#}
  913. {#        {{ asset(animalImage(animal.featuredImage.path)) | imagine_filter('animal_og_image') }}#}
  914. {#    {% endblock %}#}
  915. {% endif %}
  916. {% block content %}
  917.     {% set pollStatus = 'default' %}
  918. {#    {% if poll is not empty %}#}
  919. {#        {% set pollStatus = poll %}#}
  920. {#    {% endif %}#}
  921.     {% if animal.adoptionDate %}
  922.         {% set animalAdopted = 'adopted' %}
  923.     {% else %}
  924.         {% set animalAdopted = 'not-adopted' %}
  925.     {% endif %}
  926.     {% set isWatched = false %}
  927.     {%  if app.user.watchedAnimals is defined %}
  928.         {% for watchAnimal in  app.user.watchedAnimals%}
  929.             {% if watchAnimal.id == animal.id %}
  930.                 {% set isWatched = true %}
  931.             {% endif %}
  932.         {% endfor %}
  933.     {% endif %}
  934.     {% set kidAccept05 = true %}
  935.     {% set kidAccept510 = true %}
  936.     {% set kidAccept10plus = true %}
  937.     {% set kidAcceptName = 'Czuje się niepewnie w towarzystwie dzieci, polecamy raczej do domu bez dzieci' %}
  938.     {% for acceptance in  animal.kidAcceptances | sort %}
  939.         {% set kidAcceptName = acceptance.name %}
  940.     {% endfor %}
  941.     {% set mainImage = '' %}
  942.     {% set gallery = [] %}
  943.     {% for key,picture in animal.pictures %}
  944.         {% if key == 0  %}
  945.             {% set mainImage = asset(animalImage(animal.featuredImage.path)) | imagine_filter('animal_listing_thumb') %}
  946.         {% elseif key > 0 and picture.id != animal.fbSqImageId and picture.id != animal.fbLargeImageId %}
  947.             {% set gallery = gallery|merge([asset(animalImage(picture.path)) | imagine_filter('animal_gallery_thumb')]) %}
  948.         {% endif %}
  949.     {% endfor %}
  950.     {#    {% set noteItemGallery = [] %}#}
  951.     {#    {% for key,note in notes %}#}
  952.     {#        {% if note.pictures  %}#}
  953.     {#            {% for key,picture in note.pictures %}#}
  954.     {#                {% set noteItemGallery = noteItemGallery|merge([asset(animalImage(picture.path)) | imagine_filter('animal_gallery_image')]) %}#}
  955.     {#            {% endfor %}#}
  956.     {#        {% endif %}#}
  957.     {#    {% endfor %}#}
  958.     {% set prepSimilarAnimals = [] %}
  959.     {% for key,animalItem in similarAnimals %}
  960.         {% if animalItem.id is not same as(animal.id)  %}
  961.             {% set prepSimilarAnimals = prepSimilarAnimals|merge([{
  962.                 'url' : path('base_front_animal_single', {'id':animalItem.id, 'name': animalItem.name}),
  963.                 'image' : asset(animalImage(animalItem.featuredImage.path)) | imagine_filter('animal_gallery_thumb')
  964.             }]) %}
  965.         {% endif %}
  966.     {% endfor %}
  967.     {% set isLogged = 'false' %}
  968.     {% if is_granted('IS_AUTHENTICATED') %}
  969.         {% set isLogged = 'true' %}
  970.     {% endif %}
  971.     <section id=\"animal-profile\">
  972.         <div class=\"container-fluid pt-0 animal-header {% if(animalAdopted == 'adopted') %}animal-adopted{% endif %} mb-4\">
  973.             <div class=\"container\">
  974.                 <div class=\"row d-flex justify-content-center pt-0 pb-5\">
  975.                     <div class=\"col-12\">
  976.                         <h1 class=\"animal-heading-title mt-4 mb-5\">Cześć, jestem <b>{{ animal.name }}</b> {% if(animalAdopted == 'adopted') %}- mam dom{% endif %}</h1>
  977.                     </div>
  978.                     <div class=\"row\">
  979.                         <div class=\"col-12 col-lg-6 mb-5 mb-lg-0\">
  980.                             <div class=\"row\">
  981.                                 <div class=\"col-12 col-sm-6\">
  982.                                     <img class=\"img-fluid\" src=\"{{ mainImage }}\" />
  983.                                 </div>
  984.                                 <div class=\"col-12 col-sm-6\">
  985.                                     <div class=\"row\">
  986.                                         <div class=\"col-12 pt-lg-3\">
  987.                                             <p class=\"animal-heading-info\"><b>Zwierzak:</b> {{ animal.species.name }}</p>
  988.                                         </div>
  989.                                         <div class=\"col-12\">
  990.                                             <p class=\"animal-heading-info\"><b>Płeć:</b> {{ animal.sex.name }}</p>
  991.                                         </div>
  992.                                         <div class=\"col-12\">
  993.                                             <p class=\"animal-heading-info\"><b>Wiek:</b> {% if animal.isAgeInMonths == true %}do 1 roku{% else %}{{ animal.age }} {{ yearsMonths }}{% endif %}</p>
  994.                                         </div>
  995.                                         <div class=\"col-12\">
  996.                                             <p class=\"animal-heading-info\"><b>Waga:</b> {{ animal.weight }} kg</p>
  997.                                         </div>
  998.                                         <div class=\"col-12\">
  999.                                             <p class=\"animal-heading-info\"><b>Rozmiar:</b> {{ animal.size }}</p>
  1000.                                         </div>
  1001.                                         <div class=\"col-12\">
  1002.                                             <p class=\"animal-heading-info\"><b>Aktywność:</b> {{ animal.lifeStyle.name }}</p>
  1003.                                         </div>
  1004.                                     </div>
  1005.                                 </div>
  1006.                             </div>
  1007.                         </div>
  1008.                         <div class=\"col-12 col-lg-6 mb-5 mb-lg-0\">
  1009.                             <div class=\"row\">
  1010.                                 <div class=\"col-12 col-md-6\">
  1011.                                     <div class=\"row pb-4 mini-gallery\">
  1012.                                         {% for key,picture in animal.pictures %}
  1013.                                             {% if key == 1 or key == 2 %}
  1014.                                                 {% if picture.id != animal.fbSqImageId and picture.id != animal.fbLargeImageId %}
  1015.                                                     <div class=\"col-6\">
  1016.                                                         <div class=\"image\" data-image=\"{{ asset(animalImage(picture.path)) | imagine_filter('animal_gallery_thumb') }}\">
  1017.                                                             <img src=\"{{ asset(animalImage(picture.path)) | imagine_filter('animal_gallery_thumb') }}\" class=\"img-fluid\">
  1018.                                                         </div>
  1019.                                                     </div>
  1020.                                                 {% endif %}
  1021.                                             {% endif %}
  1022.                                         {% endfor %}
  1023.                                     </div>
  1024.                                     <div class=\"row mini-gallery\">
  1025.                                         {% for key,picture in animal.pictures %}
  1026.                                             {% if key == 3 or key == 4 %}
  1027.                                                 {% if picture.id != animal.fbSqImageId and picture.id != animal.fbLargeImageId %}
  1028.                                                     <div class=\"col-6\">
  1029.                                                         <div class=\"image\" data-image=\"{{ asset(animalImage(picture.path)) | imagine_filter('animal_gallery_thumb') }}\">
  1030.                                                             <img src=\"{{ asset(animalImage(picture.path)) | imagine_filter('animal_gallery_thumb') }}\" class=\"img-fluid\">
  1031.                                                         </div>
  1032.                                                     </div>
  1033.                                                 {% endif %}
  1034.                                             {% endif %}
  1035.                                         {% endfor %}
  1036.                                     </div>
  1037.                                 </div>
  1038.                                 <div class=\"col-12 col-md-6\">
  1039.                                     <div class=\"row\">
  1040.                                         {% if animal.kidAcceptances %}
  1041.                                             <div class=\"col-12 pt-lg-4\">
  1042.                                                 <p class=\"animal-heading-info2\"><b>Czy może mieszkać z dziećmi?</b><br/>
  1043.                                                     {% for kidAcceptance in animal.kidAcceptances %}
  1044.                                                         {{ kidAcceptance.name }}<br/>
  1045.                                                     {% endfor %}
  1046.                                                 </p>
  1047.                                             </div>
  1048.                                         {% endif %}
  1049.                                         {% if animal.notAcceptings is iterable %}
  1050.                                             <div class=\"col-12\">
  1051.                                                 <p class=\"animal-heading-info2\"><b>Czy może mieszkać z innymi zwierzętami?</b>
  1052.                                                     {% if animal.notAcceptings is iterable %}
  1053.                                                         {% for key,notAccepting in animal.notAcceptings %}
  1054.                                                             <span class=\"d-block\">{{ notAccepting }}</span>
  1055.                                                         {% endfor %}
  1056.                                                     {% else %}
  1057.                                                         <br>
  1058.                                                         {{ animal.notAcceptings }}
  1059.                                                     {% endif %}
  1060.                                                 </p>
  1061.                                             </div>
  1062.                                         {% endif %}
  1063.                                         {% if animal.timeCareNeeded is iterable  %}
  1064.                                             <div class=\"col-12\">
  1065.                                                 <p class=\"animal-heading-info2\"><b>Czy może zostawać sam w domu?</b><br/>
  1066.                                                     {% for key,timeCare in animal.timeCareNeeded %}
  1067.                                                         <span class=\"d-block\">{{ timeCare }}</span>
  1068.                                                     {% endfor %}
  1069.                                                 </p>
  1070.                                             </div>
  1071.                                         {% endif %}
  1072.                                         {% if animal.city2 %}
  1073.                                             <div class=\"col-12\">
  1074.                                                 <p class=\"animal-heading-info2\"><b>Miejsce tymczasowego pobytu:</b> {{ animal.city2 }}
  1075.                                                 </p>
  1076.                                             </div>
  1077.                                         {% endif %}
  1078.                                         {% if animal.possibility %}
  1079.                                             <div class=\"col-12\">
  1080.                                                 <p class=\"animal-heading-info2\"><b>Możliwość adopcji:</b> {{ animal.possibility.name }}</p>
  1081.                                             </div>
  1082.                                         {% endif %}
  1083.                                     </div>
  1084.                                 </div>
  1085.                             </div>
  1086.                         </div>
  1087.                     </div>
  1088.                 </div>
  1089.             </div>
  1090.         </div>
  1091.         <div class=\"container-fluid pt-0 pt-md-5\">
  1092.             <div class=\"container\">
  1093.                 <div class=\"row d-flex justify-content-center pt-0\">
  1094.                     <div class=\"col-12\">
  1095.                         <p class=\"animal-sub-info\">{{ animal.description|striptags }}</p>
  1096.                     </div>
  1097.                     <div class=\"col-12 mt-4 mb-5\">
  1098.                         <div class=\"gallery gallery-not-adopted\">
  1099.                             <div class=\"row\">
  1100.                                 <gallery :images=\"{{ gallery | json_encode }}\"></gallery>
  1101.                             </div>
  1102.                         </div>
  1103.                     </div>
  1104.                 </div>
  1105.             </div>
  1106.         </div>
  1107.         {% if(animalAdopted == 'not-adopted') %}
  1108.             <div class=\"mb-md-5\">
  1109.                 <animal-poll
  1110.                         is-logged=\"{{ isLogged }}\"
  1111.                         animal-path=\"{{ path('animal_poll_step', {animal : animal.id}) }}\"
  1112.                         animal-specie-type=\"{{ animal.species.name }}\"
  1113.                         image=\"{{ mainImage }}\"
  1114.                 ></animal-poll>
  1115.             </div>
  1116.         {% endif %}
  1117.         <div class=\"container-fluid pt-4 pb-5\">
  1118.             <div class=\"container\">
  1119.                 <div class=\"row d-flex justify-content-center pt-0\">
  1120.                     <div class=\"col-12 col-md-12 col-lg-12\">
  1121.                         <div class=\"row\">
  1122.                             <div class=\"col-12 col-md-4\">
  1123.                                 <div class=\"col-12\">
  1124.                                     <a href=\"{{ path('animals_all') }}\" class=\"btn btn-primary btn-lg mb-2 mt-2 w-100\">Poznaj wszystkie
  1125.                                         nasze
  1126.                                         Adopciaki</a>
  1127.                                 </div>
  1128.                                 <div class=\"col-12\">
  1129.                                     <a href=\"{{ path('app_adoption_process') }}\" class=\"btn btn-primary btn-lg mb-2 mt-2 w-100\">Sprawdź, jak adoptować</a>
  1130.                                 </div>
  1131.                             </div>
  1132.                             <div class=\"col-12 col-md-4\">
  1133.                                 <div class=\"col-12\">
  1134.                                     <a href=\"{{ path('app_about_us') }}\" class=\"btn btn-secondary btn-lg mb-2 mt-2 w-100\">Zobacz, jak działamy</a>
  1135.                                 </div>
  1136.                                 <div class=\"col-12\">
  1137.                                     <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>
  1138.                                 </div>
  1139.                             </div>
  1140.                             <div class=\"col-12 col-md-4\">
  1141.                                 <div class=\"col-12\">
  1142.                                     <a href=\"{{ path('animals_all') }}\" class=\"btn btn-secondary btn-lg mb-2 mt-2 w-100\">Mogą do Ciebie pasować również</a>
  1143.                                 </div>
  1144.                                 <div class=\"col-12\">
  1145.                                     <div class=\"similar-animals\">
  1146.                                         <similar-animals :similar-animals=\"{{ prepSimilarAnimals | json_encode }}\"></similar-animals>
  1147.                                     </div>
  1148.                                 </div>
  1149.                             </div>
  1150.                         </div>
  1151.                     </div>
  1152.                 </div>
  1153.             </div>
  1154.         </div>
  1155.         {% if notes %}
  1156.             <div class=\"container-fluid pt-4 pb-5\">
  1157.             <div class=\"container\">
  1158.                 <div class=\"row d-flex justify-content-center pt-0\">
  1159.                     <div class=\"col-12 col-md-12 col-lg-12\">
  1160.                         <div class=\"adopt-news\">
  1161.                             <h3>Z dzienniczka <span>Adopciaka</span></h3>
  1162.                             <div class=\"block-wrapper\">
  1163.                                 {% for noteItem in notes %}
  1164.                                     <div class=\"note-item\">
  1165.                                         <div class=\"row\">
  1166.                                             <div class=\"col-auto\">
  1167.                                                 <p class=\"date\">{{ noteItem.publishedDate|date(\"d.m.Y\") }}</p>
  1168.                                             </div>
  1169.                                             <div class=\"col\">
  1170.                                                 {% if(noteItem.title | length is not same as(0)) %}
  1171.                                                     <p class=\"title\">{{ noteItem.title }}</p>
  1172.                                                 {% endif %}
  1173.                                                 <div class=\"text\">{{ noteItem.content | replace({'<p>​</p>': \"\"}) | raw  }}</div>
  1174.                                                 {% if(noteItem.pictures | length is not same as(0)) %}
  1175.                                                     <div class=\"image\">
  1176.                                                         <img src=\"{{ asset(animalImage(noteItem.pictures[0].path)) | imagine_filter('animal_gallery_thumb') }}\" alt=\"\">
  1177.                                                     </div>
  1178.                                                 {% endif %}
  1179.                                             </div>
  1180.                                         </div>
  1181.                                     </div>
  1182.                                 {% endfor %}
  1183.                             </div>
  1184.                         </div>
  1185.                     </div>
  1186.                 </div>
  1187.             </div>
  1188.         </div>
  1189.         {% endif %}
  1190.     </section>
  1191. {% endblock %}
  1192. ""front/animal/single.html.twig""/home/adopt/web/adopciaki.pl/public_html/templates/front/animal/single.html.twig");
  1193.     }
  1194. }