var/cache/dev/twig/95/95ad66af527fc428973d70968851655d.php line 61

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* checkout/checkout_address.html.twig */
  14. class __TwigTemplate_00fb768754e365354ef534a999f46234 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "layouts/layout.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""checkout/checkout_address.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""checkout/checkout_address.html.twig"));
  38.         // line 2
  39.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'2$this->source); })()), [=> "bootstrap_4_layout.html.twig"], true);
  40.         // line 1
  41.         $this->parent $this->loadTemplate("layouts/layout.html.twig""checkout/checkout_address.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 5
  49.     public function block_content($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  56.         // line 6
  57.         echo "
  58.     <div class=\"py-5 bg-light\">
  59.         <div class=\"container\">
  60.             <div class=\"row\">
  61.                 <div class=\"col-md-8\">
  62.                     <h4 class=\"mb-3\">";
  63.         // line 13
  64.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.billing-address"), "html"nulltrue);
  65.         echo "</h4>
  66.                     ";
  67.         // line 15
  68.         if ( !twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'15$this->source); })()), "user", [], "any"falsefalsefalse15)) {
  69.             // line 16
  70.             echo "                        <div class=\"mb-5\">
  71.                             ";
  72.             // line 17
  73.             $this->loadTemplate("account/partial/social_buttons.html.twig""checkout/checkout_address.html.twig"17)->display(twig_array_merge($context, ["connect" => false]));
  74.             // line 18
  75.             echo "                        </div>
  76.                     ";
  77.         }
  78.         // line 20
  79.         echo "
  80.                     ";
  81.         // line 21
  82.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'21$this->source); })()), 'form_start');
  83.         echo "
  84.                         <div class=\"row\">
  85.                             <div class=\"col-md-6\">
  86.                                 ";
  87.         // line 25
  88.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'25$this->source); })()), "firstname", [], "any"falsefalsefalse25), 'row');
  89.         echo "
  90.                             </div>
  91.                             <div class=\"col-md-6\">
  92.                                 ";
  93.         // line 28
  94.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'28$this->source); })()), "lastname", [], "any"falsefalsefalse28), 'row');
  95.         echo "
  96.                             </div>
  97.                         </div>
  98.                         ";
  99.         // line 31
  100.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'31$this->source); })()), "email", [], "any"falsefalsefalse31), 'row');
  101.         echo "
  102.                         ";
  103.         // line 32
  104.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'32$this->source); })()), "company", [], "any"falsefalsefalse32), 'row');
  105.         echo "
  106.                         ";
  107.         // line 33
  108.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'33$this->source); })()), "street", [], "any"falsefalsefalse33), 'row');
  109.         echo "
  110.                         <div class=\"row\">
  111.                             <div class=\"col-md-4\">
  112.                                 ";
  113.         // line 37
  114.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'37$this->source); })()), "zip", [], "any"falsefalsefalse37), 'row');
  115.         echo "
  116.                             </div>
  117.                             <div class=\"col-md-8\">
  118.                                 ";
  119.         // line 40
  120.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'40$this->source); })()), "city", [], "any"falsefalsefalse40), 'row');
  121.         echo "
  122.                             </div>
  123.                         </div>
  124.                         ";
  125.         // line 43
  126.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'43$this->source); })()), "countryCode", [], "any"falsefalsefalse43), 'row');
  127.         echo "
  128.                         <hr/>
  129.                     <div class=\"form-group\">
  130.                         ";
  131.         // line 48
  132.         twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'48$this->source); })()), "terms", [], "any"falsefalsefalse48), "setRendered", [], "any"falsefalsefalse48);
  133.         // line 49
  134.         echo "                        <div class=\"custom-control custom-checkbox\">
  135.                             <input type=\"checkbox\" id=\"";
  136.         // line 50
  137.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'50$this->source); })()), "terms", [], "any"falsefalsefalse50), "vars", [], "any"falsefalsefalse50), "id", [], "any"falsefalsefalse50), "html"nulltrue);
  138.         echo "\" name=\"";
  139.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'50$this->source); })()), "terms", [], "any"falsefalsefalse50), "vars", [], "any"falsefalsefalse50), "name", [], "any"falsefalsefalse50), "html"nulltrue);
  140.         echo "\" ";
  141.         echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'50$this->source); })()), "terms", [], "any"falsefalsefalse50), "vars", [], "any"falsefalsefalse50), "required", [], "any"falsefalsefalse50)) ? ("required=\"required\"") : (""));
  142.         echo " class=\"custom-control-input\" value=\"";
  143.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'50$this->source); })()), "terms", [], "any"falsefalsefalse50), "vars", [], "any"falsefalsefalse50), "value", [], "any"falsefalsefalse50), "html"nulltrue);
  144.         echo "\">
  145.                             <label class=\"checkbox-custom custom-control-label ";
  146.         // line 51
  147.         echo ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'51$this->source); })()), "terms", [], "any"falsefalsefalse51), "vars", [], "any"falsefalsefalse51), "required", [], "any"falsefalsefalse51)) ? ("required") : (""));
  148.         echo "\" for=\"";
  149.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'51$this->source); })()), "terms", [], "any"falsefalsefalse51), "vars", [], "any"falsefalsefalse51), "id", [], "any"falsefalsefalse51), "html"nulltrue);
  150.         echo "\">
  151.                                 ";
  152.         // line 52
  153.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("checkout.terms", [=> twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'52$this->source); })()), "getProperty", [=> "terms_and_conditions"], "method"falsefalsefalse52)]);
  154.         echo "
  155.                             </label>
  156.                         </div>
  157.                     </div>
  158. ";
  159.         // line 58
  160.         echo "
  161. ";
  162.         // line 60
  163.         echo "
  164.                         <hr/>
  165.                     ";
  166.         // line 63
  167.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'63$this->source); })()), "_submit", [], "any"falsefalsefalse63), 'row', ["attr" => ["class" => "btn-success btn-lg btn-block"]]);
  168.         echo "
  169.                     ";
  170.         // line 65
  171.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'65$this->source); })()), 'form_end');
  172.         echo "
  173.                 </div>
  174.                 <div class=\"col-md-4 mb-4 mt-5 mt-md-0\">
  175.                     ";
  176.         // line 69
  177.         $this->loadTemplate("cart/shared/order_summary.html.twig""checkout/checkout_address.html.twig"69)->display($context);
  178.         // line 70
  179.         echo "                </div>
  180.             </div>
  181.         </div>
  182.     </div>
  183. ";
  184.         
  185.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  186.         
  187.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  188.     }
  189.     public function getTemplateName()
  190.     {
  191.         return "checkout/checkout_address.html.twig";
  192.     }
  193.     public function isTraitable()
  194.     {
  195.         return false;
  196.     }
  197.     public function getDebugInfo()
  198.     {
  199.         return array (  204 => 70,  202 => 69,  195 => 65,  190 => 63,  185 => 60,  182 => 58,  174 => 52,  168 => 51,  158 => 50,  155 => 49,  153 => 48,  145 => 43,  139 => 40,  133 => 37,  126 => 33,  122 => 32,  118 => 31,  112 => 28,  106 => 25,  99 => 21,  96 => 20,  92 => 18,  90 => 17,  87 => 16,  85 => 15,  80 => 13,  71 => 6,  61 => 5,  50 => 1,  48 => 2,  35 => 1,);
  200.     }
  201.     public function getSourceContext()
  202.     {
  203.         return new Source("{% extends 'layouts/layout.html.twig' %}
  204. {% form_theme form 'bootstrap_4_layout.html.twig' %}
  205. {% block content %}
  206.     <div class=\"py-5 bg-light\">
  207.         <div class=\"container\">
  208.             <div class=\"row\">
  209.                 <div class=\"col-md-8\">
  210.                     <h4 class=\"mb-3\">{{ 'checkout.billing-address' | trans }}</h4>
  211.                     {% if(not app.user) %}
  212.                         <div class=\"mb-5\">
  213.                             {% include 'account/partial/social_buttons.html.twig' with {'connect': false} %}
  214.                         </div>
  215.                     {% endif %}
  216.                     {{ form_start(form) }}
  217.                         <div class=\"row\">
  218.                             <div class=\"col-md-6\">
  219.                                 {{ form_row(form.firstname) }}
  220.                             </div>
  221.                             <div class=\"col-md-6\">
  222.                                 {{ form_row(form.lastname) }}
  223.                             </div>
  224.                         </div>
  225.                         {{ form_row(form.email) }}
  226.                         {{ form_row(form.company) }}
  227.                         {{ form_row(form.street) }}
  228.                         <div class=\"row\">
  229.                             <div class=\"col-md-4\">
  230.                                 {{ form_row(form.zip) }}
  231.                             </div>
  232.                             <div class=\"col-md-8\">
  233.                                 {{ form_row(form.city) }}
  234.                             </div>
  235.                         </div>
  236.                         {{ form_row(form.countryCode) }}
  237.                         <hr/>
  238.                     <div class=\"form-group\">
  239.                         {% do form.terms.setRendered %}
  240.                         <div class=\"custom-control custom-checkbox\">
  241.                             <input type=\"checkbox\" id=\"{{ form.terms.vars.id }}\" name=\"{{ form.terms.vars.name }}\" {{ form.terms.vars.required ? 'required=\"required\"' : '' }} class=\"custom-control-input\" value=\"{{ form.terms.vars.value }}\">
  242.                             <label class=\"checkbox-custom custom-control-label {{ form.terms.vars.required ? 'required' : '' }}\" for=\"{{ form.terms.vars.id }}\">
  243.                                 {{ 'checkout.terms' | trans([document.getProperty('terms_and_conditions')]) | raw }}
  244.                             </label>
  245.                         </div>
  246.                     </div>
  247. {#                    {{ form_widget(form.terms) }}#}
  248. {#                        {{ form_row(form.terms, {'label': ( 'checkout.terms' | trans([document.getProperty('terms_and_conditions')]) | raw ), label_attr: {class: 'checkbox-custom'} }) }}#}
  249.                         <hr/>
  250.                     {{ form_row(form._submit, {'attr': {'class': 'btn-success btn-lg btn-block'}}) }}
  251.                     {{ form_end(form) }}
  252.                 </div>
  253.                 <div class=\"col-md-4 mb-4 mt-5 mt-md-0\">
  254.                     {% include 'cart/shared/order_summary.html.twig' %}
  255.                 </div>
  256.             </div>
  257.         </div>
  258.     </div>
  259. {% endblock %}
  260. ""checkout/checkout_address.html.twig""/var/www/html/siteone/templates/checkout/checkout_address.html.twig");
  261.     }
  262. }