<?php

/* @websiteWidgets/blog/templates/post_category.twig.html */
class __TwigTemplate_b15be7ae54ad2c3a93c74412c10587924a6c6bda397acf68e7ebbe8331a066b6 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_category ";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getSpacing", [0 => "classes"], "method"), "html", null, true);
        echo " ";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getAlignClass", [], "method"), "html", null, true);
        echo " ";
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getVisibleOn", [0 => "classes"], "method"), "html", null, true);
        echo "\" data-widget=\"blog.post_category\">
    ";
        // line 2
        $context["PostCategory"] = $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getCategory", [0 => (isset($context["currentPage"]) ? $context["currentPage"] : null)], "method");
        // line 3
        echo "    ";
        if ((isset($context["PostCategory"]) ? $context["PostCategory"] : null)) {
            // line 4
            echo "    <div class=\"";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "font_style", []), "html", null, true);
            echo "\">
        <a ";
            // line 5
            if ((isset($context["isPreview"]) ? $context["isPreview"] : null)) {
                echo "href";
            } else {
                echo "href=\"";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["PostCategory"]) ? $context["PostCategory"] : null), "getRelativeUrl", [], "method"), "html", null, true);
                echo "\"";
            }
            echo ">
            <span class=\"fa fa-folder moto-widget-blog-post_category-icon\" aria-hidden=\"true\"></span><span class=\"moto-widget-blog-post_category-text\">";
            // line 6
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["PostCategory"]) ? $context["PostCategory"] : null), "name", []), "html", null, true);
            echo "</span>
        </a>
    </div>
    ";
        }
        // line 10
        echo "</div>";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  57 => 10,  50 => 6,  40 => 5,  35 => 4,  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_category.twig.html", "/data05/c3111787/public_html/brcc.me.uk/mt-includes/widgets/blog/templates/post_category.twig.html");
    }
}
