<?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;

/* forumlist_body.html */
class __TwigTemplate_13ade61ccd110aa41e2d5dd9b2f92195 extends \Twig\Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 2
        $context["iz_skip_cat"] = false;
        // line 3
        $context["iz_open_cat"] = false;
        // line 4
        echo "
";
        // line 5
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable($context["forumrow"]);
        foreach ($context['_seq'] as $context["_key"] => $context["forumrow"]) {
            // line 6
            echo "
    ";
            // line 8
            echo "    ";
            if (((twig_get_attribute($this->env, $this->source, $context["forumrow"], "S_IS_CAT", [], "any", false, false, false, 8) || twig_get_attribute($this->env, $this->source, $context["forumrow"], "S_FIRST_ROW", [], "any", false, false, false, 8)) || twig_get_attribute($this->env, $this->source, $context["forumrow"], "S_NO_CAT", [], "any", false, false, false, 8))) {
                // line 9
                echo "
        ";
                // line 11
                echo "        ";
                if (($context["iz_open_cat"] ?? null)) {
                    // line 12
                    echo "                </tbody>
            </table>
            </div>
        </section>
        ";
                    // line 16
                    // line 17
                    echo "            ";
                    $context["iz_open_cat"] = false;
                    // line 18
                    echo "        ";
                }
                // line 19
                echo "
        ";
                // line 21
                echo "        ";
                $context["iz_skip_cat"] = false;
                // line 22
                echo "
        ";
                // line 24
                echo "        ";
                if ( !($context["iz_skip_cat"] ?? null)) {
                    // line 25
                    echo "            ";
                    // line 26
                    echo "            <section class=\"iz-forumcat\">
                <header class=\"iz-forumcat__header\">
                    <h2 class=\"iz-forumcat__title iz-center\">
                        ";
                    // line 29
                    if (twig_get_attribute($this->env, $this->source, $context["forumrow"], "S_IS_CAT", [], "any", false, false, false, 29)) {
                        // line 30
                        echo "                            ";
                        if ((twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, $context["forumrow"], "FORUM_NAME", [], "any", false, false, false, 30)) == "your first category")) {
                            // line 31
                            echo "                                <a class=\"iz-link\" href=\"";
                            echo twig_get_attribute($this->env, $this->source, $context["forumrow"], "U_VIEWFORUM", [], "any", false, false, false, 31);
                            echo "\">Recent discussions</a>
                            ";
                        } else {
                            // line 33
                            echo "                                <a class=\"iz-link\" href=\"";
                            echo twig_get_attribute($this->env, $this->source, $context["forumrow"], "U_VIEWFORUM", [], "any", false, false, false, 33);
                            echo "\">";
                            echo twig_get_attribute($this->env, $this->source, $context["forumrow"], "FORUM_NAME", [], "any", false, false, false, 33);
                            echo "</a>
                            ";
                        }
                        // line 35
                        echo "                        ";
                    } elseif (twig_get_attribute($this->env, $this->source, $context["forumrow"], "S_IS_LINK", [], "any", false, false, false, 35)) {
                        // line 36
                        echo "                            ";
                        echo ($context["L_LINKS"] ?? null);
                        echo "
                        ";
                    } else {
                        // line 38
                        echo "                            ";
                        echo ($context["L_FORUM"] ?? null);
                        echo "
                        ";
                    }
                    // line 40
                    echo "                    </h2>
                </header>

                <div class=\"iz-forumcat__body\">
                    <table class=\"iz-table iz-table--forumlist\">
                        <thead>
                            ";
                    // line 46
                    // line 47
                    echo "                            <tr>
                                <th scope=\"col\" class=\"iz-table__col-title iz-center\">";
                    // line 48
                    echo ($context["L_TITLE"] ?? null);
                    echo "</th>
                            </tr>
                            ";
                    // line 50
                    // line 51
                    echo "                        </thead>
                        <tbody>
            ";
                    // line 53
                    // line 54
                    echo "            ";
                    $context["iz_open_cat"] = true;
                    // line 55
                    echo "        ";
                }
                // line 56
                echo "    ";
            }
            // line 57
            echo "
    ";
            // line 59
            echo "    ";
            if (( !twig_get_attribute($this->env, $this->source, $context["forumrow"], "S_IS_CAT", [], "any", false, false, false, 59) &&  !($context["iz_skip_cat"] ?? null))) {
                // line 60
                echo "        ";
                // line 61
                echo "        <tr id=\"forum-";
                echo twig_get_attribute($this->env, $this->source, $context["forumrow"], "FORUM_ID", [], "any", false, false, false, 61);
                echo "\" class=\"iz-forumrow\">
            ";
                // line 62
                // line 63
                echo "            <td class=\"iz-forumrow__main\" title=\"";
                echo twig_get_attribute($this->env, $this->source, $context["forumrow"], "FORUM_FOLDER_IMG_ALT", [], "any", false, false, false, 63);
                echo "\">
                <div class=\"iz-forumrow__onlytitle\">
                    <a href=\"";
                // line 65
                echo twig_get_attribute($this->env, $this->source, $context["forumrow"], "U_VIEWFORUM", [], "any", false, false, false, 65);
                echo "\" class=\"forumtitle iz-forumrow__title iz-center\">";
                echo twig_get_attribute($this->env, $this->source, $context["forumrow"], "FORUM_NAME", [], "any", false, false, false, 65);
                echo "</a>
                </div>
            </td>
            ";
                // line 68
                // line 69
                echo "        </tr>
        ";
                // line 70
                // line 71
                echo "    ";
            }
            // line 72
            echo "
";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['forumrow'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 74
        echo "
";
        // line 76
        if (($context["iz_open_cat"] ?? null)) {
            // line 77
            echo "        </tbody>
    </table>
    </div>
</section>
";
            // line 81
        }
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  212 => 81,  206 => 77,  204 => 76,  201 => 74,  194 => 72,  191 => 71,  190 => 70,  187 => 69,  186 => 68,  178 => 65,  172 => 63,  171 => 62,  166 => 61,  164 => 60,  161 => 59,  158 => 57,  155 => 56,  152 => 55,  149 => 54,  148 => 53,  144 => 51,  143 => 50,  138 => 48,  135 => 47,  134 => 46,  126 => 40,  120 => 38,  114 => 36,  111 => 35,  103 => 33,  97 => 31,  94 => 30,  92 => 29,  87 => 26,  85 => 25,  82 => 24,  79 => 22,  76 => 21,  73 => 19,  70 => 18,  67 => 17,  66 => 16,  60 => 12,  57 => 11,  54 => 9,  51 => 8,  48 => 6,  44 => 5,  41 => 4,  39 => 3,  37 => 2,);
    }

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