<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* forumlist_body.html */
class __TwigTemplate_522cd1923d75c4f61affb8420f9c5f62491dedf63b96c6edbd0503d1e4b9a8a3 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "forumrow", []));
        $context['_iterated'] = false;
        foreach ($context['_seq'] as $context["_key"] => $context["forumrow"]) {
            // line 2
            echo "\t";
            if ((($this->getAttribute($context["forumrow"], "S_IS_CAT", []) &&  !$this->getAttribute($context["forumrow"], "S_FIRST_ROW", [])) || $this->getAttribute($context["forumrow"], "S_NO_CAT", []))) {
                // line 3
                echo "\t    
\t\t<!-- Table footer not used at the moment
\t\t\t<tfoot>
             <tr>
                <th>Game Name</th>
                <th>Publisher</th>
                <th>Platform</th>
             </tr>
            </tfoot>
\t\tTable footer not used at the moment -->
\t\t\t
\t\t</table>
\t\t</div>
\t\t</div>
\t";
                // line 17
                echo "\t
\t";
            }
            // line 19
            echo "\t
    ";
            // line 20
            // line 21
            echo "\t";
            if ((($this->getAttribute($context["forumrow"], "S_IS_CAT", []) || $this->getAttribute($context["forumrow"], "S_FIRST_ROW", [])) || $this->getAttribute($context["forumrow"], "S_NO_CAT", []))) {
                // line 22
                echo "\t   <div class=\"panel panel-forum\">
\t     <div class=\"panel-heading\">
\t\t  ";
                // line 24
                if ($this->getAttribute($context["forumrow"], "S_IS_CAT", [])) {
                    echo "<a href=\"";
                    echo $this->getAttribute($context["forumrow"], "U_VIEWFORUM", []);
                    echo "\">";
                    echo $this->getAttribute($context["forumrow"], "FORUM_NAME", []);
                    echo "</a>";
                } elseif ($this->getAttribute($context["forumrow"], "S_IS_LINK", [])) {
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("LINKS");
                } else {
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FORUM");
                }
                // line 25
                echo "\t\t </div>
\t\t <div class=\"panel-inner\">
\t\t<table class=\"footable table table-striped table-primary table-hover\">
\t\t<thead>
\t\t";
                // line 29
                // line 30
                echo "\t\t\t<tr>
\t\t\t <th data-class=\"expand\">";
                // line 31
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("TITLE");
                echo "</th>
\t\t\t <th class=\"large110\" data-hide=\"phone\">";
                // line 32
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("TOPICS_POSTS_STATISTICS");
                echo "</th>
\t\t\t <th class=\"large21\" data-hide=\"phone\">";
                // line 33
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("LAST_POST");
                echo "</th>
\t\t\t</tr>
\t\t";
                // line 35
                echo "\t
\t\t</thead>
\t<tbody>
\t";
            }
            // line 39
            echo "\t";
            // line 40
            echo "\t
\t";
            // line 41
            if ( !$this->getAttribute($context["forumrow"], "S_IS_CAT", [])) {
                // line 42
                echo "\t";
                // line 43
                echo "\t    <tr id=\"forum-";
                echo $this->getAttribute($context["forumrow"], "FORUM_ID", []);
                echo "\">
\t\t";
                // line 44
                // line 45
                echo "\t\t\t<td title=\"";
                echo $this->getAttribute($context["forumrow"], "FORUM_FOLDER_IMG_ALT", []);
                echo "\">
\t\t\t";
                // line 46
                if ($this->getAttribute($context["forumrow"], "FORUM_IMAGE", [])) {
                    // line 47
                    echo "\t\t\t   ";
                    // line 48
                    echo "\t\t\t      <span class=\"forum-image\">";
                    echo $this->getAttribute($context["forumrow"], "FORUM_IMAGE", []);
                    echo "</span>
\t\t\t   ";
                    // line 49
                    // line 50
                    echo "\t\t\t";
                } else {
                    // line 51
                    echo "\t\t\t<span class=\"icon-wrapper\">
\t\t\t <i class=\"row-icon-font icon-moon-default";
                    // line 52
                    if ($this->getAttribute($context["forumrow"], "S_IS_LINK", [])) {
                        echo " icon-moon-link2";
                    }
                    if ($this->getAttribute($context["forumrow"], "S_UNREAD_FORUM", [])) {
                        echo " forum-unread";
                    } else {
                        echo " forum-read";
                    }
                    echo "\" title=\"";
                    echo $this->getAttribute($context["forumrow"], "FORUM_FOLDER_IMG_ALT", []);
                    echo "\"></i>
\t\t\t</span>
\t\t\t";
                }
                // line 55
                echo "\t\t\t<i class=\"row-icon-font-mini ";
                if ($this->getAttribute($context["forumrow"], "S_LOCKED_FORUM", [])) {
                    echo "icon-moon-lock forum-list-lock";
                }
                echo "\" title=\"";
                echo $this->getAttribute($context["forumrow"], "FORUM_FOLDER_IMG_ALT", []);
                echo "\"></i>
\t\t\t";
                // line 56
                if ((($context["S_ENABLE_FEEDS"] ?? null) && $this->getAttribute($context["forumrow"], "S_FEED_ENABLED", []))) {
                    echo " <!-- <a class=\"btn-rss pull-right hidden-xs hidden-sm\" title=\"";
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FEED");
                    echo " - ";
                    echo $this->getAttribute($context["forumrow"], "FORUM_NAME", []);
                    echo "\" href=\"";
                    echo ($context["U_FEED"] ?? null);
                    echo "?f=";
                    echo $this->getAttribute($context["forumrow"], "FORUM_ID", []);
                    echo "\"><i class=\"fa fa-rss rss-color-forum\"></i></a> --> ";
                }
                // line 57
                echo "\t\t\t  <span class=\"desc-wrapper\">
\t\t\t  ";
                // line 58
                // line 59
                echo "\t\t\t\t<a href=\"";
                echo $this->getAttribute($context["forumrow"], "U_VIEWFORUM", []);
                echo "\" class=\"forumtitle\">";
                echo $this->getAttribute($context["forumrow"], "FORUM_NAME", []);
                echo "</a><br />
\t\t\t\t";
                // line 60
                if ($this->getAttribute($context["forumrow"], "FORUM_DESC", [])) {
                    echo "<span class=\"description\">";
                    echo $this->getAttribute($context["forumrow"], "FORUM_DESC", []);
                    echo "</span><br />";
                }
                // line 61
                echo "\t\t\t\t";
                if ($this->getAttribute($context["forumrow"], "MODERATORS", [])) {
                    // line 62
                    echo "\t\t\t\t<span class=\"forum-mods\"><strong>";
                    echo $this->getAttribute($context["forumrow"], "L_MODERATOR_STR", []);
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("COLON");
                    echo "</strong>&nbsp;";
                    echo $this->getAttribute($context["forumrow"], "MODERATORS", []);
                    echo "</span>
\t\t\t\t";
                }
                // line 64
                echo "\t\t\t\t";
                if (($this->getAttribute($context["forumrow"], "SUBFORUMS", []) && $this->getAttribute($context["forumrow"], "S_LIST_SUBFORUMS", []))) {
                    // line 65
                    echo "\t\t\t\t ";
                    // line 66
                    echo "\t\t\t\t <span class=\"subforums\">
\t\t\t\t  <strong>";
                    // line 67
                    echo $this->getAttribute($context["forumrow"], "L_SUBFORUM_STR", []);
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("COLON");
                    echo "</strong>
                    ";
                    // line 68
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["forumrow"], "subforum", []));
                    foreach ($context['_seq'] as $context["_key"] => $context["subforum"]) {
                        echo "\t
                        ";
                        // line 69
                        echo "\t\t\t\t\t
\t\t\t\t             ";
                        // line 70
                        if ($this->getAttribute($context["subforum"], "IS_LINK", [])) {
                            echo "<i class=\"fa fa-external-link-square\"></i>&nbsp;";
                        }
                        echo "<a href=\"";
                        echo $this->getAttribute($context["subforum"], "U_SUBFORUM", []);
                        echo "\" ";
                        if ($this->getAttribute($context["subforum"], "IS_LINK", [])) {
                            echo "target=\"_blank\"";
                        }
                        echo " class=\"subforum";
                        if ($this->getAttribute($context["subforum"], "S_UNREAD", [])) {
                            echo " unread";
                        } else {
                            echo " read";
                        }
                        echo "\" title=\"";
                        if ($this->getAttribute($context["subforum"], "S_UNREAD", [])) {
                            echo $this->env->getExtension('phpbb\template\twig\extension')->lang("UNREAD_POSTS");
                        } elseif ($this->getAttribute($context["subforum"], "IS_LINK", [])) {
                            echo $this->env->getExtension('phpbb\template\twig\extension')->lang("SUBFORUM_LINK");
                        } else {
                            echo $this->env->getExtension('phpbb\template\twig\extension')->lang("NO_UNREAD_POSTS");
                        }
                        echo "\">";
                        echo $this->getAttribute($context["subforum"], "SUBFORUM_NAME", []);
                        echo "</a>";
                        if ( !$this->getAttribute($context["subforum"], "S_LAST_ROW", [])) {
                            echo $this->env->getExtension('phpbb\template\twig\extension')->lang("COMMA_SEPARATOR");
                        }
                        // line 71
                        echo "\t\t\t\t\t    ";
                        // line 72
                        echo "\t\t\t\t\t";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subforum'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    echo " 
\t\t\t\t </span>
\t\t\t\t ";
                    // line 74
                    // line 75
                    echo "\t\t\t\t";
                }
                // line 76
                echo "\t\t\t  </span>
\t\t\t</td>
\t\t\t";
                // line 78
                if ($this->getAttribute($context["forumrow"], "CLICKS", [])) {
                    // line 79
                    echo "\t\t\t<td colspan=\"2\"><span class=\"stats-wrapper\">";
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FORUM_REDIRECTS");
                    echo "&nbsp;";
                    echo $this->getAttribute($context["forumrow"], "CLICKS", []);
                    echo "</span></td>
            ";
                } elseif ($this->getAttribute(                // line 80
$context["forumrow"], "S_IS_LINK", [])) {
                    // line 81
                    echo "\t\t\t<td>&nbsp;</td>\t\t
\t\t\t<td>&nbsp;</td>\t\t\t\t
\t\t\t";
                } elseif ( !$this->getAttribute(                // line 83
$context["forumrow"], "S_IS_LINK", [])) {
                    // line 84
                    echo "\t\t\t<td class=\"stats-col\">
\t\t\t <span class=\"stats-wrapper\">
\t\t\t ";
                    // line 86
                    echo $this->getAttribute($context["forumrow"], "TOPICS", []);
                    echo "&nbsp;";
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("TOPICS");
                    echo "&nbsp;<br />";
                    echo $this->getAttribute($context["forumrow"], "POSTS", []);
                    echo "&nbsp;";
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("POSTS");
                    echo " 
\t\t\t ";
                    // line 87
                    if ($this->getAttribute($context["forumrow"], "U_UNAPPROVED_TOPICS", [])) {
                        // line 88
                        echo "\t\t\t  <a href=\"";
                        echo $this->getAttribute($context["forumrow"], "U_UNAPPROVED_TOPICS", []);
                        echo "\" title=\"";
                        echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FORUMLIST_UNAPPROVED");
                        echo "\"><i class=\"fa fa-question-circle\"></i></a>
\t\t\t ";
                    } elseif ($this->getAttribute(                    // line 89
$context["forumrow"], "U_UNAPPROVED_POSTS", [])) {
                        // line 90
                        echo "\t\t\t  <a href=\"";
                        echo $this->getAttribute($context["forumrow"], "U_UNAPPROVED_POSTS", []);
                        echo "\" title=\"";
                        echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FORUMLIST_UNAPPROVED_POST");
                        echo "\"><i class=\"fa fa-question-circle\"></i></a>
\t\t\t ";
                    }
                    // line 92
                    echo "\t\t\t ";
                    // line 93
                    echo "\t\t\t </span>
\t\t\t</td>\t
\t\t\t<td>
\t\t\t  <span class=\"last-wrapper text-overflow\">
\t\t\t   ";
                    // line 97
                    // line 98
                    echo "\t\t\t\t";
                    if ($this->getAttribute($context["forumrow"], "S_DISPLAY_SUBJECT", [])) {
                        // line 99
                        echo "\t\t\t\t ";
                        // line 100
                        echo "\t\t\t\t <a href=\"";
                        echo $this->getAttribute($context["forumrow"], "U_LAST_POST", []);
                        echo "\" title=\"\" class=\"lastsubject\">";
                        echo $this->getAttribute($context["forumrow"], "LAST_POST_SUBJECT_TRUNCATED", []);
                        echo "</a><br />
\t\t\t\t";
                    }
                    // line 102
                    echo "\t\t\t\t";
                    if ($this->getAttribute($context["forumrow"], "LAST_POST_TIME", [])) {
                        echo $this->env->getExtension('phpbb\template\twig\extension')->lang("POST_BY_AUTHOR");
                        echo "&nbsp;";
                        echo $this->getAttribute($context["forumrow"], "LAST_POSTER_FULL", []);
                        echo "
\t\t\t\t\t";
                        // line 103
                        if ( !($context["S_IS_BOT"] ?? null)) {
                            echo "<a class=\"moderator-item\" href=\"";
                            echo $this->getAttribute($context["forumrow"], "U_LAST_POST", []);
                            echo "\" title=\"";
                            echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FORUMLIST_LASTPOST");
                            echo "\"><i class=\"mobile-post fa fa-sign-out\"></i></a>";
                        }
                        // line 104
                        echo "\t\t\t\t\t<br /><span class=\"forum-time\">";
                        echo $this->getAttribute($context["forumrow"], "LAST_POST_TIME", []);
                        echo "</span>
\t\t\t\t";
                    } else {
                        // line 106
                        echo "\t\t\t\t\t";
                        if ($this->getAttribute($context["forumrow"], "U_UNAPPROVED_TOPICS", [])) {
                            // line 107
                            echo "\t\t\t\t\t\t";
                            echo $this->env->getExtension('phpbb\template\twig\extension')->lang("TOPIC_UNAPPROVED_FORUM", $this->getAttribute($context["forumrow"], "TOPICS", []));
                            echo "
\t\t\t\t\t";
                        } else {
                            // line 109
                            echo "\t\t\t\t\t\t";
                            echo $this->env->getExtension('phpbb\template\twig\extension')->lang("NO_POSTS");
                            echo "
\t\t\t\t\t";
                        }
                        // line 111
                        echo "\t\t\t\t";
                    }
                    // line 112
                    echo "\t\t\t  </span>
\t\t\t</td>
\t\t\t";
                }
                // line 115
                echo "\t\t";
                echo "\t
\t\t</tr>
\t";
                // line 117
                echo "\t
\t";
            }
            // line 119
            echo "
