var/cache/dev/twig/36/360e00545141f1ccf1c58b0c27c38677ed024a02514c8d16c088924793e02f04.php line 42

Open in your IDE?
  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. /* network/horse/detail.html.twig */
  14. class __TwigTemplate_77be5c0f3c6b8b53124ad9f7537c3422490e7085de0c3632095d5846f4d49944 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.             'content' => [$this'block_content'],
  25.             'hero' => [$this'block_hero'],
  26.             'tab_navigation' => [$this'block_tab_navigation'],
  27.         ];
  28.         $this->deferred $this->env->getExtension('Twig\DeferredExtension\DeferredExtension');
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "page.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""network/horse/detail.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""network/horse/detail.html.twig"));
  42.         // line 11
  43.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_meta')->getCallable()(), "setDescription", [=> $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("{{name}} - {{owner}} on 3forONE.com", ["{{name}}" => twig_get_attribute($this->env$this->source,         // line 13
  44. (isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'13$this->source); })()), "displayName", [], "any"falsefalsefalse13), "{{owner}}" => (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 14
  45. ($context["horse"] ?? null), "owner", [], "any"falsetruefalse14), "name", [], "any"truetruefalse14) &&  !(null === twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["horse"] ?? null), "owner", [], "any"falsetruefalse14), "name", [], "any"falsefalsefalse14)))) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["horse"] ?? null), "owner", [], "any"falsetruefalse14), "name", [], "any"falsefalsefalse14)) : (""))])], "method"falsefalsefalse11);
  46.         // line 1
  47.         $this->parent $this->loadTemplate("page.html.twig""network/horse/detail.html.twig"1);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         $this->deferred->resolve($this$context$blocks);
  50.         
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  52.         
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  54.     }
  55.     // line 3
  56.     public function block_title($context, array $blocks = [])
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  63.         // line 4
  64.         echo "  ";
  65.         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"falsefalsefalse4)) {
  66.             // line 5
  67.             echo "    ";
  68.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "prepend", [=> ((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"falsefalsefalse5) . " - ") . twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse5), "name", [], "any"falsefalsefalse5))], "method"falsefalsefalse5);
  69.             // line 6
  70.             echo "  ";
  71.         } else {
  72.             // line 7
  73.             echo "    ";
  74.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "prepend", [=> 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"falsefalsefalse7)], "method"falsefalsefalse7);
  75.             // line 8
  76.             echo "  ";
  77.         }
  78.         
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  80.         
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  82.     }
  83.     // line 18
  84.     public function block_content($context, array $blocks = [])
  85.     {
  86.         $macros $this->macros;
  87.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  91.         // line 19
  92.         echo "  <div class=\"w-full mb-16\">
  93.     ";
  94.         // line 20
  95.         $this->displayBlock('hero'$context$blocks);
  96.         // line 26
  97.         echo "
  98.     ";
  99.         // line 27
  100.         $this->displayBlock('tab_navigation'$context$blocks);
  101.         // line 32
  102.         echo "    <div class=\"container gap-16 mx-auto\">
  103.       <turbo-frame class=\"container\"
  104.         id=\"tab_content\"
  105.         src=\"";
  106.         // line 35
  107.         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"falsefalsefalse35)]), "html"nulltrue);
  108.         echo "\"></turbo-frame>
  109.       ";
  110.         // line 103
  111.         echo "    </div>
  112.   </div>
  113. ";
  114.         
  115.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  116.         
  117.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  118.     }
  119.     public function block_hero($context, array $blocks = [])
  120.     {
  121.         $this->deferred->defer($this'hero');
  122.     }
  123.     // line 20
  124.     public function block_hero_deferred($context, array $blocks = [])
  125.     {
  126.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  127.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""hero"));
  128.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  129.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""hero"));
  130.         // line 21
  131.         echo "    ";
  132.         $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); })())]));
  133.         // line 22
  134.         echo "    ";
  135.         // line 25
  136.         echo "    ";
  137.         
  138.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  139.         
  140.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  141.         $this->deferred->resolve($this$context$blocks);
  142.     }
  143.     // line 27
  144.     public function block_tab_navigation($context, array $blocks = [])
  145.     {
  146.         $macros $this->macros;
  147.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  148.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""tab_navigation"));
  149.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  150.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""tab_navigation"));
  151.         // line 28
  152.         echo "      ";
  153.         $this->loadTemplate("network/horse/components/tab_navigation_component.html.twig""network/horse/detail.html.twig"28)->display(twig_array_merge($context, ["horse" =>         // line 29
  154. (isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'29$this->source); })())]));
  155.         // line 31
  156.         echo "    ";
  157.         
  158.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  159.         
  160.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  161.     }
  162.     public function getTemplateName()
  163.     {
  164.         return "network/horse/detail.html.twig";
  165.     }
  166.     public function isTraitable()
  167.     {
  168.         return false;
  169.     }
  170.     public function getDebugInfo()
  171.     {
  172.         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,);
  173.     }
  174.     public function getSourceContext()
  175.     {
  176.         return new Source("{% extends 'page.html.twig' %}
  177. {% block title %}
  178.   {% if horse.owner %}
  179.     {% do pimcore_head_title().prepend(horse.displayName ~ ' - ' ~ horse.owner.name) %}
  180.   {% else %}
  181.     {% do pimcore_head_title().prepend(horse.displayName) %}
  182.   {% endif %}
  183. {% endblock %}
  184. {% do pimcore_head_meta().setDescription(
  185.   '{{name}} - {{owner}} on 3forONE.com'|trans({
  186.     '{{name}}': horse.displayName,
  187.     '{{owner}}': horse.owner.name ?? ''
  188.   })
  189. ) %}
  190. {% block content %}
  191.   <div class=\"w-full mb-16\">
  192.     {% block hero deferred %}
  193.     {% include 'network/horse/sections/horse_section_hero.html.twig' with { horse: horse } only %}
  194.     {# {% include 'network/profile/components/section_navigation_component.html.twig' with {
  195.       profile: horse.owner
  196.     } %} #}
  197.     {% endblock %}
  198.     {% block tab_navigation %}
  199.       {% include 'network/horse/components/tab_navigation_component.html.twig' with {
  200.         horse: horse
  201.       } %}
  202.     {% endblock %}
  203.     <div class=\"container gap-16 mx-auto\">
  204.       <turbo-frame class=\"container\"
  205.         id=\"tab_content\"
  206.         src=\"{{ path('horse_tab_navigation_timeline', { id: horse.id }) }}\"></turbo-frame>
  207.       {# <div class=\"container grid grid-cols-12 gap-7 xl:gap-10\">
  208.         <div class=\"grid col-span-12 gap-12 xl:col-span-7\">
  209.           {% include 'network/horse/sections/horse_section_timeline.html.twig' with {
  210.             horse: horse
  211.           } only %}
  212.           {% if hasPosts %}
  213.             {% include 'network/horse/sections/horse_section_elfsight.html.twig' with {
  214.               elfsight: horse.elfsight
  215.             } %}
  216.           {% endif %}
  217.           {% include 'network/horse/sections/horse_section_auction_history.html.twig' with {
  218.             history: auctionHistory
  219.           } only %}
  220.         </div>
  221.         <aside class=\"flex flex-col col-span-12 gap-5 xl:col-span-5\">
  222.           <div class=\"sticky top-32\">
  223.             {% embed 'network/widget/widget_sidebar.html.twig' %}
  224.               {% block widgets %}
  225.                 {% include 'network/horse/widgets/horse_widget_data.html.twig' with {
  226.                   horse: horse
  227.                 } only %}
  228.                 {% include 'network/widget/widget_separator.html.twig' %}
  229.                 {% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
  230.                   title: 'owner',
  231.                   icon: 'subprofile-owner',
  232.                   profile: horse.owner
  233.                 } only %}
  234.                 {% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
  235.                   title: 'breeder',
  236.                   icon: 'subprofile-breeder',
  237.                   profile: horse.breeder
  238.                 } only %}
  239.                 {% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
  240.                   title: 'trainer',
  241.                   icon: 'subprofile-trainer',
  242.                   profile: horse.trainer
  243.                 } only %}
  244.                 {% include 'network/horse/widgets/horse_widget_profile.html.twig' with {
  245.                   title: 'racingmanager',
  246.                   icon: 'subprofile-racingmanager',
  247.                   profile: horse.racingmanager
  248.                 } only %}
  249.                 {% include 'network/widget/widget_separator.html.twig' %}
  250.                 {% include 'network/horse/widgets/horse_widget_press.html.twig' with {
  251.                   horse: horse
  252.                 } only %}
  253.               {% endblock %}
  254.             {% endembed %}
  255.           </div>
  256.         </aside>
  257.       </div>
  258.       <div class=\"container grid gap-7 xl:gap-12\">
  259.         {% include 'network/horse/sections/horse_section_pedigree.html.twig' with {
  260.           horse: horse
  261.         } only %}
  262.         {% include 'network/horse/sections/horse_section_achievements.html.twig' with {
  263.           profile: horse.owner,
  264.           achievements: achievements
  265.         } %}
  266.         {% include 'network/horse/sections/horse_section_news.html.twig' with {
  267.           horse: horse
  268.         } only %}
  269.         {% include 'network/horse/sections/horse_section_statistics.html.twig' with {
  270.           horse: horse
  271.         } only %}
  272.       </div> #}
  273.     </div>
  274.   </div>
  275. {% endblock %}
  276. ""network/horse/detail.html.twig""/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/network/horse/detail.html.twig");
  277.     }
  278. }