<?php

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

/* catalog/view/theme/journal3/template/journal3/module/links_menu.twig */
class __TwigTemplate_ed344043119c91469386e3bf5c513766 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $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 = []): iterable
    {
        $macros = $this->macros;
        // line 21
        if (($context["items"] ?? null)) {
            // line 22
            yield "  <div class=\"";
            yield CoreExtension::getAttribute($this->env, $this->source, ($context["journal3"] ?? null), "classes", [($context["classes"] ?? null)], "method", false, false, false, 22);
            yield "\">
    <button aria-label=\"Edit\" class=\"admin-edit\" type=\"button\" data-edit=\"";
            // line 23
            yield ($context["edit"] ?? null);
            yield "\"><em class=\"fa fa-pencil\" data-placement=\"auto\" data-toggle=\"tooltip-hover\" data-tooltip-class=\"admin-edit-tooltip\" title=\"Edit ";
            yield ($context["name"] ?? null);
            yield "\"></em></button>
    ";
            // line 24
            if (($context["title"] ?? null)) {
                // line 25
                yield "      <h3 class=\"title module-title\">";
                yield ($context["title"] ?? null);
                yield "</h3>
    ";
            }
            // line 27
            yield "    <ul class=\"module-body\">
      ";
            // line 28
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["items"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
                // line 29
                yield "        ";
                yield $this->getTemplateForMacro("macro_renderLinksMenu", $context, 29, $this->getSourceContext())->macro_renderLinksMenu(...[$context, $context["item"]]);
                yield "
      ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 31
            yield "    </ul>
  </div>
";
        }
        yield from [];
    }

    // line 1
    public function macro_renderLinksMenu($͜context = null, $item = null, ...$varargs): string|Markup
    {
        $macros = $this->macros;
        $context = [
            "context" => $͜context,
            "item" => $item,
            "varargs" => $varargs,
        ] + $this->env->getGlobals();

        $blocks = [];

        return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 2
            yield "  ";
            $context["journal3"] = CoreExtension::getAttribute($this->env, $this->source, ($context["context"] ?? null), "journal3", [], "any", false, false, false, 2);
            // line 3
            yield "  <li class=\"";
            yield CoreExtension::getAttribute($this->env, $this->source, ($context["journal3"] ?? null), "classes", [CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "classes", [], "any", false, false, false, 3)], "method", false, false, false, 3);
            yield " ";
            if (CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "isTitle", [], "any", false, false, false, 3)) {
                yield "is-title";
            }
            yield "\">
    ";
            // line 4
            if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "link", [], "any", false, false, false, 4), "href", [], "any", false, false, false, 4)) {
                // line 5
                yield "      <a href=\"";
                yield CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "link", [], "any", false, false, false, 5), "href", [], "any", false, false, false, 5);
                yield "\" ";
                yield CoreExtension::getAttribute($this->env, $this->source, ($context["journal3"] ?? null), "linkAttrs", [CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "link", [], "any", false, false, false, 5)], "method", false, false, false, 5);
                yield ">
        ";
                // line 6
                yield CoreExtension::getAttribute($this->env, $this->source, ($context["journal3"] ?? null), "countBadge", [CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "title", [], "any", false, false, false, 6), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "link", [], "any", false, false, false, 6), "total", [], "any", false, false, false, 6), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "link", [], "any", false, false, false, 6), "classes", [], "any", false, false, false, 6)], "method", false, false, false, 6);
                yield "
        ";
                // line 7
                if (CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "label", [], "any", false, false, false, 7)) {
                    // line 8
                    yield "          <span class=\"menu-label\">";
                    yield CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "label", [], "any", false, false, false, 8);
                    yield "</span>
        ";
                }
                // line 10
                yield "      </a>
    ";
            } else {
                // line 12
                yield "      <a href=\"javascript:;\">
        ";
                // line 13
                yield CoreExtension::getAttribute($this->env, $this->source, ($context["journal3"] ?? null), "countBadge", [CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "title", [], "any", false, false, false, 13), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "link", [], "any", false, false, false, 13), "total", [], "any", false, false, false, 13), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "link", [], "any", false, false, false, 13), "classes", [], "any", false, false, false, 13)], "method", false, false, false, 13);
                yield "
        ";
                // line 14
                if (CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "label", [], "any", false, false, false, 14)) {
                    // line 15
                    yield "          <span class=\"menu-label\">";
                    yield CoreExtension::getAttribute($this->env, $this->source, ($context["item"] ?? null), "label", [], "any", false, false, false, 15);
                    yield "</span>
        ";
                }
                // line 17
                yield "      </a>
    ";
            }
            // line 19
            yield "  </li>
";
            yield from [];
        })())) ? '' : new Markup($tmp, $this->env->getCharset());
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "catalog/view/theme/journal3/template/journal3/module/links_menu.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  156 => 19,  152 => 17,  146 => 15,  144 => 14,  140 => 13,  137 => 12,  133 => 10,  127 => 8,  125 => 7,  121 => 6,  114 => 5,  112 => 4,  103 => 3,  100 => 2,  87 => 1,  79 => 31,  70 => 29,  66 => 28,  63 => 27,  57 => 25,  55 => 24,  49 => 23,  44 => 22,  42 => 21,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% macro renderLinksMenu(context, item) %}
  {% set journal3 = context.journal3 %}
  <li class=\"{{ journal3.classes(item.classes) }} {% if item.isTitle %}is-title{% endif %}\">
    {% if item.link.href %}
      <a href=\"{{ item.link.href }}\" {{ journal3.linkAttrs(item.link) }}>
        {{ journal3.countBadge(item.title, item.link.total, item.link.classes) }}
        {% if item.label %}
          <span class=\"menu-label\">{{ item.label }}</span>
        {% endif %}
      </a>
    {% else %}
      <a href=\"javascript:;\">
        {{ journal3.countBadge(item.title, item.link.total, item.link.classes) }}
        {% if item.label %}
          <span class=\"menu-label\">{{ item.label }}</span>
        {% endif %}
      </a>
    {% endif %}
  </li>
{% endmacro %}
{% if items %}
  <div class=\"{{ journal3.classes(classes) }}\">
    <button aria-label=\"Edit\" class=\"admin-edit\" type=\"button\" data-edit=\"{{ edit }}\"><em class=\"fa fa-pencil\" data-placement=\"auto\" data-toggle=\"tooltip-hover\" data-tooltip-class=\"admin-edit-tooltip\" title=\"Edit {{ name }}\"></em></button>
    {% if title %}
      <h3 class=\"title module-title\">{{ title }}</h3>
    {% endif %}
    <ul class=\"module-body\">
      {% for item in items %}
        {{ _self.renderLinksMenu(_context, item) }}
      {% endfor %}
    </ul>
  </div>
{% endif %}
", "catalog/view/theme/journal3/template/journal3/module/links_menu.twig", "/home/isatuzun/public_html/opencart.my-multiplanet.ch/catalog/view/theme/journal3/template/journal3/module/links_menu.twig");
    }
}
