var/cache/dev/twig/78/78085929fb6baaf2991f43ed61cd61229c36434f348a59f75be7632f01e298e3.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/comments/comments_item.html.twig */
  14. class __TwigTemplate_246738b93792b6cd93fdc1ac9f8922b4e6d727547b86116c30a5caddf134f788 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/comments/comments_item.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/comments/comments_item.html.twig"));
  33.         // line 1
  34.         echo "<li>
  35.     <div class=\"comments-list-item  ";
  36.         // line 2
  37.         echo (((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'2$this->source); })()), "getChildren", [], "method"falsefalsefalse2)), 0))) ? ("comments-list-item--has-child") : (""));
  38.         echo " ";
  39.         echo ((twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'2$this->source); })()), "isDeleted", [], "method"falsefalsefalse2)) ? ("comments-list-item--deleted") : (""));
  40.         echo "\" data-id=\"";
  41.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'2$this->source); })()), "getID", [], "method"falsefalsefalse2), "html"nulltrue);
  42.         echo "\" data-oid=\"";
  43.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'2$this->source); })()), "getEntityID", [], "method"falsefalsefalse2), "html"nulltrue);
  44.         echo "\" data-uid=\"";
  45.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'2$this->source); })()), "getUserID", [], "method"falsefalsefalse2), "html"nulltrue);
  46.         echo "\" data-time=\"";
  47.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'2$this->source); })()), "getCreatedOn", [], "method"falsefalsefalse2), "format", [=> "Y-m-d H:i:s"], "method"falsefalsefalse2), "html"nulltrue);
  48.         echo "\">
  49.         <div class=\"fake\" id=\"comment";
  50.         // line 3
  51.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'3$this->source); })()), "getID", [], "method"falsefalsefalse3), "html"nulltrue);
  52.         echo "\"></div>
  53.         ";
  54.         // line 4
  55.         $context["commentEntity"] = $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCommentEntityByType(twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'4$this->source); })()), "getEntityID", [], "method"falsefalsefalse4), twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'4$this->source); })()), "getTypeID", [], "method"falsefalsefalse4));
  56.         // line 5
  57.         echo "        ";
  58.         if ((isset($context["isLiveComments"]) || array_key_exists("isLiveComments"$context) ? $context["isLiveComments"] : (function () { throw new RuntimeError('Variable "isLiveComments" does not exist.'5$this->source); })())) {
  59.             // line 6
  60.             echo "            ";
  61.             $context["urlAction"] = "Slivki:Default:details";
  62.             // line 7
  63.             echo "            ";
  64.             if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'7$this->source); })()), "getTypeID", [], "method"falsefalsefalse7), twig_constant("Slivki\\Entity\\Comment::TYPE_SALE_COMMENT")))) {
  65.                 // line 8
  66.                 echo "                ";
  67.                 $context["urlAction"] = "Slivki:Sale:details";
  68.                 // line 9
  69.                 echo "            ";
  70.             }
  71.             // line 10
  72.             echo "            ";
  73.             if (((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'10$this->source); })()), "getTypeID", [], "method"falsefalsefalse10), twig_constant("Slivki\\Entity\\Comment::TYPE_MALL_BRAND_COMMENT"))) || (=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'10$this->source); })()), "getTypeID", [], "method"falsefalsefalse10), twig_constant("Slivki\\Entity\\Comment::TYPE_DIRECTOR_COMMENT"))))) {
  74.                 // line 11
  75.                 echo "                ";
  76.                 $context["commentEntityTitle"] = twig_get_attribute($this->env$this->source, (isset($context["commentEntity"]) || array_key_exists("commentEntity"$context) ? $context["commentEntity"] : (function () { throw new RuntimeError('Variable "commentEntity" does not exist.'11$this->source); })()), "getName", [], "method"falsefalsefalse11);
  77.                 // line 12
  78.                 echo "            ";
  79.             } else {
  80.                 // line 13
  81.                 echo "                ";
  82.                 $context["commentEntityTitle"] = twig_get_attribute($this->env$this->source, (isset($context["commentEntity"]) || array_key_exists("commentEntity"$context) ? $context["commentEntity"] : (function () { throw new RuntimeError('Variable "commentEntity" does not exist.'13$this->source); })()), "getTitle", [], "method"falsefalsefalse13);
  83.                 // line 14
  84.                 echo "            ";
  85.             }
  86.             // line 15
  87.             echo "            <a class=\"voteMarketActionUrl\" href=\"";
  88.             echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getURL((isset($context["urlAction"]) || array_key_exists("urlAction"$context) ? $context["urlAction"] : (function () { throw new RuntimeError('Variable "urlAction" does not exist.'15$this->source); })()), twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'15$this->source); })()), "getEntityID", [], "method"falsefalsefalse15)), "html"nulltrue);
  89.             echo "\">";
  90.             echo twig_escape_filter($this->env, (isset($context["commentEntityTitle"]) || array_key_exists("commentEntityTitle"$context) ? $context["commentEntityTitle"] : (function () { throw new RuntimeError('Variable "commentEntityTitle" does not exist.'15$this->source); })()), "html"nulltrue);
  91.             echo "</a>
  92.         ";
  93.         }
  94.         // line 17
  95.         echo "        <div class=\"meta\">
  96.             <div class=\"avatar\" style=\"background-image: url('";
  97.         // line 18
  98.         echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getProfileImageURL(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'18$this->source); })()), "getUser", [], "method"falsefalsefalse18), "getProfileImageMedia", [], "method"falsefalsefalse18), 100100), "html"nulltrue);
  99.         echo "');\"></div>
  100.             <div class=\"col\" style=\"display: flex; flex-direction: column\">
  101.                 <div class=\"author\">";
  102.         // line 20
  103.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'20$this->source); })()), "getUser", [], "method"falsefalsefalse20), "getFirstName", [], "method"falsefalsefalse20), "html"nulltrue);
  104.         echo "</div>
  105.                 <time class=\"date\">";
  106.         // line 21
  107.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'21$this->source); })()), "getCreatedOn", [], "method"falsefalsefalse21), "format", [=> "d.m.Y, H:i"], "method"falsefalsefalse21), "html"nulltrue);
  108.         echo "</time>
  109.                 <ul class=\"rating-stars\">
  110.                     ";
  111.         // line 23
  112.         $context['_parent'] = $context;
  113.         $context['_seq'] = twig_ensure_traversable(range(15));
  114.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  115.             // line 24
  116.             echo "                        <li ";
  117.             echo (((<= twig_compare(twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'24$this->source); })()), "getRating", [], "method"falsefalsefalse24), $context["i"]))) ? ("class=\"rated\"") : (""));
  118.             echo "><i class=\"slivki-icon-star\"></i></li>
  119.                     ";
  120.         }
  121.         $_parent $context['_parent'];
  122.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  123.         $context array_intersect_key($context$_parent) + $_parent;
  124.         // line 26
  125.         echo "                </ul>
  126.             </div>
  127.             ";
  128.         // line 28
  129.         if ((((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'28$this->source); })()), "getTypeID", [], "method"falsefalsefalse28), twig_constant("Slivki\\Entity\\Comment::TYPE_OFFER_COMMENT"))) || (=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'28$this->source); })()), "getTypeID", [], "method"falsefalsefalse28), twig_constant("Slivki\\Entity\\Comment::TYPE_SALE_COMMENT")))) && (!== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 29
  130. (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'29$this->source); })()), "getUser", [], "method"falsefalsefalse29), "getEmail", [], "method"falsefalsefalse29), "slivkiminsk@gmail.com")))) {
  131.             // line 30
  132.             echo "                <div class=\"date-for-registrate\">
  133.                     Пользователь на сайте с ";
  134.             // line 31
  135.             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["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'31$this->source); })()), "getUser", [], "method"falsefalsefalse31), "createdOn", [], "any"falsefalsefalse31), "format", [=> "d.m.Y"], "method"falsefalsefalse31), "html"nulltrue);
  136.             echo "
  137.                 </div>
  138.                 <div class=\"comment-codes\">
  139.                     Взято кодов&nbsp;
  140.                     <div class=\"border-comment-codes\">
  141.                         ";
  142.             // line 36
  143.             if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'36$this->source); })()), "getTypeID", [], "method"falsefalsefalse36), twig_constant("Slivki\\Entity\\Comment::TYPE_OFFER_COMMENT")))) {
  144.                 // line 37
  145.                 echo "                            <div class=\"current mr-2\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"По этой акции\">
  146.                                 ";
  147.                 // line 38
  148.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'38$this->source); })()), "getUser", [], "method"falsefalsefalse38), "getCodesCountByOffer", [=> (isset($context["commentEntity"]) || array_key_exists("commentEntity"$context) ? $context["commentEntity"] : (function () { throw new RuntimeError('Variable "commentEntity" does not exist.'38$this->source); })())], "method"falsefalsefalse38), "html"nulltrue);
  149.                 echo "
  150.                             </div>
  151.                         ";
  152.             }
  153.             // line 41
  154.             echo "
  155.                         ";
  156.             // line 42
  157.             $context["splitTotalCodesCountByUser"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'42$this->source); })()), "getUser", [], "method"falsefalsefalse42), "getSplitTotalCodesCount", [], "method"falsefalsefalse42);
  158.             // line 43
  159.             echo "                        ";
  160.             $context["codesCountByUser"] = twig_get_attribute($this->env$this->source, (isset($context["splitTotalCodesCountByUser"]) || array_key_exists("splitTotalCodesCountByUser"$context) ? $context["splitTotalCodesCountByUser"] : (function () { throw new RuntimeError('Variable "splitTotalCodesCountByUser" does not exist.'43$this->source); })()), "paidCodesCount", [], "array"falsefalsefalse43);
  161.             // line 44
  162.             echo "                        ";
  163.             $context["codesCountByUserTitle"] = "За всё время";
  164.             // line 45
  165.             echo "                        <div class=\"all\" data-toggle=\"tooltip\" data-placement=\"top\" data-original-title=\"";
  166.             echo twig_escape_filter($this->env, (isset($context["codesCountByUserTitle"]) || array_key_exists("codesCountByUserTitle"$context) ? $context["codesCountByUserTitle"] : (function () { throw new RuntimeError('Variable "codesCountByUserTitle" does not exist.'45$this->source); })()), "html"nulltrue);
  167.             echo "\">";
  168.             echo twig_escape_filter($this->env, (isset($context["codesCountByUser"]) || array_key_exists("codesCountByUser"$context) ? $context["codesCountByUser"] : (function () { throw new RuntimeError('Variable "codesCountByUser" does not exist.'45$this->source); })()), "html"nulltrue);
  169.             echo "</div>
  170.                     </div>
  171.                 </div>
  172.                 ";
  173.             // line 48
  174.             if ((=== twig_compare($this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCommentsCountByUserID(twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'48$this->source); })()), "getUserID", [], "method"falsefalsefalse48), twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'48$this->source); })()), "getEntityID", [], "method"falsefalsefalse48), twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'48$this->source); })()), "getTypeID", [], "method"falsefalsefalse48)), 1))) {
  175.                 // line 49
  176.                 echo "                    <div class=\"megaphone\" data-toggle=\"tooltip\" data-placement=\"top\" data-original-title=\"Все отзывы пользователя к этой акции\"><i class=\"slivki-icon-volume-up\"></i></div>
  177.                 ";
  178.             }
  179.             // line 51
  180.             echo "            ";
  181.         }
  182.         // line 52
  183.         echo "            <div class=\"clear\"></div>
  184.             <div class=\"message voteComment body\">
  185.                 ";
  186.         // line 54
  187.         echo ((twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'54$this->source); })()), "isDeleted", [], "method"falsefalsefalse54)) ? ("Комментарий удален пользователем") : (twig_nl2br(twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'54$this->source); })()), "getLinkifyComment", [], "method"falsefalsefalse54))));
  188.         echo "
  189.             </div>
  190.             <div class=\"comment-media-placeholder\">
  191.                 ";
  192.         // line 58
  193.         if (((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'58$this->source); })()), "getMedias", [], "method"falsefalsefalse58)), 0)) &&  !twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'58$this->source); })()), "isDeleted", [], "method"falsefalsefalse58))) {
  194.             // line 59
  195.             echo "                    <div class=\"userVoteImages\">
  196.                         <div class=\"commentImageWrapper\">
  197.                             ";
  198.             // line 61
  199.             $context['_parent'] = $context;
  200.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'61$this->source); })()), "getMedias", [], "method"falsefalsefalse61));
  201.             foreach ($context['_seq'] as $context["_key"] => $context["media"]) {
  202.                 // line 62
  203.                 echo "                                <a class=\"voteImages";
  204.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getID", [], "method"falsefalsefalse62), "html"nulltrue);
  205.                 echo "\" href=\"";
  206.                 echo twig_escape_filter($this->envtwig_constant("\\Slivki\\Services\\ImageService::MEDIA_ROOT"), "html"nulltrue);
  207.                 echo twig_escape_filter($this->envtwig_constant("\\Slivki\\Services\\ImageService::INITIAL_PATH"), "html"nulltrue);
  208.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getPath", [], "method"falsefalsefalse62), "html"nulltrue);
  209.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getName", [], "method"falsefalsefalse62), "html"nulltrue);
  210.                 echo "\" data-lightbox=\"image";
  211.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["media"], "getID", [], "method"falsefalsefalse62), "html"nulltrue);
  212.                 echo "\">
  213.                                     <img class=\"voteImage\" alt=\"\" src=\"";
  214.                 // line 63
  215.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getImageURL($context["media"], 0400), "html"nulltrue);
  216.                 echo "\">
  217.                                 </a>
  218.                             ";
  219.             }
  220.             $_parent $context['_parent'];
  221.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media'], $context['_parent'], $context['loop']);
  222.             $context array_intersect_key($context$_parent) + $_parent;
  223.             // line 66
  224.             echo "                        </div>
  225.                     </div>
  226.                 ";
  227.         }
  228.         // line 69
  229.         echo "            </div>
  230.             ";
  231.         // line 71
  232.         if ( !$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted(twig_constant("Slivki\\Entity\\UserGroup::COMMENTS_BANNED_ROLE_NAME"))) {
  233.             // line 72
  234.             echo "                <div class=\"addCommentAnswerButton\">
  235.                     <div class=\"reply link pseudo-link green\" onclick=\"commentAdd(";
  236.             // line 73
  237.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'73$this->source); })()), "getID", [], "method"falsefalsefalse73), "html"nulltrue);
  238.             echo ", ";
  239.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'73$this->source); })()), "getEntityID", [], "method"falsefalsefalse73), "html"nulltrue);
  240.             echo ", ";
  241.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'73$this->source); })()), "getTypeID", [], "method"falsefalsefalse73), "html"nulltrue);
  242.             echo ")\"  data-toggle=\"modal\" data-target=\"";
  243.             echo ((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.'73$this->source); })()), "user", [], "any"falsefalsefalse73)) ? ("#addVoteBox") : ("#onlyRegistered"));
  244.             echo "\">Ответить</div>
  245.                     <div class=\"votesBox\" id=\"voteBox";
  246.             // line 74
  247.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'74$this->source); })()), "getID", [], "method"falsefalsefalse74), "html"nulltrue);
  248.             echo "\"></div>
  249.                 </div>
  250.                 <div class=\"likes-box float-right\">
  251.                     ";
  252.             // line 77
  253.             $context["votes"] = twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'77$this->source); })()), "getLikesAmount", [], "method"falsefalsefalse77);
  254.             // line 78
  255.             echo "                    <a class=\"like-button\" href=\"#\"><i
  256.                                 class=\"slivki-icon-thumbs-up\"></i><span>";
  257.             // line 79
  258.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["votes"]) || array_key_exists("votes"$context) ? $context["votes"] : (function () { throw new RuntimeError('Variable "votes" does not exist.'79$this->source); })()), "likesAmount", [], "any"falsefalsefalse79), "html"nulltrue);
  259.             echo "</span></a>
  260.                     <a class=\"dislike-button\" href=\"#\"><i
  261.                                 class=\"slivki-icon-thumbs-down\"></i><span>";
  262.             // line 81
  263.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["votes"]) || array_key_exists("votes"$context) ? $context["votes"] : (function () { throw new RuntimeError('Variable "votes" does not exist.'81$this->source); })()), "dislikesAmount", [], "any"falsefalsefalse81), "html"nulltrue);
  264.             echo "</span></a>
  265.                 </div>
  266.             ";
  267.         }
  268.         // line 84
  269.         echo "
  270.             ";
  271.         // line 85
  272.         if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'85$this->source); })()), "getAdminComment", [], "method"falsefalsefalse85))) {
  273.             // line 86
  274.             echo "                <div class=\"admin-comment\">
  275.                     <div class=\"comment\">
  276.                         <div class=\"body\">
  277.                             <div class=\"info info-admin\">
  278.                                 <img src=\"/images/v-36-1.png\">
  279.                             </div>
  280.                             <div class=\"message\">";
  281.             // line 92
  282.             echo twig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'92$this->source); })()), "getAdminComment", [], "method"falsefalsefalse92);
  283.             echo "</div>
  284.                         </div>
  285.                     </div>
  286.                 </div>
  287.             ";
  288.         }
  289.         // line 97
  290.         echo "        </div>
  291.         <div class=\"all-in-offer-by-user\">
  292.             <div class=\"all-in-offer-by-user--title\">Отзывы пользователя к этой акции</div>
  293.             <div class=\"all-in-offer-by-user--comments\"></div>
  294.             <input type=\"hidden\" class=\"user-comments-url\" value=\"/comments/get_by_user/";
  295.         // line 102
  296.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'102$this->source); })()), "getUser", [], "method"falsefalsefalse102), "getID", [], "method"falsefalsefalse102), "html"nulltrue);
  297.         echo "?offerID=";
  298.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["comment"]) || array_key_exists("comment"$context) ? $context["comment"] : (function () { throw new RuntimeError('Variable "comment" does not exist.'102$this->source); })()), "getEntityID", [], "method"falsefalsefalse102), "html"nulltrue);
  299.         echo "\"/>
  300.         </div>
  301.     </div>
  302. </li>";
  303.         
  304.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  305.         
  306.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  307.     }
  308.     public function getTemplateName()
  309.     {
  310.         return "Slivki/comments/comments_item.html.twig";
  311.     }
  312.     public function isTraitable()
  313.     {
  314.         return false;
  315.     }
  316.     public function getDebugInfo()
  317.     {
  318.         return array (  308 => 102,  301 => 97,  293 => 92,  285 => 86,  283 => 85,  280 => 84,  274 => 81,  269 => 79,  266 => 78,  264 => 77,  258 => 74,  248 => 73,  245 => 72,  243 => 71,  239 => 69,  234 => 66,  225 => 63,  213 => 62,  209 => 61,  205 => 59,  203 => 58,  196 => 54,  192 => 52,  189 => 51,  185 => 49,  183 => 48,  174 => 45,  171 => 44,  168 => 43,  166 => 42,  163 => 41,  157 => 38,  154 => 37,  152 => 36,  144 => 31,  141 => 30,  139 => 29,  138 => 28,  134 => 26,  125 => 24,  121 => 23,  116 => 21,  112 => 20,  107 => 18,  104 => 17,  96 => 15,  93 => 14,  90 => 13,  87 => 12,  84 => 11,  81 => 10,  78 => 9,  75 => 8,  72 => 7,  69 => 6,  66 => 5,  64 => 4,  60 => 3,  46 => 2,  43 => 1,);
  319.     }
  320.     public function getSourceContext()
  321.     {
  322.         return new Source("<li>
  323.     <div class=\"comments-list-item  {{ comment.getChildren()|length > 0 ? 'comments-list-item--has-child' }} {{ comment.isDeleted() ? 'comments-list-item--deleted' }}\" data-id=\"{{ comment.getID() }}\" data-oid=\"{{ comment.getEntityID() }}\" data-uid=\"{{ comment.getUserID() }}\" data-time=\"{{ comment.getCreatedOn().format('Y-m-d H:i:s') }}\">
  324.         <div class=\"fake\" id=\"comment{{ comment.getID() }}\"></div>
  325.         {% set commentEntity = getCommentEntityByType(comment.getEntityID(), comment.getTypeID()) %}
  326.         {% if isLiveComments %}
  327.             {% set urlAction = 'Slivki:Default:details' %}
  328.             {% if (comment.getTypeID() == constant('Slivki\\\\Entity\\\\Comment::TYPE_SALE_COMMENT')) %}
  329.                 {% set urlAction = 'Slivki:Sale:details' %}
  330.             {% endif %}
  331.             {% if (comment.getTypeID() == constant('Slivki\\\\Entity\\\\Comment::TYPE_MALL_BRAND_COMMENT') or comment.getTypeID() == constant('Slivki\\\\Entity\\\\Comment::TYPE_DIRECTOR_COMMENT')) %}
  332.                 {% set commentEntityTitle = commentEntity.getName() %}
  333.             {% else %}
  334.                 {% set commentEntityTitle = commentEntity.getTitle() %}
  335.             {% endif %}
  336.             <a class=\"voteMarketActionUrl\" href=\"{{ getURL(urlAction, comment.getEntityID()) }}\">{{ commentEntityTitle }}</a>
  337.         {% endif %}
  338.         <div class=\"meta\">
  339.             <div class=\"avatar\" style=\"background-image: url('{{ getProfileImageURL(comment.getUser().getProfileImageMedia(), 100, 100) }}');\"></div>
  340.             <div class=\"col\" style=\"display: flex; flex-direction: column\">
  341.                 <div class=\"author\">{{ comment.getUser().getFirstName() }}</div>
  342.                 <time class=\"date\">{{ comment.getCreatedOn().format('d.m.Y, H:i') }}</time>
  343.                 <ul class=\"rating-stars\">
  344.                     {% for i in 1..5 %}
  345.                         <li {{ (comment.getRating() >= i) ? 'class=\"rated\"' : '' }}><i class=\"slivki-icon-star\"></i></li>
  346.                     {% endfor %}
  347.                 </ul>
  348.             </div>
  349.             {% if((comment.getTypeID() == constant('Slivki\\\\Entity\\\\Comment::TYPE_OFFER_COMMENT') or comment.getTypeID() == constant('Slivki\\\\Entity\\\\Comment::TYPE_SALE_COMMENT'))
  350.             and comment.getUser().getEmail() != 'slivkiminsk@gmail.com') %}
  351.                 <div class=\"date-for-registrate\">
  352.                     Пользователь на сайте с {{ comment.getUser().createdOn.format('d.m.Y') }}
  353.                 </div>
  354.                 <div class=\"comment-codes\">
  355.                     Взято кодов&nbsp;
  356.                     <div class=\"border-comment-codes\">
  357.                         {% if comment.getTypeID() == constant('Slivki\\\\Entity\\\\Comment::TYPE_OFFER_COMMENT') %}
  358.                             <div class=\"current mr-2\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"По этой акции\">
  359.                                 {{ comment.getUser().getCodesCountByOffer(commentEntity) }}
  360.                             </div>
  361.                         {% endif %}
  362.                         {% set splitTotalCodesCountByUser = comment.getUser().getSplitTotalCodesCount() %}
  363.                         {% set codesCountByUser = splitTotalCodesCountByUser['paidCodesCount'] %}
  364.                         {% set codesCountByUserTitle = \"За всё время\" %}
  365.                         <div class=\"all\" data-toggle=\"tooltip\" data-placement=\"top\" data-original-title=\"{{ codesCountByUserTitle }}\">{{ codesCountByUser }}</div>
  366.                     </div>
  367.                 </div>
  368.                 {% if getCommentsCountByUserID(comment.getUserID(), comment.getEntityID(), comment.getTypeID()) > 1 %}
  369.                     <div class=\"megaphone\" data-toggle=\"tooltip\" data-placement=\"top\" data-original-title=\"Все отзывы пользователя к этой акции\"><i class=\"slivki-icon-volume-up\"></i></div>
  370.                 {% endif %}
  371.             {% endif %}
  372.             <div class=\"clear\"></div>
  373.             <div class=\"message voteComment body\">
  374.                 {{ comment.isDeleted() ? 'Комментарий удален пользователем' : comment.getLinkifyComment()|raw|nl2br }}
  375.             </div>
  376.             <div class=\"comment-media-placeholder\">
  377.                 {% if comment.getMedias()|length > 0 and not comment.isDeleted() %}
  378.                     <div class=\"userVoteImages\">
  379.                         <div class=\"commentImageWrapper\">
  380.                             {% for media in comment.getMedias() %}
  381.                                 <a class=\"voteImages{{ media.getID() }}\" href=\"{{ constant('\\\\Slivki\\\\Services\\\\ImageService::MEDIA_ROOT') }}{{ constant('\\\\Slivki\\\\Services\\\\ImageService::INITIAL_PATH') }}{{ media.getPath() }}{{ media.getName() }}\" data-lightbox=\"image{{ media.getID() }}\">
  382.                                     <img class=\"voteImage\" alt=\"\" src=\"{{ getImageURL(media, 0, 400) }}\">
  383.                                 </a>
  384.                             {% endfor %}
  385.                         </div>
  386.                     </div>
  387.                 {% endif %}
  388.             </div>
  389.             {% if not is_granted(constant('Slivki\\\\Entity\\\\UserGroup::COMMENTS_BANNED_ROLE_NAME')) %}
  390.                 <div class=\"addCommentAnswerButton\">
  391.                     <div class=\"reply link pseudo-link green\" onclick=\"commentAdd({{ comment.getID() }}, {{ comment.getEntityID() }}, {{ comment.getTypeID() }})\"  data-toggle=\"modal\" data-target=\"{{ app.user ? '#addVoteBox' : '#onlyRegistered' }}\">Ответить</div>
  392.                     <div class=\"votesBox\" id=\"voteBox{{ comment.getID() }}\"></div>
  393.                 </div>
  394.                 <div class=\"likes-box float-right\">
  395.                     {% set votes = comment.getLikesAmount() %}
  396.                     <a class=\"like-button\" href=\"#\"><i
  397.                                 class=\"slivki-icon-thumbs-up\"></i><span>{{ votes.likesAmount }}</span></a>
  398.                     <a class=\"dislike-button\" href=\"#\"><i
  399.                                 class=\"slivki-icon-thumbs-down\"></i><span>{{ votes.dislikesAmount }}</span></a>
  400.                 </div>
  401.             {% endif %}
  402.             {% if comment.getAdminComment()|length %}
  403.                 <div class=\"admin-comment\">
  404.                     <div class=\"comment\">
  405.                         <div class=\"body\">
  406.                             <div class=\"info info-admin\">
  407.                                 <img src=\"/images/v-36-1.png\">
  408.                             </div>
  409.                             <div class=\"message\">{{ comment.getAdminComment()|raw }}</div>
  410.                         </div>
  411.                     </div>
  412.                 </div>
  413.             {% endif %}
  414.         </div>
  415.         <div class=\"all-in-offer-by-user\">
  416.             <div class=\"all-in-offer-by-user--title\">Отзывы пользователя к этой акции</div>
  417.             <div class=\"all-in-offer-by-user--comments\"></div>
  418.             <input type=\"hidden\" class=\"user-comments-url\" value=\"/comments/get_by_user/{{ comment.getUser().getID() }}?offerID={{ comment.getEntityID() }}\"/>
  419.         </div>
  420.     </div>
  421. </li>""Slivki/comments/comments_item.html.twig""/mnt/data/virtwww/slivki/templates/Slivki/comments/comments_item.html.twig");
  422.     }
  423. }