{*<!--

+---------------------------------------------------------------------------+
| Revive Adserver                                                           |
| http://www.revive-adserver.com                                            |
|                                                                           |
| Copyright: See the COPYRIGHT.txt file.                                    |
| License: GPLv2 or later, see the LICENSE.txt file.                        |
+---------------------------------------------------------------------------+

-->*}
{if $aLeftMenuNav|@count}
<div id="secondLevelNavigation">
  {section name=n loop=$aLeftMenuNav}
    {if $smarty.section.n.first} {*open nav list*}
        <ul class="navigation first">
    {elseif $aLeftMenuNav[n].first} {*if new group starts close list and start a new one*}
        </ul>
        <ul class="navigation">
    {/if}

    {if $aLeftMenuNav[n].selected}
      <li class="active {if $aLeftMenuNav[n].first} first{/if}{if $aLeftMenuNav[n].last} last{/if}">
    {else}
      <li class="passive {if $aLeftMenuNav[n].first} first{/if}{if $aLeftMenuNav[n].last} last{/if}{if $aLeftMenuNav[n].single} single{/if}{if !$aLeftMenuNav[n].first && $aLeftMenuNav[$smarty.section.n.index_prev].selected} after-active{/if}">
    {/if}
          <a href="{$adminBaseURL}{$aLeftMenuNav[n].filename|escape}">
            {$aLeftMenuNav[n].title|escape}
            <span class="top"></span>
            <span class="bottom"></span>
          </a>

          {if $aLeftMenuNav[n].selected && $aLeftMenuSubNav|@count}
          <ul class="navigation">
            {section name=sub loop=$aLeftMenuSubNav}
              {if $aLeftMenuSubNav[sub].selected}
              <li class="active {if $smarty.section.sub.first} first{/if}{if $smarty.section.sub.last} last {/if}">
              {else}
              <li class="passive {if $smarty.section.sub.first} first{else}{if $smarty.section.sub.last} last {/if}{/if}{if $aLeftMenuSubNav[$smarty.section.sub.index_prev].selected} after-active{/if}">
              {/if}
                <a href="{$adminBaseURL}{$aLeftMenuSubNav[sub].filename|escape}">
                  {$aLeftMenuSubNav[sub].title|escape}
                  <span class="top"></span>
                  <span class="bottom"></span>
                </a>
              </li>
            {/section}
          </ul>
          {/if}

      </li>
    {if $smarty.section.n.last} {*close nav list*}
    </ul>
    {/if}
  {/section}

{if isset($aNotificationQueue)}
  <div class="notificationPlaceholder">
    <div class="message">
    {foreach from=$aNotificationQueue item=notification}
      <div class="panel {$notification.type}">
        <div class='icon'></div>
        <p>
          {$notification.text}
        </p>
        <div class='topleft'></div><div class='topright'></div><div class='bottomleft'></div><div class='bottomright'></div>
      </div>
    {/foreach}
    </div>
  </div>
{/if}


</div>
{/if}

