<!DOCTYPE html>
<html>
   <head>
      <title><?php echo $wo['title'];?></title>
      <meta charset="UTF-8">
      <meta name="title" content="<?php echo $wo['title'];?>">
      <meta name="description" content="<?php echo $wo['description'];?>">
      <meta name="keywords" content="<?php echo $wo['keywords'];?>">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <?php if ($wo['page'] == 'admin') { ?>
      <meta name="robots" content="noindex">
      <meta name="googlebot" content="noindex">
      <?php } ?>
      <link rel="shortcut icon" type="image/png" href="<?php echo $wo['config']['theme_url'];?>/img/icon.png"/>
      <link rel="stylesheet" href="<?php echo $wo['config']['theme_url'];?>/stylesheet/bootstrap.min.css">
      <?php if($wo['language_type'] == 'rtl' && $wo['page'] != 'welcome') { ?>
      <link rel="stylesheet" href="<?php echo $wo['config']['theme_url'];?>/stylesheet/bootsrap-rtl.min.css">
      <link rel="stylesheet" href="<?php echo $wo['config']['theme_url'];?>/stylesheet/style_rtl.css">
      <?php } else { ?>
      <link rel="stylesheet" href="<?php echo $wo['config']['theme_url'];?>/stylesheet/style_ltr.css">
      <?php } ?>
      <link rel="stylesheet" href="<?php echo $wo['config']['theme_url'];?>/stylesheet/main.css">
      <link rel="stylesheet" href="<?php echo $wo['config']['theme_url'];?>/stylesheet/font-awesome-4.5.0/css/font-awesome.min.css">
      <link rel="stylesheet" href="<?php echo $wo['config']['theme_url'];?>/stylesheet/twemoji-awesome.css">
      <?php if ($wo['page'] == 'welcome' ) { ?>
      <link rel="stylesheet" href="<?php echo $wo['config']['theme_url'];?>/stylesheet/welcome.css">
      <?php } else { ?>
      <link rel="stylesheet" href="<?php echo $wo['config']['theme_url'];?>/stylesheet/style.css">
      <?php } ?>
      <link rel="stylesheet" href="<?php echo $wo['config']['theme_url'];?>/stylesheet/bootsrap-social.css">
      <script src="<?php echo $wo['config']['theme_url'];?>/javascript/jquery-1.11.3.js"></script>
      <?php echo (!empty($wo['config']['googleAnalytics'])) ? Wo_Decode($wo['config']['googleAnalytics']) : ''; ?>
   </head>
   <body>
      <header class="header-container">
         <?php echo ($wo['page'] != 'welcome') ? Wo_LoadPage( 'header/content') : ''; ?>
      </header>
      <div class="content-container container">
         <div class="ad-placement-header-footer">
            <?php 
            $header_ad = Wo_GetAd('header', false);
            if($wo['page'] != 'admin' && $wo['page'] != 'welcome' && !empty($header_ad)) {
              echo '<div class="contnet">' . $header_ad . '</div>';
            } 
            ?>
         </div>
         <?php echo $wo['content'];?>
         <footer>
            <?php 
            echo Wo_LoadPage('footer/content');
            if (Wo_IsLogged() === true) {
              if ($wo['config']['chatSystem'] == 1) {
                echo Wo_LoadPage('chat/content');
              }
              echo Wo_LoadPage('modals/logged-out');     
            }
            ?>
         </footer>
      </div>
      <!-- JS FILES -->
      <?php if (Wo_IsLogged() === false) { ?>
      <?php if ($wo['config']['reCaptcha'] == 1) { ?>
      <script type="text/javascript" src='https://www.google.com/recaptcha/api.js'></script>
      <?php } ?>
      <script type="text/javascript" src="<?php echo $wo['config']['theme_url'];?>/javascript/typed.js"></script>
      <script type="text/javascript" src="<?php echo $wo['config']['theme_url'];?>/javascript/welcome.js"></script>
      <?php } else { ?>
      <script type="text/javascript" src="<?php echo $wo['config']['theme_url'];?>/javascript/script.js"></script>
      <script type="text/javascript" src="<?php echo $wo['config']['theme_url'];?>/javascript/jquery.limit-1.2.source.js"></script>
      <?php } ?>
      <script type="text/javascript" src="<?php echo $wo['config']['theme_url'];?>/javascript/bootstrap.min.js"></script>
      <script type="text/javascript" src="<?php echo $wo['config']['theme_url'];?>/javascript/jquery.form.min.js"></script> 
      <script type="text/javascript" src="<?php echo $wo['config']['theme_url'];?>/javascript/init.js"></script>
      <!-- End 'JS FILES' -->
      <?php if ($wo['page'] == 'home' || $wo['page'] == 'timeline' || $wo['page'] == 'hashtag' || $wo['page'] == 'page') { ?>
      <script src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script> 
      <?php } ?>
      <script src="https://platform.vine.co/static/scripts/embed.js"></script>
      <script type="text/javascript">
         function Wo_Ajax_Requests_File(){
            return "<?php echo $wo['config']['site_url'].'/requests.php';?>"
         }
      </script>
      <?php echo Wo_LoadPage('timeago/content'); ?>
      <!-- Audio FILES -->
      <audio id="notification-sound" preload="auto">
         <source src="<?php echo $wo['config']['theme_url']; ?>/mp3/New-notification.ogg" type="audio/ogg">
         <source src="<?php echo $wo['config']['theme_url']; ?>/mp3/New-notification.mp3" type="audio/mpeg">
         <source src="<?php echo $wo['config']['theme_url']; ?>/mp3/New-notification.wav" type="audio/wav">
      </audio>
      <audio id="message-sound" preload="auto">
         <source src="<?php echo $wo['config']['theme_url']; ?>/mp3/New-message.ogg" type="audio/ogg">
         <source src="<?php echo $wo['config']['theme_url']; ?>/mp3/New-message.mp3" type="audio/mpeg">
         <source src="<?php echo $wo['config']['theme_url']; ?>/mp3/New-message.wav" type="audio/wav">
      </audio>
      <!-- End 'Audio FILES' -->
   </body>
</html>