<div class="envoo-admin">
    <ul class="envoo-admin-menu">
        <li><a id="anpslogo" href="https://anpsthemes.com" target="_blank"></a>
            <h2 class="small_lh"><?php _e( 'Theme Options', 'accounting' ); ?><br /><span
                    id="version"><?php echo esc_attr( 'version: ' ) . ANPS_THEME_VERSION; ?></span></h2>
        </li>
        <li>
            <a <?php
            if ( ! isset( $_GET['sub_page'] ) || $_GET['sub_page'] == 'theme_style' ) {
                echo 'id="selected-menu-subitem"';}
            ?> href="themes.php?page=theme_options&sub_page=theme_style"><i
                    class="fas fa-tint"></i><?php _e( 'Theme Style', 'accounting' ); ?></a>
        </li>
        <li>
            <a <?php
            if ( isset( $_GET['sub_page'] ) && $_GET['sub_page'] == 'theme_style_google_font' ) {
                echo 'id="selected-menu-subitem"';}
            ?> href="themes.php?page=theme_options&sub_page=theme_style_google_font"><i
                    class="fa fa-google"></i><?php _e( 'Update google fonts', 'accounting' ); ?></a>
        </li>
        <li>
            <a <?php
            if ( isset( $_GET['sub_page'] ) && $_GET['sub_page'] == 'theme_style_custom_font' ) {
                echo 'id="selected-menu-subitem"';}
            ?> href="themes.php?page=theme_options&sub_page=theme_style_custom_font"><i
                    class="fas fa-text-height"></i><?php _e( 'Custom fonts', 'accounting' ); ?></a>
        </li>
        <li>
            <a <?php
            if ( isset( $_GET['sub_page'] ) && $_GET['sub_page'] == 'theme_style_custom_css' ) {
                echo 'id="selected-menu-subitem"';}
            ?> href="themes.php?page=theme_options&sub_page=theme_style_custom_css"><i
                    class="fas fa-code"></i><?php _e( 'Custom css', 'accounting' ); ?></a>
        </li>
        <li>
            <a <?php
            if ( isset( $_GET['sub_page'] ) && $_GET['sub_page'] == 'options' ) {
                echo 'id="selected-menu-subitem"';}
            ?> href="themes.php?page=theme_options&sub_page=options"><i
                    class="fa fa-columns"></i><?php _e( 'Page layout', 'accounting' ); ?></a>
        </li>
        <li>
            <a <?php
            if ( isset( $_GET['sub_page'] ) && $_GET['sub_page'] == 'options_page_setup' ) {
                echo 'id="selected-menu-subitem"';}
            ?> href="themes.php?page=theme_options&sub_page=options_page_setup"><i
                    class="fas fa-cog"></i><?php _e( 'Page setup', 'accounting' ); ?></a>
        </li>
        <li>
            <a <?php
            if ( isset( $_GET['sub_page'] ) && $_GET['sub_page'] == 'google_maps' ) {
                echo 'id="selected-menu-subitem"';}
            ?> href="themes.php?page=theme_options&sub_page=google_maps"><i
                    class="fa fa-map"></i><?php _e( 'Google Maps', 'accounting' ); ?></a>
        </li>
        <li>
            <a <?php
            if ( isset( $_GET['sub_page'] ) && $_GET['sub_page'] == 'options_media' ) {
                echo 'id="selected-menu-subitem"';}
            ?> href="themes.php?page=theme_options&sub_page=options_media"><i
                    class="fas fa-image"></i><?php _e( 'Logos & Media', 'accounting' ); ?></a>
        </li>
        <li>
            <a <?php
            if ( isset( $_GET['sub_page'] ) && $_GET['sub_page'] == 'dummy_content' ) {
                    echo 'id="selected-menu-item"';}
            ?> href="themes.php?page=theme_options&sub_page=dummy_content"><i
                    class="fa fa-dropbox"></i><?php _e( 'Dummy Content', 'accounting' ); ?></a>
        </li>
        <li>
            <a <?php
            if ( isset( $_GET['sub_page'] ) && $_GET['sub_page'] == 'theme_upgrade' ) {
                    echo 'id="selected-menu-item"';}
            ?> href="themes.php?page=theme_options&sub_page=theme_upgrade"><i
                    class="fas fa-cloud-download-alt"></i><?php _e( 'Theme upgrade', 'accounting' ); ?></a>
        </li>
        <li>
            <a <?php
            if ( isset( $_GET['sub_page'] ) && $_GET['sub_page'] == 'import_export_widgets' ) {
                    echo 'id="selected-menu-item"';}
            ?> href="themes.php?page=theme_options&sub_page=import_export_widgets"><i
                    class="fas fa-file-code"></i><?php _e( 'Import/export widgets', 'accounting' ); ?></a>
        </li>
        <li>
            <a <?php
            if ( isset( $_GET['sub_page'] ) && $_GET['sub_page'] == 'system_req' ) {
                    echo 'id="selected-menu-item"';}
            ?> href="themes.php?page=theme_options&sub_page=system_req"><i
                    class="fas fa-cogs"></i><?php _e( 'System requirements', 'accounting' ); ?></a>
        </li>
    </ul>
    <?php
    if ( ! isset( $_GET['sub_page'] ) ) {
        $_GET['sub_page'] = '';
    }
    ?>
    <div class="envoo-admin-content <?php echo esc_attr( $_GET['sub_page'] ); ?>">
        <?php
        switch ( $_GET['sub_page'] ) {
            case 'options':
                include_once 'options_page_view.php';
                break;
            case 'options_page':
                include_once 'options_page_view.php';
                break;
            case 'options_page_setup':
                include_once 'options_page_setup_view.php';
                break;
            case 'options_media':
                include_once 'options_media_view.php';
                break;
            case 'google_maps':
                include_once 'google_maps_view.php';
                break;
            case 'dummy_content':
                include_once 'dummy_view.php';
                break;
            case 'theme_upgrade':
                include_once 'theme_upgrade_view.php';
                break;
            case 'theme_style_google_font':
                include_once 'update_google_font_view.php';
                break;
            case 'theme_style_custom_font':
                include_once 'update_custom_font_view.php';
                break;
            case 'theme_style_custom_css':
                include_once 'custom_css_view.php';
                break;
            case 'import_export_widgets':
                include_once 'import_export_widgets_view.php';
                break;
            case 'system_req':
                include_once 'system_req_view.php';
                break;
            default:
                include_once 'style_view.php';
        }
        ?>
    </div>
</div>
