<!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, maximum-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/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>
      <link rel="stylesheet" href="<?php echo $wo['config']['theme_url'];?>/stylesheet/jquery.ui.css">
      <script src="<?php echo $wo['config']['theme_url'];?>/javascript/jquery.ui.js"></script>
      <script type="text/javascript">
         function Wo_Ajax_Requests_File(){
            return "<?php echo $wo['config']['site_url'].'/requests.php';?>"
         }
         var websiteUrl = "<?php echo $wo['config']['site_url'];?>";
      </script>
      <?php if ($wo['page'] == 'admin') {?>
      <link href="<?php echo $wo['config']['theme_url'];?>/stylesheet/bootstrap-toggle.min.css" rel="stylesheet">
      <link href="<?php echo $wo['config']['theme_url'];?>/stylesheet/bootstrap-colorpicker.min.css" rel="stylesheet">
      <?php } ?>
      <?php echo (!empty($wo['config']['googleAnalytics'])) ? $wo['config']['googleAnalytics'] : ''; ?>
      <style>
         .navbar-default {
         background-color: <?php echo $wo['config']['header_background'];?> !important;
         border-bottom: 2px solid <?php echo $wo['config']['header_hover_border'];?> !important;
         border: none;
         }
         .navbar-default .navbar-nav>.open>a,
         .navbar-default .navbar-nav>.open>a:focus,
         .navbar-default .navbar-nav>.open>a:hover {
         color: <?php echo $wo['config']['header_color'];?> !important;
         background-color: <?php echo $wo['config']['header_hover_border'];?> !important;
         }
         .navbar-default .navbar-nav>.active>a,
         .navbar-default .navbar-nav>.active>a:focus,
         .navbar-default .navbar-nav>.active>a:hover {
         color: <?php echo $wo['config']['header_color'];?> !important;
         background-color: <?php echo $wo['config']['header_hover_border'];?> !important;
         }
         body {
         background-color: <?php echo $wo['config']['body_background'];?> !important;
         }
         .navbar-default .navbar-nav>li>a {
         color: <?php echo $wo['config']['header_color'];?> !important;
         }
         .btn-main {
         color: <?php echo $wo['config']['btn_color'];?>;
         background-color: <?php echo $wo['config']['btn_background_color'];?>;
         border-color: <?php echo $wo['config']['btn_background_color'];?>;
         }
         .btn-main:hover {
         color: <?php echo $wo['config']['btn_hover_color'];?>;
         background-color: <?php echo $wo['config']['btn_hover_background_color'];?>;
         border-color: <?php echo $wo['config']['btn_hover_background_color'];?>;
         }
         .admin-panel .col-md-9 .list-group-item:first-child, 
         .setting-panel .col-md-8 .list-group-item:first-child, 
         .profile-lists .list-group-item:first-child, 
         .col-md-8 .list-group-item:first-child,
         .col-sm-4 .list-group-item:first-child,
         .red-list .list-group-item:first-child {
         color: <?php echo $wo['config']['setting_header_color'];?>;
         background-color: <?php echo $wo['config']['setting_header_background'];?>;
         }
         .admin-panel .col-md-9 .list-group-item:first-child a, 
         .setting-panel .col-md-8 .list-group-item:first-child a, 
         .profile-lists .list-group-item:first-child a, 
         .col-md-8 .list-group-item:first-child a{
         color: <?php echo $wo['config']['setting_header_color'];?> !important;
         }
         .list-group-item.black-list.active-list {
         color: <?php echo $wo['config']['setting_active_sidebar_color'];?>;
         background-color: <?php echo $wo['config']['setting_active_sidebar_background'];?>;
         }
         .list-group-item.black-list {
         background: <?php echo $wo['config']['setting_sidebar_background'];?>;
         }
         .profile-top-line {
         background-color: <?php echo $wo['config']['btn_background_color'];?>;
         }
         #bar {
         background-color: <?php echo $wo['config']['btn_background_color'];?>;
         }
         .list-group-item.black-list a{
         color: <?php echo $wo['config']['setting_sidebar_color'];?>;
         }
         .list-group-item.black-list.active-list a{
         color: <?php echo $wo['config']['setting_active_sidebar_color'];?>;
         }
         .main-color, .small-text a {
         color: <?php echo $wo['config']['btn_background_color'];?> !important;
         }
         .search-advanced-container a:hover {
         text-decoration: none;
         color: <?php echo $wo['config']['btn_color'];?>;
         background-color: <?php echo $wo['config']['btn_background_color'];?>;
         }
         .nav-tabs>li.active>a,
         .nav-tabs>li.active>a:focus,
         .nav-tabs>li.active>a:hover {
         color: <?php echo $wo['config']['btn_color'];?>;
         cursor: default;
         color: <?php echo $wo['config']['btn_background_color'];?>;
         border-bottom: 1px solid <?php echo $wo['config']['btn_background_color'];?>;
         background-color: transparent
         }
         .btn-active {
         color: <?php echo $wo['config']['btn_color'];?>;
         background: <?php echo $wo['config']['btn_background_color'];?>;
         outline: none;
         border: 1px solid <?php echo $wo['config']['btn_background_color'];?>
         }
         .btn-active:hover, .btn-active:focus {
         border: 1px solid <?php echo $wo['config']['btn_hover_background_color'];?>;
         color: <?php echo $wo['config']['btn_hover_color'];?>;
         background: <?php echo $wo['config']['btn_hover_background_color'];?>;
         }
         .btn-active-color:hover {
         background: <?php echo $wo['config']['btn_hover_background_color'];?>;
         }
         .chat-container .online-toggle {
         background: <?php echo $wo['config']['btn_background_color'];?>;
         }
         .chat-tab .online-toggle {
         background: <?php echo $wo['config']['btn_background_color'];?>;
         }
         .profile-style .user-follow-button button.btn-active,
         .btn-login,
         .btn-register {
         background: <?php echo $wo['config']['btn_background_color'];?>;
         color: <?php echo $wo['config']['btn_color'];?>;
         }
         .profile-style .user-follow-button button.btn-active:hover,
         .btn-login:hover,
         .btn-login:focus,
         .btn-register:hover,
         .btn-register:focus {
         color: <?php echo $wo['config']['btn_hover_color'];?>;
         background: <?php echo $wo['config']['btn_hover_background_color'];?>;
         }
         .panel-login button:disabled {
         background-color: #A33E40;
         }
         .panel-login>.panel-heading a.active {
             color: <?php echo $wo['config']['btn_background_color'];?>;
             font-size: 18px;
         }
         .hash {
            color: <?php echo $wo['config']['btn_background_color'];?>;
         }
      </style>
   </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'];?>
         <?php 
            $footer_ad = Wo_GetAd('footer', false);
            if($wo['page'] != 'admin' && $wo['page'] != 'welcome' && !empty($footer_ad)) {
              echo '<div class="contnet">' . $footer_ad . '</div>';
            } 
            ?>
         <footer>
            <?php echo Wo_LoadPage('footer/content');?>
         </footer>
         <div class="second-footer">
            <?php
               if ($wo['page'] == 'terms' || $wo['page'] == 'messages' || $wo['page'] == 'start_up' || $wo['page'] == '404' || $wo['page'] == 'search' || $wo['page'] == 'admin') {
                  echo Wo_LoadPage('footer/content');
               }
               ?>
         </div>
         <div class="extra">
            <?php 
               if (Wo_IsLogged() === true) {
                 if ($wo['config']['chatSystem'] == 1) {
                   echo Wo_LoadPage('chat/content');
                 }
                 echo Wo_LoadPage('modals/logged-out');
                 ?>
            <div class="pop-list">
               <ul></ul>
            </div>
            <?php 
               }
               ?>
         </div>
      </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/welcome.js"></script>
      <?php } ?>
       <?php if (Wo_IsLogged() === true) {?>
      <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/readmore.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>
      <script type="text/javascript" src="<?php echo $wo['config']['theme_url'];?>/javascript/automention.js"></script>
      <!-- End 'JS FILES' -->
      <?php if ($wo['page'] == 'home' || $wo['page'] == 'timeline' || $wo['page'] == 'group' || $wo['page'] == 'hashtag' || $wo['page'] == 'page' || $wo['page'] == 'setting' || $wo['page'] == 'page_setting') { ?>
      <script src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script> 
      <?php } ?>
      <?php if ($wo['page'] == 'admin') { ?>
      <script src="https://code.highcharts.com/highcharts.js"></script>
      <script src="https://code.highcharts.com/modules/exporting.js"></script>
      <script src="<?php echo $wo['config']['theme_url'];?>/javascript/bootstrap-toggle.min.js"></script>
      <script src="<?php echo $wo['config']['theme_url'];?>/javascript/bootstrap-colorpicker.min.js"></script>
      <?php } ?>
      <script src="https://platform.vine.co/static/scripts/embed.js"></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>