<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;

/* /var/www/html/october_cms_projects/dil_website/themes/demo/partials/site/how-its-made.htm */
class __TwigTemplate_d444d5e3bb58cc2474933f53ba1cb0ae extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1
        if ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, ($context["this"] ?? null), "page", [], "any", false, false, false, 1), "id", [], "any", false, false, false, 1) == "blog-category")) {
            // line 2
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:blog/category.htm";
            // line 3
            yield "    ";
            $context["howItsMadeTailorBlueprint"] = "tailor:tailor-blueprint:blog/category.yaml";
            // line 4
            yield "    ";
            $context["howItsMadeTailorContent"] = ("entries/blog_category/" . Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, ($context["category"] ?? null), "id", [], "any", false, false, false, 4));
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 5
($context["this"] ?? null), "page", [], "any", false, false, false, 5), "id", [], "any", false, false, false, 5) == "404")) {
            // line 6
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:404.htm";
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 7
($context["this"] ?? null), "page", [], "any", false, false, false, 7), "id", [], "any", false, false, false, 7) == "error")) {
            // line 8
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:error.htm";
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 9
($context["this"] ?? null), "page", [], "any", false, false, false, 9), "id", [], "any", false, false, false, 9) == "about")) {
            // line 10
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:about.htm";
            // line 11
            yield "    ";
            $context["howItsMadeTailorBlueprint"] = "tailor:tailor-blueprint:landing/landing-page.yaml";
            // line 12
            yield "    ";
            $context["howItsMadeTailorContent"] = "entries/page_about";
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 13
($context["this"] ?? null), "page", [], "any", false, false, false, 13), "id", [], "any", false, false, false, 13) == "ajax")) {
            // line 14
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:ajax.htm";
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 15
($context["this"] ?? null), "page", [], "any", false, false, false, 15), "id", [], "any", false, false, false, 15) == "components")) {
            // line 16
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:components.htm";
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 17
($context["this"] ?? null), "page", [], "any", false, false, false, 17), "id", [], "any", false, false, false, 17) == "contact")) {
            // line 18
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:contact.htm";
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 19
($context["this"] ?? null), "page", [], "any", false, false, false, 19), "id", [], "any", false, false, false, 19) == "index")) {
            // line 20
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:index.htm";
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 21
($context["this"] ?? null), "page", [], "any", false, false, false, 21), "id", [], "any", false, false, false, 21) == "blog-archive")) {
            // line 22
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:blog/archive.htm";
            // line 23
            yield "    ";
            $context["howItsMadeTailorBlueprint"] = "tailor:tailor-blueprint:blog/post.yaml";
            // line 24
            yield "    ";
            $context["howItsMadeTailorContent"] = "entries/blog_post";
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 25
($context["this"] ?? null), "page", [], "any", false, false, false, 25), "id", [], "any", false, false, false, 25) == "blog-author")) {
            // line 26
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:blog/author.htm";
            // line 27
            yield "    ";
            $context["howItsMadeTailorBlueprint"] = "tailor:tailor-blueprint:blog/author.yaml";
            // line 28
            yield "    ";
            $context["howItsMadeTailorContent"] = ("entries/blog_author/" . Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, ($context["author"] ?? null), "id", [], "any", false, false, false, 28));
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 29
($context["this"] ?? null), "page", [], "any", false, false, false, 29), "id", [], "any", false, false, false, 29) == "blog-index")) {
            // line 30
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:blog/index.htm";
            // line 31
            yield "    ";
            $context["howItsMadeTailorBlueprint"] = "tailor:tailor-blueprint:blog/post.yaml";
            // line 32
            yield "    ";
            $context["howItsMadeTailorContent"] = "entries/blog_post";
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 33
($context["this"] ?? null), "page", [], "any", false, false, false, 33), "id", [], "any", false, false, false, 33) == "blog-post")) {
            // line 34
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:blog/post.htm";
            // line 35
            yield "    ";
            $context["howItsMadeTailorBlueprint"] = "tailor:tailor-blueprint:blog/post.yaml";
            // line 36
            yield "    ";
            $context["howItsMadeTailorContent"] = ("entries/blog_post/" . Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, ($context["blog"] ?? null), "id", [], "any", false, false, false, 36));
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 37
($context["this"] ?? null), "page", [], "any", false, false, false, 37), "id", [], "any", false, false, false, 37) == "blog-search")) {
            // line 38
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:blog/search.htm";
            // line 39
            yield "    ";
            $context["howItsMadeTailorBlueprint"] = "tailor:tailor-blueprint:blog/post.yaml";
            // line 40
            yield "    ";
            $context["howItsMadeTailorContent"] = "entries/blog_post";
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 41
($context["this"] ?? null), "page", [], "any", false, false, false, 41), "id", [], "any", false, false, false, 41) == "wiki-article")) {
            // line 42
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:wiki/article.htm";
            // line 43
            yield "    ";
            $context["howItsMadeTailorBlueprint"] = "tailor:tailor-blueprint:wiki/article.yaml";
            // line 44
            yield "    ";
            $context["howItsMadeTailorContent"] = ("entries/page_article/" . Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, ($context["wiki"] ?? null), "id", [], "any", false, false, false, 44));
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 45
($context["this"] ?? null), "page", [], "any", false, false, false, 45), "id", [], "any", false, false, false, 45) == "wiki-index")) {
            // line 46
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:wiki/index.htm";
            // line 47
            yield "    ";
            $context["howItsMadeTailorBlueprint"] = "tailor:tailor-blueprint:wiki/article.yaml";
            // line 48
            yield "    ";
            $context["howItsMadeTailorContent"] = "entries/page_article";
        } elseif ((Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source,         // line 49
($context["this"] ?? null), "page", [], "any", false, false, false, 49), "id", [], "any", false, false, false, 49) == "wiki-search")) {
            // line 50
            yield "    ";
            $context["howItsMadeCmsTemplate"] = "cms:cms-page:wiki/search.htm";
            // line 51
            yield "    ";
            $context["howItsMadeTailorBlueprint"] = "tailor:tailor-blueprint:wiki/article.yaml";
            // line 52
            yield "    ";
            $context["howItsMadeTailorContent"] = "entries/page_article";
        }
        // line 54
        yield "
