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

/* index_body.html */
class __TwigTemplate_ef7aec3ffaceb08b3d451cabe2645384 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 1
        $location = "overall_header.html";
        $namespace = false;
        if (strpos($location, '@') === 0) {
            $namespace = substr($location, 1, strpos($location, '/') - 1);
            $previous_look_up_order = $this->env->getNamespaceLookUpOrder();
            $this->env->setNamespaceLookUpOrder(array($namespace, '__main__'));
        }
        $this->loadTemplate("overall_header.html", "index_body.html", 1)->display($context);
        if ($namespace) {
            $this->env->setNamespaceLookUpOrder($previous_look_up_order);
        }
        // line 2
        echo "
<main class=\"iz-page\" aria-label=\"Forum content\" role=\"main\">

  <section class=\"iz-hero\" aria-label=\"Welcome\">
    <div class=\"iz-hero__inner\">
      <div class=\"iz-hero__text\">
        <h1 class=\"iz-hero__title\">Welcome to InfoZone Forum</h1>
      </div>
    </div>
  </section>

  <section class=\"iz-ads-row\" aria-label=\"Top advertisements\">
    <div class=\"iz-adslot\">
      <div class=\"iz-adslot__inner\">
        <div class=\"iz-adslot__meta\">
          ";
        // line 17
        if ((array_key_exists("IZ_ADS", $context) && twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_top_1", [], "any", false, false, false, 17))) {
            echo twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_top_1", [], "any", false, false, false, 17);
        } else {
            echo "<strong>Place your ad here</strong><small>360×120</small>";
        }
        // line 18
        echo "        </div>
        <span class=\"iz-adslot__badge\">Ad</span>
      </div>
    </div>
    <div class=\"iz-adslot\">
      <div class=\"iz-adslot__inner\">
        <div class=\"iz-adslot__meta\">
          ";
        // line 25
        if ((array_key_exists("IZ_ADS", $context) && twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_top_2", [], "any", false, false, false, 25))) {
            echo twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_top_2", [], "any", false, false, false, 25);
        } else {
            echo "<strong>Place your ad here</strong><small>360×120</small>";
        }
        // line 26
        echo "        </div>
        <span class=\"iz-adslot__badge\">Ad</span>
      </div>
    </div>
    <div class=\"iz-adslot\">
      <div class=\"iz-adslot__inner\">
        <div class=\"iz-adslot__meta\">
          ";
        // line 33
        if ((array_key_exists("IZ_ADS", $context) && twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_top_3", [], "any", false, false, false, 33))) {
            echo twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_top_3", [], "any", false, false, false, 33);
        } else {
            echo "<strong>Place your ad here</strong><small>360×120</small>";
        }
        // line 34
        echo "        </div>
        <span class=\"iz-adslot__badge\">Ad</span>
      </div>
    </div>
  </section>

  ";
        // line 40
        $location = "forumlist_body.html";
        $namespace = false;
        if (strpos($location, '@') === 0) {
            $namespace = substr($location, 1, strpos($location, '/') - 1);
            $previous_look_up_order = $this->env->getNamespaceLookUpOrder();
            $this->env->setNamespaceLookUpOrder(array($namespace, '__main__'));
        }
        $this->loadTemplate("forumlist_body.html", "index_body.html", 40)->display($context);
        if ($namespace) {
            $this->env->setNamespaceLookUpOrder($previous_look_up_order);
        }
        // line 41
        echo "
  <section class=\"iz-ads-row\" aria-label=\"Advertisements after categories\">
    <div class=\"iz-adslot\">
      <div class=\"iz-adslot__inner\">
        <div class=\"iz-adslot__meta\">
          ";
        // line 46
        if ((array_key_exists("IZ_ADS", $context) && twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_after_forums_1", [], "any", false, false, false, 46))) {
            echo twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_after_forums_1", [], "any", false, false, false, 46);
        } else {
            echo "<strong>Place your ad here</strong><small>360×120</small>";
        }
        // line 47
        echo "        </div>
        <span class=\"iz-adslot__badge\">Ad</span>
      </div>
    </div>
    <div class=\"iz-adslot\">
      <div class=\"iz-adslot__inner\">
        <div class=\"iz-adslot__meta\">
          ";
        // line 54
        if ((array_key_exists("IZ_ADS", $context) && twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_after_forums_2", [], "any", false, false, false, 54))) {
            echo twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_after_forums_2", [], "any", false, false, false, 54);
        } else {
            echo "<strong>Place your ad here</strong><small>360×120</small>";
        }
        // line 55
        echo "        </div>
        <span class=\"iz-adslot__badge\">Ad</span>
      </div>
    </div>
    <div class=\"iz-adslot\">
      <div class=\"iz-adslot__inner\">
        <div class=\"iz-adslot__meta\">
          ";
        // line 62
        if ((array_key_exists("IZ_ADS", $context) && twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_after_forums_3", [], "any", false, false, false, 62))) {
            echo twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_after_forums_3", [], "any", false, false, false, 62);
        } else {
            echo "<strong>Place your ad here</strong><small>360×120</small>";
        }
        // line 63
        echo "        </div>
        <span class=\"iz-adslot__badge\">Ad</span>
      </div>
    </div>
  </section>

  <section class=\"iz-prefooter__block\" aria-label=\"Featured topics\">
    <h3 style=\"margin:0 0 6px;\">Featured Topics</h3>
    <p style=\"margin:0 0 12px; color: var(--iz-muted);\">Most read in the last 30 days</p>

    ";
        // line 73
        if ((array_key_exists("IZ_FEATURED_TOPICS", $context) && twig_length_filter($this->env, ($context["IZ_FEATURED_TOPICS"] ?? null)))) {
            // line 74
            echo "      <ul style=\"margin:0; padding-left: 18px;\">
        ";
            // line 75
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["IZ_FEATURED_TOPICS"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["t"]) {
                // line 76
                echo "          <li style=\"margin: 8px 0;\">
            <a href=\"";
                // line 77
                echo twig_get_attribute($this->env, $this->source, $context["t"], "U_VIEW_TOPIC", [], "any", false, false, false, 77);
                echo "\">";
                echo twig_get_attribute($this->env, $this->source, $context["t"], "TOPIC_TITLE", [], "any", false, false, false, 77);
                echo "</a>
            <span style=\"color: var(--iz-muted);\"> — ";
                // line 78
                echo twig_get_attribute($this->env, $this->source, $context["t"], "TOPIC_VIEWS", [], "any", false, false, false, 78);
                echo " views · ";
                echo twig_get_attribute($this->env, $this->source, $context["t"], "TOPIC_REPLIES", [], "any", false, false, false, 78);
                echo " replies</span>
          </li>
        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['t'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 81
            echo "      </ul>
      <p style=\"margin:12px 0 0;\">
        <a href=\"";
            // line 83
            echo ($context["U_SEARCH_ACTIVE_TOPICS"] ?? null);
            echo "\">View more trending topics →</a>
      </p>
    ";
        } else {
            // line 86
            echo "      <p style=\"margin:0;\">
        <a href=\"";
            // line 87
            echo ($context["U_SEARCH_ACTIVE_TOPICS"] ?? null);
            echo "\">Active topics</a> ·
        <a href=\"";
            // line 88
            echo ($context["U_SEARCH_UNANSWERED"] ?? null);
            echo "\">Unanswered topics</a> ·
        <a href=\"";
            // line 89
            echo ($context["U_SEARCH_NEW"] ?? null);
            echo "\">New posts</a>
      </p>
    ";
        }
        // line 92
        echo "  </section>

  <section class=\"iz-prefooter__block\" aria-label=\"Advertise with us\" style=\"margin-top: 14px;\">
    <h3 style=\"margin:0 0 6px;\">Advertise with Us</h3>
    <p style=\"margin:0 0 12px;\">Submit your request to display ads on InfoZone Forum and pay conveniently online.</p>
    <p style=\"margin:0;\">
      <a class=\"button1 iz-btn iz-btn--primary\" href=\"";
        // line 98
        echo ((array_key_exists("IZ_ADVERTISE_URL", $context)) ? (_twig_default_filter(($context["IZ_ADVERTISE_URL"] ?? null), ((array_key_exists("U_CONTACT", $context)) ? (_twig_default_filter(($context["U_CONTACT"] ?? null), ($context["U_INDEX"] ?? null))) : (($context["U_INDEX"] ?? null))))) : (((array_key_exists("U_CONTACT", $context)) ? (_twig_default_filter(($context["U_CONTACT"] ?? null), ($context["U_INDEX"] ?? null))) : (($context["U_INDEX"] ?? null)))));
        echo "\" role=\"button\">Submit Ad Request</a>
    </p>
  </section>

  <section class=\"iz-ads-row\" aria-label=\"Advertisements before footer\">
    <div class=\"iz-adslot\">
      <div class=\"iz-adslot__inner\">
        <div class=\"iz-adslot__meta\">
          ";
        // line 106
        if ((array_key_exists("IZ_ADS", $context) && twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_before_footer_1", [], "any", false, false, false, 106))) {
            echo twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_before_footer_1", [], "any", false, false, false, 106);
        } else {
            echo "<strong>Place your ad here</strong><small>360×120</small>";
        }
        // line 107
        echo "        </div>
        <span class=\"iz-adslot__badge\">Ad</span>
      </div>
    </div>
    <div class=\"iz-adslot\">
      <div class=\"iz-adslot__inner\">
        <div class=\"iz-adslot__meta\">
          ";
        // line 114
        if ((array_key_exists("IZ_ADS", $context) && twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_before_footer_2", [], "any", false, false, false, 114))) {
            echo twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_before_footer_2", [], "any", false, false, false, 114);
        } else {
            echo "<strong>Place your ad here</strong><small>360×120</small>";
        }
        // line 115
        echo "        </div>
        <span class=\"iz-adslot__badge\">Ad</span>
      </div>
    </div>
    <div class=\"iz-adslot\">
      <div class=\"iz-adslot__inner\">
        <div class=\"iz-adslot__meta\">
          ";
        // line 122
        if ((array_key_exists("IZ_ADS", $context) && twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_before_footer_3", [], "any", false, false, false, 122))) {
            echo twig_get_attribute($this->env, $this->source, ($context["IZ_ADS"] ?? null), "index_before_footer_3", [], "any", false, false, false, 122);
        } else {
            echo "<strong>Place your ad here</strong><small>360×120</small>";
        }
        // line 123
        echo "        </div>
        <span class=\"iz-adslot__badge\">Ad</span>
      </div>
    </div>
  </section>

</main>

";
        // line 131
        $location = "overall_footer.html";
        $namespace = false;
        if (strpos($location, '@') === 0) {
            $namespace = substr($location, 1, strpos($location, '/') - 1);
            $previous_look_up_order = $this->env->getNamespaceLookUpOrder();
            $this->env->setNamespaceLookUpOrder(array($namespace, '__main__'));
        }
        $this->loadTemplate("overall_footer.html", "index_body.html", 131)->display($context);
        if ($namespace) {
            $this->env->setNamespaceLookUpOrder($previous_look_up_order);
        }
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  298 => 131,  288 => 123,  282 => 122,  273 => 115,  267 => 114,  258 => 107,  252 => 106,  241 => 98,  233 => 92,  227 => 89,  223 => 88,  219 => 87,  216 => 86,  210 => 83,  206 => 81,  195 => 78,  189 => 77,  186 => 76,  182 => 75,  179 => 74,  177 => 73,  165 => 63,  159 => 62,  150 => 55,  144 => 54,  135 => 47,  129 => 46,  122 => 41,  110 => 40,  102 => 34,  96 => 33,  87 => 26,  81 => 25,  72 => 18,  66 => 17,  49 => 2,  37 => 1,);
    }

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