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

/* ucp_header.html */
class __TwigTemplate_d503c3093e119cfc7a373e48a40fe501be302090ae1657727a218a4f997daa08 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
        $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", "ucp_header.html", 1)->display($context);
        if ($namespace) {
            $this->env->setNamespaceLookUpOrder($previous_look_up_order);
        }
        // line 2
        echo "<h2>";
        echo $this->env->getExtension('phpbb\template\twig\extension')->lang("UCP");
        echo "</h2>
<div class=\"panel has-nav-tabs no-border\">
\t<ul class=\"nav nav-tabs\">
\t\t";
        // line 5
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "t_block1", []));
        foreach ($context['_seq'] as $context["_key"] => $context["t_block1"]) {
            // line 6
            echo "\t\t<li ";
            if ($this->getAttribute($context["t_block1"], "S_SELECTED", [])) {
                echo "class=\"active\"";
            }
            echo "><a href=\"";
            echo $this->getAttribute($context["t_block1"], "U_TITLE", []);
            echo "\">";
            echo $this->getAttribute($context["t_block1"], "L_TITLE", []);
            echo "</a></li>
\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['t_block1'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 8
        echo "\t</ul>

";
        // line 10
        if (($context["S_COMPOSE_PM"] ?? null)) {
            // line 11
            echo "<form id=\"postform\" method=\"post\" action=\"";
            echo ($context["S_POST_ACTION"] ?? null);
            echo "\"";
            echo ($context["S_FORM_ENCTYPE"] ?? null);
            echo ">
";
        }
        // line 13
        echo "
<div class=\"panel-content\">
 <div class=\"panel-body\">
  <div class=\"row\">
  
  <!-- col-md-12 ucp_footer
   <div class=\"col-md-12\">
   -->
   
<div class=\"col-md-3\">
\t<div class=\"list-group\">
\t\t";
        // line 24
        if (($context["S_PRIVMSGS"] ?? null)) {
            // line 25
            echo "\t\t\t";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "t_block2", []));
            foreach ($context['_seq'] as $context["_key"] => $context["t_block2"]) {
                // line 26
                echo "\t\t\t\t";
                if ((($context["S_PRIVMSGS"] ?? null) &&  !$this->getAttribute($context["t_block2"], "S_LAST_ROW", []))) {
                    // line 27
                    echo "\t\t\t\t\t";
                    if ($this->getAttribute($context["t_block2"], "S_SELECTED", [])) {
                        // line 28
                        echo "\t\t\t\t\t <a class=\"list-group-item active\" href=\"";
                        echo $this->getAttribute($context["t_block2"], "U_TITLE", []);
                        echo "\">";
                        echo $this->getAttribute($context["t_block2"], "L_TITLE", []);
                        echo "</a>
\t\t\t\t\t";
                    } else {
                        // line 30
                        echo "\t\t\t\t\t <a class=\"list-group-item\" href=\"";
                        echo $this->getAttribute($context["t_block2"], "U_TITLE", []);
                        echo "\">";
                        echo $this->getAttribute($context["t_block2"], "L_TITLE", []);
                        echo "</a>
\t\t\t\t\t";
                    }
                    // line 32
                    echo "\t\t\t\t";
                }
                // line 33
                echo "\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['t_block2'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 34
            echo "
\t\t\t";
            // line 35
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "folder", []));
            foreach ($context['_seq'] as $context["_key"] => $context["folder"]) {
                echo "\t
\t\t\t\t";
                // line 36
                if ($this->getAttribute($context["folder"], "S_CUR_FOLDER", [])) {
                    // line 37
                    echo "\t\t\t\t <a class=\"list-group-item active\" href=\"";
                    echo $this->getAttribute($context["folder"], "U_FOLDER", []);
                    echo "\">";
                    if (($this->getAttribute($context["folder"], "UNREAD_MESSAGES", []) > 0)) {
                        echo "<strong>";
                        echo $this->getAttribute($context["folder"], "FOLDER_NAME", []);
                        echo "</strong> <span class=\"badge\">";
                        echo $this->getAttribute($context["folder"], "UNREAD_MESSAGES", []);
                        echo "</span>";
                    } else {
                        echo $this->getAttribute($context["folder"], "FOLDER_NAME", []);
                    }
                    echo "</a>
\t\t\t\t";
                } else {
                    // line 39
                    echo "\t\t\t\t <a class=\"list-group-item\" href=\"";
                    echo $this->getAttribute($context["folder"], "U_FOLDER", []);
                    echo "\">";
                    if (($this->getAttribute($context["folder"], "UNREAD_MESSAGES", []) > 0)) {
                        echo "<strong>";
                        echo $this->getAttribute($context["folder"], "FOLDER_NAME", []);
                        echo "</strong> <span class=\"badge\">";
                        echo $this->getAttribute($context["folder"], "UNREAD_MESSAGES", []);
                        echo "</span>";
                    } else {
                        echo $this->getAttribute($context["folder"], "FOLDER_NAME", []);
                    }
                    echo "</a>
\t\t\t\t";
                }
                // line 41
                echo "\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['folder'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 42
            echo "\t\t";
        }
        // line 43
        echo "
