var/cache/dev/twig/2f/2fab1f034b2e49da73861f3d9f17bba914b826e5182ba41b37f5ae757787f835.php line 33

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. /* Slivki/popups/buy_code_item-offer.html.twig */
  14. class __TwigTemplate_2420ec747cfaccfc623e9131123f2c8ac1e59328a2631394f3510f3e868968ab 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/popups/buy_code_item-offer.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/popups/buy_code_item-offer.html.twig"));
  33.         // line 1
  34.         echo "<div id=\"modalCodeOffer\" class=\"new-popup modal fade\">
  35.     <div class=\"modal-dialog no-boostrap\">
  36.         <div class=\"modal-content pt-3\">
  37.             <button type=\"button\" class=\"close\" data-dismiss=\"modal\"></button>
  38.             <div class=\"modal-info\">
  39.                 <div class=\"modal-title\"></div>
  40.                 <div class=\"modal-message\">
  41.                     ";
  42.         // line 8
  43.         if (array_key_exists("tires"$context)) {
  44.             // line 9
  45.             echo "                        <p class=\"sf-bold-font font-size-20 mb-1\">Успех!</p>
  46.                         <p class=\"my-2 sf-font font-size-1000\">В ближайшее время с вами свяжется администратор для подтверждения брони</p>
  47.                         <div class=\"d-flex justify-content-center align-items-center js-buy-codes\">
  48.                             Ваш промокод: <p id=\"codesItem\" class=\"sf-bold-font my-3 text-uppercase js-code-number ml-2\"></p>
  49.                             <img id=\"copyPromoNumber\" class=\"mx-1 cursor-pointer\" width=\"14\" height=\"18\" src=\"/images/order_page/copy.svg\"/>
  50.                         </div>
  51.                         <p class=\"my-2 sf-font font-size-1000\">Промокод и информацяи о записи также <br> сохранены в <a href=\"";
  52.             // line 15
  53.             echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'15$this->source); })()), "html"nulltrue);
  54.             echo "/profile\" class=\"color-violet\">личном кабинете</a></p>
  55.                         <button class=\"button py-2 w-50 px-5\" data-toggle=\"modal\" data-dismiss=\"modal\" onclick=\"document.location = '/profile'\">ОК</button>
  56.                     ";
  57.         } else {
  58.             // line 18
  59.             echo "                        <p class=\"sf-bold-font font-size-20 mb-1\">Готово</p>
  60.                         <p class=\"my-2 sf-font font-size-1000\">Назовите оператору промокод <br>в <span class=\"js-company-name-popup sf-bold-font\"></span></p>
  61.                         <div class=\"d-flex justify-content-center align-items-center js-buy-codes\">
  62.                             <p id=\"codesItem\" class=\"sf-bold-font my-3 text-uppercase js-code-number\"></p>
  63.                             <img id=\"copyPromoNumber\" class=\"mx-1 cursor-pointer\" width=\"14\" height=\"18\" src=\"/images/order_page/copy.svg\"/>
  64.                         </div>
  65.                         <p class=\"my-2 sf-font font-size-1000\">Промокод также сохранен  <br>в <a href=\"";
  66.             // line 24
  67.             echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'24$this->source); })()), "html"nulltrue);
  68.             echo "/profile\" class=\"color-violet\">личном кабинете</a></p>
  69.                     ";
  70.         }
  71.         // line 26
  72.         echo "                </div>
  73.             </div>
  74.             ";
  75.         // line 28
  76.         if ((array_key_exists("offer"$context) && (=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'28$this->source); })()), "getPhonenumbers", [], "any"falsefalsefalse28), "count", [], "method"falsefalsefalse28), 1)))) {
  77.             // line 29
  78.             echo "            <p class=\"my-2 sf-font font-size-1000\">Телефоны:</p>
  79.             <div id=\"phoneOffers\" class=\"w-100\">
  80.                     ";
  81.             // line 31
  82.             $context['_parent'] = $context;
  83.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'31$this->source); })()), "getPhonenumbers", [], "method"falsefalsefalse31));
  84.             foreach ($context['_seq'] as $context["_key"] => $context["phoneNumber"]) {
  85.                 // line 32
  86.                 echo "                        <a href=\"tel:";
  87.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["phoneNumber"], "getNumber", [], "method"falsefalsefalse32), "html"nulltrue);
  88.                 echo "\" class=\"button\"> ";
  89.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["phoneNumber"], "getNumber", [], "method"falsefalsefalse32), "html"nulltrue);
  90.                 echo "</a>
  91.                     ";
  92.             }
  93.             $_parent $context['_parent'];
  94.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phoneNumber'], $context['_parent'], $context['loop']);
  95.             $context array_intersect_key($context$_parent) + $_parent;
  96.             // line 34
  97.             echo "            </div>
  98.             ";
  99.         }
  100.         // line 36
  101.         echo "            ";
  102.         if ($this->env->getRuntime('Slivki\Twig\PartnerGiftOfferTwigRuntime')->isPartnerGiftOfferAvailable()) {
  103.             // line 37
  104.             echo "                <img class=\"w-100 my-1\" src=\"/images/lines.svg\"/>
  105.                 <a href=\"/companies/vitrina-podarkov\" class=\"button\">ВАМ  ПОДАРОК ЗА ПОКУПКУ 🎁</a>
  106.             ";
  107.         }
  108.         // line 40
  109.         echo "        </div>
  110.     </div>
  111. </div>";
  112.         
  113.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  114.         
  115.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  116.     }
  117.     public function getTemplateName()
  118.     {
  119.         return "Slivki/popups/buy_code_item-offer.html.twig";
  120.     }
  121.     public function isTraitable()
  122.     {
  123.         return false;
  124.     }
  125.     public function getDebugInfo()
  126.     {
  127.         return array (  118 => 40,  113 => 37,  110 => 36,  106 => 34,  95 => 32,  91 => 31,  87 => 29,  85 => 28,  81 => 26,  76 => 24,  68 => 18,  62 => 15,  54 => 9,  52 => 8,  43 => 1,);
  128.     }
  129.     public function getSourceContext()
  130.     {
  131.         return new Source("<div id=\"modalCodeOffer\" class=\"new-popup modal fade\">
  132.     <div class=\"modal-dialog no-boostrap\">
  133.         <div class=\"modal-content pt-3\">
  134.             <button type=\"button\" class=\"close\" data-dismiss=\"modal\"></button>
  135.             <div class=\"modal-info\">
  136.                 <div class=\"modal-title\"></div>
  137.                 <div class=\"modal-message\">
  138.                     {% if tires is defined %}
  139.                         <p class=\"sf-bold-font font-size-20 mb-1\">Успех!</p>
  140.                         <p class=\"my-2 sf-font font-size-1000\">В ближайшее время с вами свяжется администратор для подтверждения брони</p>
  141.                         <div class=\"d-flex justify-content-center align-items-center js-buy-codes\">
  142.                             Ваш промокод: <p id=\"codesItem\" class=\"sf-bold-font my-3 text-uppercase js-code-number ml-2\"></p>
  143.                             <img id=\"copyPromoNumber\" class=\"mx-1 cursor-pointer\" width=\"14\" height=\"18\" src=\"/images/order_page/copy.svg\"/>
  144.                         </div>
  145.                         <p class=\"my-2 sf-font font-size-1000\">Промокод и информацяи о записи также <br> сохранены в <a href=\"{{ base_url }}/profile\" class=\"color-violet\">личном кабинете</a></p>
  146.                         <button class=\"button py-2 w-50 px-5\" data-toggle=\"modal\" data-dismiss=\"modal\" onclick=\"document.location = '/profile'\">ОК</button>
  147.                     {% else %}
  148.                         <p class=\"sf-bold-font font-size-20 mb-1\">Готово</p>
  149.                         <p class=\"my-2 sf-font font-size-1000\">Назовите оператору промокод <br>в <span class=\"js-company-name-popup sf-bold-font\"></span></p>
  150.                         <div class=\"d-flex justify-content-center align-items-center js-buy-codes\">
  151.                             <p id=\"codesItem\" class=\"sf-bold-font my-3 text-uppercase js-code-number\"></p>
  152.                             <img id=\"copyPromoNumber\" class=\"mx-1 cursor-pointer\" width=\"14\" height=\"18\" src=\"/images/order_page/copy.svg\"/>
  153.                         </div>
  154.                         <p class=\"my-2 sf-font font-size-1000\">Промокод также сохранен  <br>в <a href=\"{{ base_url }}/profile\" class=\"color-violet\">личном кабинете</a></p>
  155.                     {% endif %}
  156.                 </div>
  157.             </div>
  158.             {% if offer is defined and offer.getPhonenumbers.count() > 1 %}
  159.             <p class=\"my-2 sf-font font-size-1000\">Телефоны:</p>
  160.             <div id=\"phoneOffers\" class=\"w-100\">
  161.                     {% for phoneNumber in offer.getPhonenumbers() %}
  162.                         <a href=\"tel:{{ phoneNumber.getNumber() }}\" class=\"button\"> {{ phoneNumber.getNumber() }}</a>
  163.                     {% endfor %}
  164.             </div>
  165.             {% endif %}
  166.             {% if isPartnerGiftOfferAvailable() %}
  167.                 <img class=\"w-100 my-1\" src=\"/images/lines.svg\"/>
  168.                 <a href=\"/companies/vitrina-podarkov\" class=\"button\">ВАМ  ПОДАРОК ЗА ПОКУПКУ 🎁</a>
  169.             {% endif %}
  170.         </div>
  171.     </div>
  172. </div>""Slivki/popups/buy_code_item-offer.html.twig""/mnt/data/virtwww/dima/templates/Slivki/popups/buy_code_item-offer.html.twig");
  173.     }
  174. }