<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<div id="wph-wrap-all" class="wrap wbg-settings-page">

    <div class="settings-banner">
        <h2><i class="fa fa-book" aria-hidden="true"></i>&nbsp;<?php _e('Gallery Settings', 'wp-books-gallery'); ?></h2>
    </div>

    <?php 
    if ( $wbgShowGeneralMessage ) { 
        $this->wbg_display_notification('success', 'Your information updated successfully.'); 
    } 
    ?>

    <div class="wbg-wrap">

        <nav class="nav-tab-wrapper">
            <a href="?post_type=books&page=wbg-general-settings&tab=content" class="nav-tab wbg-tab <?php if ( $tab !== 'styles' ) { ?>wbg-tab-active<?php } ?>">
                <i class="fa fa-cog" aria-hidden="true">&nbsp;</i><?php _e('Content', 'wp-books-gallery'); ?>
            </a>
            <a href="?post_type=books&page=wbg-general-settings&tab=styles" class="nav-tab wbg-tab <?php if ( $tab === 'styles' ) { ?>wbg-tab-active<?php } ?>">
                <i class="fa fa-paint-brush" aria-hidden="true"></i>&nbsp;<?php _e('Styles', 'wp-books-gallery'); ?>
            </a>
        </nav>

        <div class="wbg_personal_wrap wbg_personal_help" style="width: 75%; float: left;">
            
            <div class="tab-content">
                <?php 
                switch ( $tab ) {
                    case 'styles':
                        include_once WBG_PATH . 'admin/view/partial/gallery-styles.php';
                        break;

                    default:
                        include_once WBG_PATH . 'admin/view/partial/gallery-content.php';
                        break;
                } 
                ?>
            </div>
        </div>

        <?php include_once('partial/admin-sidebar.php'); ?> 

    </div>

</div>