var/cache/dev/twig/f0/f032b6f48d9d506096e00a40148b7557b87ec30b9dfcd190f34b5cab2f3e831f.php line 52

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. /* website/forum/forum-detail.html.twig */
  14. class __TwigTemplate_a78b8455983060d5055f1af2b3685bd8764ba9a10d9643f481efa28659d7094c 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.             'body' => [$this'block_body'],
  24.             'overlay' => [$this'block_overlay'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 2
  30.         return "website/main.template.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/forum/forum-detail.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/forum/forum-detail.html.twig"));
  39.         // line 1
  40.         $macros["__internal_e6afab6bad479d60bf27f382784d587dd96ab5562387c51afc07f1173abc60f2"] = $this->macros["__internal_e6afab6bad479d60bf27f382784d587dd96ab5562387c51afc07f1173abc60f2"] = $this->loadTemplate("utils.html.twig""website/forum/forum-detail.html.twig"1)->unwrap();
  41.         // line 2
  42.         $this->parent $this->loadTemplate("website/main.template.html.twig""website/forum/forum-detail.html.twig"2);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 4
  50.     public function block_body($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  57.         // line 5
  58.         echo "
  59. \t";
  60.         // line 6
  61.         $this->loadTemplate("website/includes/search-section.html.twig""website/forum/forum-detail.html.twig"6)->display($context);
  62.         // line 7
  63.         echo "
  64.     ";
  65.         // line 8
  66.         $this->loadTemplate("website/forum/forum-detail.html.twig""website/forum/forum-detail.html.twig"8"118505114")->display(twig_array_merge($context, ["pageTitle" => $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("forum""forum")]));
  67.         // line 13
  68.         echo "
  69. \t<div class=\"container\">
  70. \t\t<div class=\"contem-busca\">
  71. \t\t\t<form class=\"busca-lista\" action=\"";
  72.         // line 16
  73.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("forumItem", ["id" => twig_get_attribute($this->env$this->source, (isset($context["forum"]) || array_key_exists("forum"$context) ? $context["forum"] : (function () { throw new RuntimeError('Variable "forum" does not exist.'16$this->source); })()), "id", [], "any"falsefalsefalse16), "slug" => (isset($context["slug"]) || array_key_exists("slug"$context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.'16$this->source); })())]), "html"nulltrue);
  74.         echo "\" method=\"GET\">
  75. \t\t\t\t<input id=\"input-search-forum-detail\" type=\"text\" name=\"search\" placeholder=\"";
  76.         // line 17
  77.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("search_the_forum""forum"), "html"nulltrue);
  78.         echo " &hellip;\">
  79. \t\t\t\t<button type=\"submit\">
  80. \t\t\t\t\t<i class=\"material-icons\">search</i>
  81. \t\t\t\t</button>
  82. \t\t\t</form>
  83. \t\t\t";
  84.         // line 22
  85.         if ((isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'22$this->source); })())) {
  86.             // line 23
  87.             echo "\t\t\t\t<button class=\"btn-acao\" onclick=\"window.refEditor.openTab()\"><span class=\"material-icons\">add_circle_outline</span>";
  88.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("comment""forum"), "html"nulltrue);
  89.             echo "</button>
  90. \t\t\t";
  91.         }
  92.         // line 25
  93.         echo "\t\t</div>
  94.         
  95.         ";
  96.         // line 28
  97.         echo "\t\t<div class=\"forum-pergunta\">
  98. \t\t\t<a class=\"seta\" href=\"";
  99.         // line 29
  100.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("forum");
  101.         echo "\">
  102. \t\t\t\t<span class=\"material-icons\">arrow_back</span>
  103. \t\t\t</a>
  104. \t\t\t<h2>";
  105.         // line 32
  106.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["forum"]) || array_key_exists("forum"$context) ? $context["forum"] : (function () { throw new RuntimeError('Variable "forum" does not exist.'32$this->source); })()), "getTitle", [=> true], "method"falsefalsefalse32), "html"nulltrue);
  107.         echo "</h2>
  108. \t\t\t";
  109.         // line 33
  110.         $this->loadTemplate("website/forum/forum-detail-box.html.twig""website/forum/forum-detail.html.twig"33)->display(twig_array_merge($context, ["forumItem" => (isset($context["forum"]) || array_key_exists("forum"$context) ? $context["forum"] : (function () { throw new RuntimeError('Variable "forum" does not exist.'33$this->source); })()), "layout" => "question"]));
  111.         // line 34
  112.         echo "
  113.             ";
  114.         // line 36
  115.         echo "            ";
  116.         $this->loadTemplate("website/forum/forum-detail.html.twig""website/forum/forum-detail.html.twig"36"327989037")->display(twig_array_merge($context, ["id" => "modal-others-likes-question""title" => $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("all_likes""forum"), "classes" => "modal-forum"]));
  117.         // line 41
  118.         echo "\t\t</div>
  119. \t</div>
  120.     ";
  121.         // line 45
  122.         echo "    <div id=\"contem-answers\" class=\"container questao-respostas\" data-url=\"";
  123.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("forumItemAnswers", ["id" => twig_get_attribute($this->env$this->source, (isset($context["forum"]) || array_key_exists("forum"$context) ? $context["forum"] : (function () { throw new RuntimeError('Variable "forum" does not exist.'45$this->source); })()), "id", [], "any"falsefalsefalse45)]), "html"nulltrue);
  124.         echo "\">
  125.         ";
  126.         // line 46
  127.         $this->loadTemplate("website/forum/forum-list-answers.html.twig""website/forum/forum-detail.html.twig"46)->display(twig_array_merge($context, ["init" => true]));
  128.         // line 47
  129.         echo "    </div>
  130.     ";
  131.         // line 49
  132.         if ((isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'49$this->source); })())) {
  133.             // line 50
  134.             echo "        ";
  135.             // line 51
  136.             echo "    \t";
  137.             $this->loadTemplate("website/forum/forum-detail.html.twig""website/forum/forum-detail.html.twig"51"2098329525")->display(twig_array_merge($context, ["titulo" => $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("reply_to_topic""forum"), "formId" => "formSendAnswer""action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registerForum"), "method" => "post"]));
  138.             // line 67
  139.             echo "
  140.         ";
  141.             // line 69
  142.             echo "        ";
  143.             $this->loadTemplate("website/forum/forum-detail.html.twig""website/forum/forum-detail.html.twig"69"2132853634")->display(twig_array_merge($context, ["id" => "modal-editar-topico""title" => $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("edit_topic""forum"), "classes" => "modal-forum"]));
  144.             // line 121
  145.             echo "    ";
  146.         }
  147.         
  148.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  149.         
  150.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  151.     }
  152.     // line 124
  153.     public function block_overlay($context, array $blocks = [])
  154.     {
  155.         $macros $this->macros;
  156.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  157.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""overlay"));
  158.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  159.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""overlay"));
  160.         // line 125
  161.         echo "<div class=\"loader-page\">
  162.     <i class=\"loader\">";
  163.         // line 126
  164.         echo twig_call_macro($macros["__internal_e6afab6bad479d60bf27f382784d587dd96ab5562387c51afc07f1173abc60f2"], "macro_ico", ["loader-wish"], 126$context$this->getSourceContext());
  165.         echo "</i>
  166. </div>
  167. ";
  168.         
  169.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  170.         
  171.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  172.     }
  173.     public function getTemplateName()
  174.     {
  175.         return "website/forum/forum-detail.html.twig";
  176.     }
  177.     public function isTraitable()
  178.     {
  179.         return false;
  180.     }
  181.     public function getDebugInfo()
  182.     {
  183.         return array (  185 => 126,  182 => 125,  172 => 124,  161 => 121,  158 => 69,  155 => 67,  152 => 51,  150 => 50,  148 => 49,  144 => 47,  142 => 46,  137 => 45,  132 => 41,  129 => 36,  126 => 34,  124 => 33,  120 => 32,  114 => 29,  111 => 28,  107 => 25,  101 => 23,  99 => 22,  91 => 17,  87 => 16,  82 => 13,  80 => 8,  77 => 7,  75 => 6,  72 => 5,  62 => 4,  51 => 2,  49 => 1,  36 => 2,);
  184.     }
  185.     public function getSourceContext()
  186.     {
  187.         return new Source("{% from 'utils.html.twig' import ico %}
  188. {% extends 'website/main.template.html.twig' %}
  189. {% block body %}
  190. \t{% include 'website/includes/search-section.html.twig' %}
  191.     {% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('forum', 'forum') }%}
  192.         {% block migalhas %}
  193. \t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'forum') }}</a>&ensp;/&ensp;<span>{{ getLanguage('forum', 'forum') }}</span>
  194.         {% endblock %}
  195.     {% endembed %}
  196. \t<div class=\"container\">
  197. \t\t<div class=\"contem-busca\">
  198. \t\t\t<form class=\"busca-lista\" action=\"{{ path('forumItem', { id: forum.id, slug: slug }) }}\" method=\"GET\">
  199. \t\t\t\t<input id=\"input-search-forum-detail\" type=\"text\" name=\"search\" placeholder=\"{{ getLanguage('search_the_forum', 'forum') }} &hellip;\">
  200. \t\t\t\t<button type=\"submit\">
  201. \t\t\t\t\t<i class=\"material-icons\">search</i>
  202. \t\t\t\t</button>
  203. \t\t\t</form>
  204. \t\t\t{% if user %}
  205. \t\t\t\t<button class=\"btn-acao\" onclick=\"window.refEditor.openTab()\"><span class=\"material-icons\">add_circle_outline</span>{{ getLanguage('comment', 'forum') }}</button>
  206. \t\t\t{% endif %}
  207. \t\t</div>
  208.         
  209.         {# QUESTÃO #}
  210. \t\t<div class=\"forum-pergunta\">
  211. \t\t\t<a class=\"seta\" href=\"{{ path('forum') }}\">
  212. \t\t\t\t<span class=\"material-icons\">arrow_back</span>
  213. \t\t\t</a>
  214. \t\t\t<h2>{{ forum.getTitle(true) }}</h2>
  215. \t\t\t{% include 'website/forum/forum-detail-box.html.twig' with { forumItem: forum, layout: 'question' } %}
  216.             {# MODAL -- OHTERS LIKES #}
  217.             {% embed \"website/includes/modal.html.twig\" with {'id': 'modal-others-likes-question', 'title': getLanguage('all_likes', 'forum'), 'classes': 'modal-forum' } %}
  218.                 {% block content %}
  219.                     {% include 'website/includes/modal-others-likes.html.twig' with { forumItem: forum, layout: 'question' } %}
  220.                 {% endblock %}
  221.             {% endembed %}
  222. \t\t</div>
  223. \t</div>
  224.     {# RESPOSTAS #}
  225.     <div id=\"contem-answers\" class=\"container questao-respostas\" data-url=\"{{ path('forumItemAnswers', { id: forum.id }) }}\">
  226.         {% include 'website/forum/forum-list-answers.html.twig' with { init: true }%}
  227.     </div>
  228.     {% if user %}
  229.         {# ABA EDITOR -- RESPOSTA #}
  230.     \t{% embed 'website/includes/text-editor.html.twig' with {
  231.             titulo: getLanguage('reply_to_topic', 'forum'),
  232.             formId: 'formSendAnswer',
  233.             action: path('registerForum'),
  234.             method: 'post',
  235.         } %}
  236.             {% block campos %}
  237.                 <input type=\"hidden\" id=\"topico-resposta-user\" name=\"user\" value=\"{{ user.id }}\">
  238.                 <input type=\"hidden\" id=\"topico-resposta-forum\" name=\"forum\" value=\"{{ forum.id }}\">
  239.                 <input type=\"hidden\" id=\"topico-resposta-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\">
  240.                 <input type=\"hidden\" id=\"topico-resposta-categoria\" name=\"forumCategory\" value=\"{{ forum.forumCategory.id }}\">
  241.                 <div class=\"editor-wrap\">
  242.                     <textarea class=\"editor js--editor\" id=\"topico-resposta-text\" name=\"text\" required></textarea>
  243.                 </div>
  244.             {% endblock %}
  245.         {% endembed %}
  246.         {# MODAL -- EDITAR TÓPICO #}
  247.         {% embed \"website/includes/modal.html.twig\" with {'id': 'modal-editar-topico', 'title': getLanguage('edit_topic', 'forum'), 'classes': 'modal-forum' } %}
  248.             {% block content %}
  249.                 {% from 'utils.html.twig' import ico, switch %}
  250.                 <form id=\"forumFormEditTopic\"
  251.                     action=\"{{ path('editForum', { id: forum.id }) }}\"
  252.                     method=\"put\" class=\"form-geral\">
  253.                     <input type=\"hidden\" id=\"topico-novo-user\"  name=\"user\" value=\"{{ user.id }}\">
  254.                     <input type=\"hidden\" id=\"topico-forum\" name=\"forum\" value=\"{{ forum.id }}\">
  255.                     <input type=\"hidden\" id=\"url-file-delete\" name=\"urlFileDelete\" value=\"{{ path('fileDeleteUpload') }}\">
  256.                     <div class=\"cp\">
  257.                         <label for=\"topico-novo-titulo\">{{ getLanguage('topic_title', 'forum') }}</label>
  258.                         <input type=\"text\" id=\"topico-novo-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\" required>
  259.                     </div>
  260.                     <div class=\"cp\">
  261.                         <label>{{ getLanguage('topic_text', 'forum') }}</label>
  262.                         <textarea class=\"modal-textbox js--editor-modal\" id=\"topico-novo-texto\" name=\"text\" required>
  263.                             {{ forum.getText(true)|raw }}
  264.                         </textarea>
  265.                     </div>
  266.                     <div class=\"cp-cols cp-2 modal-forum\">
  267.                         <div class=\"cp cp-gd categoria\">
  268.                             <label for=\"topico-novo-categoria\">{{ getLanguage('category', 'forum') }}</label>
  269.                             <select id=\"topico-novo-categoria\" name=\"forumCategory\" class=\"custom-select\">
  270.                                 {% for forumCategory in forumCategories %}
  271.                                     <option value=\"{{ forumCategory.id }}\">{{ forumCategory.category }}</option>
  272.                                 {% endfor %}
  273.                             </select>
  274.                         </div>
  275.                         {% if not isLow(getPermission(\"website\", \"forum\", \"edit\")) %}
  276.                             <div class=\"cp cp-6 status\">
  277.                                 <label for=\"topico-novo-status\">{{ getLanguage('status', 'forum') }}</label>
  278.                                 {{ switch({
  279.                                     name: 'status',
  280.                                     classes: ['wid'],
  281.                                     checked: (forum.status == isForumStatusDefault ? true : false),
  282.                                     attribs: 'id=\"topico-novo-status\"',
  283.                                     insideLabel: [getLanguage('published', 'forum'), getLanguage('filed', 'forum')],
  284.                                 })}}
  285.                             </div>
  286.                         {% endif %}
  287.                     </div>
  288.                     {# CAPTCHA #}
  289.                     {% include 'website/includes/captcha-form.html.twig' with { formName: 'forumFormEditTopic' } %}
  290.                     <nav class=\"actions\">
  291.                         <button type=\"button\" class=\"js--modal-fecha cancel\">{{ getLanguage('cancel', 'forum') }}</button>
  292.                         <button type=\"submit\" class=\"btn-continuar-peq\">{{ getLanguage('send', 'forum') }}<i class=\"loader\">{{ ico('loader-wish') }}</i></button>
  293.                     </nav>
  294.                 </form>
  295.             {% endblock %}
  296.         {% endembed %}
  297.     {% endif %}
  298. {% endblock %}
  299. {% block overlay %}
  300. <div class=\"loader-page\">
  301.     <i class=\"loader\">{{ ico('loader-wish') }}</i>
  302. </div>
  303. {% endblock %}""website/forum/forum-detail.html.twig""/var/www/html/templates/website/forum/forum-detail.html.twig");
  304.     }
  305. }
  306. /* website/forum/forum-detail.html.twig */
  307. class __TwigTemplate_a78b8455983060d5055f1af2b3685bd8764ba9a10d9643f481efa28659d7094c___118505114 extends Template
  308. {
  309.     private $source;
  310.     private $macros = [];
  311.     public function __construct(Environment $env)
  312.     {
  313.         parent::__construct($env);
  314.         $this->source $this->getSourceContext();
  315.         $this->blocks = [
  316.             'migalhas' => [$this'block_migalhas'],
  317.         ];
  318.     }
  319.     protected function doGetParent(array $context)
  320.     {
  321.         // line 8
  322.         return "website/includes/page-title.html.twig";
  323.     }
  324.     protected function doDisplay(array $context, array $blocks = [])
  325.     {
  326.         $macros $this->macros;
  327.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  328.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/forum/forum-detail.html.twig"));
  329.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  330.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/forum/forum-detail.html.twig"));
  331.         $this->parent $this->loadTemplate("website/includes/page-title.html.twig""website/forum/forum-detail.html.twig"8);
  332.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  333.         
  334.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  335.         
  336.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  337.     }
  338.     // line 9
  339.     public function block_migalhas($context, array $blocks = [])
  340.     {
  341.         $macros $this->macros;
  342.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  343.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""migalhas"));
  344.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  345.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""migalhas"));
  346.         // line 10
  347.         echo "\t\t\t<a href=\"";
  348.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  349.         echo "\">";
  350.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("home""forum"), "html"nulltrue);
  351.         echo "</a>&ensp;/&ensp;<span>";
  352.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("forum""forum"), "html"nulltrue);
  353.         echo "</span>
  354.         ";
  355.         
  356.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  357.         
  358.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  359.     }
  360.     public function getTemplateName()
  361.     {
  362.         return "website/forum/forum-detail.html.twig";
  363.     }
  364.     public function isTraitable()
  365.     {
  366.         return false;
  367.     }
  368.     public function getDebugInfo()
  369.     {
  370.         return array (  399 => 10,  389 => 9,  366 => 8,  185 => 126,  182 => 125,  172 => 124,  161 => 121,  158 => 69,  155 => 67,  152 => 51,  150 => 50,  148 => 49,  144 => 47,  142 => 46,  137 => 45,  132 => 41,  129 => 36,  126 => 34,  124 => 33,  120 => 32,  114 => 29,  111 => 28,  107 => 25,  101 => 23,  99 => 22,  91 => 17,  87 => 16,  82 => 13,  80 => 8,  77 => 7,  75 => 6,  72 => 5,  62 => 4,  51 => 2,  49 => 1,  36 => 2,);
  371.     }
  372.     public function getSourceContext()
  373.     {
  374.         return new Source("{% from 'utils.html.twig' import ico %}
  375. {% extends 'website/main.template.html.twig' %}
  376. {% block body %}
  377. \t{% include 'website/includes/search-section.html.twig' %}
  378.     {% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('forum', 'forum') }%}
  379.         {% block migalhas %}
  380. \t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'forum') }}</a>&ensp;/&ensp;<span>{{ getLanguage('forum', 'forum') }}</span>
  381.         {% endblock %}
  382.     {% endembed %}
  383. \t<div class=\"container\">
  384. \t\t<div class=\"contem-busca\">
  385. \t\t\t<form class=\"busca-lista\" action=\"{{ path('forumItem', { id: forum.id, slug: slug }) }}\" method=\"GET\">
  386. \t\t\t\t<input id=\"input-search-forum-detail\" type=\"text\" name=\"search\" placeholder=\"{{ getLanguage('search_the_forum', 'forum') }} &hellip;\">
  387. \t\t\t\t<button type=\"submit\">
  388. \t\t\t\t\t<i class=\"material-icons\">search</i>
  389. \t\t\t\t</button>
  390. \t\t\t</form>
  391. \t\t\t{% if user %}
  392. \t\t\t\t<button class=\"btn-acao\" onclick=\"window.refEditor.openTab()\"><span class=\"material-icons\">add_circle_outline</span>{{ getLanguage('comment', 'forum') }}</button>
  393. \t\t\t{% endif %}
  394. \t\t</div>
  395.         
  396.         {# QUESTÃO #}
  397. \t\t<div class=\"forum-pergunta\">
  398. \t\t\t<a class=\"seta\" href=\"{{ path('forum') }}\">
  399. \t\t\t\t<span class=\"material-icons\">arrow_back</span>
  400. \t\t\t</a>
  401. \t\t\t<h2>{{ forum.getTitle(true) }}</h2>
  402. \t\t\t{% include 'website/forum/forum-detail-box.html.twig' with { forumItem: forum, layout: 'question' } %}
  403.             {# MODAL -- OHTERS LIKES #}
  404.             {% embed \"website/includes/modal.html.twig\" with {'id': 'modal-others-likes-question', 'title': getLanguage('all_likes', 'forum'), 'classes': 'modal-forum' } %}
  405.                 {% block content %}
  406.                     {% include 'website/includes/modal-others-likes.html.twig' with { forumItem: forum, layout: 'question' } %}
  407.                 {% endblock %}
  408.             {% endembed %}
  409. \t\t</div>
  410. \t</div>
  411.     {# RESPOSTAS #}
  412.     <div id=\"contem-answers\" class=\"container questao-respostas\" data-url=\"{{ path('forumItemAnswers', { id: forum.id }) }}\">
  413.         {% include 'website/forum/forum-list-answers.html.twig' with { init: true }%}
  414.     </div>
  415.     {% if user %}
  416.         {# ABA EDITOR -- RESPOSTA #}
  417.     \t{% embed 'website/includes/text-editor.html.twig' with {
  418.             titulo: getLanguage('reply_to_topic', 'forum'),
  419.             formId: 'formSendAnswer',
  420.             action: path('registerForum'),
  421.             method: 'post',
  422.         } %}
  423.             {% block campos %}
  424.                 <input type=\"hidden\" id=\"topico-resposta-user\" name=\"user\" value=\"{{ user.id }}\">
  425.                 <input type=\"hidden\" id=\"topico-resposta-forum\" name=\"forum\" value=\"{{ forum.id }}\">
  426.                 <input type=\"hidden\" id=\"topico-resposta-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\">
  427.                 <input type=\"hidden\" id=\"topico-resposta-categoria\" name=\"forumCategory\" value=\"{{ forum.forumCategory.id }}\">
  428.                 <div class=\"editor-wrap\">
  429.                     <textarea class=\"editor js--editor\" id=\"topico-resposta-text\" name=\"text\" required></textarea>
  430.                 </div>
  431.             {% endblock %}
  432.         {% endembed %}
  433.         {# MODAL -- EDITAR TÓPICO #}
  434.         {% embed \"website/includes/modal.html.twig\" with {'id': 'modal-editar-topico', 'title': getLanguage('edit_topic', 'forum'), 'classes': 'modal-forum' } %}
  435.             {% block content %}
  436.                 {% from 'utils.html.twig' import ico, switch %}
  437.                 <form id=\"forumFormEditTopic\"
  438.                     action=\"{{ path('editForum', { id: forum.id }) }}\"
  439.                     method=\"put\" class=\"form-geral\">
  440.                     <input type=\"hidden\" id=\"topico-novo-user\"  name=\"user\" value=\"{{ user.id }}\">
  441.                     <input type=\"hidden\" id=\"topico-forum\" name=\"forum\" value=\"{{ forum.id }}\">
  442.                     <input type=\"hidden\" id=\"url-file-delete\" name=\"urlFileDelete\" value=\"{{ path('fileDeleteUpload') }}\">
  443.                     <div class=\"cp\">
  444.                         <label for=\"topico-novo-titulo\">{{ getLanguage('topic_title', 'forum') }}</label>
  445.                         <input type=\"text\" id=\"topico-novo-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\" required>
  446.                     </div>
  447.                     <div class=\"cp\">
  448.                         <label>{{ getLanguage('topic_text', 'forum') }}</label>
  449.                         <textarea class=\"modal-textbox js--editor-modal\" id=\"topico-novo-texto\" name=\"text\" required>
  450.                             {{ forum.getText(true)|raw }}
  451.                         </textarea>
  452.                     </div>
  453.                     <div class=\"cp-cols cp-2 modal-forum\">
  454.                         <div class=\"cp cp-gd categoria\">
  455.                             <label for=\"topico-novo-categoria\">{{ getLanguage('category', 'forum') }}</label>
  456.                             <select id=\"topico-novo-categoria\" name=\"forumCategory\" class=\"custom-select\">
  457.                                 {% for forumCategory in forumCategories %}
  458.                                     <option value=\"{{ forumCategory.id }}\">{{ forumCategory.category }}</option>
  459.                                 {% endfor %}
  460.                             </select>
  461.                         </div>
  462.                         {% if not isLow(getPermission(\"website\", \"forum\", \"edit\")) %}
  463.                             <div class=\"cp cp-6 status\">
  464.                                 <label for=\"topico-novo-status\">{{ getLanguage('status', 'forum') }}</label>
  465.                                 {{ switch({
  466.                                     name: 'status',
  467.                                     classes: ['wid'],
  468.                                     checked: (forum.status == isForumStatusDefault ? true : false),
  469.                                     attribs: 'id=\"topico-novo-status\"',
  470.                                     insideLabel: [getLanguage('published', 'forum'), getLanguage('filed', 'forum')],
  471.                                 })}}
  472.                             </div>
  473.                         {% endif %}
  474.                     </div>
  475.                     {# CAPTCHA #}
  476.                     {% include 'website/includes/captcha-form.html.twig' with { formName: 'forumFormEditTopic' } %}
  477.                     <nav class=\"actions\">
  478.                         <button type=\"button\" class=\"js--modal-fecha cancel\">{{ getLanguage('cancel', 'forum') }}</button>
  479.                         <button type=\"submit\" class=\"btn-continuar-peq\">{{ getLanguage('send', 'forum') }}<i class=\"loader\">{{ ico('loader-wish') }}</i></button>
  480.                     </nav>
  481.                 </form>
  482.             {% endblock %}
  483.         {% endembed %}
  484.     {% endif %}
  485. {% endblock %}
  486. {% block overlay %}
  487. <div class=\"loader-page\">
  488.     <i class=\"loader\">{{ ico('loader-wish') }}</i>
  489. </div>
  490. {% endblock %}""website/forum/forum-detail.html.twig""/var/www/html/templates/website/forum/forum-detail.html.twig");
  491.     }
  492. }
  493. /* website/forum/forum-detail.html.twig */
  494. class __TwigTemplate_a78b8455983060d5055f1af2b3685bd8764ba9a10d9643f481efa28659d7094c___327989037 extends Template
  495. {
  496.     private $source;
  497.     private $macros = [];
  498.     public function __construct(Environment $env)
  499.     {
  500.         parent::__construct($env);
  501.         $this->source $this->getSourceContext();
  502.         $this->blocks = [
  503.             'content' => [$this'block_content'],
  504.         ];
  505.     }
  506.     protected function doGetParent(array $context)
  507.     {
  508.         // line 36
  509.         return "website/includes/modal.html.twig";
  510.     }
  511.     protected function doDisplay(array $context, array $blocks = [])
  512.     {
  513.         $macros $this->macros;
  514.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  515.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/forum/forum-detail.html.twig"));
  516.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  517.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/forum/forum-detail.html.twig"));
  518.         $this->parent $this->loadTemplate("website/includes/modal.html.twig""website/forum/forum-detail.html.twig"36);
  519.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  520.         
  521.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  522.         
  523.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  524.     }
  525.     // line 37
  526.     public function block_content($context, array $blocks = [])
  527.     {
  528.         $macros $this->macros;
  529.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  530.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  531.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  532.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  533.         // line 38
  534.         echo "                    ";
  535.         $this->loadTemplate("website/includes/modal-others-likes.html.twig""website/forum/forum-detail.html.twig"38)->display(twig_array_merge($context, ["forumItem" => (isset($context["forum"]) || array_key_exists("forum"$context) ? $context["forum"] : (function () { throw new RuntimeError('Variable "forum" does not exist.'38$this->source); })()), "layout" => "question"]));
  536.         // line 39
  537.         echo "                ";
  538.         
  539.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  540.         
  541.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  542.     }
  543.     public function getTemplateName()
  544.     {
  545.         return "website/forum/forum-detail.html.twig";
  546.     }
  547.     public function isTraitable()
  548.     {
  549.         return false;
  550.     }
  551.     public function getDebugInfo()
  552.     {
  553.         return array (  620 => 39,  617 => 38,  607 => 37,  584 => 36,  399 => 10,  389 => 9,  366 => 8,  185 => 126,  182 => 125,  172 => 124,  161 => 121,  158 => 69,  155 => 67,  152 => 51,  150 => 50,  148 => 49,  144 => 47,  142 => 46,  137 => 45,  132 => 41,  129 => 36,  126 => 34,  124 => 33,  120 => 32,  114 => 29,  111 => 28,  107 => 25,  101 => 23,  99 => 22,  91 => 17,  87 => 16,  82 => 13,  80 => 8,  77 => 7,  75 => 6,  72 => 5,  62 => 4,  51 => 2,  49 => 1,  36 => 2,);
  554.     }
  555.     public function getSourceContext()
  556.     {
  557.         return new Source("{% from 'utils.html.twig' import ico %}
  558. {% extends 'website/main.template.html.twig' %}
  559. {% block body %}
  560. \t{% include 'website/includes/search-section.html.twig' %}
  561.     {% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('forum', 'forum') }%}
  562.         {% block migalhas %}
  563. \t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'forum') }}</a>&ensp;/&ensp;<span>{{ getLanguage('forum', 'forum') }}</span>
  564.         {% endblock %}
  565.     {% endembed %}
  566. \t<div class=\"container\">
  567. \t\t<div class=\"contem-busca\">
  568. \t\t\t<form class=\"busca-lista\" action=\"{{ path('forumItem', { id: forum.id, slug: slug }) }}\" method=\"GET\">
  569. \t\t\t\t<input id=\"input-search-forum-detail\" type=\"text\" name=\"search\" placeholder=\"{{ getLanguage('search_the_forum', 'forum') }} &hellip;\">
  570. \t\t\t\t<button type=\"submit\">
  571. \t\t\t\t\t<i class=\"material-icons\">search</i>
  572. \t\t\t\t</button>
  573. \t\t\t</form>
  574. \t\t\t{% if user %}
  575. \t\t\t\t<button class=\"btn-acao\" onclick=\"window.refEditor.openTab()\"><span class=\"material-icons\">add_circle_outline</span>{{ getLanguage('comment', 'forum') }}</button>
  576. \t\t\t{% endif %}
  577. \t\t</div>
  578.         
  579.         {# QUESTÃO #}
  580. \t\t<div class=\"forum-pergunta\">
  581. \t\t\t<a class=\"seta\" href=\"{{ path('forum') }}\">
  582. \t\t\t\t<span class=\"material-icons\">arrow_back</span>
  583. \t\t\t</a>
  584. \t\t\t<h2>{{ forum.getTitle(true) }}</h2>
  585. \t\t\t{% include 'website/forum/forum-detail-box.html.twig' with { forumItem: forum, layout: 'question' } %}
  586.             {# MODAL -- OHTERS LIKES #}
  587.             {% embed \"website/includes/modal.html.twig\" with {'id': 'modal-others-likes-question', 'title': getLanguage('all_likes', 'forum'), 'classes': 'modal-forum' } %}
  588.                 {% block content %}
  589.                     {% include 'website/includes/modal-others-likes.html.twig' with { forumItem: forum, layout: 'question' } %}
  590.                 {% endblock %}
  591.             {% endembed %}
  592. \t\t</div>
  593. \t</div>
  594.     {# RESPOSTAS #}
  595.     <div id=\"contem-answers\" class=\"container questao-respostas\" data-url=\"{{ path('forumItemAnswers', { id: forum.id }) }}\">
  596.         {% include 'website/forum/forum-list-answers.html.twig' with { init: true }%}
  597.     </div>
  598.     {% if user %}
  599.         {# ABA EDITOR -- RESPOSTA #}
  600.     \t{% embed 'website/includes/text-editor.html.twig' with {
  601.             titulo: getLanguage('reply_to_topic', 'forum'),
  602.             formId: 'formSendAnswer',
  603.             action: path('registerForum'),
  604.             method: 'post',
  605.         } %}
  606.             {% block campos %}
  607.                 <input type=\"hidden\" id=\"topico-resposta-user\" name=\"user\" value=\"{{ user.id }}\">
  608.                 <input type=\"hidden\" id=\"topico-resposta-forum\" name=\"forum\" value=\"{{ forum.id }}\">
  609.                 <input type=\"hidden\" id=\"topico-resposta-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\">
  610.                 <input type=\"hidden\" id=\"topico-resposta-categoria\" name=\"forumCategory\" value=\"{{ forum.forumCategory.id }}\">
  611.                 <div class=\"editor-wrap\">
  612.                     <textarea class=\"editor js--editor\" id=\"topico-resposta-text\" name=\"text\" required></textarea>
  613.                 </div>
  614.             {% endblock %}
  615.         {% endembed %}
  616.         {# MODAL -- EDITAR TÓPICO #}
  617.         {% embed \"website/includes/modal.html.twig\" with {'id': 'modal-editar-topico', 'title': getLanguage('edit_topic', 'forum'), 'classes': 'modal-forum' } %}
  618.             {% block content %}
  619.                 {% from 'utils.html.twig' import ico, switch %}
  620.                 <form id=\"forumFormEditTopic\"
  621.                     action=\"{{ path('editForum', { id: forum.id }) }}\"
  622.                     method=\"put\" class=\"form-geral\">
  623.                     <input type=\"hidden\" id=\"topico-novo-user\"  name=\"user\" value=\"{{ user.id }}\">
  624.                     <input type=\"hidden\" id=\"topico-forum\" name=\"forum\" value=\"{{ forum.id }}\">
  625.                     <input type=\"hidden\" id=\"url-file-delete\" name=\"urlFileDelete\" value=\"{{ path('fileDeleteUpload') }}\">
  626.                     <div class=\"cp\">
  627.                         <label for=\"topico-novo-titulo\">{{ getLanguage('topic_title', 'forum') }}</label>
  628.                         <input type=\"text\" id=\"topico-novo-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\" required>
  629.                     </div>
  630.                     <div class=\"cp\">
  631.                         <label>{{ getLanguage('topic_text', 'forum') }}</label>
  632.                         <textarea class=\"modal-textbox js--editor-modal\" id=\"topico-novo-texto\" name=\"text\" required>
  633.                             {{ forum.getText(true)|raw }}
  634.                         </textarea>
  635.                     </div>
  636.                     <div class=\"cp-cols cp-2 modal-forum\">
  637.                         <div class=\"cp cp-gd categoria\">
  638.                             <label for=\"topico-novo-categoria\">{{ getLanguage('category', 'forum') }}</label>
  639.                             <select id=\"topico-novo-categoria\" name=\"forumCategory\" class=\"custom-select\">
  640.                                 {% for forumCategory in forumCategories %}
  641.                                     <option value=\"{{ forumCategory.id }}\">{{ forumCategory.category }}</option>
  642.                                 {% endfor %}
  643.                             </select>
  644.                         </div>
  645.                         {% if not isLow(getPermission(\"website\", \"forum\", \"edit\")) %}
  646.                             <div class=\"cp cp-6 status\">
  647.                                 <label for=\"topico-novo-status\">{{ getLanguage('status', 'forum') }}</label>
  648.                                 {{ switch({
  649.                                     name: 'status',
  650.                                     classes: ['wid'],
  651.                                     checked: (forum.status == isForumStatusDefault ? true : false),
  652.                                     attribs: 'id=\"topico-novo-status\"',
  653.                                     insideLabel: [getLanguage('published', 'forum'), getLanguage('filed', 'forum')],
  654.                                 })}}
  655.                             </div>
  656.                         {% endif %}
  657.                     </div>
  658.                     {# CAPTCHA #}
  659.                     {% include 'website/includes/captcha-form.html.twig' with { formName: 'forumFormEditTopic' } %}
  660.                     <nav class=\"actions\">
  661.                         <button type=\"button\" class=\"js--modal-fecha cancel\">{{ getLanguage('cancel', 'forum') }}</button>
  662.                         <button type=\"submit\" class=\"btn-continuar-peq\">{{ getLanguage('send', 'forum') }}<i class=\"loader\">{{ ico('loader-wish') }}</i></button>
  663.                     </nav>
  664.                 </form>
  665.             {% endblock %}
  666.         {% endembed %}
  667.     {% endif %}
  668. {% endblock %}
  669. {% block overlay %}
  670. <div class=\"loader-page\">
  671.     <i class=\"loader\">{{ ico('loader-wish') }}</i>
  672. </div>
  673. {% endblock %}""website/forum/forum-detail.html.twig""/var/www/html/templates/website/forum/forum-detail.html.twig");
  674.     }
  675. }
  676. /* website/forum/forum-detail.html.twig */
  677. class __TwigTemplate_a78b8455983060d5055f1af2b3685bd8764ba9a10d9643f481efa28659d7094c___2098329525 extends Template
  678. {
  679.     private $source;
  680.     private $macros = [];
  681.     public function __construct(Environment $env)
  682.     {
  683.         parent::__construct($env);
  684.         $this->source $this->getSourceContext();
  685.         $this->blocks = [
  686.             'campos' => [$this'block_campos'],
  687.         ];
  688.     }
  689.     protected function doGetParent(array $context)
  690.     {
  691.         // line 51
  692.         return "website/includes/text-editor.html.twig";
  693.     }
  694.     protected function doDisplay(array $context, array $blocks = [])
  695.     {
  696.         $macros $this->macros;
  697.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  698.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/forum/forum-detail.html.twig"));
  699.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  700.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/forum/forum-detail.html.twig"));
  701.         $this->parent $this->loadTemplate("website/includes/text-editor.html.twig""website/forum/forum-detail.html.twig"51);
  702.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  703.         
  704.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  705.         
  706.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  707.     }
  708.     // line 57
  709.     public function block_campos($context, array $blocks = [])
  710.     {
  711.         $macros $this->macros;
  712.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  713.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""campos"));
  714.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  715.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""campos"));
  716.         // line 58
  717.         echo "                <input type=\"hidden\" id=\"topico-resposta-user\" name=\"user\" value=\"";
  718.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'58$this->source); })()), "id", [], "any"falsefalsefalse58), "html"nulltrue);
  719.         echo "\">
  720.                 <input type=\"hidden\" id=\"topico-resposta-forum\" name=\"forum\" value=\"";
  721.         // line 59
  722.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["forum"]) || array_key_exists("forum"$context) ? $context["forum"] : (function () { throw new RuntimeError('Variable "forum" does not exist.'59$this->source); })()), "id", [], "any"falsefalsefalse59), "html"nulltrue);
  723.         echo "\">
  724.                 <input type=\"hidden\" id=\"topico-resposta-titulo\" name=\"title\" value=\"";
  725.         // line 60
  726.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["forum"]) || array_key_exists("forum"$context) ? $context["forum"] : (function () { throw new RuntimeError('Variable "forum" does not exist.'60$this->source); })()), "getTitle", [=> true], "method"falsefalsefalse60), "html"nulltrue);
  727.         echo "\">
  728.                 <input type=\"hidden\" id=\"topico-resposta-categoria\" name=\"forumCategory\" value=\"";
  729.         // line 61
  730.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["forum"]) || array_key_exists("forum"$context) ? $context["forum"] : (function () { throw new RuntimeError('Variable "forum" does not exist.'61$this->source); })()), "forumCategory", [], "any"falsefalsefalse61), "id", [], "any"falsefalsefalse61), "html"nulltrue);
  731.         echo "\">
  732.                 <div class=\"editor-wrap\">
  733.                     <textarea class=\"editor js--editor\" id=\"topico-resposta-text\" name=\"text\" required></textarea>
  734.                 </div>
  735.             ";
  736.         
  737.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  738.         
  739.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  740.     }
  741.     public function getTemplateName()
  742.     {
  743.         return "website/forum/forum-detail.html.twig";
  744.     }
  745.     public function isTraitable()
  746.     {
  747.         return false;
  748.     }
  749.     public function getDebugInfo()
  750.     {
  751.         return array (  844 => 61,  840 => 60,  836 => 59,  831 => 58,  821 => 57,  798 => 51,  620 => 39,  617 => 38,  607 => 37,  584 => 36,  399 => 10,  389 => 9,  366 => 8,  185 => 126,  182 => 125,  172 => 124,  161 => 121,  158 => 69,  155 => 67,  152 => 51,  150 => 50,  148 => 49,  144 => 47,  142 => 46,  137 => 45,  132 => 41,  129 => 36,  126 => 34,  124 => 33,  120 => 32,  114 => 29,  111 => 28,  107 => 25,  101 => 23,  99 => 22,  91 => 17,  87 => 16,  82 => 13,  80 => 8,  77 => 7,  75 => 6,  72 => 5,  62 => 4,  51 => 2,  49 => 1,  36 => 2,);
  752.     }
  753.     public function getSourceContext()
  754.     {
  755.         return new Source("{% from 'utils.html.twig' import ico %}
  756. {% extends 'website/main.template.html.twig' %}
  757. {% block body %}
  758. \t{% include 'website/includes/search-section.html.twig' %}
  759.     {% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('forum', 'forum') }%}
  760.         {% block migalhas %}
  761. \t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'forum') }}</a>&ensp;/&ensp;<span>{{ getLanguage('forum', 'forum') }}</span>
  762.         {% endblock %}
  763.     {% endembed %}
  764. \t<div class=\"container\">
  765. \t\t<div class=\"contem-busca\">
  766. \t\t\t<form class=\"busca-lista\" action=\"{{ path('forumItem', { id: forum.id, slug: slug }) }}\" method=\"GET\">
  767. \t\t\t\t<input id=\"input-search-forum-detail\" type=\"text\" name=\"search\" placeholder=\"{{ getLanguage('search_the_forum', 'forum') }} &hellip;\">
  768. \t\t\t\t<button type=\"submit\">
  769. \t\t\t\t\t<i class=\"material-icons\">search</i>
  770. \t\t\t\t</button>
  771. \t\t\t</form>
  772. \t\t\t{% if user %}
  773. \t\t\t\t<button class=\"btn-acao\" onclick=\"window.refEditor.openTab()\"><span class=\"material-icons\">add_circle_outline</span>{{ getLanguage('comment', 'forum') }}</button>
  774. \t\t\t{% endif %}
  775. \t\t</div>
  776.         
  777.         {# QUESTÃO #}
  778. \t\t<div class=\"forum-pergunta\">
  779. \t\t\t<a class=\"seta\" href=\"{{ path('forum') }}\">
  780. \t\t\t\t<span class=\"material-icons\">arrow_back</span>
  781. \t\t\t</a>
  782. \t\t\t<h2>{{ forum.getTitle(true) }}</h2>
  783. \t\t\t{% include 'website/forum/forum-detail-box.html.twig' with { forumItem: forum, layout: 'question' } %}
  784.             {# MODAL -- OHTERS LIKES #}
  785.             {% embed \"website/includes/modal.html.twig\" with {'id': 'modal-others-likes-question', 'title': getLanguage('all_likes', 'forum'), 'classes': 'modal-forum' } %}
  786.                 {% block content %}
  787.                     {% include 'website/includes/modal-others-likes.html.twig' with { forumItem: forum, layout: 'question' } %}
  788.                 {% endblock %}
  789.             {% endembed %}
  790. \t\t</div>
  791. \t</div>
  792.     {# RESPOSTAS #}
  793.     <div id=\"contem-answers\" class=\"container questao-respostas\" data-url=\"{{ path('forumItemAnswers', { id: forum.id }) }}\">
  794.         {% include 'website/forum/forum-list-answers.html.twig' with { init: true }%}
  795.     </div>
  796.     {% if user %}
  797.         {# ABA EDITOR -- RESPOSTA #}
  798.     \t{% embed 'website/includes/text-editor.html.twig' with {
  799.             titulo: getLanguage('reply_to_topic', 'forum'),
  800.             formId: 'formSendAnswer',
  801.             action: path('registerForum'),
  802.             method: 'post',
  803.         } %}
  804.             {% block campos %}
  805.                 <input type=\"hidden\" id=\"topico-resposta-user\" name=\"user\" value=\"{{ user.id }}\">
  806.                 <input type=\"hidden\" id=\"topico-resposta-forum\" name=\"forum\" value=\"{{ forum.id }}\">
  807.                 <input type=\"hidden\" id=\"topico-resposta-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\">
  808.                 <input type=\"hidden\" id=\"topico-resposta-categoria\" name=\"forumCategory\" value=\"{{ forum.forumCategory.id }}\">
  809.                 <div class=\"editor-wrap\">
  810.                     <textarea class=\"editor js--editor\" id=\"topico-resposta-text\" name=\"text\" required></textarea>
  811.                 </div>
  812.             {% endblock %}
  813.         {% endembed %}
  814.         {# MODAL -- EDITAR TÓPICO #}
  815.         {% embed \"website/includes/modal.html.twig\" with {'id': 'modal-editar-topico', 'title': getLanguage('edit_topic', 'forum'), 'classes': 'modal-forum' } %}
  816.             {% block content %}
  817.                 {% from 'utils.html.twig' import ico, switch %}
  818.                 <form id=\"forumFormEditTopic\"
  819.                     action=\"{{ path('editForum', { id: forum.id }) }}\"
  820.                     method=\"put\" class=\"form-geral\">
  821.                     <input type=\"hidden\" id=\"topico-novo-user\"  name=\"user\" value=\"{{ user.id }}\">
  822.                     <input type=\"hidden\" id=\"topico-forum\" name=\"forum\" value=\"{{ forum.id }}\">
  823.                     <input type=\"hidden\" id=\"url-file-delete\" name=\"urlFileDelete\" value=\"{{ path('fileDeleteUpload') }}\">
  824.                     <div class=\"cp\">
  825.                         <label for=\"topico-novo-titulo\">{{ getLanguage('topic_title', 'forum') }}</label>
  826.                         <input type=\"text\" id=\"topico-novo-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\" required>
  827.                     </div>
  828.                     <div class=\"cp\">
  829.                         <label>{{ getLanguage('topic_text', 'forum') }}</label>
  830.                         <textarea class=\"modal-textbox js--editor-modal\" id=\"topico-novo-texto\" name=\"text\" required>
  831.                             {{ forum.getText(true)|raw }}
  832.                         </textarea>
  833.                     </div>
  834.                     <div class=\"cp-cols cp-2 modal-forum\">
  835.                         <div class=\"cp cp-gd categoria\">
  836.                             <label for=\"topico-novo-categoria\">{{ getLanguage('category', 'forum') }}</label>
  837.                             <select id=\"topico-novo-categoria\" name=\"forumCategory\" class=\"custom-select\">
  838.                                 {% for forumCategory in forumCategories %}
  839.                                     <option value=\"{{ forumCategory.id }}\">{{ forumCategory.category }}</option>
  840.                                 {% endfor %}
  841.                             </select>
  842.                         </div>
  843.                         {% if not isLow(getPermission(\"website\", \"forum\", \"edit\")) %}
  844.                             <div class=\"cp cp-6 status\">
  845.                                 <label for=\"topico-novo-status\">{{ getLanguage('status', 'forum') }}</label>
  846.                                 {{ switch({
  847.                                     name: 'status',
  848.                                     classes: ['wid'],
  849.                                     checked: (forum.status == isForumStatusDefault ? true : false),
  850.                                     attribs: 'id=\"topico-novo-status\"',
  851.                                     insideLabel: [getLanguage('published', 'forum'), getLanguage('filed', 'forum')],
  852.                                 })}}
  853.                             </div>
  854.                         {% endif %}
  855.                     </div>
  856.                     {# CAPTCHA #}
  857.                     {% include 'website/includes/captcha-form.html.twig' with { formName: 'forumFormEditTopic' } %}
  858.                     <nav class=\"actions\">
  859.                         <button type=\"button\" class=\"js--modal-fecha cancel\">{{ getLanguage('cancel', 'forum') }}</button>
  860.                         <button type=\"submit\" class=\"btn-continuar-peq\">{{ getLanguage('send', 'forum') }}<i class=\"loader\">{{ ico('loader-wish') }}</i></button>
  861.                     </nav>
  862.                 </form>
  863.             {% endblock %}
  864.         {% endembed %}
  865.     {% endif %}
  866. {% endblock %}
  867. {% block overlay %}
  868. <div class=\"loader-page\">
  869.     <i class=\"loader\">{{ ico('loader-wish') }}</i>
  870. </div>
  871. {% endblock %}""website/forum/forum-detail.html.twig""/var/www/html/templates/website/forum/forum-detail.html.twig");
  872.     }
  873. }
  874. /* website/forum/forum-detail.html.twig */
  875. class __TwigTemplate_a78b8455983060d5055f1af2b3685bd8764ba9a10d9643f481efa28659d7094c___2132853634 extends Template
  876. {
  877.     private $source;
  878.     private $macros = [];
  879.     public function __construct(Environment $env)
  880.     {
  881.         parent::__construct($env);
  882.         $this->source $this->getSourceContext();
  883.         $this->blocks = [
  884.             'content' => [$this'block_content'],
  885.         ];
  886.     }
  887.     protected function doGetParent(array $context)
  888.     {
  889.         // line 69
  890.         return "website/includes/modal.html.twig";
  891.     }
  892.     protected function doDisplay(array $context, array $blocks = [])
  893.     {
  894.         $macros $this->macros;
  895.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  896.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/forum/forum-detail.html.twig"));
  897.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  898.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""website/forum/forum-detail.html.twig"));
  899.         $this->parent $this->loadTemplate("website/includes/modal.html.twig""website/forum/forum-detail.html.twig"69);
  900.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  901.         
  902.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  903.         
  904.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  905.     }
  906.     // line 70
  907.     public function block_content($context, array $blocks = [])
  908.     {
  909.         $macros $this->macros;
  910.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  911.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  912.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  913.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  914.         // line 71
  915.         echo "                ";
  916.         $macros["__internal_e6afab6bad479d60bf27f382784d587dd96ab5562387c51afc07f1173abc60f2"] = $this->loadTemplate("utils.html.twig""website/forum/forum-detail.html.twig"71)->unwrap();
  917.         // line 72
  918.         echo "                <form id=\"forumFormEditTopic\"
  919.                     action=\"";
  920.         // line 73
  921.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("editForum", ["id" => twig_get_attribute($this->env$this->source, (isset($context["forum"]) || array_key_exists("forum"$context) ? $context["forum"] : (function () { throw new RuntimeError('Variable "forum" does not exist.'73$this->source); })()), "id", [], "any"falsefalsefalse73)]), "html"nulltrue);
  922.         echo "\"
  923.                     method=\"put\" class=\"form-geral\">
  924.                     <input type=\"hidden\" id=\"topico-novo-user\"  name=\"user\" value=\"";
  925.         // line 75
  926.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["user"]) || array_key_exists("user"$context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.'75$this->source); })()), "id", [], "any"falsefalsefalse75), "html"nulltrue);
  927.         echo "\">
  928.                     <input type=\"hidden\" id=\"topico-forum\" name=\"forum\" value=\"";
  929.         // line 76
  930.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["forum"]) || array_key_exists("forum"$context) ? $context["forum"] : (function () { throw new RuntimeError('Variable "forum" does not exist.'76$this->source); })()), "id", [], "any"falsefalsefalse76), "html"nulltrue);
  931.         echo "\">
  932.                     <input type=\"hidden\" id=\"url-file-delete\" name=\"urlFileDelete\" value=\"";
  933.         // line 77
  934.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fileDeleteUpload");
  935.         echo "\">
  936.                     <div class=\"cp\">
  937.                         <label for=\"topico-novo-titulo\">";
  938.         // line 79
  939.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("topic_title""forum"), "html"nulltrue);
  940.         echo "</label>
  941.                         <input type=\"text\" id=\"topico-novo-titulo\" name=\"title\" value=\"";
  942.         // line 80
  943.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["forum"]) || array_key_exists("forum"$context) ? $context["forum"] : (function () { throw new RuntimeError('Variable "forum" does not exist.'80$this->source); })()), "getTitle", [=> true], "method"falsefalsefalse80), "html"nulltrue);
  944.         echo "\" required>
  945.                     </div>
  946.                     <div class=\"cp\">
  947.                         <label>";
  948.         // line 83
  949.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("topic_text""forum"), "html"nulltrue);
  950.         echo "</label>
  951.                         <textarea class=\"modal-textbox js--editor-modal\" id=\"topico-novo-texto\" name=\"text\" required>
  952.                             ";
  953.         // line 85
  954.         echo twig_get_attribute($this->env$this->source, (isset($context["forum"]) || array_key_exists("forum"$context) ? $context["forum"] : (function () { throw new RuntimeError('Variable "forum" does not exist.'85$this->source); })()), "getText", [=> true], "method"falsefalsefalse85);
  955.         echo "
  956.                         </textarea>
  957.                     </div>
  958.                     <div class=\"cp-cols cp-2 modal-forum\">
  959.                         <div class=\"cp cp-gd categoria\">
  960.                             <label for=\"topico-novo-categoria\">";
  961.         // line 90
  962.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("category""forum"), "html"nulltrue);
  963.         echo "</label>
  964.                             <select id=\"topico-novo-categoria\" name=\"forumCategory\" class=\"custom-select\">
  965.                                 ";
  966.         // line 92
  967.         $context['_parent'] = $context;
  968.         $context['_seq'] = twig_ensure_traversable((isset($context["forumCategories"]) || array_key_exists("forumCategories"$context) ? $context["forumCategories"] : (function () { throw new RuntimeError('Variable "forumCategories" does not exist.'92$this->source); })()));
  969.         foreach ($context['_seq'] as $context["_key"] => $context["forumCategory"]) {
  970.             // line 93
  971.             echo "                                    <option value=\"";
  972.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["forumCategory"], "id", [], "any"falsefalsefalse93), "html"nulltrue);
  973.             echo "\">";
  974.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["forumCategory"], "category", [], "any"falsefalsefalse93), "html"nulltrue);
  975.             echo "</option>
  976.                                 ";
  977.         }
  978.         $_parent $context['_parent'];
  979.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['forumCategory'], $context['_parent'], $context['loop']);
  980.         $context array_intersect_key($context$_parent) + $_parent;
  981.         // line 95
  982.         echo "                            </select>
  983.                         </div>
  984.                         ";
  985.         // line 97
  986.         if ( !$this->extensions['EADPlataforma\Twig\FunctionsExtension']->isLow($this->extensions['EADPlataforma\Twig\FunctionsExtension']->getPermission("website""forum""edit"))) {
  987.             // line 98
  988.             echo "                            <div class=\"cp cp-6 status\">
  989.                                 <label for=\"topico-novo-status\">";
  990.             // line 99
  991.             echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("status""forum"), "html"nulltrue);
  992.             echo "</label>
  993.                                 ";
  994.             // line 100
  995.             echo twig_call_macro($macros["__internal_e6afab6bad479d60bf27f382784d587dd96ab5562387c51afc07f1173abc60f2"], "macro_switch", [["name" => "status""classes" => [=> "wid"], "checked" => (((=== twig_compare(twig_get_attribute($this->env$this->source,             // line 103
  996. (isset($context["forum"]) || array_key_exists("forum"$context) ? $context["forum"] : (function () { throw new RuntimeError('Variable "forum" does not exist.'103$this->source); })()), "status", [], "any"falsefalsefalse103), (isset($context["isForumStatusDefault"]) || array_key_exists("isForumStatusDefault"$context) ? $context["isForumStatusDefault"] : (function () { throw new RuntimeError('Variable "isForumStatusDefault" does not exist.'103$this->source); })())))) ? (true) : (false)), "attribs" => "id=\"topico-novo-status\"""insideLabel" => [=> $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("published""forum"), => $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("filed""forum")]]], 100$context$this->getSourceContext());
  997.             // line 106
  998.             echo "
  999.                             </div>
  1000.                         ";
  1001.         }
  1002.         // line 109
  1003.         echo "                    </div>
  1004.                     ";
  1005.         // line 112
  1006.         echo "                    ";
  1007.         $this->loadTemplate("website/includes/captcha-form.html.twig""website/forum/forum-detail.html.twig"112)->display(twig_array_merge($context, ["formName" => "forumFormEditTopic"]));
  1008.         // line 113
  1009.         echo "
  1010.                     <nav class=\"actions\">
  1011.                         <button type=\"button\" class=\"js--modal-fecha cancel\">";
  1012.         // line 115
  1013.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("cancel""forum"), "html"nulltrue);
  1014.         echo "</button>
  1015.                         <button type=\"submit\" class=\"btn-continuar-peq\">";
  1016.         // line 116
  1017.         echo twig_escape_filter($this->env$this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("send""forum"), "html"nulltrue);
  1018.         echo "<i class=\"loader\">";
  1019.         echo twig_call_macro($macros["__internal_e6afab6bad479d60bf27f382784d587dd96ab5562387c51afc07f1173abc60f2"], "macro_ico", ["loader-wish"], 116$context$this->getSourceContext());
  1020.         echo "</i></button>
  1021.                     </nav>
  1022.                 </form>
  1023.             ";
  1024.         
  1025.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1026.         
  1027.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1028.     }
  1029.     public function getTemplateName()
  1030.     {
  1031.         return "website/forum/forum-detail.html.twig";
  1032.     }
  1033.     public function isTraitable()
  1034.     {
  1035.         return false;
  1036.     }
  1037.     public function getDebugInfo()
  1038.     {
  1039.         return array (  1163 => 116,  1159 => 115,  1155 => 113,  1152 => 112,  1148 => 109,  1143 => 106,  1141 => 103,  1140 => 100,  1136 => 99,  1133 => 98,  1131 => 97,  1127 => 95,  1116 => 93,  1112 => 92,  1107 => 90,  1099 => 85,  1094 => 83,  1088 => 80,  1084 => 79,  1079 => 77,  1075 => 76,  1071 => 75,  1066 => 73,  1063 => 72,  1060 => 71,  1050 => 70,  1027 => 69,  844 => 61,  840 => 60,  836 => 59,  831 => 58,  821 => 57,  798 => 51,  620 => 39,  617 => 38,  607 => 37,  584 => 36,  399 => 10,  389 => 9,  366 => 8,  185 => 126,  182 => 125,  172 => 124,  161 => 121,  158 => 69,  155 => 67,  152 => 51,  150 => 50,  148 => 49,  144 => 47,  142 => 46,  137 => 45,  132 => 41,  129 => 36,  126 => 34,  124 => 33,  120 => 32,  114 => 29,  111 => 28,  107 => 25,  101 => 23,  99 => 22,  91 => 17,  87 => 16,  82 => 13,  80 => 8,  77 => 7,  75 => 6,  72 => 5,  62 => 4,  51 => 2,  49 => 1,  36 => 2,);
  1040.     }
  1041.     public function getSourceContext()
  1042.     {
  1043.         return new Source("{% from 'utils.html.twig' import ico %}
  1044. {% extends 'website/main.template.html.twig' %}
  1045. {% block body %}
  1046. \t{% include 'website/includes/search-section.html.twig' %}
  1047.     {% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('forum', 'forum') }%}
  1048.         {% block migalhas %}
  1049. \t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'forum') }}</a>&ensp;/&ensp;<span>{{ getLanguage('forum', 'forum') }}</span>
  1050.         {% endblock %}
  1051.     {% endembed %}
  1052. \t<div class=\"container\">
  1053. \t\t<div class=\"contem-busca\">
  1054. \t\t\t<form class=\"busca-lista\" action=\"{{ path('forumItem', { id: forum.id, slug: slug }) }}\" method=\"GET\">
  1055. \t\t\t\t<input id=\"input-search-forum-detail\" type=\"text\" name=\"search\" placeholder=\"{{ getLanguage('search_the_forum', 'forum') }} &hellip;\">
  1056. \t\t\t\t<button type=\"submit\">
  1057. \t\t\t\t\t<i class=\"material-icons\">search</i>
  1058. \t\t\t\t</button>
  1059. \t\t\t</form>
  1060. \t\t\t{% if user %}
  1061. \t\t\t\t<button class=\"btn-acao\" onclick=\"window.refEditor.openTab()\"><span class=\"material-icons\">add_circle_outline</span>{{ getLanguage('comment', 'forum') }}</button>
  1062. \t\t\t{% endif %}
  1063. \t\t</div>
  1064.         
  1065.         {# QUESTÃO #}
  1066. \t\t<div class=\"forum-pergunta\">
  1067. \t\t\t<a class=\"seta\" href=\"{{ path('forum') }}\">
  1068. \t\t\t\t<span class=\"material-icons\">arrow_back</span>
  1069. \t\t\t</a>
  1070. \t\t\t<h2>{{ forum.getTitle(true) }}</h2>
  1071. \t\t\t{% include 'website/forum/forum-detail-box.html.twig' with { forumItem: forum, layout: 'question' } %}
  1072.             {# MODAL -- OHTERS LIKES #}
  1073.             {% embed \"website/includes/modal.html.twig\" with {'id': 'modal-others-likes-question', 'title': getLanguage('all_likes', 'forum'), 'classes': 'modal-forum' } %}
  1074.                 {% block content %}
  1075.                     {% include 'website/includes/modal-others-likes.html.twig' with { forumItem: forum, layout: 'question' } %}
  1076.                 {% endblock %}
  1077.             {% endembed %}
  1078. \t\t</div>
  1079. \t</div>
  1080.     {# RESPOSTAS #}
  1081.     <div id=\"contem-answers\" class=\"container questao-respostas\" data-url=\"{{ path('forumItemAnswers', { id: forum.id }) }}\">
  1082.         {% include 'website/forum/forum-list-answers.html.twig' with { init: true }%}
  1083.     </div>
  1084.     {% if user %}
  1085.         {# ABA EDITOR -- RESPOSTA #}
  1086.     \t{% embed 'website/includes/text-editor.html.twig' with {
  1087.             titulo: getLanguage('reply_to_topic', 'forum'),
  1088.             formId: 'formSendAnswer',
  1089.             action: path('registerForum'),
  1090.             method: 'post',
  1091.         } %}
  1092.             {% block campos %}
  1093.                 <input type=\"hidden\" id=\"topico-resposta-user\" name=\"user\" value=\"{{ user.id }}\">
  1094.                 <input type=\"hidden\" id=\"topico-resposta-forum\" name=\"forum\" value=\"{{ forum.id }}\">
  1095.                 <input type=\"hidden\" id=\"topico-resposta-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\">
  1096.                 <input type=\"hidden\" id=\"topico-resposta-categoria\" name=\"forumCategory\" value=\"{{ forum.forumCategory.id }}\">
  1097.                 <div class=\"editor-wrap\">
  1098.                     <textarea class=\"editor js--editor\" id=\"topico-resposta-text\" name=\"text\" required></textarea>
  1099.                 </div>
  1100.             {% endblock %}
  1101.         {% endembed %}
  1102.         {# MODAL -- EDITAR TÓPICO #}
  1103.         {% embed \"website/includes/modal.html.twig\" with {'id': 'modal-editar-topico', 'title': getLanguage('edit_topic', 'forum'), 'classes': 'modal-forum' } %}
  1104.             {% block content %}
  1105.                 {% from 'utils.html.twig' import ico, switch %}
  1106.                 <form id=\"forumFormEditTopic\"
  1107.                     action=\"{{ path('editForum', { id: forum.id }) }}\"
  1108.                     method=\"put\" class=\"form-geral\">
  1109.                     <input type=\"hidden\" id=\"topico-novo-user\"  name=\"user\" value=\"{{ user.id }}\">
  1110.                     <input type=\"hidden\" id=\"topico-forum\" name=\"forum\" value=\"{{ forum.id }}\">
  1111.                     <input type=\"hidden\" id=\"url-file-delete\" name=\"urlFileDelete\" value=\"{{ path('fileDeleteUpload') }}\">
  1112.                     <div class=\"cp\">
  1113.                         <label for=\"topico-novo-titulo\">{{ getLanguage('topic_title', 'forum') }}</label>
  1114.                         <input type=\"text\" id=\"topico-novo-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\" required>
  1115.                     </div>
  1116.                     <div class=\"cp\">
  1117.                         <label>{{ getLanguage('topic_text', 'forum') }}</label>
  1118.                         <textarea class=\"modal-textbox js--editor-modal\" id=\"topico-novo-texto\" name=\"text\" required>
  1119.                             {{ forum.getText(true)|raw }}
  1120.                         </textarea>
  1121.                     </div>
  1122.                     <div class=\"cp-cols cp-2 modal-forum\">
  1123.                         <div class=\"cp cp-gd categoria\">
  1124.                             <label for=\"topico-novo-categoria\">{{ getLanguage('category', 'forum') }}</label>
  1125.                             <select id=\"topico-novo-categoria\" name=\"forumCategory\" class=\"custom-select\">
  1126.                                 {% for forumCategory in forumCategories %}
  1127.                                     <option value=\"{{ forumCategory.id }}\">{{ forumCategory.category }}</option>
  1128.                                 {% endfor %}
  1129.                             </select>
  1130.                         </div>
  1131.                         {% if not isLow(getPermission(\"website\", \"forum\", \"edit\")) %}
  1132.                             <div class=\"cp cp-6 status\">
  1133.                                 <label for=\"topico-novo-status\">{{ getLanguage('status', 'forum') }}</label>
  1134.                                 {{ switch({
  1135.                                     name: 'status',
  1136.                                     classes: ['wid'],
  1137.                                     checked: (forum.status == isForumStatusDefault ? true : false),
  1138.                                     attribs: 'id=\"topico-novo-status\"',
  1139.                                     insideLabel: [getLanguage('published', 'forum'), getLanguage('filed', 'forum')],
  1140.                                 })}}
  1141.                             </div>
  1142.                         {% endif %}
  1143.                     </div>
  1144.                     {# CAPTCHA #}
  1145.                     {% include 'website/includes/captcha-form.html.twig' with { formName: 'forumFormEditTopic' } %}
  1146.                     <nav class=\"actions\">
  1147.                         <button type=\"button\" class=\"js--modal-fecha cancel\">{{ getLanguage('cancel', 'forum') }}</button>
  1148.                         <button type=\"submit\" class=\"btn-continuar-peq\">{{ getLanguage('send', 'forum') }}<i class=\"loader\">{{ ico('loader-wish') }}</i></button>
  1149.                     </nav>
  1150.                 </form>
  1151.             {% endblock %}
  1152.         {% endembed %}
  1153.     {% endif %}
  1154. {% endblock %}
  1155. {% block overlay %}
  1156. <div class=\"loader-page\">
  1157.     <i class=\"loader\">{{ ico('loader-wish') }}</i>
  1158. </div>
  1159. {% endblock %}""website/forum/forum-detail.html.twig""/var/www/html/templates/website/forum/forum-detail.html.twig");
  1160.     }
  1161. }