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

/* C:\xampp\htdocs\AfroTurf\themes\workshop-theme\pages\home.htm */
class __TwigTemplate_73063cae2689fc119fcc13e68b1abb65 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
        $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
        $this->checkSecurity();
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        $context['__cms_partial_params'] = [];
        echo $this->env->getExtension('Cms\Twig\Extension')->partialFunction("nav/section-nav"        , $context['__cms_partial_params']        , true        );
        unset($context['__cms_partial_params']);
        // line 2
        echo "
<section id=\"hero\" class=\"bg-gradient-to-b from-blue-500 to-blue-600 hero\">
    <h1 class=\"text-white mb-0\">
        Winter CMS Workshop
    </h1>
    <h2 class=\"text-blue-300 font-body font-light mb-0\">
        Testing Winter CMS core and plugins since 2021.
    </h2>
</section>

<section id=\"body\" class=\"py-20 flex-grow\">
    <div class=\"container max-w-screen-xl\">
        <div class=\"block lg:flex lg:flex-row\">
            <div class=\"flex-grow-0 px-8 ";
        // line 15
        if (($context["blogInstalled"] ?? null)) {
            echo " lg:w-9/12 xl:pl-0 ";
        } else {
            echo " xl:px-0 ";
        }
        echo "\">
                <h2 class=\"mb-6\">Hi, there!</h2>

                <p>Welcome to the Winter CMS Workshop. This theme provides a suitable boilerplate for testing the most common Winter CMS core functions and plugins with a simple but visually pleasing theme. It is built using the <a href=\"https://tailwindcss.com\" target=\"tailwind\">Tailwind CSS</a> framework, also providing a suitable example of how to implement Tailwind CSS in a theme.</p>

                <p>In this instance, the theme is testing out a simple CMS page with a partial underneath the main content, in addition to partials being used throughout the layout and page to display UI elements.</p>

                ";
        // line 22
        if (($context["blogInstalled"] ?? null)) {
            // line 23
            echo "                <p>On the right, you can see a component to show the latest article in the Blog.</p>
                ";
        }
        // line 25
        echo "
                ";
        // line 26
        $context['__cms_partial_params'] = [];
        echo $this->env->getExtension('Cms\Twig\Extension')->partialFunction("instructions"        , $context['__cms_partial_params']        , true        );
        unset($context['__cms_partial_params']);
        // line 27
        echo "            </div>

            ";
        // line 29
        if (($context["blogInstalled"] ?? null)) {
            // line 30
            echo "                <div class=\"flex-grow-0 px-8 mt-16 lg:w-3/12 lg:mt-0 xl:pr-0\">
                    <div class=\"w-full sm:w-1/3 lg:w-full mx-auto\">
                        ";
            // line 32
            $context['__cms_partial_params'] = [];
            echo $this->env->getExtension('Cms\Twig\Extension')->partialFunction("blog/latest-single"            , $context['__cms_partial_params']            , true            );
            unset($context['__cms_partial_params']);
            // line 33
            echo "
                        <div class=\"mt-6 text-center\">
                            ";
            // line 35
            $context['__cms_partial_params'] = [];
            $context['__cms_partial_params']['url'] = $this->extensions['Cms\Twig\Extension']->pageFilter("blog/index")            ;
            $context['__cms_partial_params']['text'] = "All blog articles"            ;
            echo $this->env->getExtension('Cms\Twig\Extension')->partialFunction("ui/link-button"            , $context['__cms_partial_params']            , true            );
            unset($context['__cms_partial_params']);
            // line 36
            echo "                        </div>
                    </div>
                </div>
            ";
        }
        // line 40
        echo "        </div>
    </div>
</section>";
    }

    public function getTemplateName()
    {
        return "C:\\xampp\\htdocs\\AfroTurf\\themes\\workshop-theme\\pages\\home.htm";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  115 => 40,  109 => 36,  103 => 35,  99 => 33,  95 => 32,  91 => 30,  89 => 29,  85 => 27,  81 => 26,  78 => 25,  74 => 23,  72 => 22,  58 => 15,  43 => 2,  39 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% partial 'nav/section-nav' %}

<section id=\"hero\" class=\"bg-gradient-to-b from-blue-500 to-blue-600 hero\">
    <h1 class=\"text-white mb-0\">
        Winter CMS Workshop
    </h1>
    <h2 class=\"text-blue-300 font-body font-light mb-0\">
        Testing Winter CMS core and plugins since 2021.
    </h2>
</section>

<section id=\"body\" class=\"py-20 flex-grow\">
    <div class=\"container max-w-screen-xl\">
        <div class=\"block lg:flex lg:flex-row\">
            <div class=\"flex-grow-0 px-8 {% if blogInstalled %} lg:w-9/12 xl:pl-0 {% else %} xl:px-0 {% endif %}\">
                <h2 class=\"mb-6\">Hi, there!</h2>

                <p>Welcome to the Winter CMS Workshop. This theme provides a suitable boilerplate for testing the most common Winter CMS core functions and plugins with a simple but visually pleasing theme. It is built using the <a href=\"https://tailwindcss.com\" target=\"tailwind\">Tailwind CSS</a> framework, also providing a suitable example of how to implement Tailwind CSS in a theme.</p>

                <p>In this instance, the theme is testing out a simple CMS page with a partial underneath the main content, in addition to partials being used throughout the layout and page to display UI elements.</p>

                {% if blogInstalled %}
                <p>On the right, you can see a component to show the latest article in the Blog.</p>
                {% endif %}

                {% partial 'instructions' %}
            </div>

            {% if blogInstalled %}
                <div class=\"flex-grow-0 px-8 mt-16 lg:w-3/12 lg:mt-0 xl:pr-0\">
                    <div class=\"w-full sm:w-1/3 lg:w-full mx-auto\">
                        {% partial 'blog/latest-single' %}

                        <div class=\"mt-6 text-center\">
                            {% partial 'ui/link-button' url=\"blog/index\"|page text=\"All blog articles\" %}
                        </div>
                    </div>
                </div>
            {% endif %}
        </div>
    </div>
</section>", "C:\\xampp\\htdocs\\AfroTurf\\themes\\workshop-theme\\pages\\home.htm", "");
    }
    
    public function checkSecurity()
    {
        static $tags = array("partial" => 1, "if" => 15);
        static $filters = array("page" => 35);
        static $functions = array();

        try {
            $this->sandbox->checkSecurity(
                ['partial', 'if'],
                ['page'],
                []
            );
        } catch (SecurityError $e) {
            $e->setSourceContext($this->source);

            if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
                $e->setTemplateLine($tags[$e->getTagName()]);
            } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
                $e->setTemplateLine($filters[$e->getFilterName()]);
            } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
                $e->setTemplateLine($functions[$e->getFunctionName()]);
            }

            throw $e;
        }

    }
}
