<?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;
/* ecom/contact.html.twig */
class __TwigTemplate_17a53750f7c332c3dd10931fa985458d extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ecom/contact.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ecom/contact.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "ecom/contact.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 3
yield " <div class=\"container-fluid main-holder px-5 border-bottom\">
<div class=\"row\">
<div class=\"col-lg-12 pb-2\">
<ul class=\"list-unstyled list-inline\">
<li class=\"list-inline-item me-4\"><a href=\"#0\">Brand Collab</a></li>
<li class=\"list-inline-item\"><a href=\"#0\">Designer Collab</a></li>
</ul>
</div>
</div>
</div>
\t<div class=\"container-fluid\">\t
\t <div class=\"row mb-5\">
<div class=\"col-lg-7 offset-lg-2 mb-5 mt-5\">
<h1 class=\"fw-bolder\">Contact</h1>
\t\t </div>
\t\t <div class=\"clearfix\"></div>
\t\t <div class=\"col-lg-7 offset-lg-2\">
<p>No question is too small or too big. For any inquiries, please feel free to contact us via email at <a href=\"mailto:";
// line 20
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["ecomvariables"]) || array_key_exists("ecomvariables", $context) ? $context["ecomvariables"] : (function () { throw new RuntimeError('Variable "ecomvariables" does not exist.', 20, $this->source); })()), "textcontent", ["customer_contact_email", "customerservice@noblenative.com"], "method", false, false, false, 20);
yield "\" class=\"fw-bold\">";
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["ecomvariables"]) || array_key_exists("ecomvariables", $context) ? $context["ecomvariables"] : (function () { throw new RuntimeError('Variable "ecomvariables" does not exist.', 20, $this->source); })()), "textcontent", ["customer_contact_email"], "method", false, false, false, 20);
yield "</a>, or you can reach us by phone at the following numbers:</p>
\t\t\t <p>Phone: <strong>";
// line 21
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["ecomvariables"]) || array_key_exists("ecomvariables", $context) ? $context["ecomvariables"] : (function () { throw new RuntimeError('Variable "ecomvariables" does not exist.', 21, $this->source); })()), "textcontent", ["site_contact_number"], "method", false, false, false, 21);
yield "</strong></p>
\t\t\t <p>Customer Service (order-related): <strong>";
// line 22
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["ecomvariables"]) || array_key_exists("ecomvariables", $context) ? $context["ecomvariables"] : (function () { throw new RuntimeError('Variable "ecomvariables" does not exist.', 22, $this->source); })()), "textcontent", ["customer_contact_number"], "method", false, false, false, 22);
yield "</strong></p>
\t\t\t <p>Alternatively, you can also use the form below to get in touch with us. We're here to assist you and provide the support you need.</p>
\t\t\t <form class=\"mt-5\" method=\"POST\" action=\"";
// line 24
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sajong_ecom_save_contact");
yield "\" id=\"contact-us-form\">
\t\t\t\t <div class=\"form-floating mb-3 position-relative\">
<input type=\"text\" class=\"form-control rounded-pill shadow-none border mb-4 px-4\" placeholder=\"Your Name\" name=\"name\" id=\"name\" required>
<label for=\"name\" class=\"px-4\">Your Name</label>
</div>
<div class=\"form-floating mb-3 position-relative\">
<input type=\"email\" class=\"form-control rounded-pill shadow-none border mb-4 px-4\" placeholder=\"name@example.com\" name=\"email\" id=\"email\" required>
<label for=\"email\" class=\"px-4\">Email address</label>
</div>
<div class=\"form-floating position-relative\">
<input type=\"text\" class=\"form-control rounded-pill shadow-none border mb-4 px-4\" placeholder=\"Phone Number\" name=\"phone\" id=\"phone\" required>
<label for=\"phone\" class=\"px-4\">Phone Number</label>
</div>
<div class=\"form-floating position-relative\">
<input type=\"text\" class=\"form-control rounded-pill shadow-none border mb-4 px-4\" placeholder=\"Subject\" name=\"subject\" id=\"subject\" required>
<label for=\"subject\" class=\"px-4\">Subject</label>
</div>
<div class=\"form-floating position-relative\">
<textarea class=\"form-control rounded-pill shadow-none border mb-4 px-4\" placeholder=\"Leave a comment here\" style=\"height: 100px\" name=\"description\" id=\"description\"></textarea>
<label for=\"description\" class=\"px-4\">Comments</label>
</div>
<input type=\"hidden\" name=\"form_token\" value=\"";
// line 45
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("contact_form"), "html", null, true);
yield "\" />
<button class=\"btn bg-secondary text-white px-4 py-3 w-100 rounded-pill mb-4\">Send</button>
";
// line 47
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 47, $this->source); })()), "session", [], "any", false, false, false, 47), "flashBag", [], "any", false, false, false, 47), "has", ["success"], "method", false, false, false, 47)) {
// line 48
yield " <div class=\"mt-4 p-4 bg-light rounded-5 border-top border-5 border-secondary\">
<h6 class=\"fw-bold\">Thank you for reaching out!</h6>
";
// line 50
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 50, $this->source); })()), "session", [], "any", false, false, false, 50), "flashBag", [], "any", false, false, false, 50), "get", ["success"], "method", false, false, false, 50));
foreach ($context['_seq'] as $context["_key"] => $context["msg"]) {
// line 51
yield " <p>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["msg"], "html", null, true);
yield "</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['msg'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 52
yield "
</div>
";
}
// line 55
yield " </form>
</div>
\t </div>
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "ecom/contact.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 156 => 55, 151 => 52, 142 => 51, 138 => 50, 134 => 48, 132 => 47, 127 => 45, 103 => 24, 98 => 22, 94 => 21, 88 => 20, 69 => 3, 59 => 2, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block body %}
<div class=\"container-fluid main-holder px-5 border-bottom\">
<div class=\"row\">
<div class=\"col-lg-12 pb-2\">
<ul class=\"list-unstyled list-inline\">
<li class=\"list-inline-item me-4\"><a href=\"#0\">Brand Collab</a></li>
<li class=\"list-inline-item\"><a href=\"#0\">Designer Collab</a></li>
</ul>
</div>
</div>
</div>
\t<div class=\"container-fluid\">\t
\t <div class=\"row mb-5\">
<div class=\"col-lg-7 offset-lg-2 mb-5 mt-5\">
<h1 class=\"fw-bolder\">Contact</h1>
\t\t </div>
\t\t <div class=\"clearfix\"></div>
\t\t <div class=\"col-lg-7 offset-lg-2\">
<p>No question is too small or too big. For any inquiries, please feel free to contact us via email at <a href=\"mailto:{{ ecomvariables.textcontent('customer_contact_email', 'customerservice@noblenative.com')|raw }}\" class=\"fw-bold\">{{ ecomvariables.textcontent('customer_contact_email')|raw()\t}}</a>, or you can reach us by phone at the following numbers:</p>
\t\t\t <p>Phone: <strong>{{ ecomvariables.textcontent('site_contact_number')|raw()\t}}</strong></p>
\t\t\t <p>Customer Service (order-related): <strong>{{ ecomvariables.textcontent('customer_contact_number')|raw()\t}}</strong></p>
\t\t\t <p>Alternatively, you can also use the form below to get in touch with us. We're here to assist you and provide the support you need.</p>
\t\t\t <form class=\"mt-5\" method=\"POST\" action=\"{{ path('sajong_ecom_save_contact') }}\" id=\"contact-us-form\">
\t\t\t\t <div class=\"form-floating mb-3 position-relative\">
<input type=\"text\" class=\"form-control rounded-pill shadow-none border mb-4 px-4\" placeholder=\"Your Name\" name=\"name\" id=\"name\" required>
<label for=\"name\" class=\"px-4\">Your Name</label>
</div>
<div class=\"form-floating mb-3 position-relative\">
<input type=\"email\" class=\"form-control rounded-pill shadow-none border mb-4 px-4\" placeholder=\"name@example.com\" name=\"email\" id=\"email\" required>
<label for=\"email\" class=\"px-4\">Email address</label>
</div>
<div class=\"form-floating position-relative\">
<input type=\"text\" class=\"form-control rounded-pill shadow-none border mb-4 px-4\" placeholder=\"Phone Number\" name=\"phone\" id=\"phone\" required>
<label for=\"phone\" class=\"px-4\">Phone Number</label>
</div>
<div class=\"form-floating position-relative\">
<input type=\"text\" class=\"form-control rounded-pill shadow-none border mb-4 px-4\" placeholder=\"Subject\" name=\"subject\" id=\"subject\" required>
<label for=\"subject\" class=\"px-4\">Subject</label>
</div>
<div class=\"form-floating position-relative\">
<textarea class=\"form-control rounded-pill shadow-none border mb-4 px-4\" placeholder=\"Leave a comment here\" style=\"height: 100px\" name=\"description\" id=\"description\"></textarea>
<label for=\"description\" class=\"px-4\">Comments</label>
</div>
<input type=\"hidden\" name=\"form_token\" value=\"{{ csrf_token('contact_form') }}\" />
<button class=\"btn bg-secondary text-white px-4 py-3 w-100 rounded-pill mb-4\">Send</button>
{% if app.session.flashBag.has('success') %}
<div class=\"mt-4 p-4 bg-light rounded-5 border-top border-5 border-secondary\">
<h6 class=\"fw-bold\">Thank you for reaching out!</h6>
{% for msg in app.session.flashBag.get('success') %}
<p>{{ msg }}</p>
{% endfor %}
</div>
{% endif %}
</form>
</div>
\t </div>
\t</div>
{% endblock %}", "ecom/contact.html.twig", "/var/www/commerce8/noble_natives/templates/ecom/contact.html.twig");
}
}