<?php

/* @websiteWidgets/blog/templates/post_tags.twig.html */
class __TwigTemplate_0b96d31589aba93061016ccffb7b25952ec404684a057f9820e74597e8ea61e3 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 data-widget-id=\"";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getWidgetId", [], "method"), "html", null, true);
        echo "\" class=\"moto-widget moto-widget-blog-post_tags moto-preset-";
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "preset", []), "html", null, true);
        echo " ";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getSpacing", [0 => "classes"], "method"), "html", null, true);
        echo "\" data-widget=\"blog.post_tags\" data-preset=\"";
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "preset", []), "html", null, true);
        echo "\">
    ";
        // line 2
        if ((twig_length_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getTags", [], "method")) > 0)) {
            // line 3
            echo "        <div class=\"moto-widget-blog-post_tags__content-wrapper\">
            <ul class=\"moto-widget-blog-post_tags__items\">
                ";
            // line 5
            if ($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "title", [])) {
                // line 6
                echo "                    <li class=\"moto-widget-blog-post_tags__title ";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "titleTextStyle", []), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "title", []), "html", null, true);
                echo "</li>
                ";
            }
            // line 8
            echo "                ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getTags", [], "method"));
            foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
                // line 9
                echo "                    <li class=\"moto-widget-blog-post_tags__item\"><a ";
                if ((isset($context["isPreview"]) ? $context["isPreview"] : null)) {
                    echo "href";
                } else {
                    echo "href=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute($context["tag"], "getRelativeUrl", [], "method"), "html", null, true);
                    echo "\"";
                }
                echo " class=\"moto-widget-blog-post_tags__item-link\"><span class=\"moto-widget-blog-post_tags__item-text\">";
                echo twig_escape_filter($this->env, $this->getAttribute($context["tag"], "name", []), "html", null, true);
                echo "</span></a></li>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 11
            echo "            </ul>
        </div>
    ";
        } else {
            // line 14
            echo "        <div class=\"moto-widget-empty\"></div>
    ";
        }
        // line 16
        echo "</div>";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  77 => 16,  73 => 14,  68 => 11,  51 => 9,  46 => 8,  38 => 6,  36 => 5,  32 => 3,  30 => 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/blog/templates/post_tags.twig.html", "/data05/c3111787/public_html/brcc.me.uk/mt-includes/widgets/blog/templates/post_tags.twig.html");
    }
}
