<?php

/* @websiteWidgets/blog/templates/post_list/default.twig.html */
class __TwigTemplate_86fde793a618485e08b910132918234f64f550ae0c0883d30718b14ce8b29f4e extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
            '__internal_e1618c0fbb196d37036fc892dd603ce9e438d7ef19db8fbe022a75ce2a62177c' => [$this, 'block___internal_e1618c0fbb196d37036fc892dd603ce9e438d7ef19db8fbe022a75ce2a62177c'],
        ];
    }

    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_list moto-preset-default ";
        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_list\">
    ";
        // line 2
        if ((isset($context["isPreview"]) ? $context["isPreview"] : null)) {
            echo "<div class=\"moto-widget-cover\"></div>";
        }
        // line 3
        echo "
    ";
        // line 4
        if (($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "isAllowShowContent", [], "method") && ($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getPaginator", [], "method"), "getTotalItemCount", [], "method") > 0))) {
            // line 5
            echo "        <ul class=\"moto-blog-posts-list\">
            ";
            // line 6
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getPaginator", [], "method"), "getCurrentItems", [], "method"));
            $context['loop'] = [
              'parent' => $context['_parent'],
              'index0' => 0,
              'index'  => 1,
              'first'  => true,
            ];
            if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
                $length = count($context['_seq']);
                $context['loop']['revindex0'] = $length - 1;
                $context['loop']['revindex'] = $length;
                $context['loop']['length'] = $length;
                $context['loop']['last'] = 1 === $length;
            }
            foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
                // line 7
                echo "                <li class=\"moto-blog-posts-list-item\">
                    <article>
                        <div class=\"moto-widget moto-widget-row\" data-widget=\"row\">
                            <div class=\"container-fluid\">
                                <div class=\"row\">
                                    <div class=\"moto-cell col-sm-12\" data-container=\"container\">
                                        <div class=\"moto-widget moto-widget-text moto-preset-default moto-spacing-top-small moto-spacing-right-auto moto-spacing-bottom-small moto-spacing-left-auto ";
                // line 13
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getAlignClass", [0 => "moto-align-", 1 => "contentAlignment.title"], "method"), "html", null, true);
                echo "\" data-preset=\"default\" data-widget=\"text\">
                                            <div class=\"moto-widget-text-content moto-widget-text-editable\">
                                                <h2 class=\"";
                // line 15
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getDesignOption", [0 => "title.font_style", 1 => "moto-text_system_7"], "method"), "html", null, true);
                echo "\">
                                                    <a href=\"";
                // line 16
                echo twig_escape_filter($this->env, $this->getAttribute($context["post"], "getAbsoluteUrl", [], "method"), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->getAttribute($context["post"], "name", []), "html", null, true);
                echo "</a>
                                                </h2>
                                            </div>
                                        </div>
                                        ";
                // line 20
                if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "layout", []), "elements", []), "post", []), "children", []), "content", []), "children", []), "date", []), "visible", []) || $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "layout", []), "elements", []), "post", []), "children", []), "content", []), "children", []), "author", []), "visible", []))) {
                    // line 21
                    echo "                                            <div class=\"moto-widget moto-widget-row\" data-widget=\"row\">
                                                <div class=\"container-fluid\">
                                                    <div class=\"row\">
                                                        ";
                    // line 24
                    if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "layout", []), "elements", []), "post", []), "children", []), "content", []), "children", []), "date", []), "visible", [])) {
                        // line 25
                        echo "                                                            <div class=\"moto-cell col-sm\" data-container=\"container\">
                                                                ";
                        // line 26
                        if ((isset($context["isServer"]) ? $context["isServer"] : null)) {
                            // line 27
                            echo "                                                                    ";
                            echo $this->env->getExtension('Moto\Twig\Extension\WidgetsExtension')->renderWidget($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getInnerWidget", [0 => "blog.post_published_on"], "method"), ["currentPage" => $context["post"]]);
                            echo "
                                                                ";
                        } else {
                            // line 29
                            echo "                                                                    ";
                                
                            // line 30
                            echo "                                                                ";
                        }
                        // line 31
                        echo "                                                            </div>
                                                        ";
                    }
                    // line 33
                    echo "                                                        ";
                    if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "layout", []), "elements", []), "post", []), "children", []), "content", []), "children", []), "author", []), "visible", [])) {
                        // line 34
                        echo "                                                            <div class=\"moto-cell col-sm\" data-container=\"container\">
                                                                ";
                        // line 35
                        if ((isset($context["isServer"]) ? $context["isServer"] : null)) {
                            // line 36
                            echo "                                                                    ";
                            echo $this->env->getExtension('Moto\Twig\Extension\WidgetsExtension')->renderWidget($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getInnerWidget", [0 => "blog.post_author"], "method"), ["currentPage" => $context["post"]]);
                            echo "
                                                                ";
                        } else {
                            // line 38
                            echo "                                                                    ";
                                
                            // line 39
                            echo "                                                                ";
                        }
                        // line 40
                        echo "                                                            </div>
                                                        ";
                    }
                    // line 42
                    echo "                                                    </div>
                                                </div>
                                            </div>
                                        ";
                }
                // line 46
                echo "
                                        ";
                // line 47
                if ((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "layout", []), "elements", []), "post", []), "children", []), "image", []), "visible", []) && $this->getAttribute($this->getAttribute($this->getAttribute($context["post"], "properties", []), "feature_media", []), "src", [])) && ($this->getAttribute($this->getAttribute($this->getAttribute($context["post"], "properties", []), "feature_media", []), "type", []) == "image"))) {
                    // line 48
                    echo "                                            ";
                    if ((isset($context["isServer"]) ? $context["isServer"] : null)) {
                        // line 49
                        echo "                                                ";
                        echo $this->env->getExtension('Moto\Twig\Extension\WidgetsExtension')->renderWidget($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getInnerWidget", [0 => "image", 1 => $context["post"]], "method"));
                        echo "
                                            ";
                    } else {
                        // line 51
                        echo "                                                ";
                            
                        // line 52
                        echo "                                            ";
                    }
                    // line 53
                    echo "                                        ";
                }
                // line 54
                echo "
                                        ";
                // line 55
                if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "layout", []), "elements", []), "post", []), "children", []), "content", []), "children", []), "description", []), "visible", [])) {
                    // line 56
                    echo "                                            <div class=\"moto-blog-post-content moto-widget-text moto-preset-default moto-spacing-top-auto moto-spacing-right-auto moto-spacing-bottom-small moto-spacing-left-auto\">
                                                ";
                    // line 57
                    echo call_user_func_array($this->env->getFilter('page_html_content')->getCallable(), [$this->env,                     $this->renderBlock("__internal_e1618c0fbb196d37036fc892dd603ce9e438d7ef19db8fbe022a75ce2a62177c", $context, $blocks), $context["post"], ($this->getAttribute($context["post"], "type", []) . ":short_description")]);
                    // line 60
                    echo "                                            </div>
                                        ";
                }
                // line 62
                echo "
                                        ";
                // line 63
                if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "properties", []), "layout", []), "elements", []), "post", []), "children", []), "content", []), "children", []), "button", []), "visible", [])) {
                    // line 64
                    echo "                                            ";
                    if ((isset($context["isServer"]) ? $context["isServer"] : null)) {
                        // line 65
                        echo "                                                ";
                        echo $this->env->getExtension('Moto\Twig\Extension\WidgetsExtension')->renderWidget($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getInnerWidget", [0 => "button", 1 => $context["post"]], "method"));
                        echo "
                                            ";
                    } else {
                        // line 67
                        echo "                                                ";
                            
                        // line 68
                        echo "                                            ";
                    }
                    // line 69
                    echo "                                        ";
                }
                // line 70
                echo "
                                        <div class=\"moto-widget moto-widget-divider moto-preset-";
                // line 71
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getDesignOption", [0 => "divider.preset", 1 => "default"], "method"), "html", null, true);
                echo " moto-spacing-top-small moto-spacing-right-auto moto-spacing-bottom-small moto-spacing-left-auto moto-align-center\" data-widget=\"divider_horizontal\" data-divider-type=\"horizontal\" data-preset=\"";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getDesignOption", [0 => "divider.preset", 1 => "default"], "method"), "html", null, true);
                echo "\">
                                            <hr class=\"moto-widget-divider-line\">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </article>
                </li>
            ";
                ++$context['loop']['index0'];
                ++$context['loop']['index'];
                $context['loop']['first'] = false;
                if (isset($context['loop']['length'])) {
                    --$context['loop']['revindex0'];
                    --$context['loop']['revindex'];
                    $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 81
            echo "        </ul>

        ";
            // line 83
            $context["PaginatorPages"] = $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getPaginatorPages", [], "method");
            // line 84
            echo "        ";
            if (($this->getAttribute((isset($context["PaginatorPages"]) ? $context["PaginatorPages"] : null), "pageCount", []) > 1)) {
                // line 85
                echo "            <div class=\"moto-widget moto-widget-pagination moto-preset-default moto-spacing-top-small moto-spacing-bottom-small ";
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentWidget"]) ? $context["currentWidget"] : null), "getAlignClass", [0 => "moto-align-", 1 => "contentAlignment.pagination"], "method"), "html", null, true);
                echo "\" data-widget=\"pagination\" data-preset=\"default\" >
                ";
                // line 86
                if (($this->getAttribute((isset($context["PaginatorPages"]) ? $context["PaginatorPages"] : null), "first", []) != $this->getAttribute((isset($context["PaginatorPages"]) ? $context["PaginatorPages"] : null), "current", []))) {
                    // line 87
                    echo "                    <ul class=\"moto-pagination-group moto-pagination-group-controls moto-pagination-group_left\">
                        <li class=\"moto-pagination-item moto-pagination-item-control moto-pagination-item-control_first\">
                            <a href=\"";
                    // line 89
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentPage"]) ? $context["currentPage"] : null), "getAbsoluteUrl", [], "method"), "html", null, true);
                    echo "\" class=\"moto-pagination-link\"><i class=\"moto-pagination-link-icon moto-pagination-link-text fa fa-angle-double-left\"></i></a>
                        </li>
                        <li class=\"moto-pagination-item moto-pagination-item-control moto-pagination-item-control_previous\">
                            ";
                    // line 92
                    if (($this->getAttribute((isset($context["PaginatorPages"]) ? $context["PaginatorPages"] : null), "first", []) != $this->getAttribute((isset($context["PaginatorPages"]) ? $context["PaginatorPages"] : null), "previous", []))) {
                        // line 93
                        echo "                                <a href=\"";
                        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentPage"]) ? $context["currentPage"] : null), "getAbsoluteUrl", [0 => ["page" => $this->getAttribute((isset($context["PaginatorPages"]) ? $context["PaginatorPages"] : null), "previous", [])]], "method"), "html", null, true);
                        echo "\" class=\"moto-pagination-link\"><i class=\"moto-pagination-link-icon moto-pagination-link-text fa fa-angle-left\"></i></a>
                            ";
                    } else {
                        // line 95
                        echo "                                <a href=\"";
                        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentPage"]) ? $context["currentPage"] : null), "getAbsoluteUrl", [], "method"), "html", null, true);
                        echo "\" class=\"moto-pagination-link\"><i class=\"moto-pagination-link-icon moto-pagination-link-text fa fa-angle-left\"></i></a>
                            ";
                    }
                    // line 97
                    echo "                        </li>
                    </ul>
                ";
                }
                // line 100
                echo "                <ul class=\"moto-pagination-group moto-pagination-group_pages\">
                    ";
                // line 101
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["PaginatorPages"]) ? $context["PaginatorPages"] : null), "pagesInRange", []));
                foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                    // line 102
                    echo "                        <li class=\"moto-pagination-item moto-pagination-item-page\">
                            ";
                    // line 103
                    if (($context["i"] == $this->getAttribute((isset($context["PaginatorPages"]) ? $context["PaginatorPages"] : null), "current", []))) {
                        // line 104
                        echo "                                <span class=\"moto-pagination-link moto-pagination-link_active\"><span class=\"moto-pagination-link-text\">";
                        echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                        echo "</span></span>
                            ";
                    } else {
                        // line 106
                        echo "                                ";
                        if (($context["i"] == 1)) {
                            // line 107
                            echo "                                    <a href=\"";
                            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentPage"]) ? $context["currentPage"] : null), "getAbsoluteUrl", [], "method"), "html", null, true);
                            echo "\" class=\"moto-pagination-link\"><span class=\"moto-pagination-link-text\">";
                            echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                            echo "</span></a>
                                ";
                        } else {
                            // line 109
                            echo "                                    <a href=\"";
                            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentPage"]) ? $context["currentPage"] : null), "getAbsoluteUrl", [0 => ["page" => $context["i"]]], "method"), "html", null, true);
                            echo "\" class=\"moto-pagination-link\"><span class=\"moto-pagination-link-text\">";
                            echo twig_escape_filter($this->env, $context["i"], "html", null, true);
                            echo "</span></a>
                                ";
                        }
                        // line 111
                        echo "                            ";
                    }
                    // line 112
                    echo "                        </li>
                    ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 114
                echo "                </ul>
                ";
                // line 115
                if (($this->getAttribute((isset($context["PaginatorPages"]) ? $context["PaginatorPages"] : null), "last", []) != $this->getAttribute((isset($context["PaginatorPages"]) ? $context["PaginatorPages"] : null), "current", []))) {
                    // line 116
                    echo "                    <ul class=\"moto-pagination-group moto-pagination-group-controls moto-pagination-group_right\">
                        <li class=\"moto-pagination-item moto-pagination-item-control moto-pagination-item-control_next\">
                            <a href=\"";
                    // line 118
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentPage"]) ? $context["currentPage"] : null), "getAbsoluteUrl", [0 => ["page" => $this->getAttribute((isset($context["PaginatorPages"]) ? $context["PaginatorPages"] : null), "next", [])]], "method"), "html", null, true);
                    echo "\" class=\"moto-pagination-link\"><i class=\"moto-pagination-link-icon moto-pagination-link-text fa fa-angle-right\"></i></a>
                        </li>
                        <li class=\"moto-pagination-item moto-pagination-item-control moto-pagination-item-control_last\">
                            <a href=\"";
                    // line 121
                    echo twig_escape_filter($this->env, $this->getAttribute((isset($context["currentPage"]) ? $context["currentPage"] : null), "getAbsoluteUrl", [0 => ["page" => $this->getAttribute((isset($context["PaginatorPages"]) ? $context["PaginatorPages"] : null), "last", [])]], "method"), "html", null, true);
                    echo "\" class=\"moto-pagination-link\"><i class=\"moto-pagination-link-icon moto-pagination-link-text fa fa-angle-double-right\"></i></a>
                        </li>
                    </ul>
                ";
                }
                // line 125
                echo "            </div>
        ";
            }
            // line 127
            echo "    ";
        } elseif ((isset($context["isPreview"]) ? $context["isPreview"] : null)) {
            // line 128
            echo "        <div class=\"moto-widget-empty\"></div>
    ";
        }
        // line 130
        echo "</div>";
    }

    // line 57
    public function block___internal_e1618c0fbb196d37036fc892dd603ce9e438d7ef19db8fbe022a75ce2a62177c($context, array $blocks = [])
    {
        // line 58
        echo "                                                    ";
        $this->loadTemplate(twig_template_from_string($this->env, $this->getAttribute((isset($context["post"]) ? $context["post"] : null), "short_description", [])), "@websiteWidgets/blog/templates/post_list/default.twig.html", 58)->display($context);
        // line 59
        echo "                                                ";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  366 => 59,  363 => 58,  360 => 57,  356 => 130,  352 => 128,  349 => 127,  345 => 125,  338 => 121,  332 => 118,  328 => 116,  326 => 115,  323 => 114,  316 => 112,  313 => 111,  305 => 109,  297 => 107,  294 => 106,  288 => 104,  286 => 103,  283 => 102,  279 => 101,  276 => 100,  271 => 97,  265 => 95,  259 => 93,  257 => 92,  251 => 89,  247 => 87,  245 => 86,  240 => 85,  237 => 84,  235 => 83,  231 => 81,  205 => 71,  202 => 70,  199 => 69,  196 => 68,  193 => 67,  187 => 65,  184 => 64,  182 => 63,  179 => 62,  175 => 60,  173 => 57,  170 => 56,  168 => 55,  165 => 54,  162 => 53,  159 => 52,  156 => 51,  150 => 49,  147 => 48,  145 => 47,  142 => 46,  136 => 42,  132 => 40,  129 => 39,  126 => 38,  120 => 36,  118 => 35,  115 => 34,  112 => 33,  108 => 31,  105 => 30,  102 => 29,  96 => 27,  94 => 26,  91 => 25,  89 => 24,  84 => 21,  82 => 20,  73 => 16,  69 => 15,  64 => 13,  56 => 7,  39 => 6,  36 => 5,  34 => 4,  31 => 3,  27 => 2,  20 => 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_list/default.twig.html", "/data05/c3111787/public_html/brcc.me.uk/mt-includes/widgets/blog/templates/post_list/default.twig.html");
    }
}
