<?php

/* @websiteWidgets/accordion/templates/item.twig.html */
class __TwigTemplate_9df09c837571e2b31a183fe1251fe410c5eb6113d77ad1fdb4e5c1c85c6be900 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        echo "<div id=\"";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getWidgetId", [], "method"), "html", null, true);
        echo "\" data-parent-id=\"";
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getParent", [], "method"), "getWidgetId", [], "method"), "html", null, true);
        echo "\" class=\"moto-widget moto-widget-accordion__item moto-widget_with-content-editor moto-widget-accordion__item_collapse-icon-";
        if ($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getParent", [], "method"), "properties", []), "showCollapseIcon", [])) {
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getParent", [], "method"), "properties", []), "collapseIconAlign", []), "html", null, true);
        } else {
            echo "disabled";
        }
        echo " ";
        if ($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "isOpenedByDefault", [], "method")) {
            echo "moto-widget-accordion__item_open";
        } else {
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["Entertainment"]) ? $context["Entertainment"] : null), "getCssClass", [0 => "playingDisabled"], "method"), "html", null, true);
        }
        echo "\" data-widget=\"accordion.item\">
    <div class=\"moto-widget-accordion__header\" data-widget-id=\"";
        // line 2
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getWidgetId", [], "method"), "html", null, true);
        echo "\">
        ";
        // line 3
        if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "header", []), "icon", []), "unicode", [])) {
            echo "<span class=\"moto-widget-accordion__header-item moto-widget-accordion__header-icon\"><span class=\"fa fa-fw\" aria-hidden=\"true\">&#x";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "header", []), "icon", []), "unicode", []), "html", null, true);
            echo ";</span></span>";
        }
        // line 4
        echo "        <";
        echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getParent", [], "method", false, true), "properties", [], "any", false, true), "headingTag", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getParent", [], "method", false, true), "properties", [], "any", false, true), "headingTag", []), "span", true)) : ("span")), "html", null, true);
        echo " class=\"moto-widget-accordion__header-item moto-widget-accordion__header-title\">";
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "header", []), "content", []), "html", null, true);
        echo "</";
        echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getParent", [], "method", false, true), "properties", [], "any", false, true), "headingTag", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getParent", [], "method", false, true), "properties", [], "any", false, true), "headingTag", []), "span", true)) : ("span")), "html", null, true);
        echo ">
        ";
        // line 5
        if ($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getParent", [], "method"), "properties", []), "showCollapseIcon", [])) {
            echo "<span class=\"moto-widget-accordion__header-item moto-widget-accordion__collapse-icon fa fa-fw\" aria-hidden=\"true\"></span>";
        }
        // line 6
        echo "    </div>
    <div class=\"moto-widget__content-wrapper moto-widget-accordion__content-wrapper\" style=\"display: ";
        // line 7
        if ($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "isOpenedByDefault", [], "method")) {
            echo "block";
        } else {
            echo "none";
        }
        echo ";\">
        <div id=\"";
        // line 8
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getWidgetId", [], "method"), "html", null, true);
        echo "__content\" class=\"moto-widget__content moto-widget-accordion__content ";
        if ( !$this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "isOpenedByDefault", [], "method")) {
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["Entertainment"]) ? $context["Entertainment"] : null), "getCssClass", [0 => [0 => "animationDisabled", 1 => "animationIgnoring"]], "method"), "html", null, true);
        }
        echo "\">
            ";
        // line 9
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "children", []));
        foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
            // line 10
            echo "                ";
            if ((isset($context["isServer"]) ? $context["isServer"] : null)) {
                // line 11
                echo "                    ";
                echo $this->env->getExtension('Moto\Twig\Extension\WidgetsExtension')->renderWidget($this->env, $context["item"]);
                echo "
                ";
            } else {
                // line 13
                echo "                    ";
                    
                // line 14
                echo "                ";
            }
            // line 15
            echo "            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 16
        echo "            ";
        if ((isset($context["isPreview"]) ? $context["isPreview"] : null)) {
            echo "<div class=\"moto-widget-cover\"></div>";
        }
        // line 17
        echo "        </div>
    </div>
</div>";
    }

    public function getTemplateName()
    {
        return "@websiteWidgets/accordion/templates/item.twig.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  110 => 17,  105 => 16,  99 => 15,  96 => 14,  93 => 13,  87 => 11,  84 => 10,  80 => 9,  72 => 8,  64 => 7,  61 => 6,  57 => 5,  48 => 4,  42 => 3,  38 => 2,  19 => 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 Twig_Source("", "@websiteWidgets/accordion/templates/item.twig.html", "/data05/c3111787/public_html/brcc.me.uk/mt-includes/widgets/accordion/templates/item.twig.html");
    }
}
