var/cache/dev/twig/c1/c1c1df47bf25a3ab04157e422e9f48b29a304e9a36f75462cc14ca9774e47d93.php line 33

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. /* beautytada/layout/header.twig */
  14. class __TwigTemplate_52078234b0bbbe6ce8facc1a0855848cf5d22fa7f4ad2907994bb94774909565 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""beautytada/layout/header.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""beautytada/layout/header.twig"));
  33.         // line 1
  34.         echo "<header class=\"header\" id=\"header\">
  35.     ";
  36.         // line 2
  37.         $context["user"] = null;
  38.         // line 3
  39.         echo "    ";
  40.         if ( !(null === 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))) {
  41.             // line 4
  42.             echo "        ";
  43.             $context["user"] = ["name" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 5
  44. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'5$this->source); })()), "user", [], "any"falsefalsefalse5), "displayName", [], "any"falsefalsefalse5), "roles" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 6
  45. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "user", [], "any"falsefalsefalse6), "roles", [], "any"falsefalsefalse6)];
  46.             // line 8
  47.             echo "    ";
  48.         }
  49.         // line 9
  50.         echo "    <init-constant
  51.         :constant=\"{
  52.             isLogin: !!('";
  53.         // line 11
  54.         echo ((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.'11$this->source); })()), "user", [], "any"falsefalsefalse11)) ? (true) : (false));
  55.         echo "'),
  56.             user: JSON.parse('";
  57.         // line 12
  58.         echo twig_escape_filter($this->envjson_encode((isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'12$this->source); })())), "html"nulltrue);
  59.         echo "')
  60.         }\"
  61.         @get-constant=\"getConstant\">
  62.     </init-constant>
  63.     <div class=\"header-wrapper\">
  64.         <div class=\"header-logo\">
  65.             <a href=\"";
  66.         // line 19
  67.         echo twig_escape_filter($this->env$this->extensions['Kobizo\Component\Template\TwigExtensions\SiteProviderExtension']->getSiteUrl(), "html"nulltrue);
  68.         echo "\" class=\"nav-logo\">
  69.                 <img src=\"";
  70.         // line 20
  71.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logo-white.png"), "html"nulltrue);
  72.         echo "\" alt=\"Beautytada\">
  73.             </a>
  74.         </div>
  75.         ";
  76.         // line 24
  77.         if ((!== twig_compare(twig_get_attribute($this->env$this->sourcetwig_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.'24$this->source); })()), "request", [], "any"falsefalsefalse24), "attributes", [], "any"falsefalsefalse24), "get", [=> "_route"], "method"falsefalsefalse24), "home"))) {
  78.             // line 25
  79.             echo "            <open-address-form inline-template>
  80.                 <div class=\"address\" @click=\"activeAddressForm\">
  81.                     <template v-if=\"postcode\">
  82.                         <span>";
  83.             // line 28
  84.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("ZIP code", [], "messages");
  85.             echo "</span>
  86.                         <span class=\"address-value\" v-text=\"postcode\"></span>
  87.                     </template>
  88.                     <template v-else>
  89.                         <span class=\"address-content-value\">";
  90.             // line 32
  91.             echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Where do you want to order from?", [], "messages");
  92.             echo "</span>
  93.                     </template>
  94.                 </div>
  95.             </open-address-form>
  96.         ";
  97.         }
  98.         // line 37
  99.         echo "
  100.         <div class=\"header-control-buttons\">
  101.             <div class=\"header-restaurant-registration\">
  102.                 <a href=\"";
  103.         // line 40
  104.         echo twig_escape_filter($this->env$this->extensions['Kobizo\Component\Template\TwigExtensions\PageProviderExtension']->getUrl(["slug" => "register-a-salon"]), "html"nulltrue);
  105.         echo "\" class=\"header-restaurant-registration-btn\">
  106.                     <svg xmlns=\"http://www.w3.org/2000/svg\" enable-background=\"new 0 0 24 24\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" fill=\"#fff\"><g><rect fill=\"none\" height=\"24\" width=\"24\"/></g><g><g><rect height=\"2\" width=\"15\" x=\"2\" y=\"4\"/><path d=\"M15,17h2v-3h1v-2l-1-5H2l-1,5v2h1v6h9v-6h4V17z M9,18H4v-4h5V18z M3.04,12l0.6-3h11.72l0.6,3H3.04z\"/><polygon points=\"23,18 20,18 20,15 18,15 18,18 15,18 15,20 18,20 18,23 20,23 20,20 23,20\"/></g></g></svg>
  107.                     <p>";
  108.         // line 42
  109.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("registration", [], "messages");
  110.         echo "</p>
  111.                 </a>
  112.             </div>
  113.             ";
  114.         // line 45
  115.         $this->loadTemplate("default/layout/header-components/locales.twig""beautytada/layout/header.twig"45)->display($context);
  116.         // line 46
  117.         echo "
  118.             <burger-button @burger-button-toggle-state=\"togglePopup\"
  119.                            :option=\"{height: '15px', round: '4px'}\"
  120.                            :is-active=\"burgerButtonActive\">
  121.             </burger-button>
  122.             <login-form :path=\"'";
  123.         // line 52
  124.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_api_login");
  125.         echo "'\" :is-login=\"isLogin\" @login-success=\"loginSuccess\"
  126.                         :logo=\"{src: '";
  127.         // line 53
  128.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logo-white.png"), "html"nulltrue);
  129.         echo "', alt: 'Beautytada'}\" :show-popup=\"showLoginPopup\" @toggle-login-form=\"toggleLoginForm\">
  130.                 ";
  131.         // line 54
  132.         $this->loadTemplate("default/components/form/login.twig""beautytada/layout/header.twig"54)->display($context);
  133.         // line 55
  134.         echo "            </login-form>
  135.             <user-info :is-login=\"isLogin\" :is-active=\"burgerButtonActive\" :user=\"user\">
  136.                 ";
  137.         // line 58
  138.         $this->loadTemplate("default/components/user-info.twig""beautytada/layout/header.twig"58)->display($context);
  139.         // line 59
  140.         echo "            </user-info>
  141.         </div>
  142.     </div>
  143. </header>
  144. ";
  145.         
  146.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  147.         
  148.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  149.     }
  150.     public function getTemplateName()
  151.     {
  152.         return "beautytada/layout/header.twig";
  153.     }
  154.     public function isTraitable()
  155.     {
  156.         return false;
  157.     }
  158.     public function getDebugInfo()
  159.     {
  160.         return array (  153 => 59,  151 => 58,  146 => 55,  144 => 54,  140 => 53,  136 => 52,  128 => 46,  126 => 45,  120 => 42,  115 => 40,  110 => 37,  102 => 32,  95 => 28,  90 => 25,  88 => 24,  81 => 20,  77 => 19,  67 => 12,  63 => 11,  59 => 9,  56 => 8,  54 => 6,  53 => 5,  51 => 4,  48 => 3,  46 => 2,  43 => 1,);
  161.     }
  162.     public function getSourceContext()
  163.     {
  164.         return new Source("<header class=\"header\" id=\"header\">
  165.     {% set user = null %}
  166.     {% if app.user is not null %}
  167.         {% set user = {
  168.             name: app.user.displayName,
  169.             roles: app.user.roles
  170.         } %}
  171.     {% endif %}
  172.     <init-constant
  173.         :constant=\"{
  174.             isLogin: !!('{{ app.user ? true : false }}'),
  175.             user: JSON.parse('{{ user|json_encode }}')
  176.         }\"
  177.         @get-constant=\"getConstant\">
  178.     </init-constant>
  179.     <div class=\"header-wrapper\">
  180.         <div class=\"header-logo\">
  181.             <a href=\"{{ k_site_url() }}\" class=\"nav-logo\">
  182.                 <img src=\"{{ asset('build/images/logo-white.png') }}\" alt=\"Beautytada\">
  183.             </a>
  184.         </div>
  185.         {% if app.request.attributes.get('_route') != 'home' %}
  186.             <open-address-form inline-template>
  187.                 <div class=\"address\" @click=\"activeAddressForm\">
  188.                     <template v-if=\"postcode\">
  189.                         <span>{% trans %}ZIP code{% endtrans %}</span>
  190.                         <span class=\"address-value\" v-text=\"postcode\"></span>
  191.                     </template>
  192.                     <template v-else>
  193.                         <span class=\"address-content-value\">{% trans %}Where do you want to order from?{% endtrans %}</span>
  194.                     </template>
  195.                 </div>
  196.             </open-address-form>
  197.         {% endif %}
  198.         <div class=\"header-control-buttons\">
  199.             <div class=\"header-restaurant-registration\">
  200.                 <a href=\"{{ k_page_url({'slug': 'register-a-salon'}) }}\" class=\"header-restaurant-registration-btn\">
  201.                     <svg xmlns=\"http://www.w3.org/2000/svg\" enable-background=\"new 0 0 24 24\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" fill=\"#fff\"><g><rect fill=\"none\" height=\"24\" width=\"24\"/></g><g><g><rect height=\"2\" width=\"15\" x=\"2\" y=\"4\"/><path d=\"M15,17h2v-3h1v-2l-1-5H2l-1,5v2h1v6h9v-6h4V17z M9,18H4v-4h5V18z M3.04,12l0.6-3h11.72l0.6,3H3.04z\"/><polygon points=\"23,18 20,18 20,15 18,15 18,18 15,18 15,20 18,20 18,23 20,23 20,20 23,20\"/></g></g></svg>
  202.                     <p>{% trans %}registration{% endtrans %}</p>
  203.                 </a>
  204.             </div>
  205.             {% include 'default/layout/header-components/locales.twig' %}
  206.             <burger-button @burger-button-toggle-state=\"togglePopup\"
  207.                            :option=\"{height: '15px', round: '4px'}\"
  208.                            :is-active=\"burgerButtonActive\">
  209.             </burger-button>
  210.             <login-form :path=\"'{{ path(\"app_api_login\") }}'\" :is-login=\"isLogin\" @login-success=\"loginSuccess\"
  211.                         :logo=\"{src: '{{ asset(\"build/images/logo-white.png\") }}', alt: 'Beautytada'}\" :show-popup=\"showLoginPopup\" @toggle-login-form=\"toggleLoginForm\">
  212.                 {% include 'default/components/form/login.twig' %}
  213.             </login-form>
  214.             <user-info :is-login=\"isLogin\" :is-active=\"burgerButtonActive\" :user=\"user\">
  215.                 {% include 'default/components/user-info.twig' %}
  216.             </user-info>
  217.         </div>
  218.     </div>
  219. </header>
  220. ""beautytada/layout/header.twig""/home/btdcom/www/testing-kob26688.beautytada.com/templates/beautytada/layout/header.twig");
  221.     }
  222. }