var/cache/dev/twig/17/17ed17838fc5edcffe8aa2f9b5c0bfc26ace5a5bcd352da37ab2e90c0b520828.php line 132

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/mobile/popup/add_comment_popup.html.twig */
  14. class __TwigTemplate_d4947399e7cb9c39468dbe13ee773ef803ad9966a071589a762520fd50236a66 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/mobile/popup/add_comment_popup.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/mobile/popup/add_comment_popup.html.twig"));
  33.         // line 1
  34.         echo "<div id=\"addVoteBox\" class=\"new-popup modal fade sf-font\">
  35. ";
  36.         // line 3
  37.         echo "    <div class=\"modal-dialog m-0 modal-dialog-centered\">
  38.         <div class=\"modal-content\">
  39.             <button class=\"close\" data-dismiss=\"modal\"></button>
  40.             ";
  41.         // line 6
  42.         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.'6$this->source); })()), "user", [], "any"falsefalsefalse6) && array_key_exists("offer"$context))) {
  43.             // line 7
  44.             echo "                ";
  45.             $context["splitTotalCodesCountByUser"] = twig_get_attribute($this->env$this->sourcetwig_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.'7$this->source); })()), "user", [], "any"falsefalsefalse7), "getCodesCountByOffer", [=> (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'7$this->source); })())], "method"falsefalsefalse7);
  46.             // line 8
  47.             echo "                <div class=\"modal-title\">";
  48.             echo (((=== twig_compare((isset($context["splitTotalCodesCountByUser"]) || array_key_exists("splitTotalCodesCountByUser"$context) ? $context["splitTotalCodesCountByUser"] : (function () { throw new RuntimeError('Variable "splitTotalCodesCountByUser" does not exist.'8$this->source); })()), 0))) ? ("Оцените акцию и оставьте свой отзыв") : ("Оставьте свой отзыв"));
  49.             echo "</div>
  50.             ";
  51.         }
  52.         // line 10
  53.         echo "            <div class=\"addVoteBox message w-100\">
  54.                 <div id=\"addCommentPopupBoxContainer\" style=\"display:none;\"> </div>
  55.                 <div class=\"addVoteBoxContent\">
  56.                     ";
  57.         // line 13
  58.         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.'13$this->source); })()), "user", [], "any"falsefalsefalse13) && array_key_exists("offer"$context))) {
  59.             // line 14
  60.             echo "                        ";
  61.             $context["splitTotalCodesCountByUser"] = twig_get_attribute($this->env$this->sourcetwig_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.'14$this->source); })()), "user", [], "any"falsefalsefalse14), "getCodesCountByOffer", [=> (isset($context["offer"]) || array_key_exists("offer"$context) ? $context["offer"] : (function () { throw new RuntimeError('Variable "offer" does not exist.'14$this->source); })())], "method"falsefalsefalse14);
  62.             // line 15
  63.             echo "                        ";
  64.             if ((=== twig_compare((isset($context["splitTotalCodesCountByUser"]) || array_key_exists("splitTotalCodesCountByUser"$context) ? $context["splitTotalCodesCountByUser"] : (function () { throw new RuntimeError('Variable "splitTotalCodesCountByUser" does not exist.'15$this->source); })()), 0))) {
  65.                 // line 16
  66.                 echo "                            <div class=\"rating\" title=\"\">
  67.                                 <ul id=\"rateForm\" class=\"rating--stars js-stars\">
  68.                                     ";
  69.                 // line 18
  70.                 $context['_parent'] = $context;
  71.                 $context['_seq'] = twig_ensure_traversable(range(15));
  72.                 foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  73.                     // line 19
  74.                     echo "                                        <li data-id=\"";
  75.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  76.                     echo "\"><span></span></li>
  77.                                     ";
  78.                 }
  79.                 $_parent $context['_parent'];
  80.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  81.                 $context array_intersect_key($context$_parent) + $_parent;
  82.                 // line 21
  83.                 echo "                                </ul>
  84.                                 <input id=\"actionRating\" type=\"hidden\" value=\"0\" name=\"actionRating\">
  85.                             </div>
  86.                         ";
  87.             }
  88.             // line 25
  89.             echo "                    ";
  90.         }
  91.         // line 26
  92.         echo "                    <input id=\"parentCommentId\" type=\"hidden\" name=\"parentVoteId\" value=\"\">
  93.                     <div class=\"addVoteTextField\">
  94.                         <textarea id=\"comment\" class=\"form-element slivki-comment-editor-textarea w-100\" name=\"comment\"></textarea>
  95.                     </div>
  96.                     <div class=\"clearfix my-3\"></div>
  97.                     <div class=\"clearfix\"></div>
  98.                     <div class=\"add-vote-box-bottom\">
  99.                         <div class=\"vote-container\">
  100.                             <div id=\"deleteButtonPopup\" class=\"d-none\" style=\"position: absolute; left: 67%; z-index: 9; width: 30px; height: 30px; font-size: 21px; top: -11px; background: #6748e5; display: flex ; border-radius: 23px; margin: 0; color: white; align-items: center; justify-content: center;\">x</div>
  101.                             <div id=\"recordingsList\" style=\"width: 72%;\"></div>
  102.                         </div>
  103.                         <div class=\"comment-ajax-upload-image-controls\">
  104.                             <div class=\"formWrapper\">
  105.                                 <div class=\"addMediaTitle\">Добавить фото:</div>
  106.                                 <div id=\"ajaxImageSubmit\" class=\"d-inline-block align-middle\"><i class=\"h2 slivki-icon-photo-add\"></i></div>
  107.                             </div>
  108.                             <div class=\"clear\"></div>
  109.                             <form id=\"imageUploadForm\" class=\"uploadForm d-none\" enctype=\"multipart/form-data\" method=\"post\">
  110.                                 <input id=\"imageSelect\" type=\"file\" name=\"uploadFile\">
  111.                                 <input type=\"hidden\" value=\"uploadFile\" name=\"actionRequest\">
  112.                                 <input type=\"hidden\" value=\"voteImage\" name=\"fileKey\">
  113.                             </form>
  114.                         </div>
  115.                         <img style=\"display: none;\" class=\"ajaxLoader\" src=\"/images/ajax_loading.gif\" alt=\"Загрузка...\">
  116.                         <div class=\"clearfix\"></div>
  117.                         <div class=\"uploadedImagePreview\" style=\"display: none;\"></div>
  118.                         <div class=\"clearfix\"></div>
  119.                         ";
  120.         // line 55
  121.         if ($this->env->getRuntime('Slivki\Twig\ServerFeatureStateTwigRuntime')->isServerFeatureEnabled(twig_constant("Slivki\\Enum\\SwitcherFeatures::VOICE_MESSAGES"))) {
  122.             // line 56
  123.             echo "                            <div class=\"record-button-container\">
  124.                                 <span id=\"timer\" style=\"text-align: center; margin-top: 10px\">00:00</span> <!-- Секундомер -->
  125.                                 <button type=\"button\" id=\"recordButton\" class=\"record-button\"><img src=\"/images/mic.svg\" /></button>
  126.                             </div>
  127.                             <input type=\"file\" name=\"voice_message\" id=\"voiceMessageInput\" accept=\"audio/*\" style=\"display:none;\">
  128.                         ";
  129.         }
  130.         // line 62
  131.         echo "                        <div class=\"field field-checkbox mt-3\">
  132.                             <input type=\"checkbox\" name=\"allowToContact\" id=\"allowToContact\">
  133.                             <label for=\"allowToContact\">Разрешаю компании связаться со мной</label>
  134.                         </div>
  135.                         <div>
  136.                             <div class=\"publish\">Опубликовать</div>
  137.                         </div>
  138.                     </div>
  139.                 </div>
  140.             </div>
  141.         </div>
  142.     </div>
  143. </div>";
  144.         
  145.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  146.         
  147.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  148.     }
  149.     public function getTemplateName()
  150.     {
  151.         return "Slivki/mobile/popup/add_comment_popup.html.twig";
  152.     }
  153.     public function isTraitable()
  154.     {
  155.         return false;
  156.     }
  157.     public function getDebugInfo()
  158.     {
  159.         return array (  142 => 62,  134 => 56,  132 => 55,  101 => 26,  98 => 25,  92 => 21,  83 => 19,  79 => 18,  75 => 16,  72 => 15,  69 => 14,  67 => 13,  62 => 10,  56 => 8,  53 => 7,  51 => 6,  46 => 3,  43 => 1,);
  160.     }
  161.     public function getSourceContext()
  162.     {
  163.         return new Source("<div id=\"addVoteBox\" class=\"new-popup modal fade sf-font\">
  164. {#    <input id=\"slivkiSmileList\" type=\"hidden\" value=\"{{ constant('Slivki\\\\Entity\\\\Comment::SMILE_LIST')|join(',') }}\"/>#}
  165.     <div class=\"modal-dialog m-0 modal-dialog-centered\">
  166.         <div class=\"modal-content\">
  167.             <button class=\"close\" data-dismiss=\"modal\"></button>
  168.             {% if app.user and offer is defined %}
  169.                 {% set splitTotalCodesCountByUser = app.user.getCodesCountByOffer(offer) %}
  170.                 <div class=\"modal-title\">{{ splitTotalCodesCountByUser > 0 ? 'Оцените акцию и оставьте свой отзыв' : 'Оставьте свой отзыв' }}</div>
  171.             {% endif %}
  172.             <div class=\"addVoteBox message w-100\">
  173.                 <div id=\"addCommentPopupBoxContainer\" style=\"display:none;\"> </div>
  174.                 <div class=\"addVoteBoxContent\">
  175.                     {% if app.user and offer is defined %}
  176.                         {% set splitTotalCodesCountByUser = app.user.getCodesCountByOffer(offer) %}
  177.                         {% if splitTotalCodesCountByUser > 0 %}
  178.                             <div class=\"rating\" title=\"\">
  179.                                 <ul id=\"rateForm\" class=\"rating--stars js-stars\">
  180.                                     {% for i in 1..5 %}
  181.                                         <li data-id=\"{{ i }}\"><span></span></li>
  182.                                     {% endfor %}
  183.                                 </ul>
  184.                                 <input id=\"actionRating\" type=\"hidden\" value=\"0\" name=\"actionRating\">
  185.                             </div>
  186.                         {% endif %}
  187.                     {% endif %}
  188.                     <input id=\"parentCommentId\" type=\"hidden\" name=\"parentVoteId\" value=\"\">
  189.                     <div class=\"addVoteTextField\">
  190.                         <textarea id=\"comment\" class=\"form-element slivki-comment-editor-textarea w-100\" name=\"comment\"></textarea>
  191.                     </div>
  192.                     <div class=\"clearfix my-3\"></div>
  193.                     <div class=\"clearfix\"></div>
  194.                     <div class=\"add-vote-box-bottom\">
  195.                         <div class=\"vote-container\">
  196.                             <div id=\"deleteButtonPopup\" class=\"d-none\" style=\"position: absolute; left: 67%; z-index: 9; width: 30px; height: 30px; font-size: 21px; top: -11px; background: #6748e5; display: flex ; border-radius: 23px; margin: 0; color: white; align-items: center; justify-content: center;\">x</div>
  197.                             <div id=\"recordingsList\" style=\"width: 72%;\"></div>
  198.                         </div>
  199.                         <div class=\"comment-ajax-upload-image-controls\">
  200.                             <div class=\"formWrapper\">
  201.                                 <div class=\"addMediaTitle\">Добавить фото:</div>
  202.                                 <div id=\"ajaxImageSubmit\" class=\"d-inline-block align-middle\"><i class=\"h2 slivki-icon-photo-add\"></i></div>
  203.                             </div>
  204.                             <div class=\"clear\"></div>
  205.                             <form id=\"imageUploadForm\" class=\"uploadForm d-none\" enctype=\"multipart/form-data\" method=\"post\">
  206.                                 <input id=\"imageSelect\" type=\"file\" name=\"uploadFile\">
  207.                                 <input type=\"hidden\" value=\"uploadFile\" name=\"actionRequest\">
  208.                                 <input type=\"hidden\" value=\"voteImage\" name=\"fileKey\">
  209.                             </form>
  210.                         </div>
  211.                         <img style=\"display: none;\" class=\"ajaxLoader\" src=\"/images/ajax_loading.gif\" alt=\"Загрузка...\">
  212.                         <div class=\"clearfix\"></div>
  213.                         <div class=\"uploadedImagePreview\" style=\"display: none;\"></div>
  214.                         <div class=\"clearfix\"></div>
  215.                         {% if isServerFeatureEnabled(constant('Slivki\\\\Enum\\\\SwitcherFeatures::VOICE_MESSAGES')) %}
  216.                             <div class=\"record-button-container\">
  217.                                 <span id=\"timer\" style=\"text-align: center; margin-top: 10px\">00:00</span> <!-- Секундомер -->
  218.                                 <button type=\"button\" id=\"recordButton\" class=\"record-button\"><img src=\"/images/mic.svg\" /></button>
  219.                             </div>
  220.                             <input type=\"file\" name=\"voice_message\" id=\"voiceMessageInput\" accept=\"audio/*\" style=\"display:none;\">
  221.                         {% endif %}
  222.                         <div class=\"field field-checkbox mt-3\">
  223.                             <input type=\"checkbox\" name=\"allowToContact\" id=\"allowToContact\">
  224.                             <label for=\"allowToContact\">Разрешаю компании связаться со мной</label>
  225.                         </div>
  226.                         <div>
  227.                             <div class=\"publish\">Опубликовать</div>
  228.                         </div>
  229.                     </div>
  230.                 </div>
  231.             </div>
  232.         </div>
  233.     </div>
  234. </div>""Slivki/mobile/popup/add_comment_popup.html.twig""/mnt/data/virtwww/test1/templates/Slivki/mobile/popup/add_comment_popup.html.twig");
  235.     }
  236. }