\t\t";
        // line 44
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "t_block2", []));
        foreach ($context['_seq'] as $context["_key"] => $context["t_block2"]) {
            // line 45
            echo "\t\t\t";
            if (((($context["S_PRIVMSGS"] ?? null) && $this->getAttribute($context["t_block2"], "S_LAST_ROW", [])) ||  !($context["S_PRIVMSGS"] ?? null))) {
                // line 46
                echo "\t\t\t\t";
                if ($this->getAttribute($context["t_block2"], "S_SELECTED", [])) {
                    // line 47
                    echo "\t\t\t\t\t<a class=\"list-group-item active\" href=\"";
                    echo $this->getAttribute($context["t_block2"], "U_TITLE", []);
                    echo "\">";
                    echo $this->getAttribute($context["t_block2"], "L_TITLE", []);
                    echo "</a>
\t\t\t\t";
                } else {
                    // line 49
                    echo "\t\t\t\t\t<a class=\"list-group-item\" href=\"";
                    echo $this->getAttribute($context["t_block2"], "U_TITLE", []);
                    echo "\">";
                    echo $this->getAttribute($context["t_block2"], "L_TITLE", []);
                    echo "</a>
\t\t\t\t";
                }
                // line 51
                echo "\t\t\t";
            }
            // line 52
            echo "\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['t_block2'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 53
        echo "\t</div>
\t\t
\t\t<div class=\"space10\"></div>
";
        // line 56
        if ((twig_length_filter($this->env, $this->getAttribute(($context["loops"] ?? null), "friends_online", [])) || twig_length_filter($this->env, $this->getAttribute(($context["loops"] ?? null), "friends_offline", [])))) {
            // line 57
            echo "<div class=\"panel panel-default panel-poll\">
<div class=\"panel-body\">
 <div id=\"scrollbar-two\">
    <div class=\"scrollbar\"><div class=\"track\"><div class=\"thumb\"><div class=\"end\"></div></div></div></div>
     <div class=\"viewport\">
      <div class=\"overview\">
\t\t <ul class=\"media-list\">
\t\t  
\t\t  ";
            // line 65
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "friends_online", []));
            foreach ($context['_seq'] as $context["_key"] => $context["friends_online"]) {
                // line 66
                echo "\t\t  <li class=\"media friends-avatar\">
\t\t   ";
                // line 67
                if ( !$this->getAttribute($context["friends_online"], "AVATAR", [])) {
                    echo "<img src=\"";
                    echo ($context["T_THEME_PATH"] ?? null);
                    echo "/images/user1.png\">";
                } else {
                    echo $this->getAttribute($context["friends_online"], "AVATAR", []);
                }
                // line 68
                echo "<div class=\"media-body\">
\t\t\t ";
                // line 69
                echo $this->getAttribute($context["friends_online"], "USERNAME_FULL", []);
                echo "
\t\t\t <p><small class=\"text-success\"><strong>";
                // line 70
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FRIENDS_ONLINE");
                echo "</strong></small>";
                if (($context["S_SHOW_PM_BOX"] ?? null)) {
                    echo "&nbsp;&nbsp;<button type=\"submit\" name=\"add_to[";
                    echo $this->getAttribute($context["friends_online"], "USER_ID", []);
                    echo "]\" value=\"";
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("ADD");
                    echo "\" class=\"btn btn-xs btn-success\">";
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("ADD");
                    echo "</button>";
                }
                echo "</p>
\t\t   </div>
\t\t  </li>
\t\t ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['friends_online'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 74
            echo "\t\t 
\t\t ";
            // line 75
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "friends_offline", []));
            foreach ($context['_seq'] as $context["_key"] => $context["friends_offline"]) {
                // line 76
                echo "\t\t  <li class=\"media friends-avatar\">
\t\t   ";
                // line 77
                if ( !$this->getAttribute($context["friends_offline"], "AVATAR", [])) {
                    echo "<img src=\"";
                    echo ($context["T_THEME_PATH"] ?? null);
                    echo "/images/user4.png\">";
                } else {
                    echo $this->getAttribute($context["friends_offline"], "AVATAR", []);
                }
                // line 78
                echo "<div class=\"media-body\">
\t\t\t ";
                // line 79
                echo $this->getAttribute($context["friends_offline"], "USERNAME_FULL", []);
                echo "
\t\t\t <p><small class=\"text-danger\"><strong>";
                // line 80
                echo $this->env->getExtension('phpbb\template\twig\extension')->lang("FRIENDS_OFFLINE");
                echo "</strong></small>";
                if (($context["S_SHOW_PM_BOX"] ?? null)) {
                    echo "&nbsp;&nbsp;<button type=\"submit\" name=\"add_to[";
                    echo $this->getAttribute($context["friends_offline"], "USER_ID", []);
                    echo "]\" value=\"";
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("ADD");
                    echo "\" class=\"btn btn-xs btn-default\">";
                    echo $this->env->getExtension('phpbb\template\twig\extension')->lang("ADD");
                    echo "</button>";
                }
                echo "</p>
\t\t   </div>
\t\t  </li>
\t\t ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['friends_offline'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 84
            echo "\t\t 
\t\t </ul>
    </div>
   </div>
</div>
 
</div>
</div>
";
        }
        // line 93
        echo "
";
        // line 94
        if (($context["S_SHOW_COLOUR_LEGEND"] ?? null)) {
            // line 95
            echo "\t<div class=\"panel panel-default panel-poll\">
    <div class=\"panel-body\">
\t  <ul class=\"list-unstyled\">
\t\t";
            // line 98
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["loops"] ?? null), "pm_colour_info", []));
            foreach ($context['_seq'] as $context["_key"] => $context["pm_colour_info"]) {
                echo " 
\t\t<li>
\t\t   <i class=\"fa fa-envelope";
                // line 100
                if ($this->getAttribute($context["pm_colour_info"], "CLASS", [])) {
                    echo " ";
                    echo $this->getAttribute($context["pm_colour_info"], "CLASS", []);
                }
                echo "\"></i> ";
                if ($this->getAttribute($context["pm_colour_info"], "IMG", [])) {
                    echo $this->getAttribute($context["pm_colour_info"], "IMG", []);
                    echo " ";
                }
                echo $this->getAttribute($context["pm_colour_info"], "LANG", []);
                echo "
\t\t</li>
\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pm_colour_info'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 103
            echo "\t  </ul>
\t</div>
\t</div>
";
        }
        // line 107
        echo "</div>
   
<div class=\"col-md-9\">
  <div class=\"tab-content\">";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  379 => 107,  373 => 103,  355 => 100,  348 => 98,  343 => 95,  341 => 94,  338 => 93,  327 => 84,  307 => 80,  303 => 79,  300 => 78,  292 => 77,  289 => 76,  285 => 75,  282 => 74,  262 => 70,  258 => 69,  255 => 68,  247 => 67,  244 => 66,  240 => 65,  230 => 57,  228 => 56,  223 => 53,  217 => 52,  214 => 51,  206 => 49,  198 => 47,  195 => 46,  192 => 45,  188 => 44,  185 => 43,  182 => 42,  176 => 41,  160 => 39,  144 => 37,  142 => 36,  136 => 35,  133 => 34,  127 => 33,  124 => 32,  116 => 30,  108 => 28,  105 => 27,  102 => 26,  97 => 25,  95 => 24,  82 => 13,  74 => 11,  72 => 10,  68 => 8,  53 => 6,  49 => 5,  42 => 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("", "ucp_header.html", "");
    }
}
