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

/* ucp_agreement.html */
class __TwigTemplate_55feaff55ec2b64d3f90b48c197238ee extends \Twig\Template
{
    private $source;
    private $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 = [])
    {
        $macros = $this->macros;
        // line 1
        $this->loadTemplate("overall_header.html", "ucp_agreement.html", 1)->display($context);
        // line 2
        echo "
";
        // line 3
        if ((($context["S_SHOW_COPPA"] ?? null) || ($context["S_REGISTRATION"] ?? null))) {
            // line 4
            echo "
\t<header class=\"iz-sectionhead\">
\t\t<h1 class=\"iz-sectionhead__title\">";
            // line 6
            echo ($context["SITENAME"] ?? null);
            echo "&nbsp;&#45;&nbsp;";
            echo ($context["L_REGISTRATION"] ?? null);
            echo "</h1>
\t</header>

\t";
            // line 9
            if (($context["S_LANG_OPTIONS"] ?? null)) {
                // line 10
                echo "\t\t<div class=\"iz-toolbar iz-toolbar--lang\" aria-label=\"";
                echo ($context["L_LANGUAGE"] ?? null);
                echo "\">
\t\t\t<form method=\"post\" action=\"";
                // line 11
                echo ($context["S_UCP_ACTION"] ?? null);
                echo "\" id=\"register\" class=\"iz-form iz-form--inline\">
\t\t\t\t<fieldset class=\"iz-fieldset\">
\t\t\t\t\t<label class=\"iz-label iz-visually-hidden\" for=\"lang\">";
                // line 13
                echo ($context["L_LANGUAGE"] ?? null);
                echo ($context["L_COLON"] ?? null);
                echo "</label>
\t\t\t\t\t<select class=\"iz-select\" name=\"lang\" id=\"lang\" title=\"";
                // line 14
                echo ($context["L_LANGUAGE"] ?? null);
                echo "\">
\t\t\t\t\t\t";
                // line 15
                echo ($context["S_LANG_OPTIONS"] ?? null);
                echo "
\t\t\t\t\t</select>
\t\t\t\t\t";
                // line 17
                echo ($context["S_HIDDEN_FIELDS"] ?? null);
                echo "
\t\t\t\t</fieldset>
\t\t\t</form>
\t\t</div>

\t\t<script>
\t\t\t(function () {
\t\t\t\tvar sel = document.getElementById('lang');
\t\t\t\tif (!sel) return;

\t\t\t\tsel.addEventListener('change', function () {
\t\t\t\t\tvar form = document.getElementById('register');
\t\t\t\t\tif (form) form.submit();
\t\t\t\t});
\t\t\t})();
\t\t</script>
\t";
            }
            // line 34
            echo "
\t<form method=\"post\" action=\"";
            // line 35
            echo ($context["S_UCP_ACTION"] ?? null);
            echo "\" id=\"agreement\" class=\"iz-form\">
\t\t<section class=\"iz-card iz-card--agreement\">
\t\t\t<header class=\"iz-card__header\">
\t\t\t\t<h2 class=\"iz-card__title\">
\t\t\t\t\t";
            // line 39
            if (($context["S_SHOW_COPPA"] ?? null)) {
                echo ($context["L_COPPA_BIRTHDAY"] ?? null);
            } else {
                echo ($context["L_TERMS_OF_USE"] ?? null);
            }
            // line 40
            echo "\t\t\t\t</h2>
\t\t\t</header>

\t\t\t<div class=\"iz-card__body\">
\t\t\t\t";
            // line 44
            // line 45
            echo "
\t\t\t\t";
            // line 46
            if (($context["S_SHOW_COPPA"] ?? null)) {
                // line 47
                echo "\t\t\t\t\t<div class=\"iz-actions\">
\t\t\t\t\t\t<button type=\"submit\" class=\"iz-btn iz-btn--ghost\" name=\"coppa_no\" id=\"coppa_no\" value=\"";
                // line 48
                echo ($context["L_COPPA_NO"] ?? null);
                echo "\">
\t\t\t\t\t\t\t";
                // line 49
                echo ($context["L_COPPA_NO"] ?? null);
                echo "
\t\t\t\t\t\t</button>
\t\t\t\t\t\t<button type=\"submit\" class=\"iz-btn iz-btn--primary\" name=\"coppa_yes\" id=\"coppa_yes\" value=\"";
                // line 51
                echo ($context["L_COPPA_YES"] ?? null);
                echo "\">
\t\t\t\t\t\t\t";
                // line 52
                echo ($context["L_COPPA_YES"] ?? null);
                echo "
\t\t\t\t\t\t</button>
\t\t\t\t\t</div>
\t\t\t\t";
            } else {
                // line 56
                echo "\t\t\t\t\t<div class=\"iz-prose\">
\t\t\t\t\t\t<p>";
                // line 57
                echo ($context["L_TERMS_OF_USE"] ?? null);
                echo "</p>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"iz-actions iz-actions--stack\">
\t\t\t\t\t\t<button type=\"submit\" class=\"iz-btn iz-btn--primary iz-btn--lg\" name=\"agreed\" id=\"agreed\" value=\"";
                // line 61
                echo ($context["L_AGREE"] ?? null);
                echo "\">
\t\t\t\t\t\t\t";
                // line 62
                echo ($context["L_AGREE"] ?? null);
                echo "
\t\t\t\t\t\t</button>
\t\t\t\t\t\t<button type=\"submit\" class=\"iz-btn iz-btn--danger iz-btn--lg\" name=\"not_agreed\" value=\"";
                // line 64
                echo ($context["L_NOT_AGREE"] ?? null);
                echo "\">
\t\t\t\t\t\t\t";
                // line 65
                echo ($context["L_NOT_AGREE"] ?? null);
                echo "
\t\t\t\t\t\t</button>
\t\t\t\t\t</div>
\t\t\t\t";
            }
            // line 69
            echo "
\t\t\t\t";
            // line 70
            // line 71
            echo "
\t\t\t\t";
            // line 72
            echo ($context["S_HIDDEN_FIELDS"] ?? null);
            echo "
\t\t\t\t";
            // line 73
            echo ($context["S_FORM_TOKEN"] ?? null);
            echo "
\t\t\t</div>
\t\t</section>
\t</form>

";
        } elseif (        // line 78
($context["S_AGREEMENT"] ?? null)) {
            // line 79
            echo "
\t<header class=\"iz-sectionhead\">
\t\t<h1 class=\"iz-sectionhead__title\">";
            // line 81
            echo ($context["SITENAME"] ?? null);
            echo "&nbsp;&#45;&nbsp;";
            echo ($context["AGREEMENT_TITLE"] ?? null);
            echo "</h1>
\t</header>

\t<section class=\"iz-card iz-card--agreementtext\">
\t\t<div class=\"iz-card__body\">
\t\t\t<div class=\"iz-prose\">
\t\t\t\t<p>";
            // line 87
            echo ($context["AGREEMENT_TEXT"] ?? null);
            echo "</p>
\t\t\t</div>
\t\t</div>
\t</section>

";
        }
        // line 93
        echo "
";
        // line 94
        $this->loadTemplate("overall_footer.html", "ucp_agreement.html", 94)->display($context);
    }

    public function getTemplateName()
    {
        return "ucp_agreement.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  231 => 94,  228 => 93,  219 => 87,  208 => 81,  204 => 79,  202 => 78,  194 => 73,  190 => 72,  187 => 71,  186 => 70,  183 => 69,  176 => 65,  172 => 64,  167 => 62,  163 => 61,  156 => 57,  153 => 56,  146 => 52,  142 => 51,  137 => 49,  133 => 48,  130 => 47,  128 => 46,  125 => 45,  124 => 44,  118 => 40,  112 => 39,  105 => 35,  102 => 34,  82 => 17,  77 => 15,  73 => 14,  68 => 13,  63 => 11,  58 => 10,  56 => 9,  48 => 6,  44 => 4,  42 => 3,  39 => 2,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "ucp_agreement.html", "");
    }
}
