<?php 
if (Wo_IsAdmin($wo['user']['user_id']) === false) {
    header("Location: " . Wo_SeoLink('index.php?tab1=home'));
    exit();
}
?>
<div class="page-margin">
   <div class="row">
      <div class="col-lg-12">
         <ul class="nav nav-tabs admin-tabs">
            <li class="active">
               <a href="#general-setting" data-toggle="tab">
               <i class="fa fa-cogs"></i>
               <span class="setting-tab-text"><?php echo $wo['lang']['general_setting'];?></span>
               </a>
            </li>
            <li>
               <a href="#api-setting" data-toggle="tab">
               <i class="fa fa-cog"></i> 
               <span class="setting-tab-text"><?php echo $wo['lang']['social_login'];?></span>
               </a>
            </li>
            <li>
               <a href="#manage-setting" data-toggle="tab">
               <i class="fa fa-users"></i> 
               <span class="setting-tab-text"><?php echo $wo['lang']['manage_users'];?></span>
               </a>
            </li>
            <li>
               <a href="#manage-pages" data-toggle="tab">
               <i class="fa fa-flag"></i> 
               <span class="setting-tab-text"><?php echo $wo['lang']['manage_pages'];?></span>
               </a>
            </li>
            <li>
               <a href="#manage-posts" data-toggle="tab">
               <i class="fa fa-pencil"></i>
               <span class="setting-tab-text"><?php echo $wo['lang']['manage_posts'];?></span>
               </a>
            </li>
            <li>
               <a href="#manage-reports" data-toggle="tab" id="manage-reports-tab">
               <?php $reports = Wo_CountUnseenReports(); ?>
               <span class="new-update-alert <?php echo ($reports == 0) ? ' hidden': '';?>" style="margin-top:-7px;right:0px;">
               <?php echo $reports;?>
               </span>
               <i class="fa fa-exclamation-triangle"></i> 
               <span class="setting-tab-text"><?php echo $wo['lang']['manage_reports'];?></span>
               </a>
            </li>
            <li>
               <a href="#more-setting" data-toggle="tab">
               <i class="fa fa-tasks"></i> 
               <span class="setting-tab-text"><?php echo $wo['lang']['more'];?></span>
               </a>
            </li>
         </ul>
         <div class="tab-content" id="tabs">
            <div class="tab-pane active" id="general-setting">
               <?php echo Wo_LoadPage('admin/general/content');?>
            </div>
            <div class="tab-pane" id="api-setting">
               <?php echo Wo_LoadPage('admin/api/content');?>
            </div>
            <div class="tab-pane" id="manage-setting">
               <?php echo Wo_LoadPage('admin/manage_users/content');?>
            </div>
            <div class="tab-pane" id="manage-posts">
               <?php echo Wo_LoadPage('admin/manage_posts/content');?>
            </div>
            <div class="tab-pane" id="manage-reports">
               <?php echo Wo_LoadPage('admin/manage_reports/content');?>
            </div>
            <div class="tab-pane" id="manage-pages">
               <?php echo Wo_LoadPage('admin/manage_pages/content');?>
            </div>
            <div class="tab-pane" id="more-setting">
               <?php echo Wo_LoadPage('admin/more/content');?>
            </div>
         </div>
      </div>
   </div>
</div>