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

/* catalog/view/theme/journal3/template/journal3/module/newsletter.twig */
class __TwigTemplate_7cfb47a7a858f5b5c2bf3c5ed090a0fa 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
        yield "<div class=\"";
        yield CoreExtension::getAttribute($this->env, $this->source, ($context["journal3"] ?? null), "classes", [($context["classes"] ?? null)], "method", false, false, false, 1);
        yield " ";
        yield ($context["color_scheme_module"] ?? null);
        yield "\">
  <button aria-label=\"Edit\" class=\"admin-edit\" type=\"button\" data-edit=\"";
        // line 2
        yield ($context["edit"] ?? null);
        yield "\"><em class=\"fa fa-pencil\" data-placement=\"auto\" data-toggle=\"tooltip-hover\" data-tooltip-class=\"admin-edit-tooltip\" title=\"Edit ";
        yield ($context["name"] ?? null);
        yield "\"></em></button>
  ";
        // line 3
        if (($context["title"] ?? null)) {
            // line 4
            yield "    <h3 class=\"title module-title\">";
            yield ($context["title"] ?? null);
            yield "</h3>
  ";
        }
        // line 6
        yield "  <div class=\"module-body\">
    ";
        // line 7
        if (($context["text"] ?? null)) {
            // line 8
            yield "      <div class=\"newsletter-text\">";
            yield ($context["text"] ?? null);
            yield "</div>
    ";
        }
        // line 10
        yield "    <div class=\"newsletter-form\">
      <form action=\"";
        // line 11
        yield ($context["action"] ?? null);
        yield "\" method=\"post\" enctype=\"multipart/form-data\" class=\"form-horizontal\">
        <div class=\"input-group ";
        // line 12
        yield ($context["color_scheme_input"] ?? null);
        yield "\">
          <label class=\"sr-only\" for=\"newsletter-input-el-";
        // line 13
        yield ($context["id"] ?? null);
        yield "\">";
        yield ($context["placeholder"] ?? null);
        yield "</label>
          <input id=\"newsletter-input-el-";
        // line 14
        yield ($context["id"] ?? null);
        yield "\" type=\"text\" name=\"email\" placeholder=\"";
        yield ($context["placeholder"] ?? null);
        yield "\" class=\"form-control newsletter-email\"/>
          <span class=\"input-group-btn\">
              <button type=\"submit\" class=\"btn btn-primary\" ";
        // line 16
        if (((($context["buttonType"] ?? null) == "icon") && (CoreExtension::getAttribute($this->env, $this->source, ($context["journal3"] ?? null), "is_desktop", [], "any", false, false, false, 16) && ($context["tooltipStatus"] ?? null)))) {
            yield "data-toggle=\"tooltip-hover\" data-tooltip-class=\"newsletter-tooltip-";
            yield ($context["module_id"] ?? null);
            yield "\" data-placement=\"";
            yield ($context["tooltipPosition"] ?? null);
            yield "\" title=\"";
            yield ($context["tooltipText"] ?? null);
            yield "\"";
        }
        yield " data-loading-text=\"<span>";
        yield ($context["buttonText"] ?? null);
        yield "</span>\"><span>";
        yield ($context["buttonText"] ?? null);
        yield "</span></button>
          </span>
        </div>
        ";
        // line 19
        if (($context["captcha"] ?? null)) {
            // line 20
            yield "        <div class=\"input-captcha\">";
            yield ($context["captcha"] ?? null);
            yield "</div>
        ";
        }
        // line 22
        yield "        ";
        if (($context["agree_data"] ?? null)) {
            // line 23
            yield "          <div class=\"checkbox\">
            <label for=\"newsletter-checkbox-el-";
            // line 24
            yield ($context["id"] ?? null);
            yield "\">
              <input id=\"newsletter-checkbox-el-";
            // line 25
            yield ($context["id"] ?? null);
            yield "\" type=\"checkbox\" name=\"agree\" value=\"1\"/>
              ";
            // line 26
            yield CoreExtension::getAttribute($this->env, $this->source, ($context["agree_data"] ?? null), "text", [], "any", false, false, false, 26);
            yield "
            </label>
          </div>
        ";
        }
        // line 30
        yield "      </form>
    </div>
  </div>
</div>
";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "catalog/view/theme/journal3/template/journal3/module/newsletter.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  145 => 30,  138 => 26,  134 => 25,  130 => 24,  127 => 23,  124 => 22,  118 => 20,  116 => 19,  98 => 16,  91 => 14,  85 => 13,  81 => 12,  77 => 11,  74 => 10,  68 => 8,  66 => 7,  63 => 6,  57 => 4,  55 => 3,  49 => 2,  42 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("<div class=\"{{ journal3.classes(classes) }} {{ color_scheme_module }}\">
  <button aria-label=\"Edit\" class=\"admin-edit\" type=\"button\" data-edit=\"{{ edit }}\"><em class=\"fa fa-pencil\" data-placement=\"auto\" data-toggle=\"tooltip-hover\" data-tooltip-class=\"admin-edit-tooltip\" title=\"Edit {{ name }}\"></em></button>
  {% if title %}
    <h3 class=\"title module-title\">{{ title }}</h3>
  {% endif %}
  <div class=\"module-body\">
    {% if text %}
      <div class=\"newsletter-text\">{{ text }}</div>
    {% endif %}
    <div class=\"newsletter-form\">
      <form action=\"{{ action }}\" method=\"post\" enctype=\"multipart/form-data\" class=\"form-horizontal\">
        <div class=\"input-group {{ color_scheme_input }}\">
          <label class=\"sr-only\" for=\"newsletter-input-el-{{ id }}\">{{ placeholder }}</label>
          <input id=\"newsletter-input-el-{{ id }}\" type=\"text\" name=\"email\" placeholder=\"{{ placeholder }}\" class=\"form-control newsletter-email\"/>
          <span class=\"input-group-btn\">
              <button type=\"submit\" class=\"btn btn-primary\" {% if (buttonType == \"icon\") and (journal3.is_desktop and tooltipStatus) %}data-toggle=\"tooltip-hover\" data-tooltip-class=\"newsletter-tooltip-{{ module_id }}\" data-placement=\"{{ tooltipPosition }}\" title=\"{{ tooltipText }}\"{% endif %} data-loading-text=\"<span>{{ buttonText }}</span>\"><span>{{ buttonText }}</span></button>
          </span>
        </div>
        {% if captcha %}
        <div class=\"input-captcha\">{{ captcha }}</div>
        {% endif %}
        {% if agree_data %}
          <div class=\"checkbox\">
            <label for=\"newsletter-checkbox-el-{{ id }}\">
              <input id=\"newsletter-checkbox-el-{{ id }}\" type=\"checkbox\" name=\"agree\" value=\"1\"/>
              {{ agree_data.text }}
            </label>
          </div>
        {% endif %}
      </form>
    </div>
  </div>
</div>
", "catalog/view/theme/journal3/template/journal3/module/newsletter.twig", "/home/isatuzun/public_html/opencart.my-multiplanet.ch/catalog/view/theme/journal3/template/journal3/module/newsletter.twig");
    }
}
