<?php

/**
 * Fired during plugin activation
 *
 * @package    Clever-fox
 */

/**
 * This class defines all code necessary to run during the plugin's activation.
 *
 */
class Cleverfox_Activator {

	public static function activate() {

        $item_details_page = get_option('item_details_page'); 
		$theme = wp_get_theme(); // gets the current theme
		if(!$item_details_page){
			if ( 'StartKit' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/startkit/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/startkit/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/startkit/default-widgets/default-widget.php';
			}
			
			if ( 'StartBiz' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/startbiz/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/startkit/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/startbiz/default-widgets/default-widget.php';
			}
			
			if ( 'Arowana' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/arowana/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/startkit/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/arowana/default-widgets/default-widget.php';
			}
			if ( 'Envira' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/envira/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/startkit/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/envira/default-widgets/default-widget.php';
			}	
			
			if ( 'Hantus' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/hantus/default-widgets/default-widget.php';
			}

			if ( 'Thai Spa' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/thai-spa/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/thai-spa/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/thai-spa/default-widgets/default-widget.php';
			}

			if ( 'Conceptly' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/default-widgets/default-widget.php';
			}	
			
			if ( 'Ameya' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/ameya/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/ameya/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/ameya/default-widgets/default-widget.php';
			}
			
			if ( 'Azwa' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/azwa/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/azwa/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/azwa/default-widgets/default-widget.php';
			}
			
			if ( 'Techine' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/techine/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/techine/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/techine/default-widgets/default-widget.php';
			}
			
			if ( 'Avril' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-widgets/default-widget.php';
			}
			
			if ( 'Aera' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/aera/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/aera/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/aera/default-widgets/default-widget.php';
			}
			
			if ( 'Avail' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/avail/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/avail/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/avail/default-widgets/default-widget.php';
			}
			
			if ( 'Axtia' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/default-widgets/default-widget.php';
			}
			
			if ( 'Avtari' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/avtari/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/avtari/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/avtari/default-widgets/default-widget.php';
			}
			
			if ( 'Aviser' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/aviser/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/aviser/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/aviser/default-widgets/default-widget.php';
			}
			
			if ( 'Avitech' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/avitech/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/avitech/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/avitech/default-widgets/default-widget.php';
			}
			
			if ( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-widgets/default-widget.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-widgets/default-post.php';
			}
			
			if ( 'MetaSoft' == $theme->name  || 'Belltech' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/metasoft/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/metasoft/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/metasoft/default-widgets/default-widget.php';
			}
			
			if ( 'Aravalli' == $theme->name  || 'Arbuda' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/default-widgets/default-widget.php';
			}
			
			if ( 'Boostify' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/default-widgets/default-widget.php';
			}
			
			if ( 'Gradiant' == $theme->name  || 'Comoxa' == $theme->name  || 'ColorPress' == $theme->name  || 'Flavita' == $theme->name  || 'Colorsy' == $theme->name){
				require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-pages/upload-media.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-pages/home-page.php';
				require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-widgets/default-widget.php';
			}
			
			update_option( 'item_details_page', 'Done' );
		}
	}

}