var/cache/dev/twig/93/93b62e70cc390e4abcbfe3cefe345b68.php line 49

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. /* @!SonataTranslation/standard_layout.html.twig */
  14. class __TwigTemplate_effe4f1448fc97c69d17d144cbea9276 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.             'sonata_top_nav_menu' => [$this'block_sonata_top_nav_menu'],
  24.             'sonata_top_nav_menu_locale_block' => [$this'block_sonata_top_nav_menu_locale_block'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 12
  30.         return "@SonataAdmin/standard_layout.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@!SonataTranslation/standard_layout.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@!SonataTranslation/standard_layout.html.twig"));
  39.         $this->parent $this->loadTemplate("@SonataAdmin/standard_layout.html.twig""@!SonataTranslation/standard_layout.html.twig"12);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 14
  47.     public function block_sonata_top_nav_menu($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_top_nav_menu"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_top_nav_menu"));
  54.         // line 15
  55.         echo "    ";
  56.         $this->displayParentBlock("sonata_top_nav_menu"$context$blocks);
  57.         echo "
  58.     <div class=\"navbar-custom-menu\">
  59.         <ul class=\"nav navbar-nav\">
  60.             ";
  61.         // line 18
  62.         $this->displayBlock('sonata_top_nav_menu_locale_block'$context$blocks);
  63.         // line 45
  64.         echo "        </ul>
  65.     </div>
  66. ";
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.         
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71.     }
  72.     // line 18
  73.     public function block_sonata_top_nav_menu_locale_block($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_top_nav_menu_locale_block"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_top_nav_menu_locale_block"));
  80.         // line 19
  81.         echo "                <li class=\"dropdown\">
  82.                     <a class=\"dropdown-toggle\" data-toggle=\"dropdown\" href=\"#\">
  83.                         <i class=\"fa fa-flag fa-fw\" aria-hidden=\"true\"></i>
  84.                         <i class=\"fa fa-caret-down\" aria-hidden=\"true\"></i>
  85.                     </a>
  86.                     <div class=\"dropdown-menu\">
  87.                         <div class=\"container-fluid\">
  88.                             <div class=\"row\">
  89.                                 <ul class=\"dropdown-menu\">
  90.                                     <li role=\"presentation\" class=\"dropdown-header\">
  91.                                         <i class=\"fa fa-language\"></i>
  92.                                         ";
  93.         // line 30
  94.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("languages", [], "SonataTranslationBundle"), "html"nulltrue);
  95.         echo "
  96.                                     </li>
  97.                                     ";
  98.         // line 32
  99.         $context['_parent'] = $context;
  100.         $context['_seq'] = twig_ensure_traversable((isset($context["sonata_translation_locales"]) || array_key_exists("sonata_translation_locales"$context) ? $context["sonata_translation_locales"] : (function () { throw new RuntimeError('Variable "sonata_translation_locales" does not exist.'32$this->source); })()));
  101.         foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
  102.             // line 33
  103.             echo "                                    <li role=\"presentation\" class=\"";
  104.             echo (((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.'33$this->source); })()), "request", [], "any"falsefalsefalse33), "locale", [], "any"falsefalsefalse33) == $context["locale"])) ? ("active") : (""));
  105.             echo "\">
  106.                                         <a role=\"menuitem\" tabindex=\"-1\" href=\"";
  107.             // line 34
  108.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata.translation.locale", ["locale" => $context["locale"]]), "html"nulltrue);
  109.             echo "\">
  110.                                             ";
  111.             // line 35
  112.             echo twig_escape_filter($this->envtwig_capitalize_string_filter($this->env$this->extensions['Sonata\TranslationBundle\Twig\Extension\IntlExtension']->getLanguageName($context["locale"], $context["locale"])), "html"nulltrue);
  113.             echo "
  114.                                         </a>
  115.                                     </li>
  116.                                     ";
  117.         }
  118.         $_parent $context['_parent'];
  119.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['locale'], $context['_parent'], $context['loop']);
  120.         $context array_intersect_key($context$_parent) + $_parent;
  121.         // line 39
  122.         echo "                                </ul>
  123.                             </div>
  124.                         </div>
  125.                     </div>
  126.                 </li>
  127.             ";
  128.         
  129.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  130.         
  131.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  132.     }
  133.     /**
  134.      * @codeCoverageIgnore
  135.      */
  136.     public function getTemplateName()
  137.     {
  138.         return "@!SonataTranslation/standard_layout.html.twig";
  139.     }
  140.     /**
  141.      * @codeCoverageIgnore
  142.      */
  143.     public function isTraitable()
  144.     {
  145.         return false;
  146.     }
  147.     /**
  148.      * @codeCoverageIgnore
  149.      */
  150.     public function getDebugInfo()
  151.     {
  152.         return array (  141 => 39,  131 => 35,  127 => 34,  122 => 33,  118 => 32,  113 => 30,  100 => 19,  90 => 18,  78 => 45,  76 => 18,  69 => 15,  59 => 14,  36 => 12,);
  153.     }
  154.     public function getSourceContext()
  155.     {
  156.         return new Source("{#
  157. This file is part of the Sonata package.
  158. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  159. For the full copyright and license information, please view the LICENSE
  160. file that was distributed with this source code.
  161. #}
  162. {% extends '@SonataAdmin/standard_layout.html.twig' %}
  163. {% block sonata_top_nav_menu %}
  164.     {{ parent() }}
  165.     <div class=\"navbar-custom-menu\">
  166.         <ul class=\"nav navbar-nav\">
  167.             {% block sonata_top_nav_menu_locale_block %}
  168.                 <li class=\"dropdown\">
  169.                     <a class=\"dropdown-toggle\" data-toggle=\"dropdown\" href=\"#\">
  170.                         <i class=\"fa fa-flag fa-fw\" aria-hidden=\"true\"></i>
  171.                         <i class=\"fa fa-caret-down\" aria-hidden=\"true\"></i>
  172.                     </a>
  173.                     <div class=\"dropdown-menu\">
  174.                         <div class=\"container-fluid\">
  175.                             <div class=\"row\">
  176.                                 <ul class=\"dropdown-menu\">
  177.                                     <li role=\"presentation\" class=\"dropdown-header\">
  178.                                         <i class=\"fa fa-language\"></i>
  179.                                         {{ 'languages'|trans({}, 'SonataTranslationBundle') }}
  180.                                     </li>
  181.                                     {% for locale in sonata_translation_locales %}
  182.                                     <li role=\"presentation\" class=\"{{ app.request.locale == locale ? 'active' : '' }}\">
  183.                                         <a role=\"menuitem\" tabindex=\"-1\" href=\"{{ path('sonata.translation.locale', {'locale': locale}) }}\">
  184.                                             {{ locale|sonata_language_name(locale)|capitalize }}
  185.                                         </a>
  186.                                     </li>
  187.                                     {% endfor %}
  188.                                 </ul>
  189.                             </div>
  190.                         </div>
  191.                     </div>
  192.                 </li>
  193.             {% endblock %}
  194.         </ul>
  195.     </div>
  196. {% endblock %}
  197. ""@!SonataTranslation/standard_layout.html.twig""/var/www/vhosts/perseo.comerziawatches.com/httpdocs/perseo/httpdocs/vendor/sonata-project/translation-bundle/src/Resources/views/standard_layout.html.twig");
  198.     }
  199. }