<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* madeshop/template/common/header.twig */
class __TwigTemplate_62db0125ce81fd2c677dfede49e391e0110f18f7835d0c481fe11f649ed72f94 extends \Twig\Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<!DOCTYPE html>
<!--[if IE]><![endif]-->
<!--[if IE 8 ]><html dir=\"";
        // line 3
        echo ($context["direction"] ?? null);
        echo "\" lang=\"";
        echo ($context["lang"] ?? null);
        echo "\" class=\"ie8\"><![endif]-->
<!--[if IE 9 ]><html dir=\"";
        // line 4
        echo ($context["direction"] ?? null);
        echo "\" lang=\"";
        echo ($context["lang"] ?? null);
        echo "\" class=\"ie9\"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir=\"";
        // line 6
        echo ($context["direction"] ?? null);
        echo "\" lang=\"";
        echo ($context["lang"] ?? null);
        echo "\">
<!--<![endif]-->

<head>
    <meta charset=\"UTF-8\" />
    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
    <title>";
        // line 13
        echo ($context["title"] ?? null);
        echo "</title>
    ";
        // line 14
        if (($context["robots"] ?? null)) {
            // line 15
            echo "    <meta name=\"robots\" content=\"";
            echo ($context["robots"] ?? null);
            echo "\" /> ";
        }
        // line 16
        echo "    <base href=\"";
        echo ($context["base"] ?? null);
        echo "\" /> ";
        if (($context["description"] ?? null)) {
            // line 17
            echo "    <meta name=\"description\" content=\"";
            echo ($context["description"] ?? null);
            echo "\" /> ";
        }
        echo " ";
        if (($context["keywords"] ?? null)) {
            // line 18
            echo "    <meta name=\"keywords\" content=\"";
            echo ($context["keywords"] ?? null);
            echo "\" /> ";
        }
        echo " ";
        if (($context["og_url"] ?? null)) {
            // line 19
            echo "    <meta property=\"og:title\" content=\"";
            echo ($context["title"] ?? null);
            echo "\" />
    <meta property=\"og:type\" content=\"website\" />
    <meta property=\"og:url\" content=\"";
            // line 21
            echo ($context["og_url"] ?? null);
            echo "\" /> ";
            if (($context["og_image"] ?? null)) {
                // line 22
                echo "    <meta property=\"og:image\" content=\"";
                echo ($context["og_image"] ?? null);
                echo "\" /> ";
            } else {
                // line 23
                echo "    <meta property=\"og:image\" content=\"";
                echo ($context["logo"] ?? null);
                echo "\" /> ";
            }
            // line 24
            echo "    <meta property=\"og:site_name\" content=\"";
            echo ($context["name"] ?? null);
            echo "\" /> ";
        }
        // line 25
        echo "
    <script src=\"catalog/view/javascript/jquery/jquery-2.1.1.min.js\" type=\"text/javascript\"></script>
    <link href=\"catalog/view/javascript/bootstrap/css/bootstrap.min.css\" rel=\"stylesheet\" media=\"screen\" />
    <script src=\"catalog/view/javascript/bootstrap/js/bootstrap.min.js\" type=\"text/javascript\"></script>
    <link href=\"catalog/view/javascript/font-awesome/css/font-awesome.min.css\" rel=\"stylesheet\" type=\"text/css\" />
    <link href=\"https://fonts.googleapis.com/css?family=Roboto:400,900&amp;subset=cyrillic\" rel=\"stylesheet\">
    <link href=\"catalog/view/theme/madeshop/stylesheet/stylesheet.css\" rel=\"stylesheet\"> ";
        // line 31
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["styles"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["style"]) {
            // line 32
            echo "    <link href=\"";
            echo twig_get_attribute($this->env, $this->source, $context["style"], "href", [], "any", false, false, false, 32);
            echo "\" type=\"text/css\" rel=\"";
            echo twig_get_attribute($this->env, $this->source, $context["style"], "rel", [], "any", false, false, false, 32);
            echo "\" media=\"";
            echo twig_get_attribute($this->env, $this->source, $context["style"], "media", [], "any", false, false, false, 32);
            echo "\" /> ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['style'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 33
        echo "    <link href=\"catalog/view/theme/madeshop/stylesheet/madeshop";
        echo ($context["css_version"] ?? null);
        echo ".css\" rel=\"stylesheet\"> ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["scripts"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["script"]) {
            // line 34
            echo "    <script src=\"";
            echo $context["script"];
            echo "\" type=\"text/javascript\"></script>
    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['script'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 35
        echo " ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["links"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["link"]) {
            // line 36
            echo "    <link href=\"";
            echo twig_get_attribute($this->env, $this->source, $context["link"], "href", [], "any", false, false, false, 36);
            echo "\" rel=\"";
            echo twig_get_attribute($this->env, $this->source, $context["link"], "rel", [], "any", false, false, false, 36);
            echo "\" /> ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['link'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        echo " ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["analytics"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["analytic"]) {
            echo " ";
            echo $context["analytic"];
            echo " ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['analytic'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 37
        echo "</head>

<body class=\"";
        // line 39
        echo ($context["class"] ?? null);
        echo " home-";
        echo ($context["madeshop_home"] ?? null);
        echo " top";
        echo ($context["madeshop_top"] ?? null);
        echo "\">
    <div id=\"cart-panel\" class=\"spanel\">";
        // line 40
        echo ($context["madeshop_cart"] ?? null);
        echo "</div>
    <div id=\"search-panel\" class=\"spanel\">";
        // line 41
        echo ($context["madeshop_search"] ?? null);
        echo "</div>
    <div id=\"login-panel\" class=\"spanel\">";
        // line 42
        echo ($context["madeshop_login"] ?? null);
        echo "</div>
    ";
        // line 43
        echo ($context["madeshop_call"] ?? null);
        echo "
    <div id=\"modal-url\" class=\"panel-url\" data-spanel=\"#modal-panel\"></div>
    <div id=\"modal-panel\" class=\"full spanel trans\">
        <div class=\"close-panel\">
            <div class=\"container\"><i class=\"fa fa-arrow-up\"></i>";
        // line 47
        echo ($context["text_close"] ?? null);
        echo "</div>
        </div>
        <div class=\"container\">
            <div id=\"clone\"></div>
        </div>
    </div>
    <div id=\"view-panel\" class=\"full spanel trans\">
        <div class=\"close-panel\">
            <div class=\"container\"><i class=\"fa fa-arrow-up\"></i>";
        // line 55
        echo ($context["text_close"] ?? null);
        echo "</div>
        </div>
        <div id=\"clone2\"></div>
    </div>
    <script>
        \$(document).ready(function() {
            \$('#menu .nav').flexMenu({
                linkText: \"";
        // line 62
        echo ($context["madeshop_more"] ?? null);
        echo "\",
            });
        });
    </script>
    <header>
        <div class=\"container micon";
        // line 67
        echo ($context["micon"] ?? null);
        echo "\">
            <div class=\"anim-border\"></div>
            <div class=\"logo-block\">
                <div id=\"logo\">
                    ";
        // line 71
        if (($context["og_url"] ?? null)) {
            echo " ";
            if ((($context["logo"] ?? null) && ($context["text_logo"] ?? null))) {
                echo " ";
                if ((($context["home"] ?? null) == ($context["og_url"] ?? null))) {
                    // line 72
                    echo "                    <span class=\"text-logo\">";
                    echo ($context["text_logo"] ?? null);
                    echo "</a>
            ";
                } else {
                    // line 74
                    echo "            <a href=\"";
                    echo ($context["home"] ?? null);
                    echo "\" class=\"text-logo\">";
                    echo ($context["text_logo"] ?? null);
                    echo "</a>
            ";
                }
                // line 76
                echo "            ";
            } else {
                echo "\t\t   
\t\t    ";
                // line 77
                if ((($context["home"] ?? null) == ($context["og_url"] ?? null))) {
                    // line 78
                    echo "              <img src=\"";
                    echo ($context["logo"] ?? null);
                    echo "\" title=\"";
                    echo ($context["name"] ?? null);
                    echo "\" alt=\"";
                    echo ($context["name"] ?? null);
                    echo "\" class=\"img-responsive\" />
            ";
                } else {
                    // line 80
                    echo "              <a href=\"";
                    echo ($context["home"] ?? null);
                    echo "\"><img src=\"";
                    echo ($context["logo"] ?? null);
                    echo "\" title=\"";
                    echo ($context["name"] ?? null);
                    echo "\" alt=\"";
                    echo ($context["name"] ?? null);
                    echo "\" class=\"img-responsive\" /></a>
            ";
                }
                // line 82
                echo "          ";
            }
            // line 83
            echo "\t\t  ";
        } else {
            // line 84
            echo "\t\t  ";
            if (($context["text_logo"] ?? null)) {
                // line 85
                echo "\t\t\t\t<a href=\"";
                echo ($context["home"] ?? null);
                echo "\" class=\"text-logo\">";
                echo ($context["text_logo"] ?? null);
                echo "</a>
\t\t\t\t";
            } else {
                // line 87
                echo "\t\t\t\t<a href=\"";
                echo ($context["home"] ?? null);
                echo "\"><img src=\"";
                echo ($context["logo"] ?? null);
                echo "\" title=\"";
                echo ($context["name"] ?? null);
                echo "\" alt=\"";
                echo ($context["name"] ?? null);
                echo "\" class=\"img-responsive\" /></a>
\t\t\t\t";
            }
            // line 89
            echo "\t\t  ";
        }
        // line 90
        echo "        </div>
        <div class=\"slogan\">Благоустройство городской<br>инфраструктуры</div>
\t</div>
\t";
        // line 93
        echo ($context["menu"] ?? null);
        echo "
\t<div class=\"icon-block\">\t  
\t    <div id=\"cart-url\" class=\"panel-url ib\" data-spanel=\"#cart-panel\"><div class=\"all-icon cart-icon\"></div><b>";
        // line 95
        echo ($context["text_mcart"] ?? null);
        echo "</b><span class=\"total ";
        echo (((($context["total"] ?? null) > 0)) ? ("red") : (""));
        echo "\">";
        echo ($context["total"] ?? null);
        echo "</span></div>
                <div class=\"panel-url ib\" data-spanel=\"#search-panel\">
                    <div class=\"all-icon search-icon\"><span></span></div><b>";
        // line 97
        echo ($context["text_msearch"] ?? null);
        echo "</b></div>
                <div id=\"login-url\" class=\"panel-url ib\" data-spanel=\"#login-panel\" data-wishlist=\"";
        // line 98
        echo ($context["total_wishlist"] ?? null);
        echo "\" data-compare=\"";
        echo ($context["total_compare"] ?? null);
        echo "\">
                    <div class=\"all-icon login-icon\"></div><b>";
        // line 99
        echo ($context["text_maccount"] ?? null);
        echo "</b><span class=\"total ";
        echo (((($context["total_login"] ?? null) > 0)) ? ("red") : (""));
        echo "\">";
        echo ($context["total_login"] ?? null);
        echo "</span></div>
                <div id=\"menu-url\" class=\"panel-url ib\" data-spanel=\"#menu\">
                    <div class=\"all-icon menu-icon\"><span></span></div><b>";
        // line 101
        echo ($context["text_menu"] ?? null);
        echo "</b></div>
            </div>
        </div>
    </header>
    <div class=\"null\"></div>";
    }

    public function getTemplateName()
    {
        return "madeshop/template/common/header.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  373 => 101,  364 => 99,  358 => 98,  354 => 97,  345 => 95,  340 => 93,  335 => 90,  332 => 89,  320 => 87,  312 => 85,  309 => 84,  306 => 83,  303 => 82,  291 => 80,  281 => 78,  279 => 77,  274 => 76,  266 => 74,  260 => 72,  254 => 71,  247 => 67,  239 => 62,  229 => 55,  218 => 47,  211 => 43,  207 => 42,  203 => 41,  199 => 40,  191 => 39,  187 => 37,  166 => 36,  161 => 35,  152 => 34,  145 => 33,  133 => 32,  129 => 31,  121 => 25,  116 => 24,  111 => 23,  106 => 22,  102 => 21,  96 => 19,  89 => 18,  82 => 17,  77 => 16,  72 => 15,  70 => 14,  66 => 13,  54 => 6,  47 => 4,  41 => 3,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "madeshop/template/common/header.twig", "");
    }
}
