<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* OfficeBrainCustomBundleThemeBundle:IdmeTheme:Cms/cmsMenuLayout.html.twig */
class __TwigTemplate_a08fdf9475ea7dc94ff33a60c1bd607a4aae35d5a6145e97512533a663ec913b extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->blocks = [
            'ajax_body' => [$this, 'block_ajax_body'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "::baseAjax.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $this->parent = $this->loadTemplate("::baseAjax.html.twig", "OfficeBrainCustomBundleThemeBundle:IdmeTheme:Cms/cmsMenuLayout.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 2
    public function block_ajax_body($context, array $blocks = [])
    {
        // line 3
        echo "\t";
        // line 60
        echo "\t
\t";
        // line 61
        if (($context["menu"] ?? null)) {
            // line 62
            echo "\t\t<!-- <li><a href=\"#\"><img src=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("bundles/officebraincustombundletheme/IdmeTheme/images/home-icon.png"), "html", null, true);
            echo "\" /></a></li> -->

\t    ";
            // line 64
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["menu"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
                // line 65
                echo "\t    \t";
                echo $this->getAttribute($this, "recursiveMenu", [0 => $context["item"], 1 => ($context["languageId"] ?? null), 2 => 1, 3 => ($context["ob_project_base_url"] ?? null), 4 => ($context["mediaLocation"] ?? null)], "method");
                echo "
\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 67
            echo "\t";
        }
        // line 68
        echo "<style>

@media screen and (max-width: 767px) {
\t#mainmenu-nav #mainmenu .navbar-nav .dropdown-menu li>a {border-bottom: 0px;  display: inline-block; width:auto;}
\t.menu-box .navbar-nav li.dropdown > ul.dropdown-menu > li {border-bottom: 1px dotted #69717e;}
}
</style>
\t";
    }

    // line 3
    public function getrecursiveMenu($__item__ = null, $__languageId__ = null, $__level__ = null, $__ob_project_base_url__ = null, $__mediaLocation__ = null, ...$__varargs__)
    {
        $context = $this->env->mergeGlobals([
            "item" => $__item__,
            "languageId" => $__languageId__,
            "level" => $__level__,
            "ob_project_base_url" => $__ob_project_base_url__,
            "mediaLocation" => $__mediaLocation__,
            "varargs" => $__varargs__,
        ]);

        $blocks = [];

        ob_start(function () { return ''; });
        try {
            // line 4
            echo "\t\t";
            $context["liClass"] = "dropdown";
            // line 5
            echo "\t\t";
            $context["ulClass"] = "dropdown-menu";
            // line 6
            echo "\t\t";
            $context["hasMoreChild"] = 0;
            // line 7
            echo "\t\t";
            if (($this->getAttribute(($context["item"] ?? null), "children", [], "any", true, true) && twig_length_filter($this->env, $this->getAttribute(($context["item"] ?? null), "children", [])))) {
                // line 8
                echo "\t\t\t";
                $context["hasMoreChild"] = 1;
                // line 9
                echo "\t\t";
            }
            // line 10
            echo "\t
\t\t";
            // line 11
            if ((($context["level"] ?? null) == 2)) {
                // line 12
                echo "\t\t\t";
                $context["liClass"] = (($context["liClass"] ?? null) . "-submenu");
                // line 13
                echo "\t\t";
            }
            // line 14
            echo "\t 
\t\t<li ";
            // line 15
            if (($context["hasMoreChild"] ?? null)) {
                echo " class=\"";
                echo twig_escape_filter($this->env, ((($context["liClass"] ?? null) . " ") . $this->getAttribute(($context["item"] ?? null), "cssClasse", [])), "html", null, true);
                echo "\" ";
            } else {
                echo " class=\"";
                echo twig_escape_filter($this->env, $this->getAttribute(($context["item"] ?? null), "cssClasse", []), "html", null, true);
                echo "\" ";
            }
            echo ">
\t\t\t";
            // line 16
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["item"] ?? null), "languageMapping", []));
            foreach ($context['_seq'] as $context["_key"] => $context["itemLanguage"]) {
                // line 17
                echo "\t\t\t\t";
                if (($this->getAttribute($context["itemLanguage"], "languageId", []) == ($context["languageId"] ?? null))) {
                    // line 18
                    echo "\t\t\t\t\t";
                    if ((($context["level"] ?? null) == 1)) {
                        // line 19
                        echo "\t\t\t\t\t\t";
                        $context["productAddClass"] = "product-add";
                        // line 20
                        echo "\t\t\t\t\t";
                    } else {
                        // line 21
                        echo "\t\t\t\t\t\t";
                        $context["productAddClass"] = "";
                        // line 22
                        echo "\t\t\t\t\t";
                    }
                    // line 23
                    echo "\t\t\t\t\t
\t\t\t\t\t<a href=\"";
                    // line 24
                    ((($this->getAttribute($context["itemLanguage"], "url", []) == "#")) ? (print ("javascript:void();")) : (print (twig_escape_filter($this->env, $this->getAttribute($context["itemLanguage"], "url", []), "html", null, true))));
                    echo "\" ";
                    if (($this->getAttribute($context["itemLanguage"], "urlTarget", []) == "new-tab")) {
                        echo "target=\"_blank\"";
                    }
                    echo " ";
                    if (($context["hasMoreChild"] ?? null)) {
                        echo " class=\"dropdown-toggle ";
                        echo twig_escape_filter($this->env, ($context["productAddClass"] ?? null), "html", null, true);
                        echo "\" data-id=";
                        echo twig_escape_filter($this->env, $this->getAttribute(($context["item"] ?? null), "id", []), "html", null, true);
                        echo " ";
                    }
                    echo " title=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute($context["itemLanguage"], "title", []), "html", null, true);
                    echo "\">";
                    if (($this->getAttribute(($context["item"] ?? null), "cssIcon", []) != "")) {
                        echo " <i class=\"";
                        echo twig_escape_filter($this->env, $this->getAttribute(($context["item"] ?? null), "cssIcon", []), "html", null, true);
                        echo "\"></i> ";
                    }
                    if ((($this->getAttribute($this->getAttribute(($context["app"] ?? null), "user", [], "any", false, true), "id", [], "any", true, true) && ($this->getAttribute($this->getAttribute(($context["app"] ?? null), "user", []), "id", []) > 0)) && (($this->getAttribute($context["itemLanguage"], "itemLabel", []) == "Flyers") || ($this->getAttribute($context["itemLanguage"], "itemLabel", []) == "Order Catalog")))) {
                        echo twig_escape_filter($this->env, $this->getAttribute($context["itemLanguage"], "itemLabel", []), "html", null, true);
                    } elseif ((($this->getAttribute($context["itemLanguage"], "itemLabel", []) != "Flyers") && ($this->getAttribute($context["itemLanguage"], "itemLabel", []) != "Order Catalog"))) {
                        echo twig_escape_filter($this->env, $this->getAttribute($context["itemLanguage"], "itemLabel", []), "html", null, true);
                    }
                    echo "</a>
\t\t\t\t";
                }
                // line 26
                echo "\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['itemLanguage'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 27
            echo "\t
\t        ";
            // line 28
            if (($context["hasMoreChild"] ?? null)) {
                // line 29
                echo "\t        \t";
                $context["level"] = (($context["level"] ?? null) + 1);
                // line 30
                echo "\t        \t<b class=\"menu-caret1\" data-toggle=\"dropdown\"></b>
\t
\t        \t";
                // line 32
                if ((($context["level"] ?? null) == 3)) {
                    // line 33
                    echo "\t        \t\t<div class=\"dropdown-menu\">
\t\t\t\t\t";
                    // line 34
                    $context["ulClass"] = "";
                    // line 35
                    echo "\t        \t";
                }
                // line 36
                echo "\t
\t\t\t\t";
                // line 37
                if ((($context["level"] ?? null) == 3)) {
                    // line 38
                    echo "\t\t\t\t\t<div class=\"col-lg-6 col-md-12 col-sm-12 col-xs-12\">
\t\t\t\t";
                }
                // line 40
                echo "\t\t        \t<ul class=\"";
                echo twig_escape_filter($this->env, ($context["ulClass"] ?? null), "html", null, true);
                echo "\">
\t\t                ";
                // line 41
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["item"] ?? null), "children", []));
                foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
                    // line 42
                    echo "\t\t                \t";
                    echo $this->getAttribute($this, "recursiveMenu", [0 => $context["child"], 1 => ($context["languageId"] ?? null), 2 => ($context["level"] ?? null), 3 => ($context["ob_project_base_url"] ?? null), 4 => ($context["mediaLocation"] ?? null)], "method");
                    echo "
\t\t                ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 44
                echo "\t\t            </ul>
\t\t        ";
                // line 45
                if ((($context["level"] ?? null) == 3)) {
                    // line 46
                    echo "\t\t\t\t\t</div>
\t\t\t\t";
                }
                // line 48
                echo "\t\t\t\t
\t            ";
                // line 49
                if ((($context["level"] ?? null) == 3)) {
                    // line 50
                    echo "\t        \t\t\t<div class=\"col-lg-2 hidden-xs hidden-md hidden-sm\">
\t        \t\t\t\t";
                    // line 51
                    if (($this->getAttribute(($context["item"] ?? null), "backgroundImage", []) != "")) {
                        // line 52
                        echo "\t        \t\t\t\t\t<a href=\"javascript:void(0)\"><img src=\"";
                        echo twig_escape_filter($this->env, (($context["ob_project_base_url"] ?? null) . $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl((($context["mediaLocation"] ?? null) . $this->getAttribute(($context["item"] ?? null), "backgroundImage", [])))), "html", null, true);
                        echo "\" class=\"menu-pro-img\" alt=\"\"></a>
\t\t                    ";
                    }
                    // line 54
                    echo "\t        \t\t\t</div>
\t\t\t\t\t</div>
\t        \t";
                }
                // line 57
                echo "\t        ";
            }
            // line 58
            echo "\t    </li>
\t";
        } catch (\Exception $e) {
            ob_end_clean();

            throw $e;
        } catch (\Throwable $e) {
            ob_end_clean();

            throw $e;
        }

        return ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
    }

    public function getTemplateName()
    {
        return "OfficeBrainCustomBundleThemeBundle:IdmeTheme:Cms/cmsMenuLayout.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  285 => 58,  282 => 57,  277 => 54,  271 => 52,  269 => 51,  266 => 50,  264 => 49,  261 => 48,  257 => 46,  255 => 45,  252 => 44,  243 => 42,  239 => 41,  234 => 40,  230 => 38,  228 => 37,  225 => 36,  222 => 35,  220 => 34,  217 => 33,  215 => 32,  211 => 30,  208 => 29,  206 => 28,  203 => 27,  197 => 26,  167 => 24,  164 => 23,  161 => 22,  158 => 21,  155 => 20,  152 => 19,  149 => 18,  146 => 17,  142 => 16,  130 => 15,  127 => 14,  124 => 13,  121 => 12,  119 => 11,  116 => 10,  113 => 9,  110 => 8,  107 => 7,  104 => 6,  101 => 5,  98 => 4,  82 => 3,  71 => 68,  68 => 67,  59 => 65,  55 => 64,  49 => 62,  47 => 61,  44 => 60,  42 => 3,  39 => 2,  29 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("", "OfficeBrainCustomBundleThemeBundle:IdmeTheme:Cms/cmsMenuLayout.html.twig", "/var/www/html/project/OfficeBrain/CustomBundle/ThemeBundle/Resources/views/IdmeTheme/Cms/cmsMenuLayout.html.twig");
    }
}
