var/cache/te_dev/twig/de/de733c07e5754d4e30aa22f60e4b093da7777a3cd5d33fd7fb8fe64925ff7e28.php line 134

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/_user-icon-menu.html.twig */
  14. class __TwigTemplate_5e5387f506219563a8960e114e2c31580e4adffe2f48ae4b0a0f7594527c591f 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/_user-icon-menu.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/_user-icon-menu.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/_user-icon-menu.html.twig"));
  35.         // line 8
  36.         echo "<ul class=\"list-inline list-user-menu js-list-user-menu pull-right\" data-user-menu>
  37. \t";
  38.         // line 10
  39.         echo "\t";
  40.         // line 11
  41.         echo "\t<li class=\"setting-item user-menu-item-mobile user-menu-item\">
  42. \t\t";
  43.         // line 13
  44.         echo "\t\t";
  45.         if (twig_get_attribute($this->env$this->source, ($context["user"] ?? null), "alias", [], "any"truetruefalse13)) {
  46.             // line 14
  47.             echo "\t\t\t<a class=\"navbar-toggle-reg collapsed m-l-n\"
  48. \t\t\t   role=\"button\"
  49. \t\t\t   data-toggle=\"collapse\"
  50. \t\t\t   href=\"#collapseRegTop\"
  51. \t\t\t   aria-expanded=\"false\"
  52. \t\t\t>
  53. \t\t\t\t<i class=\"material-icons\">&#xE851;</i>
  54. \t\t\t</a>
  55. \t\t";
  56.         } else {
  57.             // line 23
  58.             echo "\t\t\t<a href=\"";
  59.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  60.             echo "\">
  61. \t\t\t\t<i class=\"material-icons\">&#xE8A6;</i>
  62. \t\t\t</a>
  63. \t\t";
  64.         }
  65.         // line 27
  66.         echo "\t\t";
  67.         // line 29
  68.         echo "\t\t";
  69.         $this->loadTemplate("@Web/Common/dropdown-user-menu.html.twig""@Web/Common/_user-icon-menu.html.twig"29)->display($context);
  70.         // line 30
  71.         echo "\t</li>
  72. \t";
  73.         // line 33
  74.         echo "\t";
  75.         $context["isRTWidget"] = $this->extensions['WebBundle\Twig\AppExtension']->useRTWidget();
  76.         // line 34
  77.         echo "\t";
  78.         $context["unreadCount"] = 0;
  79.         // line 35
  80.         echo "\t";
  81.         if ( !(isset($context["isRTWidget"]) || array_key_exists("isRTWidget"$context) ? $context["isRTWidget"] : (function () { throw new RuntimeError('Variable "isRTWidget" does not exist.'35$this->source); })())) {
  82.             // line 36
  83.             echo "\t\t";
  84.             $context["unreadCount"] = $this->extensions['WebBundle\Twig\AppExtension']->getUnreadCount();
  85.             // line 37
  86.             echo "\t";
  87.         }
  88.         // line 38
  89.         echo "    <!-- [debug] Initial unread count: ";
  90.         echo twig_escape_filter($this->env, (isset($context["unreadCount"]) || array_key_exists("unreadCount"$context) ? $context["unreadCount"] : (function () { throw new RuntimeError('Variable "unreadCount" does not exist.'38$this->source); })()), "html"nulltrue);
  91.         echo " -->
  92.     ";
  93.         // line 39
  94.         if (true) {
  95.             echo " ";
  96.             // line 40
  97.             echo "        <li class=\"user-menu-item order-discus js-first-visit-discuss\"
  98.             data-url=\"send/client/msg\"
  99.             data-id-client=\"client_id\"
  100.             data-close-url=\"";
  101.             // line 43
  102.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_cookie_close_hello_message");
  103.             echo "\"
  104.             data-hover-item
  105.         >
  106.             <a class=\"order-discus help-tooltip js-chat-button-link\"
  107. \t\t\t\tid=\"chat-widget-btn\"
  108. \t\t\t\t";
  109.             // line 48
  110.             if ( !(isset($context["isRTWidget"]) || array_key_exists("isRTWidget"$context) ? $context["isRTWidget"] : (function () { throw new RuntimeError('Variable "isRTWidget" does not exist.'48$this->source); })())) {
  111.                 // line 49
  112.                 echo "\t\t\t\t\ttarget=\"_blank\"
  113. \t\t\t\t\thref=\"";
  114.                 // line 50
  115.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_chatb_chatbpage");
  116.                 echo "\"
  117. \t\t\t\t";
  118.             }
  119.             // line 52
  120.             echo "            >
  121.                 ";
  122.             // line 53
  123.             $this->loadTemplate("@Web/SVGIconsCode/chat.html.twig""@Web/Common/_user-icon-menu.html.twig"53)->display(twig_array_merge($context, ["unreadAll" => (isset($context["unreadCount"]) || array_key_exists("unreadCount"$context) ? $context["unreadCount"] : (function () { throw new RuntimeError('Variable "unreadCount" does not exist.'53$this->source); })())]));
  124.             // line 54
  125.             echo "            </a>
  126.             <div class=\"order-discus-block popup-block\"
  127.                 data-no-new-messages-tooltip-text=\"";
  128.             // line 56
  129.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contacts.live_chat"), "html"nulltrue);
  130.             echo "\"
  131.                 data-new-messages-tooltip-text=\"";
  132.             // line 57
  133.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("chat_unread_messages"), "html"nulltrue);
  134.             echo "\"
  135.             >
  136.                 ";
  137.             // line 59
  138.             if (( !(isset($context["isRTWidget"]) || array_key_exists("isRTWidget"$context) ? $context["isRTWidget"] : (function () { throw new RuntimeError('Variable "isRTWidget" does not exist.'59$this->source); })()) && ((isset($context["unreadCount"]) || array_key_exists("unreadCount"$context) ? $context["unreadCount"] : (function () { throw new RuntimeError('Variable "unreadCount" does not exist.'59$this->source); })()) > 0))) {
  139.                 // line 60
  140.                 echo "                    ";
  141.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("chat_unread_messages"), "html"nulltrue);
  142.                 if (((isset($context["unreadCount"]) || array_key_exists("unreadCount"$context) ? $context["unreadCount"] : (function () { throw new RuntimeError('Variable "unreadCount" does not exist.'60$this->source); })()) > 99)) {
  143.                     echo ": ";
  144.                     echo twig_escape_filter($this->env, (isset($context["unreadCount"]) || array_key_exists("unreadCount"$context) ? $context["unreadCount"] : (function () { throw new RuntimeError('Variable "unreadCount" does not exist.'60$this->source); })()), "html"nulltrue);
  145.                 }
  146.                 // line 61
  147.                 echo "                ";
  148.             } else {
  149.                 // line 62
  150.                 echo "                    ";
  151.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contacts.live_chat"), "html"nulltrue);
  152.                 echo "
  153.                 ";
  154.             }
  155.             // line 64
  156.             echo "            </div>
  157.         </li>
  158.     ";
  159.         }
  160.         // line 67
  161.         echo "
  162. \t";
  163.         // line 69
  164.         echo "\t<li class=\"watch-menu user-menu-item hidden-xs\" data-hover-item>
  165. \t\t<meta name=\"urlSetHistory\" content=\"";
  166.         // line 70
  167.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_visit_save");
  168.         echo "\" property=\"\" />
  169. \t\t<a class=\"watch help-tooltip";
  170.         // line 71
  171.         if (((isset($context["visitedAll"]) || array_key_exists("visitedAll"$context) ? $context["visitedAll"] : (function () { throw new RuntimeError('Variable "visitedAll" does not exist.'71$this->source); })()) > 0)) {
  172.             echo " active";
  173.         }
  174.         echo "\"
  175. \t\t\thref=\"";
  176.         // line 72
  177.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("visit");
  178.         echo "\">
  179. \t\t\t<i class=\"watch-added-to-project\">
  180. \t\t\t\t";
  181.         // line 74
  182.         $this->loadTemplate("@Web/SVGIconsCode/history_active.html.twig""@Web/Common/_user-icon-menu.html.twig"74)->display($context);
  183.         // line 75
  184.         echo "\t\t\t</i>
  185. \t\t\t<i class=\"watch-not-added-to-project\">
  186. \t\t\t\t";
  187.         // line 77
  188.         $this->loadTemplate("@Web/SVGIconsCode/history_default.html.twig""@Web/Common/_user-icon-menu.html.twig"77)->display($context);
  189.         // line 78
  190.         echo "\t\t\t</i>
  191. \t\t\t<span class=\"user-history-pages-count val\" data-count=\"";
  192.         // line 79
  193.         echo twig_escape_filter($this->env, (isset($context["visitedAll"]) || array_key_exists("visitedAll"$context) ? $context["visitedAll"] : (function () { throw new RuntimeError('Variable "visitedAll" does not exist.'79$this->source); })()), "html"nulltrue);
  194.         echo "\">";
  195.         echo twig_escape_filter($this->env, (isset($context["visitedAll"]) || array_key_exists("visitedAll"$context) ? $context["visitedAll"] : (function () { throw new RuntimeError('Variable "visitedAll" does not exist.'79$this->source); })()), "html"nulltrue);
  196.         echo "</span>
  197. \t\t</a>
  198. \t\t<div class=\"watch-block popup-block popup-block-last-visits isEmptyList\">
  199. \t\t\t<div class='block-header'>
  200. \t\t\t\t<h5>
  201. \t\t\t\t\t<span class=\"title\">";
  202.         // line 84
  203.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_history"), "html"nulltrue);
  204.         echo "</span>&nbsp;
  205. \t\t\t\t\t<a href=\"";
  206.         // line 85
  207.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("visit");
  208.         echo "\">
  209. \t\t\t\t\t\t(<span class=\"watch-count user-history-pages-count\">";
  210.         // line 86
  211.         echo twig_escape_filter($this->env, (isset($context["visitedAll"]) || array_key_exists("visitedAll"$context) ? $context["visitedAll"] : (function () { throw new RuntimeError('Variable "visitedAll" does not exist.'86$this->source); })()), "html"nulltrue);
  212.         echo "</span>)
  213. \t\t\t\t\t</a>
  214. \t\t\t\t</h5>
  215. \t\t\t</div>
  216. \t\t\t<div class=\"block-watch-content\"
  217. \t\t\t\t data-action=\"";
  218.         // line 91
  219.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_visit_last");
  220.         echo "\"
  221. \t\t\t\t role=\"insert-list\"
  222. \t\t\t\t data-list-load=\"false\"
  223. \t\t\t>
  224. \t\t\t\t";
  225.         // line 96
  226.         echo "\t\t\t</div>
  227. \t\t</div>
  228. \t</li>
  229. \t";
  230.         // line 101
  231.         echo "\t";
  232.         // line 103
  233.         echo "\t<li class=\"idea-menu user-menu-item\" data-hover-item data-type-project=\"idea\">
  234. \t\t<a class=\"star idea-iorder help-tooltipnformer";
  235.         // line 104
  236.         if (((isset($context["ideas"]) || array_key_exists("ideas"$context) ? $context["ideas"] : (function () { throw new RuntimeError('Variable "ideas" does not exist.'104$this->source); })()) > 0)) {
  237.             echo " active";
  238.         }
  239.         echo "\"
  240. \t\t   ";
  241.         // line 106
  242.         echo "\t\t   href=\"";
  243.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_ideas");
  244.         echo "\"
  245. \t\t>
  246. \t\t\t<i class=\"idea-added-to-project\" id=\"logic_ideasInProjectIcon\">
  247. \t\t\t\t";
  248.         // line 109
  249.         $this->loadTemplate("@Web/SVGIconsCode/idea-added-top.html.twig""@Web/Common/_user-icon-menu.html.twig"109)->display($context);
  250.         // line 110
  251.         echo "\t\t\t</i>
  252. \t\t\t<i class=\"idea-not-added-to-project\" id=\"logic_noIdeasInProjectIcon\">
  253. \t\t\t\t";
  254.         // line 112
  255.         $this->loadTemplate("@Web/SVGIconsCode/idea-no-added-top.html.twig""@Web/Common/_user-icon-menu.html.twig"112)->display($context);
  256.         // line 113
  257.         echo "\t\t\t</i>
  258. \t\t\t<span class=\"val ideas_count\" id=\"logic_orderIdeasCount\" data-change-count=\"";
  259.         // line 114
  260.         echo twig_escape_filter($this->env, (isset($context["ideas"]) || array_key_exists("ideas"$context) ? $context["ideas"] : (function () { throw new RuntimeError('Variable "ideas" does not exist.'114$this->source); })()), "html"nulltrue);
  261.         echo "\">";
  262.         echo twig_escape_filter($this->env, (isset($context["ideas"]) || array_key_exists("ideas"$context) ? $context["ideas"] : (function () { throw new RuntimeError('Variable "ideas" does not exist.'114$this->source); })()), "html"nulltrue);
  263.         echo "</span>
  264. \t\t\t";
  265.         // line 117
  266.         echo "\t\t\t<div data-idea-add-block>
  267. \t\t\t\t<div class=\"icon-idea\">
  268. \t\t\t\t\t<div class=\"sprite-idea-added\"></div>
  269. \t\t\t\t</div>
  270. \t\t\t\t<div class=\"txt-idea js-txt\" data-add=\"";
  271.         // line 121
  272.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_Interior_added_to"), "html"nulltrue);
  273.         echo "\"
  274. \t\t\t\t\t data-del=\"";
  275.         // line 122
  276.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_storage_ideas_del"), "html"nulltrue);
  277.         echo "\"
  278. \t\t\t\t\t data-move=\"";
  279.         // line 123
  280.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_storage_ideas_move"), "html"nulltrue);
  281.         echo "\"
  282. \t\t\t\t></div>
  283. \t\t\t\t<div class=\"arrow-add\"></div>
  284. \t\t\t\t<div class=\"arrow-add-bg\"></div>
  285. \t\t\t</div>
  286. \t\t</a>
  287. \t\t<div class=\"";
  288.         // line 129
  289.         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.'129$this->source); })()), "user", [], "any"falsefalsefalse129)) {
  290.             echo "hidden";
  291.         }
  292.         echo "\">
  293. \t\t\t";
  294.         // line 130
  295.         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.'130$this->source); })()), "user", [], "any"falsefalsefalse130)) {
  296.             // line 131
  297.             echo "\t\t\t\t";
  298.             $this->loadTemplate("@Web/Common/_no-login-alert.html.twig""@Web/Common/_user-icon-menu.html.twig"131)->display(twig_array_merge($context, ["class" => "no-login-block js-no-login-idea""withAttentionHeader" => false"projectType" => "idea"]));
  299.             // line 138
  300.             echo "\t\t\t";
  301.         }
  302.         // line 139
  303.         echo "\t\t</div>
  304. \t\t<div class=\"idea-block hidden-xs popup-block isEmptyList\">
  305. \t\t\t<div class='block-header'>
  306. \t\t\t\t<h5>
  307. \t\t\t\t\t<span class=\"title\">";
  308.         // line 143
  309.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("idea_header_list"), "html"nulltrue);
  310.         echo "</span>&nbsp;
  311. \t\t\t\t\t<span>(&nbsp;</span>
  312. \t\t\t\t\t<a class=\"count-ideas\" href=\"#\" data-change-count=";
  313.         // line 145
  314.         echo twig_escape_filter($this->env, (isset($context["ideas"]) || array_key_exists("ideas"$context) ? $context["ideas"] : (function () { throw new RuntimeError('Variable "ideas" does not exist.'145$this->source); })()), "html"nulltrue);
  315.         echo " data-count=\"";
  316.         echo twig_escape_filter($this->env, (isset($context["ideas"]) || array_key_exists("ideas"$context) ? $context["ideas"] : (function () { throw new RuntimeError('Variable "ideas" does not exist.'145$this->source); })()), "html"nulltrue);
  317.         echo "\"> ";
  318.         echo twig_escape_filter($this->env, (isset($context["ideas"]) || array_key_exists("ideas"$context) ? $context["ideas"] : (function () { throw new RuntimeError('Variable "ideas" does not exist.'145$this->source); })()), "html"nulltrue);
  319.         echo " </a>
  320. \t\t\t\t\t<span> ";
  321.         // line 146
  322.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['WebBundle\Twig\AppExtension']->getCase((isset($context["ideas"]) || array_key_exists("ideas"$context) ? $context["ideas"] : (function () { throw new RuntimeError('Variable "ideas" does not exist.'146$this->source); })()), [=> "collection_interior"=> "collection_interiors"=> "collection_interiors"])), "html"nulltrue);
  323.         echo " </span>
  324. \t\t\t\t\t<span>&nbsp;)</span>
  325. \t\t\t\t</h5>
  326. \t\t\t\t";
  327.         // line 150
  328.         echo "\t\t\t\t";
  329.         $this->loadTemplate("@Web/Common/_addBtn.html.twig""@Web/Common/_user-icon-menu.html.twig"150)->display(twig_array_merge($context, ["actionPath" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_idea_create", ["name" => ""]), "inputPlaceholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("idea_new_project")]));
  330.         // line 156
  331.         echo "\t\t\t</div>
  332. \t\t\t<div class=\"block-idea-content block-content\"
  333. \t\t\t\t data-action=\"";
  334.         // line 159
  335.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_ideas_last");
  336.         echo "\"
  337. \t\t\t\t role=\"insert-list\"
  338. \t\t\t\t data-list-load=\"false\"
  339. \t\t\t>
  340. \t\t\t\t";
  341.         // line 164
  342.         echo "\t\t\t</div>
  343. \t\t</div>
  344. \t</li>
  345. \t";
  346.         // line 169
  347.         echo "\t";
  348.         // line 171
  349.         echo "\t<li class=\"order-menu js-order-menu user-menu-item js-hovered-item\" data-hover-item data-type-project=\"order\">
  350. \t\t";
  351.         // line 173
  352.         echo "\t\t<meta name=\"urlArticleInfo\" content=\"";
  353.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_article_settings", ["id" => 0]);
  354.         echo "\" property=\"\" />
  355. \t\t";
  356.         // line 176
  357.         echo "\t\t";
  358.         // line 187
  359.         echo "\t\t";
  360.         if (($this->extensions['WebBundle\Twig\AppExtension']->userCountry() == "ru")) {
  361.             // line 188
  362.             echo "\t\t\t";
  363.             // line 189
  364.             echo "\t\t\t<a class=\"order help-tooltip\" href=\"#\" data-ru-stop>
  365. \t\t\t\t<i class=\"order-not-added-to-project\">
  366. \t\t\t\t\t";
  367.             // line 191
  368.             $this->loadTemplate("@Web/SVGIconsCode/cart_stop.html.twig""@Web/Common/_user-icon-menu.html.twig"191)->display($context);
  369.             // line 192
  370.             echo "\t\t\t\t</i>
  371. \t\t\t</a>
  372. \t\t\t<div class=\"order-block popup-block temporary-stop\" style=\"max-width: 200px; padding: 15px;\">
  373. \t\t\t\tПоставки в Россию временно не осуществляются.
  374. \t\t\t</div>
  375. \t\t";
  376.         } else {
  377.             // line 198
  378.             echo "
  379. \t\t\t<a class=\"order";
  380.             // line 199
  381.             if (((isset($context["orderArticlesAll"]) || array_key_exists("orderArticlesAll"$context) ? $context["orderArticlesAll"] : (function () { throw new RuntimeError('Variable "orderArticlesAll" does not exist.'199$this->source); })()) > 0)) {
  382.                 echo " active";
  383.             }
  384.             echo " help-tooltip\"
  385. \t\t\t\t";
  386.             // line 201
  387.             echo "\t\t\t\thref=\"";
  388.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_orders");
  389.             echo "\"
  390. \t\t\t>
  391. \t\t\t\t<i class=\"order-added-to-project\" id=\"logic_ordersInProjectIcon\">
  392. \t\t\t\t\t";
  393.             // line 204
  394.             $this->loadTemplate("@Web/SVGIconsCode/cart_active.html.twig""@Web/Common/_user-icon-menu.html.twig"204)->display($context);
  395.             // line 205
  396.             echo "\t\t\t\t</i>
  397. \t\t\t\t<i class=\"order-not-added-to-project\" id=\"logic_noOrdersInProjectIcon\">
  398. \t\t\t\t\t";
  399.             // line 207
  400.             $this->loadTemplate("@Web/SVGIconsCode/cart_default.html.twig""@Web/Common/_user-icon-menu.html.twig"207)->display($context);
  401.             // line 208
  402.             echo "\t\t\t\t</i>
  403. \t\t\t\t<span
  404. \t\t\t\t\tclass=\"val\"
  405. \t\t\t\t\tid=\"logic_orderArticlesCount\"
  406. \t\t\t\t\tdata-change-count=";
  407.             // line 212
  408.             echo twig_escape_filter($this->env, (isset($context["orderArticlesAll"]) || array_key_exists("orderArticlesAll"$context) ? $context["orderArticlesAll"] : (function () { throw new RuntimeError('Variable "orderArticlesAll" does not exist.'212$this->source); })()), "html"nulltrue);
  409.             echo "
  410. \t\t\t\t>
  411. \t\t\t\t\t";
  412.             // line 214
  413.             echo twig_escape_filter($this->env, (isset($context["orderArticlesAll"]) || array_key_exists("orderArticlesAll"$context) ? $context["orderArticlesAll"] : (function () { throw new RuntimeError('Variable "orderArticlesAll" does not exist.'214$this->source); })()), "html"nulltrue);
  414.             echo "
  415. \t\t\t\t</span>
  416. \t\t\t\t";
  417.             // line 218
  418.             echo "\t\t\t\t<div data-order-add-block>
  419. \t\t\t\t\t<div class=\"icon-order\">
  420. \t\t\t\t\t\t<div class=\"sprite-order-added\"></div>
  421. \t\t\t\t\t</div>
  422. \t\t\t\t\t<div class=\"txt-order js-txt\"
  423. \t\t\t\t\t\t data-add=\"";
  424.             // line 223
  425.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_order_add"), "html"nulltrue);
  426.             echo "\"
  427. \t\t\t\t\t\t data-del=\"";
  428.             // line 224
  429.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_order_del"), "html"nulltrue);
  430.             echo "\"
  431. \t\t\t\t\t></div>
  432. \t\t\t\t\t<div class=\"arrow-add\"></div>
  433. \t\t\t\t\t<div class=\"arrow-add-bg\"></div>
  434. \t\t\t\t</div>
  435. \t\t\t</a>
  436. \t\t\t";
  437.             // line 230
  438.             $context["lang"] = $this->extensions['WebBundle\Twig\AppExtension']->userLocale();
  439.             // line 231
  440.             echo "\t\t\t<div class=\"order-block hidden-xs popup-block isEmptyList\">
  441. \t\t\t\t<div class='block-header'>
  442. \t\t\t\t\t<h5>
  443. \t\t\t\t\t\t<span class='title'>";
  444.             // line 234
  445.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("header_orders"), "html"nulltrue);
  446.             echo "</span>&nbsp;
  447. \t\t\t\t\t\t<span>(&nbsp;</span>
  448. \t\t\t\t\t\t<a class=\"articles-count\"
  449. \t\t\t\t\t\t\thref=\"";
  450.             // line 237
  451.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_orders");
  452.             echo "\"
  453. \t\t\t\t\t\t\tdata-change-count=";
  454.             // line 238
  455.             echo twig_escape_filter($this->env, (isset($context["orderArticlesAll"]) || array_key_exists("orderArticlesAll"$context) ? $context["orderArticlesAll"] : (function () { throw new RuntimeError('Variable "orderArticlesAll" does not exist.'238$this->source); })()), "html"nulltrue);
  456.             echo "> ";
  457.             echo twig_escape_filter($this->env, (isset($context["orderArticlesAll"]) || array_key_exists("orderArticlesAll"$context) ? $context["orderArticlesAll"] : (function () { throw new RuntimeError('Variable "orderArticlesAll" does not exist.'238$this->source); })()), "html"nulltrue);
  458.             echo " </a>
  459. \t\t\t\t\t\t<span id=\"aNameTrns\"
  460. \t\t\t\t\t\t\t\tdata-item-phrase=\"";
  461.             // line 240
  462.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['WebBundle\Twig\AppExtension']->declension((isset($context["orderArticlesAll"]) || array_key_exists("orderArticlesAll"$context) ? $context["orderArticlesAll"] : (function () { throw new RuntimeError('Variable "orderArticlesAll" does not exist.'240$this->source); })()), [=> "order.article.count"=> "order.article.counts"=> "order.article.counts_d"], (isset($context["lang"]) || array_key_exists("lang"$context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.'240$this->source); })()))), "html"nulltrue);
  463.             echo "\"
  464. \t\t\t\t\t\t\t\tdata-trans-count=\"";
  465.             // line 241
  466.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("order.article.count"), "html"nulltrue);
  467.             echo "\"
  468. \t\t\t\t\t\t\t\tdata-trans-counts=\"";
  469.             // line 242
  470.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("order.article.counts"), "html"nulltrue);
  471.             echo "\"
  472. \t\t\t\t\t\t\t\tdata-trans-counts-d=\"";
  473.             // line 243
  474.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("order.article.counts_d"), "html"nulltrue);
  475.             echo "\"
  476. \t\t\t\t\t\t>
  477. \t\t\t\t\t\t\t";
  478.             // line 245
  479.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->extensions['WebBundle\Twig\AppExtension']->declension((isset($context["orderArticlesAll"]) || array_key_exists("orderArticlesAll"$context) ? $context["orderArticlesAll"] : (function () { throw new RuntimeError('Variable "orderArticlesAll" does not exist.'245$this->source); })()), [=> "order.article.count"=> "order.article.counts"=> "order.article.counts_d"], (isset($context["lang"]) || array_key_exists("lang"$context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.'245$this->source); })()))), "html"nulltrue);
  480.             echo "</span>
  481. \t\t\t\t\t\t<span>&nbsp;)</span>
  482. \t\t\t\t\t\t<span class=\"count-orders hidden\" data-count=\"";
  483.             // line 247
  484.             echo twig_escape_filter($this->env, (isset($context["ordersCount"]) || array_key_exists("ordersCount"$context) ? $context["ordersCount"] : (function () { throw new RuntimeError('Variable "ordersCount" does not exist.'247$this->source); })()), "html"nulltrue);
  485.             echo "\">";
  486.             echo twig_escape_filter($this->env, (isset($context["ordersCount"]) || array_key_exists("ordersCount"$context) ? $context["ordersCount"] : (function () { throw new RuntimeError('Variable "ordersCount" does not exist.'247$this->source); })()), "html"nulltrue);
  487.             echo "</span>
  488. \t\t\t\t\t</h5>
  489. \t\t\t\t\t";
  490.             // line 250
  491.             echo "\t\t\t\t\t";
  492.             $this->loadTemplate("@Web/Common/_addBtn.html.twig""@Web/Common/_user-icon-menu.html.twig"250)->display(twig_array_merge($context, ["actionPath" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_buy_order_create"), "inputPlaceholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("buyOrder.name3")]));
  493.             // line 256
  494.             echo "\t\t\t\t</div>
  495. \t\t\t\t<div class=\"block-order-content block-content\"
  496. \t\t\t\t\tdata-action=\"";
  497.             // line 258
  498.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_last_buy_orders");
  499.             echo "\"
  500. \t\t\t\t\trole=\"insert-list\"
  501. \t\t\t\t\tdata-list-load=\"false\"
  502. \t\t\t\t>
  503. \t\t\t\t\t";
  504.             // line 263
  505.             echo "\t\t\t\t</div>
  506. \t\t\t</div>
  507. \t\t";
  508.         }
  509.         // line 266
  510.         echo " ";
  511.         // line 267
  512.         echo "\t
  513. \t\t";
  514.         // line 271
  515.         echo "\t\t";
  516.         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.'271$this->source); })()), "user", [], "any"falsefalsefalse271)) {
  517.             // line 272
  518.             echo "\t\t\t<div
  519. \t\t\t\tid=\"order_no_login_alert\"
  520. \t\t\t\tclass=\"popup-block no-login-popup\"
  521. \t\t\t>
  522. \t\t\t\t";
  523.             // line 276
  524.             $this->loadTemplate("@Web/Common/_no-login-alert.html.twig""@Web/Common/_user-icon-menu.html.twig"276)->display(twig_array_merge($context, ["class" => "no-login-block js-no-login-order""withAttentionHeader" => true"projectType" => "order"]));
  525.             // line 283
  526.             echo "\t\t\t</div>
  527. \t\t";
  528.         }
  529.         // line 285
  530.         echo "\t</li>
  531. </ul>
  532. ";
  533.         
  534.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  535.         
  536.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  537.         
  538.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  539.     }
  540.     public function getTemplateName()
  541.     {
  542.         return "@Web/Common/_user-icon-menu.html.twig";
  543.     }
  544.     public function isTraitable()
  545.     {
  546.         return false;
  547.     }
  548.     public function getDebugInfo()
  549.     {
  550.         return array (  548 => 285,  544 => 283,  542 => 276,  536 => 272,  533 => 271,  530 => 267,  528 => 266,  522 => 263,  515 => 258,  511 => 256,  508 => 250,  501 => 247,  496 => 245,  491 => 243,  487 => 242,  483 => 241,  479 => 240,  472 => 238,  468 => 237,  462 => 234,  457 => 231,  455 => 230,  446 => 224,  442 => 223,  435 => 218,  429 => 214,  424 => 212,  418 => 208,  416 => 207,  412 => 205,  410 => 204,  403 => 201,  397 => 199,  394 => 198,  386 => 192,  384 => 191,  380 => 189,  378 => 188,  375 => 187,  373 => 176,  367 => 173,  364 => 171,  362 => 169,  356 => 164,  349 => 159,  344 => 156,  341 => 150,  335 => 146,  327 => 145,  322 => 143,  316 => 139,  313 => 138,  310 => 131,  308 => 130,  302 => 129,  293 => 123,  289 => 122,  285 => 121,  279 => 117,  272 => 114,  269 => 113,  267 => 112,  263 => 110,  261 => 109,  254 => 106,  248 => 104,  245 => 103,  243 => 101,  237 => 96,  230 => 91,  222 => 86,  218 => 85,  214 => 84,  204 => 79,  201 => 78,  199 => 77,  195 => 75,  193 => 74,  188 => 72,  182 => 71,  178 => 70,  175 => 69,  172 => 67,  167 => 64,  161 => 62,  158 => 61,  151 => 60,  149 => 59,  144 => 57,  140 => 56,  136 => 54,  134 => 53,  131 => 52,  126 => 50,  123 => 49,  121 => 48,  113 => 43,  108 => 40,  105 => 39,  100 => 38,  97 => 37,  94 => 36,  91 => 35,  88 => 34,  85 => 33,  81 => 30,  78 => 29,  76 => 27,  68 => 23,  57 => 14,  54 => 13,  51 => 11,  49 => 10,  46 => 8,);
  551.     }
  552.     public function getSourceContext()
  553.     {
  554.         return new Source("{#
  555. @элементам списка с выпадающими списками при ховере присвоить атрибут data-hover-item
  556. @блоку с отображением количества присвоить атрибут data-count=\"{{ количество }}\"
  557. @блок, в который вставляем присланный аяксом список, должен иметь атрибут role=\"insert-list\"
  558. @необходимость отправки запроса определяем по data-list-load=\"false\" (если true, то не отправлять, так как список уже загружен)
  559. @data-item-phrase - атрибут, в котором хранится текущая фраза, обозначающая количество элементов (item или items)
  560. #}
  561. <ul class=\"list-inline list-user-menu js-list-user-menu pull-right\" data-user-menu>
  562. \t{# профиль пользователя #}
  563. \t{# элемент виден на мобильных устройствах #}
  564. \t<li class=\"setting-item user-menu-item-mobile user-menu-item\">
  565. \t\t{# кнопка с иконкой профиля с выпадающим списком collapseRegTop #}
  566. \t\t{% if user.alias is defined %}
  567. \t\t\t<a class=\"navbar-toggle-reg collapsed m-l-n\"
  568. \t\t\t   role=\"button\"
  569. \t\t\t   data-toggle=\"collapse\"
  570. \t\t\t   href=\"#collapseRegTop\"
  571. \t\t\t   aria-expanded=\"false\"
  572. \t\t\t>
  573. \t\t\t\t<i class=\"material-icons\">&#xE851;</i>
  574. \t\t\t</a>
  575. \t\t{% else %}
  576. \t\t\t<a href=\"{{ path('app_login') }}\">
  577. \t\t\t\t<i class=\"material-icons\">&#xE8A6;</i>
  578. \t\t\t</a>
  579. \t\t{% endif %}
  580. \t\t{# выпадающее меню пользователя (ссылка на профиль и логаут), или ссылки на регистрацию/авторизацию (при
  581. \t\t   клике на иконку профиля href=\"#collapseRegTop\") иконка видна, когда не помещается имя пользователя #}
  582. \t\t{% include '@Web/Common/dropdown-user-menu.html.twig' %}
  583. \t</li>
  584. \t{# показать попап с чатом для пользователя, который впервые зашел на сайт #}
  585. \t{% set isRTWidget = useRTWidget() %}
  586. \t{% set unreadCount = 0 %}
  587. \t{% if not isRTWidget %}
  588. \t\t{% set unreadCount = getUnreadCount() %}
  589. \t{% endif %}
  590.     <!-- [debug] Initial unread count: {{ unreadCount }} -->
  591.     {% if true %} {# Оставляем возможность вкл/выкл для конкретный локалей #}
  592.         <li class=\"user-menu-item order-discus js-first-visit-discuss\"
  593.             data-url=\"send/client/msg\"
  594.             data-id-client=\"client_id\"
  595.             data-close-url=\"{{ path('app_cookie_close_hello_message') }}\"
  596.             data-hover-item
  597.         >
  598.             <a class=\"order-discus help-tooltip js-chat-button-link\"
  599. \t\t\t\tid=\"chat-widget-btn\"
  600. \t\t\t\t{% if not isRTWidget %}
  601. \t\t\t\t\ttarget=\"_blank\"
  602. \t\t\t\t\thref=\"{{ path('app_chatb_chatbpage') }}\"
  603. \t\t\t\t{% endif %}
  604.             >
  605.                 {% include '@Web/SVGIconsCode/chat.html.twig' with { 'unreadAll': unreadCount } %}
  606.             </a>
  607.             <div class=\"order-discus-block popup-block\"
  608.                 data-no-new-messages-tooltip-text=\"{{ 'contacts.live_chat' | trans }}\"
  609.                 data-new-messages-tooltip-text=\"{{ 'chat_unread_messages' | trans }}\"
  610.             >
  611.                 {% if not isRTWidget and unreadCount > 0 %}
  612.                     {{ 'chat_unread_messages' | trans }}{% if unreadCount > 99 %}: {{ unreadCount }}{% endif %}
  613.                 {% else %}
  614.                     {{ 'contacts.live_chat' | trans }}
  615.                 {% endif %}
  616.             </div>
  617.         </li>
  618.     {% endif %}
  619. \t{# просмотренные пользователем страницы #}
  620. \t<li class=\"watch-menu user-menu-item hidden-xs\" data-hover-item>
  621. \t\t<meta name=\"urlSetHistory\" content=\"{{ path('app_visit_save') }}\" property=\"\" />
  622. \t\t<a class=\"watch help-tooltip{% if visitedAll > 0 %} active{% endif %}\"
  623. \t\t\thref=\"{{ path('visit') }}\">
  624. \t\t\t<i class=\"watch-added-to-project\">
  625. \t\t\t\t{% include '@Web/SVGIconsCode/history_active.html.twig' %}
  626. \t\t\t</i>
  627. \t\t\t<i class=\"watch-not-added-to-project\">
  628. \t\t\t\t{% include '@Web/SVGIconsCode/history_default.html.twig' %}
  629. \t\t\t</i>
  630. \t\t\t<span class=\"user-history-pages-count val\" data-count=\"{{ visitedAll }}\">{{ visitedAll }}</span>
  631. \t\t</a>
  632. \t\t<div class=\"watch-block popup-block popup-block-last-visits isEmptyList\">
  633. \t\t\t<div class='block-header'>
  634. \t\t\t\t<h5>
  635. \t\t\t\t\t<span class=\"title\">{{ 'header_history' | trans }}</span>&nbsp;
  636. \t\t\t\t\t<a href=\"{{ path('visit') }}\">
  637. \t\t\t\t\t\t(<span class=\"watch-count user-history-pages-count\">{{ visitedAll }}</span>)
  638. \t\t\t\t\t</a>
  639. \t\t\t\t</h5>
  640. \t\t\t</div>
  641. \t\t\t<div class=\"block-watch-content\"
  642. \t\t\t\t data-action=\"{{ path('app_visit_last') }}\"
  643. \t\t\t\t role=\"insert-list\"
  644. \t\t\t\t data-list-load=\"false\"
  645. \t\t\t>
  646. \t\t\t\t{#<div class=\"smallTimer\"></div>#}
  647. \t\t\t</div>
  648. \t\t</div>
  649. \t</li>
  650. \t{# идеи пользователя #}
  651. \t{# изменениe количества скрипт находит все [data-change-count], в зависимости
  652. \t   от [data-type-project], и изменяет количество в них #}
  653. \t<li class=\"idea-menu user-menu-item\" data-hover-item data-type-project=\"idea\">
  654. \t\t<a class=\"star idea-iorder help-tooltipnformer{% if ideas > 0 %} active{% endif %}\"
  655. \t\t   {# onclick=\"yaCounter51021749.reachGoal('Мои идеи'); return true;\"#}
  656. \t\t   href=\"{{ path('app_ideas') }}\"
  657. \t\t>
  658. \t\t\t<i class=\"idea-added-to-project\" id=\"logic_ideasInProjectIcon\">
  659. \t\t\t\t{% include '@Web/SVGIconsCode/idea-added-top.html.twig' %}
  660. \t\t\t</i>
  661. \t\t\t<i class=\"idea-not-added-to-project\" id=\"logic_noIdeasInProjectIcon\">
  662. \t\t\t\t{% include '@Web/SVGIconsCode/idea-no-added-top.html.twig' %}
  663. \t\t\t</i>
  664. \t\t\t<span class=\"val ideas_count\" id=\"logic_orderIdeasCount\" data-change-count=\"{{ ideas }}\">{{ ideas }}</span>
  665. \t\t\t{# сообщение с иконкой и фразой, что элемент добавлен в проект #}
  666. \t\t\t<div data-idea-add-block>
  667. \t\t\t\t<div class=\"icon-idea\">
  668. \t\t\t\t\t<div class=\"sprite-idea-added\"></div>
  669. \t\t\t\t</div>
  670. \t\t\t\t<div class=\"txt-idea js-txt\" data-add=\"{{ 'header_Interior_added_to' | trans }}\"
  671. \t\t\t\t\t data-del=\"{{ 'header_storage_ideas_del' | trans }}\"
  672. \t\t\t\t\t data-move=\"{{ 'header_storage_ideas_move' | trans }}\"
  673. \t\t\t\t></div>
  674. \t\t\t\t<div class=\"arrow-add\"></div>
  675. \t\t\t\t<div class=\"arrow-add-bg\"></div>
  676. \t\t\t</div>
  677. \t\t</a>
  678. \t\t<div class=\"{% if not app.user %}hidden{% endif %}\">
  679. \t\t\t{% if not app.user %}
  680. \t\t\t\t{% include '@Web/Common/_no-login-alert.html.twig' 
  681. \t\t\t\t\twith { 
  682. \t\t\t\t\t\t'class': 'no-login-block js-no-login-idea',
  683. \t\t\t\t\t\t'withAttentionHeader': false,
  684. \t\t\t\t\t\t'projectType': 'idea'
  685. \t\t\t\t\t} 
  686. \t\t\t\t%}
  687. \t\t\t{% endif %}
  688. \t\t</div>
  689. \t\t<div class=\"idea-block hidden-xs popup-block isEmptyList\">
  690. \t\t\t<div class='block-header'>
  691. \t\t\t\t<h5>
  692. \t\t\t\t\t<span class=\"title\">{{ 'idea_header_list' | trans }}</span>&nbsp;
  693. \t\t\t\t\t<span>(&nbsp;</span>
  694. \t\t\t\t\t<a class=\"count-ideas\" href=\"#\" data-change-count={{ ideas }} data-count=\"{{ ideas }}\"> {{ ideas }} </a>
  695. \t\t\t\t\t<span> {{ ideas | caseString(['collection_interior', 'collection_interiors','collection_interiors']) | trans }} </span>
  696. \t\t\t\t\t<span>&nbsp;)</span>
  697. \t\t\t\t</h5>
  698. \t\t\t\t{# кнопка для добавления проекта идей #}
  699. \t\t\t\t{% include '@Web/Common/_addBtn.html.twig'
  700. \t\t\t\t\twith {
  701. \t\t\t\t\t\t'actionPath': path('app_idea_create', { name: '' }),
  702. \t\t\t\t\t\t'inputPlaceholder': 'idea_new_project' | trans,
  703. \t\t\t\t\t}
  704. \t\t\t\t%}
  705. \t\t\t</div>
  706. \t\t\t<div class=\"block-idea-content block-content\"
  707. \t\t\t\t data-action=\"{{ path('app_ideas_last') }}\"
  708. \t\t\t\t role=\"insert-list\"
  709. \t\t\t\t data-list-load=\"false\"
  710. \t\t\t>
  711. \t\t\t\t{#<div class=\"smallTimer\"></div>#}
  712. \t\t\t</div>
  713. \t\t</div>
  714. \t</li>
  715. \t{# заказы пользователя #}
  716. \t{# изменение количества скрипт находит все [data-change-count], в зависимости
  717. \t   от [data-type-project], и изменяет количество в них #}
  718. \t<li class=\"order-menu js-order-menu user-menu-item js-hovered-item\" data-hover-item data-type-project=\"order\">
  719. \t\t{# специальный url для получения свойств артикула #}
  720. \t\t<meta name=\"urlArticleInfo\" content=\"{{ path('app_article_settings', {'id': 0}) }}\" property=\"\" />
  721. \t\t{# >>> на случай приостановления приема заказов использовать закомментированный пример (напр. были остановки в UK https://te.remote.team/#/discus/06F82981-2F73-621D-A326-95E85F091B1A/ #}
  722. \t\t{# {% if userCountry() == 'gb' %}
  723. \t\t\t<a class=\"order help-tooltip\" href=\"#\" data-uk-stop>
  724. \t\t\t\t<i class=\"order-not-added-to-project\">
  725. \t\t\t\t\t{% include '@Web/SVGIconsCode/cart_stop.html.twig' %}
  726. \t\t\t\t</i>
  727. \t\t\t</a>
  728. \t\t\t<div class=\"order-block popup-block temporary-stop\" style=\"max-width: 200px; padding: 15px;\">
  729. \t\t\t\t{{ 'msg.uk' | trans }}.
  730. \t\t\t\t<a href=\"{{ path('app_home') }}/blog/order-placement-with-delivery-to-the-uk-suspended\" target=\"_blank\">{{ 'article_item_more_info' | trans }}<a>
  731. \t\t\t</div>
  732. \t\t{% else %} #}
  733. \t\t{% if userCountry() == 'ru' %}
  734. \t\t\t{# https://te.remote.team/#/discus/7ED1B0D8-F44C-B99A-F47F-4E892406CC10/ #}
  735. \t\t\t<a class=\"order help-tooltip\" href=\"#\" data-ru-stop>
  736. \t\t\t\t<i class=\"order-not-added-to-project\">
  737. \t\t\t\t\t{% include '@Web/SVGIconsCode/cart_stop.html.twig' %}
  738. \t\t\t\t</i>
  739. \t\t\t</a>
  740. \t\t\t<div class=\"order-block popup-block temporary-stop\" style=\"max-width: 200px; padding: 15px;\">
  741. \t\t\t\tПоставки в Россию временно не осуществляются.
  742. \t\t\t</div>
  743. \t\t{% else %}
  744. \t\t\t<a class=\"order{% if orderArticlesAll > 0 %} active{% endif %} help-tooltip\"
  745. \t\t\t\t{#onclick=\"yaCounter51021749.reachGoal('Корзина'); return true;\"#}
  746. \t\t\t\thref=\"{{ path('app_orders') }}\"
  747. \t\t\t>
  748. \t\t\t\t<i class=\"order-added-to-project\" id=\"logic_ordersInProjectIcon\">
  749. \t\t\t\t\t{% include '@Web/SVGIconsCode/cart_active.html.twig' %}
  750. \t\t\t\t</i>
  751. \t\t\t\t<i class=\"order-not-added-to-project\" id=\"logic_noOrdersInProjectIcon\">
  752. \t\t\t\t\t{% include '@Web/SVGIconsCode/cart_default.html.twig' %}
  753. \t\t\t\t</i>
  754. \t\t\t\t<span
  755. \t\t\t\t\tclass=\"val\"
  756. \t\t\t\t\tid=\"logic_orderArticlesCount\"
  757. \t\t\t\t\tdata-change-count={{ orderArticlesAll }}
  758. \t\t\t\t>
  759. \t\t\t\t\t{{ orderArticlesAll }}
  760. \t\t\t\t</span>
  761. \t\t\t\t{# сообщение с иконкой и фразой, что элемент добавлен в проект #}
  762. \t\t\t\t<div data-order-add-block>
  763. \t\t\t\t\t<div class=\"icon-order\">
  764. \t\t\t\t\t\t<div class=\"sprite-order-added\"></div>
  765. \t\t\t\t\t</div>
  766. \t\t\t\t\t<div class=\"txt-order js-txt\"
  767. \t\t\t\t\t\t data-add=\"{{ 'header_order_add' | trans }}\"
  768. \t\t\t\t\t\t data-del=\"{{ 'header_order_del' | trans }}\"
  769. \t\t\t\t\t></div>
  770. \t\t\t\t\t<div class=\"arrow-add\"></div>
  771. \t\t\t\t\t<div class=\"arrow-add-bg\"></div>
  772. \t\t\t\t</div>
  773. \t\t\t</a>
  774. \t\t\t{% set lang = userLocale() %}
  775. \t\t\t<div class=\"order-block hidden-xs popup-block isEmptyList\">
  776. \t\t\t\t<div class='block-header'>
  777. \t\t\t\t\t<h5>
  778. \t\t\t\t\t\t<span class='title'>{{ 'header_orders' | trans }}</span>&nbsp;
  779. \t\t\t\t\t\t<span>(&nbsp;</span>
  780. \t\t\t\t\t\t<a class=\"articles-count\"
  781. \t\t\t\t\t\t\thref=\"{{ path('app_orders') }}\"
  782. \t\t\t\t\t\t\tdata-change-count={{ orderArticlesAll }}> {{ orderArticlesAll }} </a>
  783. \t\t\t\t\t\t<span id=\"aNameTrns\"
  784. \t\t\t\t\t\t\t\tdata-item-phrase=\"{{ orderArticlesAll | declension(['order.article.count', 'order.article.counts','order.article.counts_d'], lang) | trans }}\"
  785. \t\t\t\t\t\t\t\tdata-trans-count=\"{{ 'order.article.count' | trans }}\"
  786. \t\t\t\t\t\t\t\tdata-trans-counts=\"{{ 'order.article.counts' | trans }}\"
  787. \t\t\t\t\t\t\t\tdata-trans-counts-d=\"{{ 'order.article.counts_d' | trans }}\"
  788. \t\t\t\t\t\t>
  789. \t\t\t\t\t\t\t{{ orderArticlesAll | declension(['order.article.count', 'order.article.counts','order.article.counts_d'], lang) | trans }}</span>
  790. \t\t\t\t\t\t<span>&nbsp;)</span>
  791. \t\t\t\t\t\t<span class=\"count-orders hidden\" data-count=\"{{ ordersCount }}\">{{ ordersCount }}</span>
  792. \t\t\t\t\t</h5>
  793. \t\t\t\t\t{# кнопка для добавления заказа #}
  794. \t\t\t\t\t{% include '@Web/Common/_addBtn.html.twig'
  795. \t\t\t\t\t\twith {
  796. \t\t\t\t\t\t\t'actionPath': path('app_buy_order_create'),
  797. \t\t\t\t\t\t\t'inputPlaceholder': 'buyOrder.name3' | trans,
  798. \t\t\t\t\t\t}
  799. \t\t\t\t\t%}
  800. \t\t\t\t</div>
  801. \t\t\t\t<div class=\"block-order-content block-content\"
  802. \t\t\t\t\tdata-action=\"{{ path('app_last_buy_orders') }}\"
  803. \t\t\t\t\trole=\"insert-list\"
  804. \t\t\t\t\tdata-list-load=\"false\"
  805. \t\t\t\t>
  806. \t\t\t\t\t{#<div class=\"smallTimer\"></div>#}
  807. \t\t\t\t</div>
  808. \t\t\t</div>
  809. \t\t{% endif %} {# <<< на случай приприостановления приема заказов #}
  810. \t
  811. \t\t{# Попап в топ меню для корзины - предупреждение о необходимости
  812.       \tвойти или зарегистрироваться для сохранения отобранного.
  813. \t\tСкриптом блок будет клонираться в подсказку при добавлении артикула #}
  814. \t\t{% if not app.user %}
  815. \t\t\t<div
  816. \t\t\t\tid=\"order_no_login_alert\"
  817. \t\t\t\tclass=\"popup-block no-login-popup\"
  818. \t\t\t>
  819. \t\t\t\t{% include '@Web/Common/_no-login-alert.html.twig'
  820. \t\t\t\t\twith {
  821. \t\t\t\t\t\t'class': 'no-login-block js-no-login-order',
  822. \t\t\t\t\t\t'withAttentionHeader': true,
  823. \t\t\t\t\t\t'projectType': 'order'
  824. \t\t\t\t\t}
  825. \t\t\t\t%}
  826. \t\t\t</div>
  827. \t\t{% endif %}
  828. \t</li>
  829. </ul>
  830. ""@Web/Common/_user-icon-menu.html.twig""/var/www/dev5.tile.expert/src/WebBundle/Resources/views/Common/_user-icon-menu.html.twig");
  831.     }
  832. }