var/cache/dev/twig/96/9607c7fd9abee6c1bcf3d47aa666e9f8e45ffdb78b838f8ec63aa6df70fb6e17.php line 66

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/components/tab_navigation_component.html.twig */
  14. class __TwigTemplate_f264c2551cc5966b9f97ada0bc2469dc77112c7c59f9ce618756a1c4992424b8 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""network/horse/components/tab_navigation_component.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""network/horse/components/tab_navigation_component.html.twig"));
  33.         // line 1
  34.         $this->extensions['App\Core\Twig\Extension\TabNavigationExtension']->addTab(["name" => "timeline""action" => "timeline"]);
  35.         // line 2
  36.         $this->extensions['App\Core\Twig\Extension\TabNavigationExtension']->addTab(["name" => "auction-history""action" => "auction_history"]);
  37.         // line 3
  38.         $this->extensions['App\Core\Twig\Extension\TabNavigationExtension']->addTab(["name" => "pedigree""action" => "pedigree"]);
  39.         // line 4
  40.         $this->extensions['App\Core\Twig\Extension\TabNavigationExtension']->addTab(["name" => "achievements""action" => "achievements"]);
  41.         // line 5
  42.         $this->extensions['App\Core\Twig\Extension\TabNavigationExtension']->addTab(["name" => "news""action" => "news"]);
  43.         // line 7
  44.         echo "
  45. ";
  46.         // line 12
  47.         echo "
  48. ";
  49.         // line 14
  50.         echo "
  51. ";
  52.         // line 75
  53.         echo "
  54. <section id=\"tab_navigation\"
  55.   class=\"";
  56.         // line 77
  57.         echo (((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.'77$this->source); })()), "owner", [], "any"falsefalsefalse77) && 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.'77$this->source); })()), "owner", [], "any"falsefalsefalse77), "color", [], "any"falsefalsefalse77))) ? ("") : ("bg-primary-500"));
  58.         echo " mb-4\"
  59.   style=\"background-color: ";
  60.         // line 78
  61.         (((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.'78$this->source); })()), "owner", [], "any"falsefalsefalse78) && 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.'78$this->source); })()), "owner", [], "any"falsefalsefalse78), "color", [], "any"falsefalsefalse78))) ? (print (twig_escape_filter($this->envtwig_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.'78$this->source); })()), "owner", [], "any"falsefalsefalse78), "color", [], "any"falsefalsefalse78), "html"nulltrue))) : (print ("")));
  62.         echo ";\">
  63.   <div class=\" sm:flex-wrap sm:container sm:flex hidden w-full gap-4 p-4 ";
  64.         // line 79
  65.         echo (((twig_get_attribute($this->env$this->source,         // line 80
  66. (isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'80$this->source); })()), "owner", [], "any"falsefalsefalse80) && 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.'80$this->source); })()), "owner", [], "any"falsefalsefalse80), "color", [], "any"falsefalsefalse80))) ? ("") : ("bg-primary-500"));
  67.         // line 83
  68.         echo "\"
  69.     style=\"background-color: ";
  70.         // line 84
  71.         (((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.'84$this->source); })()), "owner", [], "any"falsefalsefalse84) && 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.'84$this->source); })()), "owner", [], "any"falsefalsefalse84), "color", [], "any"falsefalsefalse84))) ? (print (twig_escape_filter($this->envtwig_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.'84$this->source); })()), "owner", [], "any"falsefalsefalse84), "color", [], "any"falsefalsefalse84), "html"nulltrue))) : (print ("")));
  72.         echo ";\"
  73.     data-controller=\"tab-navigation\">
  74.     ";
  75.         // line 86
  76.         $context['_parent'] = $context;
  77.         $context['_seq'] = twig_ensure_traversable($this->extensions['App\Core\Twig\Extension\TabNavigationExtension']->getTabs());
  78.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  79.             // line 87
  80.             echo "      ";
  81.             $context["highlighted"] = null;
  82.             // line 88
  83.             echo "
  84.       ";
  85.             // line 89
  86.             if (array_key_exists("highlightedTab"$context)) {
  87.                 // line 90
  88.                 echo "        ";
  89.                 $context["highlighted"] = ((isset($context["highlightedTab"]) || array_key_exists("highlightedTab"$context) ? $context["highlightedTab"] : (function () { throw new RuntimeError('Variable "highlightedTab" does not exist.'90$this->source); })()) == $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(("horse_tab_navigation_" twig_get_attribute($this->env$this->source,                 // line 91
  90. $context["item"], "action", [], "any"falsefalsefalse91)), ["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.'91$this->source); })()), "id", [], "any"falsefalsefalse91)]));
  91.                 // line 93
  92.                 echo "      ";
  93.             }
  94.             // line 94
  95.             echo "
  96.       <turbo-frame class=\"";
  97.             // line 95
  98.             echo (( !(isset($context["highlighted"]) || array_key_exists("highlighted"$context) ? $context["highlighted"] : (function () { throw new RuntimeError('Variable "highlighted" does not exist.'95$this->source); })())) ? ("bg-white") : (""));
  99.             echo "\" target=\"tab_content\">
  100.         <a id=\"";
  101.             // line 96
  102.             echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse96) . "-") . 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.'96$this->source); })()), "id", [], "any"falsefalsefalse96)), "html"nulltrue);
  103.             echo "\"
  104.           href=\"";
  105.             // line 97
  106.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(("horse_tab_navigation_" twig_get_attribute($this->env$this->source$context["item"], "action", [], "any"falsefalsefalse97)), ["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.'97$this->source); })()), "id", [], "any"falsefalsefalse97)]), "html"nulltrue);
  107.             echo "\"
  108.           class=\"";
  109.             // line 98
  110.             echo (((isset($context["highlighted"]) || array_key_exists("highlighted"$context) ? $context["highlighted"] : (function () { throw new RuntimeError('Variable "highlighted" does not exist.'98$this->source); })())) ? ("btn-sm btn btn-white active") : ("btn-sm btn btn-neutral"));
  111.             echo " \"
  112.           style=\"";
  113.             // line 105
  114.             ((( !            // line 100
  115. (isset($context["highlighted"]) || array_key_exists("highlighted"$context) ? $context["highlighted"] : (function () { throw new RuntimeError('Variable "highlighted" does not exist.'100$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.'100$this->source); })()), "owner", [], "any"falsefalsefalse100))) ? (print (twig_escape_filter($this->env, (((((("color:white;  background-color: rgba(" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 101
  116. (isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'101$this->source); })()), "owner", [], "any"falsefalsefalse101), "color", [], "any"falsefalsefalse101), "r", [], "any"falsefalsefalse101)) . ",") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 102
  117. (isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'102$this->source); })()), "owner", [], "any"falsefalsefalse102), "color", [], "any"falsefalsefalse102), "g", [], "any"falsefalsefalse102)) . ",") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 104
  118. (isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'104$this->source); })()), "owner", [], "any"falsefalsefalse104), "color", [], "any"falsefalsefalse104), "b", [], "any"falsefalsefalse104)) . ",0.6"), "html"nulltrue))) : (print ("")));
  119.             // line 106
  120.             echo "\">
  121.           ";
  122.             // line 107
  123.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse107)), "html"nulltrue);
  124.             echo "
  125.         </a>
  126.       </turbo-frame>
  127.     ";
  128.         }
  129.         $_parent $context['_parent'];
  130.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  131.         $context array_intersect_key($context$_parent) + $_parent;
  132.         // line 111
  133.         echo "  </div>
  134.   <div>
  135.     <div class=\"block sm:hidden sticky top-20 w-screen max-w-full z-1000  ";
  136.         // line 114
  137.         echo (((twig_get_attribute($this->env$this->source,         // line 115
  138. (isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'115$this->source); })()), "owner", [], "any"falsefalsefalse115) && 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.'115$this->source); })()), "owner", [], "any"falsefalsefalse115), "color", [], "any"falsefalsefalse115))) ? ("") : ("bg-primary-500"));
  139.         // line 118
  140.         echo " overflow-hidden shadow-md\"
  141.       style=\"background-color: ";
  142.         // line 119
  143.         (((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.'119$this->source); })()), "owner", [], "any"falsefalsefalse119) && 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.'119$this->source); })()), "owner", [], "any"falsefalsefalse119), "color", [], "any"falsefalsefalse119))) ? (print (twig_escape_filter($this->envtwig_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.'119$this->source); })()), "owner", [], "any"falsefalsefalse119), "color", [], "any"falsefalsefalse119), "html"nulltrue))) : (print ("")));
  144.         echo ";\">
  145.       <div data-controller=\"tab-navigation\"
  146.         data-section-navigation-active-class=\"text-white bg-black\"
  147.         data-section-navigation-inactive-class=\"text-black bg-neutral-200 \"
  148.         id=\"profile-scroll-bar\"
  149.         class=\"relative inline-flex items-center w-screen gap-4 p-3 mx-1 overflow-scroll sm:my-3 snap-x snap-mandatory sm:flex\">
  150.         ";
  151.         // line 125
  152.         $context['_parent'] = $context;
  153.         $context['_seq'] = twig_ensure_traversable($this->extensions['App\Core\Twig\Extension\TabNavigationExtension']->getTabs());
  154.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  155.             // line 126
  156.             echo "          ";
  157.             $context["highlighted"] = null;
  158.             // line 127
  159.             echo "          ";
  160.             if (array_key_exists("highlightedTab"$context)) {
  161.                 // line 128
  162.                 echo "            ";
  163.                 $context["highlighted"] = ((isset($context["highlightedTab"]) || array_key_exists("highlightedTab"$context) ? $context["highlightedTab"] : (function () { throw new RuntimeError('Variable "highlightedTab" does not exist.'128$this->source); })()) == $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(("horse_tab_navigation_" twig_get_attribute($this->env$this->source,                 // line 129
  164. $context["item"], "action", [], "any"falsefalsefalse129)), ["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.'129$this->source); })()), "id", [], "any"falsefalsefalse129)]));
  165.                 // line 131
  166.                 echo "          ";
  167.             }
  168.             // line 132
  169.             echo "
  170.           <turbo-frame class=\" w-fit min-w-fit ";
  171.             // line 133
  172.             echo (( !(isset($context["highlighted"]) || array_key_exists("highlighted"$context) ? $context["highlighted"] : (function () { throw new RuntimeError('Variable "highlighted" does not exist.'133$this->source); })())) ? ("bg-white") : (""));
  173.             echo "\"
  174.             target=\"tab_content\">
  175.             <a href=\"";
  176.             // line 135
  177.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(("horse_tab_navigation_" twig_get_attribute($this->env$this->source$context["item"], "action", [], "any"falsefalsefalse135)), ["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.'135$this->source); })()), "id", [], "any"falsefalsefalse135)]), "html"nulltrue);
  178.             echo "\"
  179.               class=\"flex-none p-3 text-sm font-medium tracking-widest ";
  180.             // line 136
  181.             echo ((            // line 137
  182. (isset($context["highlighted"]) || array_key_exists("highlighted"$context) ? $context["highlighted"] : (function () { throw new RuntimeError('Variable "highlighted" does not exist.'137$this->source); })())) ? ("btn-sm btn btn-white active") : ("btn-sm btn btn-neutral inactive"));
  183.             // line 140
  184.             echo " uppercase \"
  185.               style=\"";
  186.             // line 147
  187.             ((( !            // line 142
  188. (isset($context["highlighted"]) || array_key_exists("highlighted"$context) ? $context["highlighted"] : (function () { throw new RuntimeError('Variable "highlighted" does not exist.'142$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.'142$this->source); })()), "owner", [], "any"falsefalsefalse142))) ? (print (twig_escape_filter($this->env, (((((("color:white;  background-color: rgba(" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 143
  189. (isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'143$this->source); })()), "owner", [], "any"falsefalsefalse143), "color", [], "any"falsefalsefalse143), "r", [], "any"falsefalsefalse143)) . ",") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 144
  190. (isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'144$this->source); })()), "owner", [], "any"falsefalsefalse144), "color", [], "any"falsefalsefalse144), "g", [], "any"falsefalsefalse144)) . ",") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 146
  191. (isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'146$this->source); })()), "owner", [], "any"falsefalsefalse146), "color", [], "any"falsefalsefalse146), "b", [], "any"falsefalsefalse146)) . ",0.6"), "html"nulltrue))) : (print ("")));
  192.             // line 148
  193.             echo "\">
  194.               ";
  195.             // line 149
  196.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse149)), "html"nulltrue);
  197.             echo "
  198.             </a>
  199.           </turbo-frame>
  200.         ";
  201.         }
  202.         $_parent $context['_parent'];
  203.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  204.         $context array_intersect_key($context$_parent) + $_parent;
  205.         // line 153
  206.         echo "      </div>
  207.     </div>
  208.   </div>
  209. </section>
  210. ";
  211.         
  212.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  213.         
  214.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  215.     }
  216.     public function getTemplateName()
  217.     {
  218.         return "network/horse/components/tab_navigation_component.html.twig";
  219.     }
  220.     public function isTraitable()
  221.     {
  222.         return false;
  223.     }
  224.     public function getDebugInfo()
  225.     {
  226.         return array (  216 => 153,  206 => 149,  203 => 148,  201 => 146,  200 => 144,  199 => 143,  198 => 142,  197 => 147,  194 => 140,  192 => 137,  191 => 136,  187 => 135,  182 => 133,  179 => 132,  176 => 131,  174 => 129,  172 => 128,  169 => 127,  166 => 126,  162 => 125,  153 => 119,  150 => 118,  148 => 115,  147 => 114,  142 => 111,  132 => 107,  129 => 106,  127 => 104,  126 => 102,  125 => 101,  124 => 100,  123 => 105,  119 => 98,  115 => 97,  111 => 96,  107 => 95,  104 => 94,  101 => 93,  99 => 91,  97 => 90,  95 => 89,  92 => 88,  89 => 87,  85 => 86,  80 => 84,  77 => 83,  75 => 80,  74 => 79,  70 => 78,  66 => 77,  62 => 75,  59 => 14,  56 => 12,  53 => 7,  51 => 5,  49 => 4,  47 => 3,  45 => 2,  43 => 1,);
  227.     }
  228.     public function getSourceContext()
  229.     {
  230.         return new Source("{% do tab_navigation_add({ name: 'timeline', action: 'timeline' }) %}
  231. {% do tab_navigation_add({ name: 'auction-history', action: 'auction_history' }) %}
  232. {% do tab_navigation_add({ name: 'pedigree', action: 'pedigree' }) %}
  233. {% do tab_navigation_add({ name: 'achievements', action: 'achievements' }) %}
  234. {% do tab_navigation_add({ name: 'news', action: 'news' }) %}
  235. {# {% do tab_navigation_add({ name: 'horse-statistics', action: 'horse_statistics' }) %} #}
  236. {# {% do tab_navigation_add({ name: 'racelist', action: 'racelist' }) %}
  237. {% do tab_navigation_add({ name: 'horses', action: 'horses' }) %}
  238. {% do tab_navigation_add({ name: 'achievements', action: 'achievements' }) %}
  239. {% do tab_navigation_add({ name: 'attendees', action: 'attendees' }) %} #}
  240. {# {% do tab_navigation_add({ name: 'news', action: 'news' }) %} #}
  241. {# <section id=\"tab_navigation\" class=\"sm:container\">
  242.   <div class=\"flex-wrap hidden w-full gap-4 my-4 sm:flex\">
  243.     {% for item in tab_navigation_get() %}
  244.       {% set highlighted = null %}
  245.       {% if highlightedTab is defined %}
  246.         {% set highlighted = highlightedTab
  247.           == path('horse_tab_navigation_' ~ item.action, { id: horse.id })
  248.         %}
  249.       {% endif %}
  250.       <turbo-frame target=\"tab_content\">
  251.         <a id=\"{{ item.name ~ '-' ~ horse.id }}\"
  252.           href=\"{{ path('horse_tab_navigation_' ~ item.action, { id: horse.id }) }}\"
  253.           class=\"{{ highlighted ? 'btn-sm btn btn-primary' : 'btn-sm btn btn-neutral' }}\"
  254.           style=\"{{
  255.           highlighted and horse.owner and horse.owner.color
  256.             ? 'color:white; background-color:' ~ horse.owner.color
  257.           }}\">
  258.           {{ item.name|trans }}
  259.         </a>
  260.       </turbo-frame>
  261.     {% endfor %}
  262.   </div>
  263.   <div>
  264.     <div class=\"block sm:hidden sticky top-20 w-screen max-w-full z-1000 {{
  265.       horse.owner and horse.owner.color
  266.         ? ''
  267.         : 'bg-primary-500'
  268.       }} overflow-hidden shadow-md\"
  269.       style=\"background-color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }};\">
  270.       <div data-controller=\"tab-navigation\"
  271.         data-section-navigation-active-class=\"text-white bg-black\"
  272.         data-section-navigation-inactive-class=\"text-black bg-neutral-200 \"
  273.         id=\"profile-scroll-bar\"
  274.         class=\"relative inline-flex items-center w-screen gap-4 p-3 overflow-scroll sm:my-3 snap-x snap-mandatory sm:flex\">
  275.         {% for item in tab_navigation_get() %}
  276.           {% set highlighted = null %}
  277.           {% if highlightedTab is defined %}
  278.             {% set highlighted = highlightedTab
  279.               == path('horse_tab_navigation_' ~ item.action, { id: horse.id })
  280.             %}
  281.           {% endif %}
  282.           <turbo-frame class=\"py-2 w-fit min-w-fit\" target=\"tab_content\">
  283.             <a href=\"{{ path('horse_tab_navigation_' ~ item.action, { id: horse.id }) }}\"
  284.               class=\"flex-none p-3 text-sm font-medium tracking-widest {{
  285.               highlighted
  286.                 ? 'text-white bg-black active'
  287.                 : 'text-black bg-neutral-200 inactive'
  288.               }} uppercase  snap-center snap-always\">
  289.               {{ item.name|trans }}
  290.             </a>
  291.           </turbo-frame>
  292.         {% endfor %}
  293.       </div>
  294.     </div>
  295.   </div>
  296. </section> #}
  297. <section id=\"tab_navigation\"
  298.   class=\"{{ horse.owner and horse.owner.color ? '' : 'bg-primary-500' }} mb-4\"
  299.   style=\"background-color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }};\">
  300.   <div class=\" sm:flex-wrap sm:container sm:flex hidden w-full gap-4 p-4 {{
  301.     horse.owner and horse.owner.color
  302.       ? ''
  303.       : 'bg-primary-500'
  304.     }}\"
  305.     style=\"background-color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }};\"
  306.     data-controller=\"tab-navigation\">
  307.     {% for item in tab_navigation_get() %}
  308.       {% set highlighted = null %}
  309.       {% if highlightedTab is defined %}
  310.         {% set highlighted = highlightedTab
  311.           == path('horse_tab_navigation_' ~ item.action, { id: horse.id })
  312.         %}
  313.       {% endif %}
  314.       <turbo-frame class=\"{{ not highlighted ? 'bg-white' }}\" target=\"tab_content\">
  315.         <a id=\"{{ item.name ~ '-' ~ horse.id }}\"
  316.           href=\"{{ path('horse_tab_navigation_' ~ item.action, { id: horse.id }) }}\"
  317.           class=\"{{ highlighted ? 'btn-sm btn btn-white active' : 'btn-sm btn btn-neutral' }} \"
  318.           style=\"{{
  319.           not highlighted and horse.owner
  320.             ? 'color:white;  background-color: rgba(' ~ horse.owner.color.r ~ ','
  321.               ~ horse.owner.color.g
  322.               ~ ','
  323.               ~ horse.owner.color.b
  324.               ~ ',0.6'
  325.           }}\">
  326.           {{ item.name|trans }}
  327.         </a>
  328.       </turbo-frame>
  329.     {% endfor %}
  330.   </div>
  331.   <div>
  332.     <div class=\"block sm:hidden sticky top-20 w-screen max-w-full z-1000  {{
  333.       horse.owner and horse.owner.color
  334.         ? ''
  335.         : 'bg-primary-500'
  336.       }} overflow-hidden shadow-md\"
  337.       style=\"background-color: {{ horse.owner and horse.owner.color ? horse.owner.color : '' }};\">
  338.       <div data-controller=\"tab-navigation\"
  339.         data-section-navigation-active-class=\"text-white bg-black\"
  340.         data-section-navigation-inactive-class=\"text-black bg-neutral-200 \"
  341.         id=\"profile-scroll-bar\"
  342.         class=\"relative inline-flex items-center w-screen gap-4 p-3 mx-1 overflow-scroll sm:my-3 snap-x snap-mandatory sm:flex\">
  343.         {% for item in tab_navigation_get() %}
  344.           {% set highlighted = null %}
  345.           {% if highlightedTab is defined %}
  346.             {% set highlighted = highlightedTab
  347.               == path('horse_tab_navigation_' ~ item.action, { id: horse.id })
  348.             %}
  349.           {% endif %}
  350.           <turbo-frame class=\" w-fit min-w-fit {{ not highlighted ? 'bg-white' }}\"
  351.             target=\"tab_content\">
  352.             <a href=\"{{ path('horse_tab_navigation_' ~ item.action, { id: horse.id }) }}\"
  353.               class=\"flex-none p-3 text-sm font-medium tracking-widest {{
  354.               highlighted
  355.                 ? 'btn-sm btn btn-white active'
  356.                 : 'btn-sm btn btn-neutral inactive'
  357.               }} uppercase \"
  358.               style=\"{{
  359.               not highlighted and horse.owner
  360.                 ? 'color:white;  background-color: rgba(' ~ horse.owner.color.r ~ ','
  361.                   ~ horse.owner.color.g
  362.                   ~ ','
  363.                   ~ horse.owner.color.b
  364.                   ~ ',0.6'
  365.               }}\">
  366.               {{ item.name|trans }}
  367.             </a>
  368.           </turbo-frame>
  369.         {% endfor %}
  370.       </div>
  371.     </div>
  372.   </div>
  373. </section>
  374. ""network/horse/components/tab_navigation_component.html.twig""/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/network/horse/components/tab_navigation_component.html.twig");
  375.     }
  376. }