<?php
    define( 'MYTHEMES_DEV_LOGO', get_template_directory_uri() .'/media/admin/images/mythemes-logo.png' );
    define( 'MYTHEMES_DEV_ICON', get_template_directory_uri() .'/media/admin/images/icon.png' );
    define( 'MYTHEMES_SHORT_PATH' , true ); /* USED FOR DEBUG */
    
    $mainDir = get_template_directory() . '/fw';
	
    include $mainDir . '/deb.class.php';
    include $mainDir . '/tools.class.php';
    
    /* READ OPTIONS | META */
    include $mainDir . '/sett.class.php';
    include $mainDir . '/meta.class.php';

    include $mainDir . '/cfg.php';
    include $mainDir . '/mythemes.class.php';
    
    include $mainDir . '/layout.class.php';
		
    include $mainDir . '/libs.php';
	
    /* CUSTOM POSTS */
    include get_template_directory() . '/cfg/admin/resources/boxes.php';
    
    /* SET DEFAULT VALUES FOR SETTINGS FROM PAGES */
    include get_template_directory() . '/cfg/admin/default.php';
    
    /* LOAD THEME ADMIN DATA */
    if( is_admin() ){
        include $mainDir . '/admin/ahtml.class.php';
        
        /* REGISTER PAGES */
        include get_template_directory() . '/cfg/admin/pages.php'; 
        include $mainDir . '/admin/main.php';
    }
    
    /* load plugins */
    include $mainDir . '/plg.php';
	
    /* INIT ACTIONS, SHORTCODES, AJAX */
    myThemes::init_actions();
    myThemes::init_filters();
    
    /* REGISTER ( MENUS | SIDEBARS ) */
    myThemes::reg_menus();
    myThemes::reg_sidebars();
?>