var/cache/te_dev/twig/c5/c5aa11f2383afa296ec66a64d1c21ae91eb454c79d4a76d3a8c5948945195bb2.php line 223

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. /* @Web/Common/top.html.twig */
  14. class __TwigTemplate_ef490521720be6f14255f826c3617641fc8f3a4b522af4491bc9500191f533e3 extends \Twig\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_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  30.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Web/Common/top.html.twig"));
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Web/Common/top.html.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Web/Common/top.html.twig"));
  35.         // line 1
  36.         ob_start();
  37.         // line 2
  38.         echo "\t";
  39.         // line 3
  40.         echo "\t";
  41.         // line 5
  42.         echo "
  43. \t";
  44.         // line 7
  45.         echo "\t";
  46.         // line 8
  47.         echo "
  48. \t";
  49.         // line 10
  50.         echo "\t<div class=\"permission-granting-popup\">
  51. \t\t<div class=\"logo\"></div>
  52. \t\t<div class=\"text\">";
  53.         // line 12
  54.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("push_notifications_permission"), "html"nulltrue);
  55.         echo "</div>
  56. \t\t<div class=\"buttons\">
  57. \t\t\t<div class=\"button-wrapper\">
  58. \t\t\t\t<div class=\"button refuse js-permission-refuse\">";
  59.         // line 15
  60.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("push_notifications_refuse"), "html"nulltrue);
  61.         echo "</div>
  62. \t\t\t</div>";
  63.         // line 17
  64.         echo "<div class=\"button-wrapper\">
  65. \t\t\t\t<div class=\"button accept js-permission-accept\">";
  66.         // line 18
  67.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("push_notifications_allow"), "html"nulltrue);
  68.         echo "</div>
  69. \t\t\t</div>
  70. \t\t</div>
  71. \t</div>
  72. \t";
  73.         // line 23
  74.         $this->loadTemplate("@Web/Common/search-sphinx.html.twig""@Web/Common/top.html.twig"23)->display($context);
  75.         // line 24
  76.         echo "
  77. \t";
  78.         // line 25
  79.         $context["user_login_class"] = "";
  80.         // line 26
  81.         echo "\t";
  82.         if ( !twig_get_attribute($this->env$this->source, ($context["user"] ?? null), "alias", [], "any"truetruefalse26)) {
  83.             // line 27
  84.             echo "\t\t";
  85.             $context["user_login_class"] = "user-not-login";
  86.             // line 28
  87.             echo "\t";
  88.         }
  89.         // line 29
  90.         echo "
  91. \t";
  92.         // line 31
  93.         echo "    ";
  94.         if (twig_get_attribute($this->env$this->source, (isset($context["te"]) || array_key_exists("te"$context) ? $context["te"] : (function () { throw new RuntimeError('Variable "te" does not exist.'31$this->source); })()), "checkIsUpdated", [], "any"falsefalsefalse31)) {
  95.             // line 32
  96.             echo "        ";
  97.             $this->loadTemplate("@Web/Common/alerter.html.twig""@Web/Common/top.html.twig"32)->display($context);
  98.             // line 33
  99.             echo "    ";
  100.         }
  101.         // line 34
  102.         echo "
  103.     ";
  104.         // line 35
  105.         $context["curRoute"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["te"]) || array_key_exists("te"$context) ? $context["te"] : (function () { throw new RuntimeError('Variable "te" does not exist.'35$this->source); })()), "request", [], "any"falsefalsefalse35), "get", [=> "_route"], "method"falsefalsefalse35);
  106.         // line 36
  107.         echo "
  108. \t";
  109.         // line 38
  110.         echo "\t";
  111.         // line 39
  112.         echo "\t";
  113.         $context["catalogClass"] = "";
  114.         // line 40
  115.         echo "\t";
  116.         if (((isset($context["curRoute"]) || array_key_exists("curRoute"$context) ? $context["curRoute"] : (function () { throw new RuntimeError('Variable "curRoute" does not exist.'40$this->source); })()) == " app_catalog")) {
  117.             // line 41
  118.             echo "\t\t";
  119.             $context["catalogClass"] = " catalog";
  120.             // line 42
  121.             echo "\t";
  122.         }
  123.         // line 43
  124.         echo "\t";
  125.         $context["sliderClass"] = "";
  126.         // line 44
  127.         echo "\t";
  128.         if (((twig_in_filter((isset($context["curRoute"]) || array_key_exists("curRoute"$context) ? $context["curRoute"] : (function () { throw new RuntimeError('Variable "curRoute" does not exist.'44$this->source); })()), [=> "app_collection_slideshow"=> "app_collection_slideshow_f"]) && $this->extensions['SunCat\MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) &&  !$this->extensions['SunCat\MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isTablet())) {
  129.             // line 45
  130.             echo "\t\t";
  131.             $context["sliderClass"] = " slider-open";
  132.             // line 46
  133.             echo "\t";
  134.         }
  135.         // line 47
  136.         echo "    ";
  137.         if (( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["te"]) || array_key_exists("te"$context) ? $context["te"] : (function () { throw new RuntimeError('Variable "te" does not exist.'47$this->source); })()), "request", [], "any"falsefalsefalse47), "get", [=> "share"], "method"falsefalsefalse47) == "order_pdf_view")) {
  138.             // line 48
  139.             echo "\t<header data-html2canvas-move=\"#header-wrapper\" class=\"top-menu clearfix";
  140.             echo twig_escape_filter($this->env, (isset($context["catalogClass"]) || array_key_exists("catalogClass"$context) ? $context["catalogClass"] : (function () { throw new RuntimeError('Variable "catalogClass" does not exist.'48$this->source); })()), "html"nulltrue);
  141.             echo twig_escape_filter($this->env, (isset($context["sliderClass"]) || array_key_exists("sliderClass"$context) ? $context["sliderClass"] : (function () { throw new RuntimeError('Variable "sliderClass" does not exist.'48$this->source); })()), "html"nulltrue);
  142.             echo "\">
  143. \t\t<div class=\"top-menu-wrapper\">
  144. \t\t\t";
  145.             // line 54
  146.             echo "\t\t\t";
  147.             $context["frMenuClass"] = "";
  148.             // line 55
  149.             echo "\t\t\t";
  150.             if (($this->extensions['WebBundle\Twig\AppExtension']->userLocale() == " fr")) {
  151.                 // line 56
  152.                 echo "\t\t\t\t";
  153.                 $context["frMenuClass"] = " fr-menu";
  154.                 // line 57
  155.                 echo "\t\t\t";
  156.             }
  157.             // line 58
  158.             echo "\t\t\t<!--noindex-->
  159. \t\t\t";
  160.             // line 60
  161.             echo "\t\t\t<section class=\"left-part js-main-menu-wrapper";
  162.             echo twig_escape_filter($this->env, (isset($context["frMenuClass"]) || array_key_exists("frMenuClass"$context) ? $context["frMenuClass"] : (function () { throw new RuntimeError('Variable "frMenuClass" does not exist.'60$this->source); })()), "html"nulltrue);
  163.             echo "\">
  164. \t\t\t\t";
  165.             // line 63
  166.             echo "\t\t\t\t<div class=\"logo-box pull-left js-sibling-main-menu\">
  167. \t\t\t\t\t<span class=\"toggle-menu\" data-toggle=\"offcanvas\" data-target=\"#sidebar-nav\">
  168. \t\t\t\t\t\t<i class=\"material-icons\">&#xE5D2;</i>
  169. \t\t\t\t\t</span>
  170. \t\t\t\t\t<a id=\"logo_img\" class=\"logo-img\" href=\"";
  171.             // line 67
  172.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_home");
  173.             echo "\" title=\"";
  174.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("home_page"), "html"nulltrue);
  175.             echo "\" data-sort-to-catalog=\"3\"></a>
  176. \t\t\t\t\t<span class=\"slogan-block\">";
  177.             // line 68
  178.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("top.contactless_menu_slogan"), "html"nulltrue);
  179.             echo "</span>
  180. \t\t\t\t</div>
  181. \t\t\t\t";
  182.             // line 72
  183.             echo "\t\t\t\t";
  184.             // line 73
  185.             echo "\t\t\t\t";
  186.             $context["topClasses"] = "list-inline pull-left hidden-xs";
  187.             // line 74
  188.             echo "\t\t\t\t";
  189.             $context["hiddenTopClass"] = "hidden";
  190.             // line 75
  191.             echo "
  192. \t\t\t\t<span data-html2canvas-ignore=\"true\">
  193. \t\t\t\t\t";
  194.             // line 77
  195.             $this->loadTemplate("@Web/Common/main-menu.html.twig""@Web/Common/top.html.twig"77)->display(twig_array_merge($context, ["listClasses" => (isset($context["topClasses"]) || array_key_exists("topClasses"$context) ? $context["topClasses"] : (function () { throw new RuntimeError('Variable "topClasses" does not exist.'77$this->source); })()), "hiddenClass" => (isset($context["hiddenTopClass"]) || array_key_exists("hiddenTopClass"$context) ? $context["hiddenTopClass"] : (function () { throw new RuntimeError('Variable "hiddenTopClass" does not exist.'77$this->source); })())]));
  196.             // line 78
  197.             echo "\t\t\t\t</span>
  198. \t\t\t</section>
  199. \t\t\t";
  200.             // line 82
  201.             echo "\t\t\t<section data-html2canvas-ignore=\"true\" class=\"right-part";
  202.             echo twig_escape_filter($this->env, (isset($context["frMenuClass"]) || array_key_exists("frMenuClass"$context) ? $context["frMenuClass"] : (function () { throw new RuntimeError('Variable "frMenuClass" does not exist.'82$this->source); })()), "html"nulltrue);
  203.             echo "\">
  204. \t\t\t\t";
  205.             // line 84
  206.             $this->loadTemplate("@Web/Common/_user-icon-menu.html.twig""@Web/Common/top.html.twig"84)->display($context);
  207.             // line 85
  208.             echo "
  209. \t\t\t\t<div class=\"sphinx-button-mobile js-sphinx-button\">
  210. \t\t\t\t\t";
  211.             // line 87
  212.             $this->loadTemplate("@Web/SVGIconsCode/search.html.twig""@Web/Common/top.html.twig"87)->display($context);
  213.             // line 88
  214.             echo "\t\t\t\t</div>\t
  215. \t\t\t\t\t\t\t
  216. \t\t\t\t";
  217.             // line 91
  218.             echo "
  219. \t\t\t\t";
  220.             // line 93
  221.             echo "\t\t\t\t<div class=\"login-locale-block js-login-locale-block\">
  222. \t\t\t\t\t<div class=\"simple-tab\">
  223. \t\t\t\t\t\t<div class=\"list-tabs\">
  224. \t\t\t\t\t\t\t";
  225.             // line 98
  226.             if (twig_get_attribute($this->env$this->source, ($context["user"] ?? null), "alias", [], "any"truetruefalse98)) {
  227.                 // line 99
  228.                 echo "\t\t\t\t\t\t\t\t<div class=\"wrap-user-name tab-title\" data-tab-id=\"#login_tab\" role=\"show-tab-content\">
  229. \t\t\t\t\t\t\t\t\t<span class=\"user-name title-name\">
  230. \t\t\t\t\t\t\t\t\t\t<span class='name-alias'>";
  231.                 // line 101
  232.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'101$this->source); })()), "alias", [], "any"falsefalsefalse101), "html"nulltrue);
  233.                 echo "</span>
  234. \t\t\t\t\t\t\t\t\t\t<span class=\"user-icon\">
  235. \t\t\t\t\t\t\t\t\t\t\t<i class=\"material-icons\">&#xE851;</i>
  236. \t\t\t\t\t\t\t\t\t\t</span>
  237. \t\t\t\t\t\t\t\t\t</span>
  238. \t\t\t\t\t\t\t\t\t<div class=\"dividing-line hidden\"></div>
  239. \t\t\t\t\t\t\t\t</div>
  240. \t\t\t\t\t\t\t";
  241.             } else {
  242.                 // line 109
  243.                 echo "\t\t\t\t\t\t\t\t<div class=\"wrap-user-name-sub\">
  244. \t\t\t\t\t\t\t\t\t<div class=\"wrap-user-name tab-title\">
  245. \t\t\t\t\t\t\t\t\t\t<span class=\"user-name title-name\">
  246. \t\t\t\t\t\t\t\t\t\t\t<span class='name-alias'>
  247. \t\t\t\t\t\t\t\t\t\t\t\t<a class=\"login\" href=\"";
  248.                 // line 113
  249.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  250.                 echo "\">
  251. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  252.                 // line 114
  253.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_login"), "html"nulltrue);
  254.                 echo "
  255. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  256. \t\t\t\t\t\t\t\t\t\t\t</span>
  257. \t\t\t\t\t\t\t\t\t\t\t<span class=\"user-icon\">
  258. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  259.                 // line 118
  260.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  261.                 echo "\">
  262. \t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"material-icons\">&#xE8A6;</i>
  263. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  264. \t\t\t\t\t\t\t\t\t\t\t</span>
  265. \t\t\t\t\t\t\t\t\t\t</span>
  266. \t\t\t\t\t\t\t\t\t</div>
  267. \t\t\t\t\t\t\t\t</div>
  268. \t\t\t\t\t\t\t";
  269.             }
  270.             // line 126
  271.             echo "
  272. \t\t\t\t\t\t\t";
  273.             // line 128
  274.             echo "\t\t\t\t\t\t\t<div class=\"wrap-title-change-location js-wrap-title-change-location tab-title\" 
  275. \t\t\t\t\t\t\t\t data-tab-id=\"#lang_tab\" 
  276. \t\t\t\t\t\t\t\t role=\"show-tab-content\"
  277. \t\t\t\t\t\t\t>
  278. \t\t\t\t\t\t\t\t<span class=\"title-name\" data-loc-status-block>
  279. \t\t\t\t\t\t\t\t\t";
  280.             // line 133
  281.             if (($this->extensions['WebBundle\Twig\AppExtension']->userCountry() != "en")) {
  282.                 // line 134
  283.                 echo "\t\t\t\t\t\t\t\t\t\t<span class=\"flag flag-";
  284.                 echo twig_escape_filter($this->env$this->extensions['WebBundle\Twig\AppExtension']->userCountry(), "html"nulltrue);
  285.                 echo "\"></span>
  286. \t\t\t\t\t\t\t\t\t";
  287.             } else {
  288.                 // line 136
  289.                 echo "\t\t\t\t\t\t\t\t\t\t<span class=\"flag rest-world\"></span>
  290. \t\t\t\t\t\t\t\t\t";
  291.             }
  292.             // line 138
  293.             echo "
  294. \t\t\t\t\t\t\t\t\t";
  295.             // line 139
  296.             if (twig_get_attribute($this->env$this->source, ($context["countryList"] ?? null), $this->extensions['WebBundle\Twig\AppExtension']->userCountry(), [], "array"truetruefalse139)) {
  297.                 // line 140
  298.                 echo "\t\t\t\t\t\t\t\t\t\t<span class='name-alias'>
  299. \t\t\t\t\t\t\t\t\t\t\t";
  300.                 // line 141
  301.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["countryList"]) || array_key_exists("countryList"$context) ? $context["countryList"] : (function () { throw new RuntimeError('Variable "countryList" does not exist.'141$this->source); })()), $this->extensions['WebBundle\Twig\AppExtension']->userCountry(), [], "array"falsefalsefalse141), "name", [], "array"falsefalsefalse141), "html"nulltrue);
  302.                 echo "
  303. \t\t\t\t\t\t\t\t\t\t</span>
  304. \t\t\t\t\t\t\t\t\t";
  305.             }
  306.             // line 144
  307.             echo "\t\t\t\t\t\t\t\t</span>
  308. \t\t\t\t\t\t\t</div>
  309. \t\t\t\t\t\t</div>
  310. \t\t\t\t\t\t<div class=\"content-tabs\">
  311. \t\t\t\t\t\t\t<div class=\"tab-block wrap-profile-block\" id=\"login_tab\" data-tab-content>
  312. \t\t\t\t\t\t\t\t";
  313.             // line 150
  314.             if (twig_get_attribute($this->env$this->source, ($context["user"] ?? null), "alias", [], "any"truetruefalse150)) {
  315.                 // line 151
  316.                 echo "\t\t\t\t\t\t\t\t\t";
  317.                 // line 152
  318.                 echo "\t\t\t\t\t\t\t\t\t";
  319.                 $this->loadTemplate("@Web/User/user-profile.html.twig""@Web/Common/top.html.twig"152)->display($context);
  320.                 // line 153
  321.                 echo "\t\t\t\t\t\t\t\t";
  322.             }
  323.             // line 154
  324.             echo "\t\t\t\t\t\t\t</div>
  325. \t\t\t\t\t\t\t";
  326.             // line 157
  327.             echo "\t\t\t\t\t\t\t<div class=\"tab-block wrap-change-location\" id=\"lang_tab\" data-tab-content>
  328. \t\t\t\t\t\t\t\t";
  329.             // line 158
  330.             $this->loadTemplate("@Web/Common/change-location.html.twig""@Web/Common/top.html.twig"158)->display($context);
  331.             // line 159
  332.             echo "\t\t\t\t\t\t\t\t";
  333.             // line 162
  334.             echo "\t\t\t\t\t\t\t\t<div class=\"pseudo-height\"></div>
  335. \t\t\t\t\t\t\t</div>
  336. \t\t\t\t\t\t</div>
  337. \t\t\t\t\t</div>
  338. \t\t\t\t</div>
  339. \t\t\t</section>
  340. \t\t\t<!--/noindex-->
  341. \t\t</div>
  342. \t</header>
  343. \t";
  344.         }
  345.         $___internal_parse_38_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  346.         // line 1
  347.         echo twig_spaceless($___internal_parse_38_);
  348.         
  349.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  350.         
  351.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  352.         
  353.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  354.     }
  355.     public function getTemplateName()
  356.     {
  357.         return "@Web/Common/top.html.twig";
  358.     }
  359.     public function isTraitable()
  360.     {
  361.         return false;
  362.     }
  363.     public function getDebugInfo()
  364.     {
  365.         return array (  372 => 1,  355 => 162,  353 => 159,  351 => 158,  348 => 157,  344 => 154,  341 => 153,  338 => 152,  336 => 151,  334 => 150,  326 => 144,  320 => 141,  317 => 140,  315 => 139,  312 => 138,  308 => 136,  302 => 134,  300 => 133,  293 => 128,  290 => 126,  279 => 118,  272 => 114,  268 => 113,  262 => 109,  251 => 101,  247 => 99,  245 => 98,  238 => 93,  235 => 91,  231 => 88,  229 => 87,  225 => 85,  223 => 84,  217 => 82,  212 => 78,  210 => 77,  206 => 75,  203 => 74,  200 => 73,  198 => 72,  192 => 68,  186 => 67,  180 => 63,  174 => 60,  171 => 58,  168 => 57,  165 => 56,  162 => 55,  159 => 54,  150 => 48,  147 => 47,  144 => 46,  141 => 45,  138 => 44,  135 => 43,  132 => 42,  129 => 41,  126 => 40,  123 => 39,  121 => 38,  118 => 36,  116 => 35,  113 => 34,  110 => 33,  107 => 32,  104 => 31,  101 => 29,  98 => 28,  95 => 27,  92 => 26,  90 => 25,  87 => 24,  85 => 23,  77 => 18,  74 => 17,  70 => 15,  64 => 12,  60 => 10,  57 => 8,  55 => 7,  52 => 5,  50 => 3,  48 => 2,  46 => 1,);
  366.     }
  367.     public function getSourceContext()
  368.     {
  369.         return new Source("{% apply spaceless %}
  370. \t{# элементы с классом material-icons - это иконочные шрифты от гугл #}
  371. \t{# material-icons теперь используются в шестнадцатеричном формате, иначе 
  372. \t   будут баги при отображении в некоторых браузерах #}
  373. \t{# решено убрать кнопку Наверх #}
  374. \t{#<div class=\"up-button up-scroll\"></div>#}
  375. \t{# попап запроса разрешения на показ уведомлений #}
  376. \t<div class=\"permission-granting-popup\">
  377. \t\t<div class=\"logo\"></div>
  378. \t\t<div class=\"text\">{{ 'push_notifications_permission' | trans }}</div>
  379. \t\t<div class=\"buttons\">
  380. \t\t\t<div class=\"button-wrapper\">
  381. \t\t\t\t<div class=\"button refuse js-permission-refuse\">{{ 'push_notifications_refuse' | trans }}</div>
  382. \t\t\t</div>{#
  383. \t\t\t#}<div class=\"button-wrapper\">
  384. \t\t\t\t<div class=\"button accept js-permission-accept\">{{ 'push_notifications_allow' | trans }}</div>
  385. \t\t\t</div>
  386. \t\t</div>
  387. \t</div>
  388. \t{% include '@Web/Common/search-sphinx.html.twig' %}
  389. \t{% set user_login_class = '' %}
  390. \t{% if user.alias is not defined %}
  391. \t\t{% set user_login_class = 'user-not-login' %}
  392. \t{% endif %}
  393. \t{# баннер-сообщение сверху страницы о том, что проводятся работы на сайте (обновления и т.п.) #}
  394.     {% if te.checkIsUpdated %}
  395.         {% include '@Web/Common/alerter.html.twig' %}
  396.     {% endif %}
  397.     {% set curRoute = te.request.get('_route') %}
  398. \t{# класс folded добавляется для отображения свернутого блока звонилки вверху страницы #}
  399. \t{# для каталога добавляем к хедеру класс catalog #}
  400. \t{% set catalogClass = '' %}
  401. \t{% if curRoute == ' app_catalog' %}
  402. \t\t{% set catalogClass = ' catalog' %}
  403. \t{% endif %}
  404. \t{% set sliderClass = '' %}
  405. \t{% if curRoute in ['app_collection_slideshow', 'app_collection_slideshow_f'] and is_mobile() and not is_tablet() %}
  406. \t\t{% set sliderClass = ' slider-open' %}
  407. \t{% endif %}
  408.     {% if not te.request.get('share') == 'order_pdf_view' %}
  409. \t<header data-html2canvas-move=\"#header-wrapper\" class=\"top-menu clearfix{{ catalogClass }}{{ sliderClass }}{# folded#}\">
  410. \t\t<div class=\"top-menu-wrapper\">
  411. \t\t\t{# для локали fr - на планшетах с шириной 768пкс не видно ни одного пункта меню, поэтому 
  412. \t\t\t   надо увеличить ширину блока section с меню #}
  413. \t\t\t{% set frMenuClass = '' %}
  414. \t\t\t{% if userLocale() == ' fr' %}
  415. \t\t\t\t{% set frMenuClass = ' fr-menu' %}
  416. \t\t\t{% endif %}
  417. \t\t\t<!--noindex-->
  418. \t\t\t{# класс js-main-menu-wrapper необходим для постройки меню #}
  419. \t\t\t<section class=\"left-part js-main-menu-wrapper{{ frMenuClass }}\">
  420. \t\t\t\t{# лого #}
  421. \t\t\t\t<div class=\"logo-box pull-left js-sibling-main-menu\">
  422. \t\t\t\t\t<span class=\"toggle-menu\" data-toggle=\"offcanvas\" data-target=\"#sidebar-nav\">
  423. \t\t\t\t\t\t<i class=\"material-icons\">&#xE5D2;</i>
  424. \t\t\t\t\t</span>
  425. \t\t\t\t\t<a id=\"logo_img\" class=\"logo-img\" href=\"{{ path('app_home') }}\" title=\"{{ 'home_page' | trans }}\" data-sort-to-catalog=\"3\"></a>
  426. \t\t\t\t\t<span class=\"slogan-block\">{{ 'top.contactless_menu_slogan' | trans }}</span>
  427. \t\t\t\t</div>
  428. \t\t\t\t{# тут был LOGIN LOCALE BLOCK #}
  429. \t\t\t\t{# главное меню сайта #}
  430. \t\t\t\t{% set topClasses = 'list-inline pull-left hidden-xs' %}
  431. \t\t\t\t{% set hiddenTopClass = 'hidden' %}
  432. \t\t\t\t<span data-html2canvas-ignore=\"true\">
  433. \t\t\t\t\t{% include '@Web/Common/main-menu.html.twig' with { 'listClasses': topClasses, 'hiddenClass' : hiddenTopClass } %}
  434. \t\t\t\t</span>
  435. \t\t\t</section>
  436. \t\t\t{# верхняя правая часть в хедере #}
  437. \t\t\t<section data-html2canvas-ignore=\"true\" class=\"right-part{{ frMenuClass }}\">
  438. \t\t\t\t{% include '@Web/Common/_user-icon-menu.html.twig' %}
  439. \t\t\t\t<div class=\"sphinx-button-mobile js-sphinx-button\">
  440. \t\t\t\t\t{% include '@Web/SVGIconsCode/search.html.twig' %}
  441. \t\t\t\t</div>\t
  442. \t\t\t\t\t\t\t
  443. \t\t\t\t{#</div>#}
  444. \t\t\t\t{# ссылки на профиль или регистрацию/авторизацию и настройки локации #}
  445. \t\t\t\t<div class=\"login-locale-block js-login-locale-block\">
  446. \t\t\t\t\t<div class=\"simple-tab\">
  447. \t\t\t\t\t\t<div class=\"list-tabs\">
  448. \t\t\t\t\t\t\t{% if user.alias is defined %}
  449. \t\t\t\t\t\t\t\t<div class=\"wrap-user-name tab-title\" data-tab-id=\"#login_tab\" role=\"show-tab-content\">
  450. \t\t\t\t\t\t\t\t\t<span class=\"user-name title-name\">
  451. \t\t\t\t\t\t\t\t\t\t<span class='name-alias'>{{ user.alias }}</span>
  452. \t\t\t\t\t\t\t\t\t\t<span class=\"user-icon\">
  453. \t\t\t\t\t\t\t\t\t\t\t<i class=\"material-icons\">&#xE851;</i>
  454. \t\t\t\t\t\t\t\t\t\t</span>
  455. \t\t\t\t\t\t\t\t\t</span>
  456. \t\t\t\t\t\t\t\t\t<div class=\"dividing-line hidden\"></div>
  457. \t\t\t\t\t\t\t\t</div>
  458. \t\t\t\t\t\t\t{% else %}
  459. \t\t\t\t\t\t\t\t<div class=\"wrap-user-name-sub\">
  460. \t\t\t\t\t\t\t\t\t<div class=\"wrap-user-name tab-title\">
  461. \t\t\t\t\t\t\t\t\t\t<span class=\"user-name title-name\">
  462. \t\t\t\t\t\t\t\t\t\t\t<span class='name-alias'>
  463. \t\t\t\t\t\t\t\t\t\t\t\t<a class=\"login\" href=\"{{ path('app_login') }}\">
  464. \t\t\t\t\t\t\t\t\t\t\t\t\t{{ 'header_login' | trans }}
  465. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  466. \t\t\t\t\t\t\t\t\t\t\t</span>
  467. \t\t\t\t\t\t\t\t\t\t\t<span class=\"user-icon\">
  468. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path('app_login') }}\">
  469. \t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"material-icons\">&#xE8A6;</i>
  470. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  471. \t\t\t\t\t\t\t\t\t\t\t</span>
  472. \t\t\t\t\t\t\t\t\t\t</span>
  473. \t\t\t\t\t\t\t\t\t</div>
  474. \t\t\t\t\t\t\t\t</div>
  475. \t\t\t\t\t\t\t{% endif %}
  476. \t\t\t\t\t\t\t{# смена локации - отображение флага и названия страны #}
  477. \t\t\t\t\t\t\t<div class=\"wrap-title-change-location js-wrap-title-change-location tab-title\" 
  478. \t\t\t\t\t\t\t\t data-tab-id=\"#lang_tab\" 
  479. \t\t\t\t\t\t\t\t role=\"show-tab-content\"
  480. \t\t\t\t\t\t\t>
  481. \t\t\t\t\t\t\t\t<span class=\"title-name\" data-loc-status-block>
  482. \t\t\t\t\t\t\t\t\t{% if userCountry() != 'en' %}
  483. \t\t\t\t\t\t\t\t\t\t<span class=\"flag flag-{{userCountry()}}\"></span>
  484. \t\t\t\t\t\t\t\t\t{% else %}
  485. \t\t\t\t\t\t\t\t\t\t<span class=\"flag rest-world\"></span>
  486. \t\t\t\t\t\t\t\t\t{% endif %}
  487. \t\t\t\t\t\t\t\t\t{% if countryList[userCountry()] is defined %}
  488. \t\t\t\t\t\t\t\t\t\t<span class='name-alias'>
  489. \t\t\t\t\t\t\t\t\t\t\t{{ countryList[userCountry()]['name'] }}
  490. \t\t\t\t\t\t\t\t\t\t</span>
  491. \t\t\t\t\t\t\t\t\t{% endif %}
  492. \t\t\t\t\t\t\t\t</span>
  493. \t\t\t\t\t\t\t</div>
  494. \t\t\t\t\t\t</div>
  495. \t\t\t\t\t\t<div class=\"content-tabs\">
  496. \t\t\t\t\t\t\t<div class=\"tab-block wrap-profile-block\" id=\"login_tab\" data-tab-content>
  497. \t\t\t\t\t\t\t\t{% if user.alias is defined %}
  498. \t\t\t\t\t\t\t\t\t{# ссылки на профиль пользователя #}
  499. \t\t\t\t\t\t\t\t\t{% include '@Web/User/user-profile.html.twig' %}
  500. \t\t\t\t\t\t\t\t{% endif %}
  501. \t\t\t\t\t\t\t</div>
  502. \t\t\t\t\t\t\t{# смена локации - блок с полями #}
  503. \t\t\t\t\t\t\t<div class=\"tab-block wrap-change-location\" id=\"lang_tab\" data-tab-content>
  504. \t\t\t\t\t\t\t\t{% include '@Web/Common/change-location.html.twig' %}
  505. \t\t\t\t\t\t\t\t{# невидимый блок, который увеличивает высоту родителя, чтобы при выборе страны или 
  506. \t\t\t\t\t\t\t\t   языка из выпадающих списков курсор не попадал на .backdrop-tab (добавляется 
  507. \t\t\t\t\t\t\t\t   в _simple-tab.js), и тем самым не закрывал табы #}
  508. \t\t\t\t\t\t\t\t<div class=\"pseudo-height\"></div>
  509. \t\t\t\t\t\t\t</div>
  510. \t\t\t\t\t\t</div>
  511. \t\t\t\t\t</div>
  512. \t\t\t\t</div>
  513. \t\t\t</section>
  514. \t\t\t<!--/noindex-->
  515. \t\t</div>
  516. \t</header>
  517. \t{% endif %}
  518. {% endapply %}""@Web/Common/top.html.twig""/var/www/dev5.tile.expert/src/WebBundle/Resources/views/Common/top.html.twig");
  519.     }
  520. }