var/cache/dev/twig/4c/4c4c8fdb467d4f808a25e811720f6da27a38f60290acb3e21af6a0ef378f9394.php line 116

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/sections/horse_section_news.html.twig */
  14. class __TwigTemplate_9d03cf6259c2e7fddc15cf5f84024c1b044d35f94f363d446c24e0f39c49ef43 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/sections/horse_section_news.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/sections/horse_section_news.html.twig"));
  33.         // line 2
  34.         echo "<turbo-frame id=\"tab_content\">
  35.   ";
  36.         // line 3
  37.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'3$this->source); })()), "user", [], "any"falsefalsefalse3)) {
  38.             // line 4
  39.             echo "    ";
  40.             $this->extensions['App\Core\Twig\Extension\SectionNavigationExtension']->addSection(["name" => "press-releases""anchor" => "press-releases"]);
  41.             // line 5
  42.             echo "
  43.     <section class=\"p-4 bg-white md:p-8 xl:p-16\" id=\"press-releases\">
  44.       ";
  45.             // line 8
  46.             echo "      <h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
  47.         ";
  48.             // line 9
  49.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("news"), "html"nulltrue);
  50.             echo "
  51.       </h2>
  52.       <div data-turbo=\"false\"
  53.         ";
  54.             // line 12
  55.             echo $this->extensions['Symfony\UX\React\Twig\ReactComponentExtension']->renderReactComponent($this->env"NewsList", ["objectId" => twig_get_attribute($this->env$this->source,             // line 15
  56. (isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'15$this->source); })()), "id", [], "any"falsefalsefalse15), "objectType" => 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.'15$this->source); })()), "classId", [], "any"falsefalsefalse15), "limit" => 3"locale" => 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.'15$this->source); })()), "request", [], "any"falsefalsefalse15), "locale", [], "any"falsefalsefalse15)]);
  57.             // line 17
  58.             echo "></div>
  59.       ";
  60.             // line 25
  61.             echo "      ";
  62.             // line 26
  63.             echo "    </section>
  64.   ";
  65.         } elseif ( !twig_get_attribute($this->env$this->source,         // line 27
  66. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'27$this->source); })()), "user", [], "any"falsefalsefalse27)) {
  67.             // line 28
  68.             echo "    ";
  69.             $this->extensions['App\Core\Twig\Extension\SectionNavigationExtension']->addSection(["name" => "press-releases""anchor" => "press-releases"]);
  70.             // line 29
  71.             echo "    <section id=\"press-releases\" class=\"container p-4 bg-white md:p-8 xl:p-16\">
  72.       <h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
  73.         ";
  74.             // line 31
  75.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("news"), "html"nulltrue);
  76.             echo "
  77.       </h2>
  78.       ";
  79.             // line 33
  80.             $this->loadTemplate("network/profile/components/login_required_hint.html.twig""network/horse/sections/horse_section_news.html.twig"33)->display($context);
  81.             // line 34
  82.             echo "    </section>
  83.   ";
  84.         } else {
  85.             // line 36
  86.             echo "    <section id=\"press-releases\" class=\"container p-4 bg-white md:p-8 xl:p-16\">
  87.       <h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
  88.         ";
  89.             // line 38
  90.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("news"), "html"nulltrue);
  91.             echo "
  92.       </h2>
  93.       ";
  94.             // line 40
  95.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no.horse.news.available"), "html"nulltrue);
  96.             echo "
  97.     </section>
  98.   ";
  99.         }
  100.         // line 43
  101.         echo "  <turbo-stream action=\"replace\" target=\"tab_navigation\">
  102.     <template>
  103.       ";
  104.         // line 45
  105.         $this->loadTemplate("network/horse/components/tab_navigation_component.html.twig""network/horse/sections/horse_section_news.html.twig"45)->display(twig_array_merge($context, ["horse" =>         // line 46
  106. (isset($context["horse"]) || array_key_exists("horse"$context) ? $context["horse"] : (function () { throw new RuntimeError('Variable "horse" does not exist.'46$this->source); })()), "highlightedTab" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 47
  107. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'47$this->source); })()), "request", [], "any"falsefalsefalse47), "pathInfo", [], "any"falsefalsefalse47)]));
  108.         // line 49
  109.         echo "    </template>
  110.   </turbo-stream>
  111. </turbo-frame>
  112. ";
  113.         
  114.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  115.         
  116.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  117.     }
  118.     public function getTemplateName()
  119.     {
  120.         return "network/horse/sections/horse_section_news.html.twig";
  121.     }
  122.     public function isTraitable()
  123.     {
  124.         return false;
  125.     }
  126.     public function getDebugInfo()
  127.     {
  128.         return array (  118 => 49,  116 => 47,  115 => 46,  114 => 45,  110 => 43,  104 => 40,  99 => 38,  95 => 36,  91 => 34,  89 => 33,  84 => 31,  80 => 29,  77 => 28,  75 => 27,  72 => 26,  70 => 25,  67 => 17,  65 => 15,  64 => 12,  58 => 9,  55 => 8,  51 => 5,  48 => 4,  46 => 3,  43 => 2,);
  129.     }
  130.     public function getSourceContext()
  131.     {
  132.         return new Source("{# {% set news = auction.auctionhouse.news ? auction.auctionhouse.news.children : null %} #}
  133. <turbo-frame id=\"tab_content\">
  134.   {% if app.user %}
  135.     {% do section_navigation_add({ name: 'press-releases', anchor: 'press-releases' }) %}
  136.     <section class=\"p-4 bg-white md:p-8 xl:p-16\" id=\"press-releases\">
  137.       {# <div class=\"container py-14\"> #}
  138.       <h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
  139.         {{ 'news'|trans }}
  140.       </h2>
  141.       <div data-turbo=\"false\"
  142.         {{
  143.         react_component(
  144.           'NewsList',
  145.           { objectId: horse.id, objectType: horse.classId, limit: 3, locale: app.request.locale }
  146.         )
  147.         }}></div>
  148.       {# <turbo-frame id=\"horse-news\"
  149.         src=\"{{
  150.         path(
  151.           'network_horse_news_frame',
  152.           { _locale: app.request.locale, id: horse.id }
  153.         )
  154.         }}\"></turbo-frame> #}
  155.       {# </div> #}
  156.     </section>
  157.   {% elseif not app.user %}
  158.     {% do section_navigation_add({ name: 'press-releases', anchor: 'press-releases' }) %}
  159.     <section id=\"press-releases\" class=\"container p-4 bg-white md:p-8 xl:p-16\">
  160.       <h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
  161.         {{ 'news'|trans }}
  162.       </h2>
  163.       {% include 'network/profile/components/login_required_hint.html.twig' %}
  164.     </section>
  165.   {% else %}
  166.     <section id=\"press-releases\" class=\"container p-4 bg-white md:p-8 xl:p-16\">
  167.       <h2 class=\"text-lg font-medium uppercase md:text-xl font-headline mb-7\">
  168.         {{ 'news'|trans }}
  169.       </h2>
  170.       {{ 'no.horse.news.available'|trans }}
  171.     </section>
  172.   {% endif %}
  173.   <turbo-stream action=\"replace\" target=\"tab_navigation\">
  174.     <template>
  175.       {% include 'network/horse/components/tab_navigation_component.html.twig' with {
  176.         horse: horse,
  177.         highlightedTab: app.request.pathInfo
  178.       } %}
  179.     </template>
  180.   </turbo-stream>
  181. </turbo-frame>
  182. ""network/horse/sections/horse_section_news.html.twig""/var/www/vhosts/3forone.ch/httpdocs/abowire/templates/network/horse/sections/horse_section_news.html.twig");
  183.     }
  184. }