<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* network/horse/detail.html.twig */
class __TwigTemplate_77be5c0f3c6b8b53124ad9f7537c3422490e7085de0c3632095d5846f4d49944 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
'hero' => [$this, 'block_hero'],
'tab_navigation' => [$this, 'block_tab_navigation'],
];
$this->deferred = $this->env->getExtension('Twig\DeferredExtension\DeferredExtension');
}
protected function doGetParent(array $context)
{
// line 1
return "page.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "network/horse/detail.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "network/horse/detail.html.twig"));
// line 11
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setDescription", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("{{name}} - {{owner}} on 3forONE.com", ["{{name}}" => twig_get_attribute($this->env, $this->source, // line 13
(isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 13, $this->source); })()), "displayName", [], "any", false, false, false, 13), "{{owner}}" => (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 14
($context["horse"] ?? null), "owner", [], "any", false, true, false, 14), "name", [], "any", true, true, false, 14) && !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["horse"] ?? null), "owner", [], "any", false, true, false, 14), "name", [], "any", false, false, false, 14)))) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["horse"] ?? null), "owner", [], "any", false, true, false, 14), "name", [], "any", false, false, false, 14)) : (""))])], "method", false, false, false, 11);
// line 1
$this->parent = $this->loadTemplate("page.html.twig", "network/horse/detail.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$this->deferred->resolve($this, $context, $blocks);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 4
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 4, $this->source); })()), "owner", [], "any", false, false, false, 4)) {
// line 5
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "prepend", [0 => ((twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 5, $this->source); })()), "displayName", [], "any", false, false, false, 5) . " - ") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 5, $this->source); })()), "owner", [], "any", false, false, false, 5), "name", [], "any", false, false, false, 5))], "method", false, false, false, 5);
// line 6
echo " ";
} else {
// line 7
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "prepend", [0 => twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 7, $this->source); })()), "displayName", [], "any", false, false, false, 7)], "method", false, false, false, 7);
// line 8
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 18
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 19
echo " <div class=\"w-full mb-16\">
";
// line 20
$this->displayBlock('hero', $context, $blocks);
// line 26
echo "
";
// line 27
$this->displayBlock('tab_navigation', $context, $blocks);
// line 32
echo " <div class=\"container gap-16 mx-auto\">
<turbo-frame class=\"container\"
id=\"tab_content\"
src=\"";
// line 35
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("horse_tab_navigation_timeline", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 35, $this->source); })()), "id", [], "any", false, false, false, 35)]), "html", null, true);
echo "\"></turbo-frame>
";
// line 103
echo " </div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function block_hero($context, array $blocks = [])
{
$this->deferred->defer($this, 'hero');
}
// line 20
public function block_hero_deferred($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "hero"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "hero"));
// line 21
echo " ";
$this->loadTemplate("network/horse/sections/horse_section_hero.html.twig", "network/horse/detail.html.twig", 21)->display(twig_to_array(["horse" => (isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 21, $this->source); })())]));
// line 22
echo " ";
// line 25
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$this->deferred->resolve($this, $context, $blocks);
}
// line 27
public function block_tab_navigation($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tab_navigation"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tab_navigation"));
// line 28
echo " ";
$this->loadTemplate("network/horse/components/tab_navigation_component.html.twig", "network/horse/detail.html.twig", 28)->display(twig_array_merge($context, ["horse" => // line 29
(isset($context["horse"]) || array_key_exists("horse", $context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.', 29, $this->source); })())]));
// line 31
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "network/horse/detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 186 => 31, 184 => 29, 182 => 28, 172 => 27, 161 => 25, 159 => 22, 156 => 21, 147 => 20, 130 => 103, 126 => 35, 121 => 32, 119 => 27, 116 => 26, 114 => 20, 111 => 19, 101 => 18, 90 => 8, 87 => 7, 84 => 6, 81 => 5, 78 => 4, 68 => 3, 56 => 1, 54 => 14, 53 => 13, 52 => 11, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'page.html.twig' %}
{% block title %}
{% if horse.owner %}
{% do pimcore_head_title().prepend(horse.displayName ~ ' - ' ~ horse.owner.name) %}
{% else %}
{% do pimcore_head_title().prepend(horse.displayName) %}
{% endif %}
{% endblock %}
{% do pimcore_head_meta().setDescription(
'{{name}} - {{owner}} on 3forONE.com'|trans({
'{{name}}': horse.displayName,
'{{owner}}': horse.owner.name ?? ''
})
) %}
{% block content %}
<div class=\"w-full mb-16\">
{% block hero deferred %}
{% include 'network/horse/sections/horse_section_hero.html.twig' with { horse: horse } only %}
{# {% include 'network/profile/components/section_navigation_component.html.twig' with {
profile: horse.owner
} %} #}
{% endblock %}
{% block tab_navigation %}
{% include 'network/horse/components/tab_navigation_component.html.twig' with {
horse: horse
} %}
{% endblock %}
<div class=\"container gap-16 mx-auto\">
<turbo-frame class=\"container\"
id=\"tab_content\"
src=\"{{ path('horse_tab_navigation_timeline', { id: horse.id }) }}\"></turbo-frame>
{# <div class=\"container grid grid-cols-12 gap-7 xl:gap-10\">
<div class=\"grid col-span-12 gap-12 xl:col-span-7\">
{% include 'network/horse/sections/horse_section_timeline.html.twig' with {
horse: horse
} only %}
{% if hasPosts %}
{% include 'network/horse/sections/horse_section_elfsight.html.twig' with {
elfsight: horse.elfsight
} %}
{% endif %}
{% include 'network/horse/sections/horse_section_auction_history.html.twig' with {
history: auctionHistory
} only %}
</div>
<aside class=\"flex flex-col col-span-12 gap-5 xl:col-span-5\">
<div class=\"sticky top-32\">
{% embed 'network/widget/widget_sidebar.html.twig' %}
{% block widgets %}
{% include 'network/horse/widgets/horse_widget_data.html.twig' with {
horse: horse
} only %}
{% include 'network/widget/widget_separator.html.twig' %}
{% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
title: 'owner',
icon: 'subprofile-owner',
profile: horse.owner
} only %}
{% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
title: 'breeder',
icon: 'subprofile-breeder',
profile: horse.breeder
} only %}
{% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
title: 'trainer',
icon: 'subprofile-trainer',
profile: horse.trainer
} only %}
{% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
title: 'racingmanager',
icon: 'subprofile-racingmanager',
profile: horse.racingmanager
} only %}
{% include 'network/widget/widget_separator.html.twig' %}
{% include 'network/horse/widgets/horse_widget_press.html.twig' with {
horse: horse
} only %}
{% endblock %}
{% endembed %}
</div>
</aside>
</div>
<div class=\"container grid gap-7 xl:gap-12\">
{% include 'network/horse/sections/horse_section_pedigree.html.twig' with {
horse: horse
} only %}
{% include 'network/horse/sections/horse_section_achievements.html.twig' with {
profile: horse.owner,
achievements: achievements
} %}
{% include 'network/horse/sections/horse_section_news.html.twig' with {
horse: horse
} only %}
{% include 'network/horse/sections/horse_section_statistics.html.twig' with {
horse: horse
} only %}
</div> #}
</div>
</div>
{% endblock %}
", "network/horse/detail.html.twig", "/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/network/horse/detail.html.twig");
}
}