\t";
            // line 120
            if ($this->getAttribute($context["forumrow"], "S_LAST_ROW", [])) {
                // line 121
                echo "\t </tbody>
\t</table>
\t</div>
\t</div>
\t";
                // line 125
                // line 126
                echo "\t";
            }
            // line 127
            echo "
";
            $context['_iterated'] = true;
        }
        if (!$context['_iterated']) {
            // line 129
            echo "\t<div class=\"well\">
\t\t<strong>";
            // line 130
            echo $this->env->getExtension('phpbb\template\twig\extension')->lang("NO_FORUMS");
            echo "</strong>
\t</div>
";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['forumrow'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
    }

    public function getTemplateName()
    {
        return "forumlist_body.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  432 => 130,  429 => 129,  423 => 127,  420 => 126,  419 => 125,  413 => 121,  411 => 120,  408 => 119,  404 => 117,  399 => 115,  394 => 112,  391 => 111,  385 => 109,  379 => 107,  376 => 106,  370 => 104,  362 => 103,  354 => 102,  346 => 100,  344 => 99,  341 => 98,  340 => 97,  334 => 93,  332 => 92,  324 => 90,  322 => 89,  315 => 88,  313 => 87,  303 => 86,  299 => 84,  297 => 83,  293 => 81,  291 => 80,  284 => 79,  282 => 78,  278 => 76,  275 => 75,  274 => 74,  265 => 72,  263 => 71,  233 => 70,  230 => 69,  224 => 68,  219 => 67,  216 => 66,  214 => 65,  211 => 64,  202 => 62,  199 => 61,  193 => 60,  186 => 59,  185 => 58,  182 => 57,  170 => 56,  161 => 55,  146 => 52,  143 => 51,  140 => 50,  139 => 49,  134 => 48,  132 => 47,  130 => 46,  125 => 45,  124 => 44,  119 => 43,  117 => 42,  115 => 41,  112 => 40,  110 => 39,  104 => 35,  99 => 33,  95 => 32,  91 => 31,  88 => 30,  87 => 29,  81 => 25,  69 => 24,  65 => 22,  62 => 21,  61 => 20,  58 => 19,  54 => 17,  38 => 3,  35 => 2,  30 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("", "forumlist_body.html", "");
    }
}
