<?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;

/* @bundles/CoreBundle/Views/Menu/profile_inline.html.php */
class __TwigTemplate_f80381869e16afac18ea9ca7470cc16f extends 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 "<?php

if (\$item->hasChildren() && 0 !== \$options['depth'] && \$item->getDisplayChildren()) {
    foreach (\$item->getChildren() as \$child) {
        if (!\$child->isDisplayed()) {
            continue;
        }

        //builds the class attributes based on options
        \$view['menu']->buildClasses(\$child, \$matcher, \$options);

        \$showChildren = (\$child->hasChildren() && \$child->getDisplayChildren());
        \$liAttributes = \$child->getAttributes();
        \$isAncestor   = \$matcher->isAncestor(\$child, \$options['matchingDepth']);
        \$extras       = \$child->getExtras();

        if (!empty(\$extras['divider'])) {
            echo \"<li role=\\\"separator\\\" class=\\\"divider\\\"></li>\\n\";
        } elseif (!empty(\$extras['header'])) {
            echo '<li class=\"dropdown-header\">'.\$view['translator']->trans(\$extras['header']).\"</li>\\n\";
        } else {
            echo \"<li{\$view['menu']->parseAttributes(\$liAttributes)}>\\n\";

            \$url            = \$child->getUri();
            \$linkAttributes = \$child->getLinkAttributes();
            \$url            = (empty(\$url)) ? 'javascript:void(0);' : \$url;
            if (empty(\$linkAttributes['target'])) {
                \$linkAttributes['data-toggle'] = 'ajax';
            }
            echo \"<a href=\\\"\$url\\\"{\$view['menu']->parseAttributes(\$linkAttributes)}>\";
            if (!empty(\$extras['iconClass'])) {
                echo \"<span style=\\\"margin-top: 4px;\\\" class=\\\"fs-14 fa {\$extras['iconClass']}\\\"></span>\";
            }

            \$labelAttributes = \$child->getLabelAttributes();
            if (!isset(\$labelAttributes['class'])) {
                \$labelAttributes['class'] = '';
            }
            \$labelAttributes['class'] .= ' text';
            echo \"<span{\$view['menu']->parseAttributes(\$labelAttributes)}>{\$view['translator']->trans(\$child->getLabel())}</span>\";

            echo \"</a>\\n\";
            echo \"</li>\\n\";
        }
    }
}
";
    }

    public function getTemplateName()
    {
        return "@bundles/CoreBundle/Views/Menu/profile_inline.html.php";
    }

    public function getDebugInfo()
    {
        return array (  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@bundles/CoreBundle/Views/Menu/profile_inline.html.php", "/var/www/mautic/app/bundles/CoreBundle/Views/Menu/profile_inline.html.php");
    }
}
