<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* website/forum/forum-detail.html.twig */
class __TwigTemplate_a78b8455983060d5055f1af2b3685bd8764ba9a10d9643f481efa28659d7094c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
'overlay' => [$this, 'block_overlay'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "website/main.template.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/forum/forum-detail.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/forum/forum-detail.html.twig"));
// line 1
$macros["__internal_e6afab6bad479d60bf27f382784d587dd96ab5562387c51afc07f1173abc60f2"] = $this->macros["__internal_e6afab6bad479d60bf27f382784d587dd96ab5562387c51afc07f1173abc60f2"] = $this->loadTemplate("utils.html.twig", "website/forum/forum-detail.html.twig", 1)->unwrap();
// line 2
$this->parent = $this->loadTemplate("website/main.template.html.twig", "website/forum/forum-detail.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 5
echo "
\t";
// line 6
$this->loadTemplate("website/includes/search-section.html.twig", "website/forum/forum-detail.html.twig", 6)->display($context);
// line 7
echo "
";
// line 8
$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")]));
// line 13
echo "
\t<div class=\"container\">
\t\t<div class=\"contem-busca\">
\t\t\t<form class=\"busca-lista\" action=\"";
// line 16
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", false, false, false, 16), "slug" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 16, $this->source); })())]), "html", null, true);
echo "\" method=\"GET\">
\t\t\t\t<input id=\"input-search-forum-detail\" type=\"text\" name=\"search\" placeholder=\"";
// line 17
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("search_the_forum", "forum"), "html", null, true);
echo " …\">
\t\t\t\t<button type=\"submit\">
\t\t\t\t\t<i class=\"material-icons\">search</i>
\t\t\t\t</button>
\t\t\t</form>
\t\t\t";
// line 22
if ((isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 22, $this->source); })())) {
// line 23
echo "\t\t\t\t<button class=\"btn-acao\" onclick=\"window.refEditor.openTab()\"><span class=\"material-icons\">add_circle_outline</span>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("comment", "forum"), "html", null, true);
echo "</button>
\t\t\t";
}
// line 25
echo "\t\t</div>
";
// line 28
echo "\t\t<div class=\"forum-pergunta\">
\t\t\t<a class=\"seta\" href=\"";
// line 29
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("forum");
echo "\">
\t\t\t\t<span class=\"material-icons\">arrow_back</span>
\t\t\t</a>
\t\t\t<h2>";
// line 32
echo twig_escape_filter($this->env, 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.', 32, $this->source); })()), "getTitle", [0 => true], "method", false, false, false, 32), "html", null, true);
echo "</h2>
\t\t\t";
// line 33
$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"]));
// line 34
echo "
";
// line 36
echo " ";
$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"]));
// line 41
echo "\t\t</div>
\t</div>
";
// line 45
echo " <div id=\"contem-answers\" class=\"container questao-respostas\" data-url=\"";
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", false, false, false, 45)]), "html", null, true);
echo "\">
";
// line 46
$this->loadTemplate("website/forum/forum-list-answers.html.twig", "website/forum/forum-detail.html.twig", 46)->display(twig_array_merge($context, ["init" => true]));
// line 47
echo " </div>
";
// line 49
if ((isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 49, $this->source); })())) {
// line 50
echo " ";
// line 51
echo " \t";
$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"]));
// line 67
echo "
";
// line 69
echo " ";
$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"]));
// line 121
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 124
public function block_overlay($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "overlay"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "overlay"));
// line 125
echo "<div class=\"loader-page\">
<i class=\"loader\">";
// line 126
echo twig_call_macro($macros["__internal_e6afab6bad479d60bf27f382784d587dd96ab5562387c51afc07f1173abc60f2"], "macro_ico", ["loader-wish"], 126, $context, $this->getSourceContext());
echo "</i>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "website/forum/forum-detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% from 'utils.html.twig' import ico %}
{% extends 'website/main.template.html.twig' %}
{% block body %}
\t{% include 'website/includes/search-section.html.twig' %}
{% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('forum', 'forum') }%}
{% block migalhas %}
\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'forum') }}</a> / <span>{{ getLanguage('forum', 'forum') }}</span>
{% endblock %}
{% endembed %}
\t<div class=\"container\">
\t\t<div class=\"contem-busca\">
\t\t\t<form class=\"busca-lista\" action=\"{{ path('forumItem', { id: forum.id, slug: slug }) }}\" method=\"GET\">
\t\t\t\t<input id=\"input-search-forum-detail\" type=\"text\" name=\"search\" placeholder=\"{{ getLanguage('search_the_forum', 'forum') }} …\">
\t\t\t\t<button type=\"submit\">
\t\t\t\t\t<i class=\"material-icons\">search</i>
\t\t\t\t</button>
\t\t\t</form>
\t\t\t{% if user %}
\t\t\t\t<button class=\"btn-acao\" onclick=\"window.refEditor.openTab()\"><span class=\"material-icons\">add_circle_outline</span>{{ getLanguage('comment', 'forum') }}</button>
\t\t\t{% endif %}
\t\t</div>
{# QUESTÃO #}
\t\t<div class=\"forum-pergunta\">
\t\t\t<a class=\"seta\" href=\"{{ path('forum') }}\">
\t\t\t\t<span class=\"material-icons\">arrow_back</span>
\t\t\t</a>
\t\t\t<h2>{{ forum.getTitle(true) }}</h2>
\t\t\t{% include 'website/forum/forum-detail-box.html.twig' with { forumItem: forum, layout: 'question' } %}
{# MODAL -- OHTERS LIKES #}
{% embed \"website/includes/modal.html.twig\" with {'id': 'modal-others-likes-question', 'title': getLanguage('all_likes', 'forum'), 'classes': 'modal-forum' } %}
{% block content %}
{% include 'website/includes/modal-others-likes.html.twig' with { forumItem: forum, layout: 'question' } %}
{% endblock %}
{% endembed %}
\t\t</div>
\t</div>
{# RESPOSTAS #}
<div id=\"contem-answers\" class=\"container questao-respostas\" data-url=\"{{ path('forumItemAnswers', { id: forum.id }) }}\">
{% include 'website/forum/forum-list-answers.html.twig' with { init: true }%}
</div>
{% if user %}
{# ABA EDITOR -- RESPOSTA #}
\t{% embed 'website/includes/text-editor.html.twig' with {
titulo: getLanguage('reply_to_topic', 'forum'),
formId: 'formSendAnswer',
action: path('registerForum'),
method: 'post',
} %}
{% block campos %}
<input type=\"hidden\" id=\"topico-resposta-user\" name=\"user\" value=\"{{ user.id }}\">
<input type=\"hidden\" id=\"topico-resposta-forum\" name=\"forum\" value=\"{{ forum.id }}\">
<input type=\"hidden\" id=\"topico-resposta-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\">
<input type=\"hidden\" id=\"topico-resposta-categoria\" name=\"forumCategory\" value=\"{{ forum.forumCategory.id }}\">
<div class=\"editor-wrap\">
<textarea class=\"editor js--editor\" id=\"topico-resposta-text\" name=\"text\" required></textarea>
</div>
{% endblock %}
{% endembed %}
{# MODAL -- EDITAR TÓPICO #}
{% embed \"website/includes/modal.html.twig\" with {'id': 'modal-editar-topico', 'title': getLanguage('edit_topic', 'forum'), 'classes': 'modal-forum' } %}
{% block content %}
{% from 'utils.html.twig' import ico, switch %}
<form id=\"forumFormEditTopic\"
action=\"{{ path('editForum', { id: forum.id }) }}\"
method=\"put\" class=\"form-geral\">
<input type=\"hidden\" id=\"topico-novo-user\" name=\"user\" value=\"{{ user.id }}\">
<input type=\"hidden\" id=\"topico-forum\" name=\"forum\" value=\"{{ forum.id }}\">
<input type=\"hidden\" id=\"url-file-delete\" name=\"urlFileDelete\" value=\"{{ path('fileDeleteUpload') }}\">
<div class=\"cp\">
<label for=\"topico-novo-titulo\">{{ getLanguage('topic_title', 'forum') }}</label>
<input type=\"text\" id=\"topico-novo-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\" required>
</div>
<div class=\"cp\">
<label>{{ getLanguage('topic_text', 'forum') }}</label>
<textarea class=\"modal-textbox js--editor-modal\" id=\"topico-novo-texto\" name=\"text\" required>
{{ forum.getText(true)|raw }}
</textarea>
</div>
<div class=\"cp-cols cp-2 modal-forum\">
<div class=\"cp cp-gd categoria\">
<label for=\"topico-novo-categoria\">{{ getLanguage('category', 'forum') }}</label>
<select id=\"topico-novo-categoria\" name=\"forumCategory\" class=\"custom-select\">
{% for forumCategory in forumCategories %}
<option value=\"{{ forumCategory.id }}\">{{ forumCategory.category }}</option>
{% endfor %}
</select>
</div>
{% if not isLow(getPermission(\"website\", \"forum\", \"edit\")) %}
<div class=\"cp cp-6 status\">
<label for=\"topico-novo-status\">{{ getLanguage('status', 'forum') }}</label>
{{ switch({
name: 'status',
classes: ['wid'],
checked: (forum.status == isForumStatusDefault ? true : false),
attribs: 'id=\"topico-novo-status\"',
insideLabel: [getLanguage('published', 'forum'), getLanguage('filed', 'forum')],
})}}
</div>
{% endif %}
</div>
{# CAPTCHA #}
{% include 'website/includes/captcha-form.html.twig' with { formName: 'forumFormEditTopic' } %}
<nav class=\"actions\">
<button type=\"button\" class=\"js--modal-fecha cancel\">{{ getLanguage('cancel', 'forum') }}</button>
<button type=\"submit\" class=\"btn-continuar-peq\">{{ getLanguage('send', 'forum') }}<i class=\"loader\">{{ ico('loader-wish') }}</i></button>
</nav>
</form>
{% endblock %}
{% endembed %}
{% endif %}
{% endblock %}
{% block overlay %}
<div class=\"loader-page\">
<i class=\"loader\">{{ ico('loader-wish') }}</i>
</div>
{% endblock %}", "website/forum/forum-detail.html.twig", "/var/www/html/templates/website/forum/forum-detail.html.twig");
}
}
/* website/forum/forum-detail.html.twig */
class __TwigTemplate_a78b8455983060d5055f1af2b3685bd8764ba9a10d9643f481efa28659d7094c___118505114 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'migalhas' => [$this, 'block_migalhas'],
];
}
protected function doGetParent(array $context)
{
// line 8
return "website/includes/page-title.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/forum/forum-detail.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/forum/forum-detail.html.twig"));
$this->parent = $this->loadTemplate("website/includes/page-title.html.twig", "website/forum/forum-detail.html.twig", 8);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 9
public function block_migalhas($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "migalhas"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "migalhas"));
// line 10
echo "\t\t\t<a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("home", "forum"), "html", null, true);
echo "</a> / <span>";
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("forum", "forum"), "html", null, true);
echo "</span>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "website/forum/forum-detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% from 'utils.html.twig' import ico %}
{% extends 'website/main.template.html.twig' %}
{% block body %}
\t{% include 'website/includes/search-section.html.twig' %}
{% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('forum', 'forum') }%}
{% block migalhas %}
\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'forum') }}</a> / <span>{{ getLanguage('forum', 'forum') }}</span>
{% endblock %}
{% endembed %}
\t<div class=\"container\">
\t\t<div class=\"contem-busca\">
\t\t\t<form class=\"busca-lista\" action=\"{{ path('forumItem', { id: forum.id, slug: slug }) }}\" method=\"GET\">
\t\t\t\t<input id=\"input-search-forum-detail\" type=\"text\" name=\"search\" placeholder=\"{{ getLanguage('search_the_forum', 'forum') }} …\">
\t\t\t\t<button type=\"submit\">
\t\t\t\t\t<i class=\"material-icons\">search</i>
\t\t\t\t</button>
\t\t\t</form>
\t\t\t{% if user %}
\t\t\t\t<button class=\"btn-acao\" onclick=\"window.refEditor.openTab()\"><span class=\"material-icons\">add_circle_outline</span>{{ getLanguage('comment', 'forum') }}</button>
\t\t\t{% endif %}
\t\t</div>
{# QUESTÃO #}
\t\t<div class=\"forum-pergunta\">
\t\t\t<a class=\"seta\" href=\"{{ path('forum') }}\">
\t\t\t\t<span class=\"material-icons\">arrow_back</span>
\t\t\t</a>
\t\t\t<h2>{{ forum.getTitle(true) }}</h2>
\t\t\t{% include 'website/forum/forum-detail-box.html.twig' with { forumItem: forum, layout: 'question' } %}
{# MODAL -- OHTERS LIKES #}
{% embed \"website/includes/modal.html.twig\" with {'id': 'modal-others-likes-question', 'title': getLanguage('all_likes', 'forum'), 'classes': 'modal-forum' } %}
{% block content %}
{% include 'website/includes/modal-others-likes.html.twig' with { forumItem: forum, layout: 'question' } %}
{% endblock %}
{% endembed %}
\t\t</div>
\t</div>
{# RESPOSTAS #}
<div id=\"contem-answers\" class=\"container questao-respostas\" data-url=\"{{ path('forumItemAnswers', { id: forum.id }) }}\">
{% include 'website/forum/forum-list-answers.html.twig' with { init: true }%}
</div>
{% if user %}
{# ABA EDITOR -- RESPOSTA #}
\t{% embed 'website/includes/text-editor.html.twig' with {
titulo: getLanguage('reply_to_topic', 'forum'),
formId: 'formSendAnswer',
action: path('registerForum'),
method: 'post',
} %}
{% block campos %}
<input type=\"hidden\" id=\"topico-resposta-user\" name=\"user\" value=\"{{ user.id }}\">
<input type=\"hidden\" id=\"topico-resposta-forum\" name=\"forum\" value=\"{{ forum.id }}\">
<input type=\"hidden\" id=\"topico-resposta-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\">
<input type=\"hidden\" id=\"topico-resposta-categoria\" name=\"forumCategory\" value=\"{{ forum.forumCategory.id }}\">
<div class=\"editor-wrap\">
<textarea class=\"editor js--editor\" id=\"topico-resposta-text\" name=\"text\" required></textarea>
</div>
{% endblock %}
{% endembed %}
{# MODAL -- EDITAR TÓPICO #}
{% embed \"website/includes/modal.html.twig\" with {'id': 'modal-editar-topico', 'title': getLanguage('edit_topic', 'forum'), 'classes': 'modal-forum' } %}
{% block content %}
{% from 'utils.html.twig' import ico, switch %}
<form id=\"forumFormEditTopic\"
action=\"{{ path('editForum', { id: forum.id }) }}\"
method=\"put\" class=\"form-geral\">
<input type=\"hidden\" id=\"topico-novo-user\" name=\"user\" value=\"{{ user.id }}\">
<input type=\"hidden\" id=\"topico-forum\" name=\"forum\" value=\"{{ forum.id }}\">
<input type=\"hidden\" id=\"url-file-delete\" name=\"urlFileDelete\" value=\"{{ path('fileDeleteUpload') }}\">
<div class=\"cp\">
<label for=\"topico-novo-titulo\">{{ getLanguage('topic_title', 'forum') }}</label>
<input type=\"text\" id=\"topico-novo-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\" required>
</div>
<div class=\"cp\">
<label>{{ getLanguage('topic_text', 'forum') }}</label>
<textarea class=\"modal-textbox js--editor-modal\" id=\"topico-novo-texto\" name=\"text\" required>
{{ forum.getText(true)|raw }}
</textarea>
</div>
<div class=\"cp-cols cp-2 modal-forum\">
<div class=\"cp cp-gd categoria\">
<label for=\"topico-novo-categoria\">{{ getLanguage('category', 'forum') }}</label>
<select id=\"topico-novo-categoria\" name=\"forumCategory\" class=\"custom-select\">
{% for forumCategory in forumCategories %}
<option value=\"{{ forumCategory.id }}\">{{ forumCategory.category }}</option>
{% endfor %}
</select>
</div>
{% if not isLow(getPermission(\"website\", \"forum\", \"edit\")) %}
<div class=\"cp cp-6 status\">
<label for=\"topico-novo-status\">{{ getLanguage('status', 'forum') }}</label>
{{ switch({
name: 'status',
classes: ['wid'],
checked: (forum.status == isForumStatusDefault ? true : false),
attribs: 'id=\"topico-novo-status\"',
insideLabel: [getLanguage('published', 'forum'), getLanguage('filed', 'forum')],
})}}
</div>
{% endif %}
</div>
{# CAPTCHA #}
{% include 'website/includes/captcha-form.html.twig' with { formName: 'forumFormEditTopic' } %}
<nav class=\"actions\">
<button type=\"button\" class=\"js--modal-fecha cancel\">{{ getLanguage('cancel', 'forum') }}</button>
<button type=\"submit\" class=\"btn-continuar-peq\">{{ getLanguage('send', 'forum') }}<i class=\"loader\">{{ ico('loader-wish') }}</i></button>
</nav>
</form>
{% endblock %}
{% endembed %}
{% endif %}
{% endblock %}
{% block overlay %}
<div class=\"loader-page\">
<i class=\"loader\">{{ ico('loader-wish') }}</i>
</div>
{% endblock %}", "website/forum/forum-detail.html.twig", "/var/www/html/templates/website/forum/forum-detail.html.twig");
}
}
/* website/forum/forum-detail.html.twig */
class __TwigTemplate_a78b8455983060d5055f1af2b3685bd8764ba9a10d9643f481efa28659d7094c___327989037 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 36
return "website/includes/modal.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/forum/forum-detail.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/forum/forum-detail.html.twig"));
$this->parent = $this->loadTemplate("website/includes/modal.html.twig", "website/forum/forum-detail.html.twig", 36);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 37
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 38
echo " ";
$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"]));
// line 39
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "website/forum/forum-detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% from 'utils.html.twig' import ico %}
{% extends 'website/main.template.html.twig' %}
{% block body %}
\t{% include 'website/includes/search-section.html.twig' %}
{% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('forum', 'forum') }%}
{% block migalhas %}
\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'forum') }}</a> / <span>{{ getLanguage('forum', 'forum') }}</span>
{% endblock %}
{% endembed %}
\t<div class=\"container\">
\t\t<div class=\"contem-busca\">
\t\t\t<form class=\"busca-lista\" action=\"{{ path('forumItem', { id: forum.id, slug: slug }) }}\" method=\"GET\">
\t\t\t\t<input id=\"input-search-forum-detail\" type=\"text\" name=\"search\" placeholder=\"{{ getLanguage('search_the_forum', 'forum') }} …\">
\t\t\t\t<button type=\"submit\">
\t\t\t\t\t<i class=\"material-icons\">search</i>
\t\t\t\t</button>
\t\t\t</form>
\t\t\t{% if user %}
\t\t\t\t<button class=\"btn-acao\" onclick=\"window.refEditor.openTab()\"><span class=\"material-icons\">add_circle_outline</span>{{ getLanguage('comment', 'forum') }}</button>
\t\t\t{% endif %}
\t\t</div>
{# QUESTÃO #}
\t\t<div class=\"forum-pergunta\">
\t\t\t<a class=\"seta\" href=\"{{ path('forum') }}\">
\t\t\t\t<span class=\"material-icons\">arrow_back</span>
\t\t\t</a>
\t\t\t<h2>{{ forum.getTitle(true) }}</h2>
\t\t\t{% include 'website/forum/forum-detail-box.html.twig' with { forumItem: forum, layout: 'question' } %}
{# MODAL -- OHTERS LIKES #}
{% embed \"website/includes/modal.html.twig\" with {'id': 'modal-others-likes-question', 'title': getLanguage('all_likes', 'forum'), 'classes': 'modal-forum' } %}
{% block content %}
{% include 'website/includes/modal-others-likes.html.twig' with { forumItem: forum, layout: 'question' } %}
{% endblock %}
{% endembed %}
\t\t</div>
\t</div>
{# RESPOSTAS #}
<div id=\"contem-answers\" class=\"container questao-respostas\" data-url=\"{{ path('forumItemAnswers', { id: forum.id }) }}\">
{% include 'website/forum/forum-list-answers.html.twig' with { init: true }%}
</div>
{% if user %}
{# ABA EDITOR -- RESPOSTA #}
\t{% embed 'website/includes/text-editor.html.twig' with {
titulo: getLanguage('reply_to_topic', 'forum'),
formId: 'formSendAnswer',
action: path('registerForum'),
method: 'post',
} %}
{% block campos %}
<input type=\"hidden\" id=\"topico-resposta-user\" name=\"user\" value=\"{{ user.id }}\">
<input type=\"hidden\" id=\"topico-resposta-forum\" name=\"forum\" value=\"{{ forum.id }}\">
<input type=\"hidden\" id=\"topico-resposta-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\">
<input type=\"hidden\" id=\"topico-resposta-categoria\" name=\"forumCategory\" value=\"{{ forum.forumCategory.id }}\">
<div class=\"editor-wrap\">
<textarea class=\"editor js--editor\" id=\"topico-resposta-text\" name=\"text\" required></textarea>
</div>
{% endblock %}
{% endembed %}
{# MODAL -- EDITAR TÓPICO #}
{% embed \"website/includes/modal.html.twig\" with {'id': 'modal-editar-topico', 'title': getLanguage('edit_topic', 'forum'), 'classes': 'modal-forum' } %}
{% block content %}
{% from 'utils.html.twig' import ico, switch %}
<form id=\"forumFormEditTopic\"
action=\"{{ path('editForum', { id: forum.id }) }}\"
method=\"put\" class=\"form-geral\">
<input type=\"hidden\" id=\"topico-novo-user\" name=\"user\" value=\"{{ user.id }}\">
<input type=\"hidden\" id=\"topico-forum\" name=\"forum\" value=\"{{ forum.id }}\">
<input type=\"hidden\" id=\"url-file-delete\" name=\"urlFileDelete\" value=\"{{ path('fileDeleteUpload') }}\">
<div class=\"cp\">
<label for=\"topico-novo-titulo\">{{ getLanguage('topic_title', 'forum') }}</label>
<input type=\"text\" id=\"topico-novo-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\" required>
</div>
<div class=\"cp\">
<label>{{ getLanguage('topic_text', 'forum') }}</label>
<textarea class=\"modal-textbox js--editor-modal\" id=\"topico-novo-texto\" name=\"text\" required>
{{ forum.getText(true)|raw }}
</textarea>
</div>
<div class=\"cp-cols cp-2 modal-forum\">
<div class=\"cp cp-gd categoria\">
<label for=\"topico-novo-categoria\">{{ getLanguage('category', 'forum') }}</label>
<select id=\"topico-novo-categoria\" name=\"forumCategory\" class=\"custom-select\">
{% for forumCategory in forumCategories %}
<option value=\"{{ forumCategory.id }}\">{{ forumCategory.category }}</option>
{% endfor %}
</select>
</div>
{% if not isLow(getPermission(\"website\", \"forum\", \"edit\")) %}
<div class=\"cp cp-6 status\">
<label for=\"topico-novo-status\">{{ getLanguage('status', 'forum') }}</label>
{{ switch({
name: 'status',
classes: ['wid'],
checked: (forum.status == isForumStatusDefault ? true : false),
attribs: 'id=\"topico-novo-status\"',
insideLabel: [getLanguage('published', 'forum'), getLanguage('filed', 'forum')],
})}}
</div>
{% endif %}
</div>
{# CAPTCHA #}
{% include 'website/includes/captcha-form.html.twig' with { formName: 'forumFormEditTopic' } %}
<nav class=\"actions\">
<button type=\"button\" class=\"js--modal-fecha cancel\">{{ getLanguage('cancel', 'forum') }}</button>
<button type=\"submit\" class=\"btn-continuar-peq\">{{ getLanguage('send', 'forum') }}<i class=\"loader\">{{ ico('loader-wish') }}</i></button>
</nav>
</form>
{% endblock %}
{% endembed %}
{% endif %}
{% endblock %}
{% block overlay %}
<div class=\"loader-page\">
<i class=\"loader\">{{ ico('loader-wish') }}</i>
</div>
{% endblock %}", "website/forum/forum-detail.html.twig", "/var/www/html/templates/website/forum/forum-detail.html.twig");
}
}
/* website/forum/forum-detail.html.twig */
class __TwigTemplate_a78b8455983060d5055f1af2b3685bd8764ba9a10d9643f481efa28659d7094c___2098329525 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'campos' => [$this, 'block_campos'],
];
}
protected function doGetParent(array $context)
{
// line 51
return "website/includes/text-editor.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/forum/forum-detail.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/forum/forum-detail.html.twig"));
$this->parent = $this->loadTemplate("website/includes/text-editor.html.twig", "website/forum/forum-detail.html.twig", 51);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 57
public function block_campos($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "campos"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "campos"));
// line 58
echo " <input type=\"hidden\" id=\"topico-resposta-user\" name=\"user\" value=\"";
echo twig_escape_filter($this->env, twig_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", false, false, false, 58), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"topico-resposta-forum\" name=\"forum\" value=\"";
// line 59
echo twig_escape_filter($this->env, 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.', 59, $this->source); })()), "id", [], "any", false, false, false, 59), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"topico-resposta-titulo\" name=\"title\" value=\"";
// line 60
echo twig_escape_filter($this->env, 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.', 60, $this->source); })()), "getTitle", [0 => true], "method", false, false, false, 60), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"topico-resposta-categoria\" name=\"forumCategory\" value=\"";
// line 61
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 61, $this->source); })()), "forumCategory", [], "any", false, false, false, 61), "id", [], "any", false, false, false, 61), "html", null, true);
echo "\">
<div class=\"editor-wrap\">
<textarea class=\"editor js--editor\" id=\"topico-resposta-text\" name=\"text\" required></textarea>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "website/forum/forum-detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% from 'utils.html.twig' import ico %}
{% extends 'website/main.template.html.twig' %}
{% block body %}
\t{% include 'website/includes/search-section.html.twig' %}
{% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('forum', 'forum') }%}
{% block migalhas %}
\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'forum') }}</a> / <span>{{ getLanguage('forum', 'forum') }}</span>
{% endblock %}
{% endembed %}
\t<div class=\"container\">
\t\t<div class=\"contem-busca\">
\t\t\t<form class=\"busca-lista\" action=\"{{ path('forumItem', { id: forum.id, slug: slug }) }}\" method=\"GET\">
\t\t\t\t<input id=\"input-search-forum-detail\" type=\"text\" name=\"search\" placeholder=\"{{ getLanguage('search_the_forum', 'forum') }} …\">
\t\t\t\t<button type=\"submit\">
\t\t\t\t\t<i class=\"material-icons\">search</i>
\t\t\t\t</button>
\t\t\t</form>
\t\t\t{% if user %}
\t\t\t\t<button class=\"btn-acao\" onclick=\"window.refEditor.openTab()\"><span class=\"material-icons\">add_circle_outline</span>{{ getLanguage('comment', 'forum') }}</button>
\t\t\t{% endif %}
\t\t</div>
{# QUESTÃO #}
\t\t<div class=\"forum-pergunta\">
\t\t\t<a class=\"seta\" href=\"{{ path('forum') }}\">
\t\t\t\t<span class=\"material-icons\">arrow_back</span>
\t\t\t</a>
\t\t\t<h2>{{ forum.getTitle(true) }}</h2>
\t\t\t{% include 'website/forum/forum-detail-box.html.twig' with { forumItem: forum, layout: 'question' } %}
{# MODAL -- OHTERS LIKES #}
{% embed \"website/includes/modal.html.twig\" with {'id': 'modal-others-likes-question', 'title': getLanguage('all_likes', 'forum'), 'classes': 'modal-forum' } %}
{% block content %}
{% include 'website/includes/modal-others-likes.html.twig' with { forumItem: forum, layout: 'question' } %}
{% endblock %}
{% endembed %}
\t\t</div>
\t</div>
{# RESPOSTAS #}
<div id=\"contem-answers\" class=\"container questao-respostas\" data-url=\"{{ path('forumItemAnswers', { id: forum.id }) }}\">
{% include 'website/forum/forum-list-answers.html.twig' with { init: true }%}
</div>
{% if user %}
{# ABA EDITOR -- RESPOSTA #}
\t{% embed 'website/includes/text-editor.html.twig' with {
titulo: getLanguage('reply_to_topic', 'forum'),
formId: 'formSendAnswer',
action: path('registerForum'),
method: 'post',
} %}
{% block campos %}
<input type=\"hidden\" id=\"topico-resposta-user\" name=\"user\" value=\"{{ user.id }}\">
<input type=\"hidden\" id=\"topico-resposta-forum\" name=\"forum\" value=\"{{ forum.id }}\">
<input type=\"hidden\" id=\"topico-resposta-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\">
<input type=\"hidden\" id=\"topico-resposta-categoria\" name=\"forumCategory\" value=\"{{ forum.forumCategory.id }}\">
<div class=\"editor-wrap\">
<textarea class=\"editor js--editor\" id=\"topico-resposta-text\" name=\"text\" required></textarea>
</div>
{% endblock %}
{% endembed %}
{# MODAL -- EDITAR TÓPICO #}
{% embed \"website/includes/modal.html.twig\" with {'id': 'modal-editar-topico', 'title': getLanguage('edit_topic', 'forum'), 'classes': 'modal-forum' } %}
{% block content %}
{% from 'utils.html.twig' import ico, switch %}
<form id=\"forumFormEditTopic\"
action=\"{{ path('editForum', { id: forum.id }) }}\"
method=\"put\" class=\"form-geral\">
<input type=\"hidden\" id=\"topico-novo-user\" name=\"user\" value=\"{{ user.id }}\">
<input type=\"hidden\" id=\"topico-forum\" name=\"forum\" value=\"{{ forum.id }}\">
<input type=\"hidden\" id=\"url-file-delete\" name=\"urlFileDelete\" value=\"{{ path('fileDeleteUpload') }}\">
<div class=\"cp\">
<label for=\"topico-novo-titulo\">{{ getLanguage('topic_title', 'forum') }}</label>
<input type=\"text\" id=\"topico-novo-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\" required>
</div>
<div class=\"cp\">
<label>{{ getLanguage('topic_text', 'forum') }}</label>
<textarea class=\"modal-textbox js--editor-modal\" id=\"topico-novo-texto\" name=\"text\" required>
{{ forum.getText(true)|raw }}
</textarea>
</div>
<div class=\"cp-cols cp-2 modal-forum\">
<div class=\"cp cp-gd categoria\">
<label for=\"topico-novo-categoria\">{{ getLanguage('category', 'forum') }}</label>
<select id=\"topico-novo-categoria\" name=\"forumCategory\" class=\"custom-select\">
{% for forumCategory in forumCategories %}
<option value=\"{{ forumCategory.id }}\">{{ forumCategory.category }}</option>
{% endfor %}
</select>
</div>
{% if not isLow(getPermission(\"website\", \"forum\", \"edit\")) %}
<div class=\"cp cp-6 status\">
<label for=\"topico-novo-status\">{{ getLanguage('status', 'forum') }}</label>
{{ switch({
name: 'status',
classes: ['wid'],
checked: (forum.status == isForumStatusDefault ? true : false),
attribs: 'id=\"topico-novo-status\"',
insideLabel: [getLanguage('published', 'forum'), getLanguage('filed', 'forum')],
})}}
</div>
{% endif %}
</div>
{# CAPTCHA #}
{% include 'website/includes/captcha-form.html.twig' with { formName: 'forumFormEditTopic' } %}
<nav class=\"actions\">
<button type=\"button\" class=\"js--modal-fecha cancel\">{{ getLanguage('cancel', 'forum') }}</button>
<button type=\"submit\" class=\"btn-continuar-peq\">{{ getLanguage('send', 'forum') }}<i class=\"loader\">{{ ico('loader-wish') }}</i></button>
</nav>
</form>
{% endblock %}
{% endembed %}
{% endif %}
{% endblock %}
{% block overlay %}
<div class=\"loader-page\">
<i class=\"loader\">{{ ico('loader-wish') }}</i>
</div>
{% endblock %}", "website/forum/forum-detail.html.twig", "/var/www/html/templates/website/forum/forum-detail.html.twig");
}
}
/* website/forum/forum-detail.html.twig */
class __TwigTemplate_a78b8455983060d5055f1af2b3685bd8764ba9a10d9643f481efa28659d7094c___2132853634 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 69
return "website/includes/modal.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/forum/forum-detail.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "website/forum/forum-detail.html.twig"));
$this->parent = $this->loadTemplate("website/includes/modal.html.twig", "website/forum/forum-detail.html.twig", 69);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 70
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 71
echo " ";
$macros["__internal_e6afab6bad479d60bf27f382784d587dd96ab5562387c51afc07f1173abc60f2"] = $this->loadTemplate("utils.html.twig", "website/forum/forum-detail.html.twig", 71)->unwrap();
// line 72
echo " <form id=\"forumFormEditTopic\"
action=\"";
// line 73
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", false, false, false, 73)]), "html", null, true);
echo "\"
method=\"put\" class=\"form-geral\">
<input type=\"hidden\" id=\"topico-novo-user\" name=\"user\" value=\"";
// line 75
echo twig_escape_filter($this->env, twig_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", false, false, false, 75), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"topico-forum\" name=\"forum\" value=\"";
// line 76
echo twig_escape_filter($this->env, 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.', 76, $this->source); })()), "id", [], "any", false, false, false, 76), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"url-file-delete\" name=\"urlFileDelete\" value=\"";
// line 77
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fileDeleteUpload");
echo "\">
<div class=\"cp\">
<label for=\"topico-novo-titulo\">";
// line 79
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("topic_title", "forum"), "html", null, true);
echo "</label>
<input type=\"text\" id=\"topico-novo-titulo\" name=\"title\" value=\"";
// line 80
echo twig_escape_filter($this->env, 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.', 80, $this->source); })()), "getTitle", [0 => true], "method", false, false, false, 80), "html", null, true);
echo "\" required>
</div>
<div class=\"cp\">
<label>";
// line 83
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("topic_text", "forum"), "html", null, true);
echo "</label>
<textarea class=\"modal-textbox js--editor-modal\" id=\"topico-novo-texto\" name=\"text\" required>
";
// line 85
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", [0 => true], "method", false, false, false, 85);
echo "
</textarea>
</div>
<div class=\"cp-cols cp-2 modal-forum\">
<div class=\"cp cp-gd categoria\">
<label for=\"topico-novo-categoria\">";
// line 90
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("category", "forum"), "html", null, true);
echo "</label>
<select id=\"topico-novo-categoria\" name=\"forumCategory\" class=\"custom-select\">
";
// line 92
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["forumCategory"]) {
// line 93
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["forumCategory"], "id", [], "any", false, false, false, 93), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["forumCategory"], "category", [], "any", false, false, false, 93), "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['forumCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 95
echo " </select>
</div>
";
// line 97
if ( !$this->extensions['EADPlataforma\Twig\FunctionsExtension']->isLow($this->extensions['EADPlataforma\Twig\FunctionsExtension']->getPermission("website", "forum", "edit"))) {
// line 98
echo " <div class=\"cp cp-6 status\">
<label for=\"topico-novo-status\">";
// line 99
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("status", "forum"), "html", null, true);
echo "</label>
";
// line 100
echo twig_call_macro($macros["__internal_e6afab6bad479d60bf27f382784d587dd96ab5562387c51afc07f1173abc60f2"], "macro_switch", [["name" => "status", "classes" => [0 => "wid"], "checked" => (((0 === twig_compare(twig_get_attribute($this->env, $this->source, // line 103
(isset($context["forum"]) || array_key_exists("forum", $context) ? $context["forum"] : (function () { throw new RuntimeError('Variable "forum" does not exist.', 103, $this->source); })()), "status", [], "any", false, false, false, 103), (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" => [0 => $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("published", "forum"), 1 => $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("filed", "forum")]]], 100, $context, $this->getSourceContext());
// line 106
echo "
</div>
";
}
// line 109
echo " </div>
";
// line 112
echo " ";
$this->loadTemplate("website/includes/captcha-form.html.twig", "website/forum/forum-detail.html.twig", 112)->display(twig_array_merge($context, ["formName" => "forumFormEditTopic"]));
// line 113
echo "
<nav class=\"actions\">
<button type=\"button\" class=\"js--modal-fecha cancel\">";
// line 115
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("cancel", "forum"), "html", null, true);
echo "</button>
<button type=\"submit\" class=\"btn-continuar-peq\">";
// line 116
echo twig_escape_filter($this->env, $this->extensions['EADPlataforma\Twig\FunctionsExtension']->getLanguage("send", "forum"), "html", null, true);
echo "<i class=\"loader\">";
echo twig_call_macro($macros["__internal_e6afab6bad479d60bf27f382784d587dd96ab5562387c51afc07f1173abc60f2"], "macro_ico", ["loader-wish"], 116, $context, $this->getSourceContext());
echo "</i></button>
</nav>
</form>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "website/forum/forum-detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% from 'utils.html.twig' import ico %}
{% extends 'website/main.template.html.twig' %}
{% block body %}
\t{% include 'website/includes/search-section.html.twig' %}
{% embed 'website/includes/page-title.html.twig' with { pageTitle: getLanguage('forum', 'forum') }%}
{% block migalhas %}
\t\t\t<a href=\"{{ path('home') }}\">{{ getLanguage('home', 'forum') }}</a> / <span>{{ getLanguage('forum', 'forum') }}</span>
{% endblock %}
{% endembed %}
\t<div class=\"container\">
\t\t<div class=\"contem-busca\">
\t\t\t<form class=\"busca-lista\" action=\"{{ path('forumItem', { id: forum.id, slug: slug }) }}\" method=\"GET\">
\t\t\t\t<input id=\"input-search-forum-detail\" type=\"text\" name=\"search\" placeholder=\"{{ getLanguage('search_the_forum', 'forum') }} …\">
\t\t\t\t<button type=\"submit\">
\t\t\t\t\t<i class=\"material-icons\">search</i>
\t\t\t\t</button>
\t\t\t</form>
\t\t\t{% if user %}
\t\t\t\t<button class=\"btn-acao\" onclick=\"window.refEditor.openTab()\"><span class=\"material-icons\">add_circle_outline</span>{{ getLanguage('comment', 'forum') }}</button>
\t\t\t{% endif %}
\t\t</div>
{# QUESTÃO #}
\t\t<div class=\"forum-pergunta\">
\t\t\t<a class=\"seta\" href=\"{{ path('forum') }}\">
\t\t\t\t<span class=\"material-icons\">arrow_back</span>
\t\t\t</a>
\t\t\t<h2>{{ forum.getTitle(true) }}</h2>
\t\t\t{% include 'website/forum/forum-detail-box.html.twig' with { forumItem: forum, layout: 'question' } %}
{# MODAL -- OHTERS LIKES #}
{% embed \"website/includes/modal.html.twig\" with {'id': 'modal-others-likes-question', 'title': getLanguage('all_likes', 'forum'), 'classes': 'modal-forum' } %}
{% block content %}
{% include 'website/includes/modal-others-likes.html.twig' with { forumItem: forum, layout: 'question' } %}
{% endblock %}
{% endembed %}
\t\t</div>
\t</div>
{# RESPOSTAS #}
<div id=\"contem-answers\" class=\"container questao-respostas\" data-url=\"{{ path('forumItemAnswers', { id: forum.id }) }}\">
{% include 'website/forum/forum-list-answers.html.twig' with { init: true }%}
</div>
{% if user %}
{# ABA EDITOR -- RESPOSTA #}
\t{% embed 'website/includes/text-editor.html.twig' with {
titulo: getLanguage('reply_to_topic', 'forum'),
formId: 'formSendAnswer',
action: path('registerForum'),
method: 'post',
} %}
{% block campos %}
<input type=\"hidden\" id=\"topico-resposta-user\" name=\"user\" value=\"{{ user.id }}\">
<input type=\"hidden\" id=\"topico-resposta-forum\" name=\"forum\" value=\"{{ forum.id }}\">
<input type=\"hidden\" id=\"topico-resposta-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\">
<input type=\"hidden\" id=\"topico-resposta-categoria\" name=\"forumCategory\" value=\"{{ forum.forumCategory.id }}\">
<div class=\"editor-wrap\">
<textarea class=\"editor js--editor\" id=\"topico-resposta-text\" name=\"text\" required></textarea>
</div>
{% endblock %}
{% endembed %}
{# MODAL -- EDITAR TÓPICO #}
{% embed \"website/includes/modal.html.twig\" with {'id': 'modal-editar-topico', 'title': getLanguage('edit_topic', 'forum'), 'classes': 'modal-forum' } %}
{% block content %}
{% from 'utils.html.twig' import ico, switch %}
<form id=\"forumFormEditTopic\"
action=\"{{ path('editForum', { id: forum.id }) }}\"
method=\"put\" class=\"form-geral\">
<input type=\"hidden\" id=\"topico-novo-user\" name=\"user\" value=\"{{ user.id }}\">
<input type=\"hidden\" id=\"topico-forum\" name=\"forum\" value=\"{{ forum.id }}\">
<input type=\"hidden\" id=\"url-file-delete\" name=\"urlFileDelete\" value=\"{{ path('fileDeleteUpload') }}\">
<div class=\"cp\">
<label for=\"topico-novo-titulo\">{{ getLanguage('topic_title', 'forum') }}</label>
<input type=\"text\" id=\"topico-novo-titulo\" name=\"title\" value=\"{{ forum.getTitle(true) }}\" required>
</div>
<div class=\"cp\">
<label>{{ getLanguage('topic_text', 'forum') }}</label>
<textarea class=\"modal-textbox js--editor-modal\" id=\"topico-novo-texto\" name=\"text\" required>
{{ forum.getText(true)|raw }}
</textarea>
</div>
<div class=\"cp-cols cp-2 modal-forum\">
<div class=\"cp cp-gd categoria\">
<label for=\"topico-novo-categoria\">{{ getLanguage('category', 'forum') }}</label>
<select id=\"topico-novo-categoria\" name=\"forumCategory\" class=\"custom-select\">
{% for forumCategory in forumCategories %}
<option value=\"{{ forumCategory.id }}\">{{ forumCategory.category }}</option>
{% endfor %}
</select>
</div>
{% if not isLow(getPermission(\"website\", \"forum\", \"edit\")) %}
<div class=\"cp cp-6 status\">
<label for=\"topico-novo-status\">{{ getLanguage('status', 'forum') }}</label>
{{ switch({
name: 'status',
classes: ['wid'],
checked: (forum.status == isForumStatusDefault ? true : false),
attribs: 'id=\"topico-novo-status\"',
insideLabel: [getLanguage('published', 'forum'), getLanguage('filed', 'forum')],
})}}
</div>
{% endif %}
</div>
{# CAPTCHA #}
{% include 'website/includes/captcha-form.html.twig' with { formName: 'forumFormEditTopic' } %}
<nav class=\"actions\">
<button type=\"button\" class=\"js--modal-fecha cancel\">{{ getLanguage('cancel', 'forum') }}</button>
<button type=\"submit\" class=\"btn-continuar-peq\">{{ getLanguage('send', 'forum') }}<i class=\"loader\">{{ ico('loader-wish') }}</i></button>
</nav>
</form>
{% endblock %}
{% endembed %}
{% endif %}
{% endblock %}
{% block overlay %}
<div class=\"loader-page\">
<i class=\"loader\">{{ ico('loader-wish') }}</i>
</div>
{% endblock %}", "website/forum/forum-detail.html.twig", "/var/www/html/templates/website/forum/forum-detail.html.twig");
}
}