<!DOCTYPE html>
<html lang="{$META['lang']}" dir="{$META['dir']}">

  <head>

    <meta charset="{$META['charset']}">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="x-header-csrf" content="{$CSRF_TOKEN}">
    <base href="{$META['basehref']}">

    <link rel="stylesheet" href="{$META['basehref']}{$META['themefolder']}assets/css/normalize.css" type="text/css">
    <link rel="stylesheet" href="{$META['basehref']}{$META['themefolder']}assets/css/animate.css" type="text/css">
    <link rel="stylesheet" href="{$META['basehref']}{$META['themefolder']}assets/css/bootstrap.css" type="text/css">
    <link rel="stylesheet" href="{$META['basehref']}{$META['themefolder']}assets/css/font-awesome/font-awesome.css" type="text/css">
    <link rel="stylesheet" href="{$META['basehref']}{$META['themefolder']}assets/css/theme.css" type="text/css">
    <link rel="stylesheet" href="{$META['basehref']}{$META['themefolder']}assets/css/mobile.css" type="text/css">
    <link rel="stylesheet" href="{$META['basehref']}{$META['themefolder']}assets/css/plugins.css" type="text/css">
    
    <title>{$META['title']}</title>

    {$MODULES | noescape}
    {$STRUCTURED_DATA | noescape}
    
    <link rel="icon" href="{$META['basehref']}{$META['themefolder']}assets/images/favicon.ico">

  </head>

  <body>
  
    {* == SMALL SCREENS == *}
    
    <div class="toppagebar hidden-sm hidden-md hidden-lg push">
      <a href="{$META['basehref']}" title="{$SETTINGS['website']}">{$SETTINGS['website']}</a>
    </div>

    <div class="navbar push">
      <div class="navbar-inner">
        <div class="container">
          <div class="row">
            <div class="col-lg-7 col-md-6 col-sm-6 col-xs-5 leftblock">
              <i class="fa fa-bars fa-fw menu-btn"></i><span class="hidden-xs hidden-sm"> <a href="{$META['basehref']}" title="{$SETTINGS['website']}">{$SETTINGS['website']}</a></span>
            </div>
            <div class="col-lg-5 col-md-6 col-sm-6 col-xs-7 links">
              {switch $IS_LOGGED_IN}
                {case yes}
                  <a href="{$META['basehref']}?p=home"><i class="fa fa-user fa-fw"></i> {$TEXT[0]}</a>
                  <a href="{$META['basehref']}?p=logout"><i class="fa fa-unlock fa-fw"></i> {$TEXT[1]}</a>
                {case no}
                  {if $SETTINGS['createaff'] == 'yes'}
                    <a href="{$META['basehref']}?p=create"><i class="fa fa-pencil fa-fw"></i> {$TEXT[2]}</a>
                  {else}
                    <a href="{$META['basehref']}"><i class="fa fa-lock fa-fw"></i> {$TEXT[3]}</a>
                  {/if}
              {/switch}
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="container mainmswarea push" id="container">