";
        // line 55
        if ((($context["backendUrl"] ?? null) && ($context["howItsMadeCmsTemplate"] ?? null))) {
            // line 56
            yield "    <div class=\"how-its-made init\">
        <div>
            <p>Wondering how this page is made? View the
                ";
            // line 59
            if ((($tmp = ((array_key_exists("howItsMadeCmsTemplate", $context)) ? (Twig\Extension\CoreExtension::default(($context["howItsMadeCmsTemplate"] ?? null), false)) : (false))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 60
                yield "                    <a target=\"_blank\" href=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((($context["backendUrl"] ?? null) . "/editor?open=") . ($context["howItsMadeCmsTemplate"] ?? null)), "html", null, true);
                yield "\">CMS Template</a>
                ";
            }
            // line 62
            yield "                ";
            if ((($tmp = ((array_key_exists("howItsMadeTailorBlueprint", $context)) ? (Twig\Extension\CoreExtension::default(($context["howItsMadeTailorBlueprint"] ?? null), false)) : (false))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 63
                yield "                    •  <a target=\"_blank\" href=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((($context["backendUrl"] ?? null) . "/editor?open=") . ($context["howItsMadeTailorBlueprint"] ?? null)), "html", null, true);
                yield "\">Tailor Blueprint</a>
                ";
            }
            // line 65
            yield "                ";
            if ((($tmp = ((array_key_exists("howItsMadeTailorContent", $context)) ? (Twig\Extension\CoreExtension::default(($context["howItsMadeTailorContent"] ?? null), false)) : (false))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 66
                yield "                    •  <a target=\"_blank\" href=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((($context["backendUrl"] ?? null) . "/tailor/") . ($context["howItsMadeTailorContent"] ?? null)), "html", null, true);
                yield "\">Tailor Content</a>
                ";
            }
            // line 68
            yield "            </p>
        </div>
    </div>
";
        }
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "/var/www/html/october_cms_projects/dil_website/themes/demo/partials/site/how-its-made.htm";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  219 => 68,  213 => 66,  210 => 65,  204 => 63,  201 => 62,  195 => 60,  193 => 59,  188 => 56,  186 => 55,  183 => 54,  179 => 52,  176 => 51,  173 => 50,  171 => 49,  168 => 48,  165 => 47,  162 => 46,  160 => 45,  157 => 44,  154 => 43,  151 => 42,  149 => 41,  146 => 40,  143 => 39,  140 => 38,  138 => 37,  135 => 36,  132 => 35,  129 => 34,  127 => 33,  124 => 32,  121 => 31,  118 => 30,  116 => 29,  113 => 28,  110 => 27,  107 => 26,  105 => 25,  102 => 24,  99 => 23,  96 => 22,  94 => 21,  91 => 20,  89 => 19,  86 => 18,  84 => 17,  81 => 16,  79 => 15,  76 => 14,  74 => 13,  71 => 12,  68 => 11,  65 => 10,  63 => 9,  60 => 8,  58 => 7,  55 => 6,  53 => 5,  50 => 4,  47 => 3,  44 => 2,  42 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% if this.page.id == 'blog-category' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:blog/category.htm' %}
    {% set howItsMadeTailorBlueprint = 'tailor:tailor-blueprint:blog/category.yaml' %}
    {% set howItsMadeTailorContent = 'entries/blog_category/' ~ category.id %}
{% elseif this.page.id == '404' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:404.htm' %}
{% elseif this.page.id == 'error' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:error.htm' %}
{% elseif this.page.id == 'about' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:about.htm' %}
    {% set howItsMadeTailorBlueprint = 'tailor:tailor-blueprint:landing/landing-page.yaml' %}
    {% set howItsMadeTailorContent = 'entries/page_about' %}
{% elseif this.page.id == 'ajax' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:ajax.htm' %}
{% elseif this.page.id == 'components' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:components.htm' %}
{% elseif this.page.id == 'contact' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:contact.htm' %}
{% elseif this.page.id == 'index' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:index.htm' %}
{% elseif this.page.id == 'blog-archive' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:blog/archive.htm' %}
    {% set howItsMadeTailorBlueprint = 'tailor:tailor-blueprint:blog/post.yaml' %}
    {% set howItsMadeTailorContent = 'entries/blog_post' %}
{% elseif this.page.id == 'blog-author' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:blog/author.htm' %}
    {% set howItsMadeTailorBlueprint = 'tailor:tailor-blueprint:blog/author.yaml' %}
    {% set howItsMadeTailorContent = 'entries/blog_author/' ~ author.id %}
{% elseif this.page.id == 'blog-index' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:blog/index.htm' %}
    {% set howItsMadeTailorBlueprint = 'tailor:tailor-blueprint:blog/post.yaml' %}
    {% set howItsMadeTailorContent = 'entries/blog_post' %}
{% elseif this.page.id == 'blog-post' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:blog/post.htm' %}
    {% set howItsMadeTailorBlueprint = 'tailor:tailor-blueprint:blog/post.yaml' %}
    {% set howItsMadeTailorContent = 'entries/blog_post/' ~ blog.id %}
{% elseif this.page.id == 'blog-search' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:blog/search.htm' %}
    {% set howItsMadeTailorBlueprint = 'tailor:tailor-blueprint:blog/post.yaml' %}
    {% set howItsMadeTailorContent = 'entries/blog_post' %}
{% elseif this.page.id == 'wiki-article' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:wiki/article.htm' %}
    {% set howItsMadeTailorBlueprint = 'tailor:tailor-blueprint:wiki/article.yaml' %}
    {% set howItsMadeTailorContent = 'entries/page_article/' ~ wiki.id %}
{% elseif this.page.id == 'wiki-index' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:wiki/index.htm' %}
    {% set howItsMadeTailorBlueprint = 'tailor:tailor-blueprint:wiki/article.yaml' %}
    {% set howItsMadeTailorContent = 'entries/page_article' %}
{% elseif this.page.id == 'wiki-search' %}
    {% set howItsMadeCmsTemplate = 'cms:cms-page:wiki/search.htm' %}
    {% set howItsMadeTailorBlueprint = 'tailor:tailor-blueprint:wiki/article.yaml' %}
    {% set howItsMadeTailorContent = 'entries/page_article' %}
{% endif %}

{% if backendUrl and howItsMadeCmsTemplate %}
    <div class=\"how-its-made init\">
        <div>
            <p>Wondering how this page is made? View the
                {% if howItsMadeCmsTemplate|default(false) %}
                    <a target=\"_blank\" href=\"{{ backendUrl ~ '/editor?open=' ~ howItsMadeCmsTemplate }}\">CMS Template</a>
                {% endif %}
                {% if howItsMadeTailorBlueprint|default(false) %}
                    •  <a target=\"_blank\" href=\"{{ backendUrl ~ '/editor?open=' ~ howItsMadeTailorBlueprint }}\">Tailor Blueprint</a>
                {% endif %}
                {% if howItsMadeTailorContent|default(false) %}
                    •  <a target=\"_blank\" href=\"{{ backendUrl ~ '/tailor/' ~ howItsMadeTailorContent }}\">Tailor Content</a>
                {% endif %}
            </p>
        </div>
    </div>
{% endif %}", "/var/www/html/october_cms_projects/dil_website/themes/demo/partials/site/how-its-made.htm", "");
    }
}
