kt_themename(); switch($theme) { case 'Virtue - Premium' : $theme_data = array( 'slug' => 'vp', 'plugins' => array( '0' => 'pagebuilder', '1' => 'woocommerce', '3' => 'kadenceslider', ), 'demostyles' => array( 'http://themes.kadencethemes.com/virtue-premium/' => __('Site Style 01', 'kadence-importer'), 'http://themes.kadencethemes.com/virtue-premium-2/' => __('Site Style 02', 'kadence-importer'), 'http://themes.kadencethemes.com/virtue-premium-3/' => __('Site Style 03', 'kadence-importer'), 'http://themes.kadencethemes.com/virtue-premium-4/' => __('Site Style 04', 'kadence-importer'), ), 'demooptions' => array( 'style01' => __('Site Style 01', 'kadence-importer'), 'style02' => __('Site Style 02', 'kadence-importer'), 'style03' => __('Site Style 03', 'kadence-importer'), 'style04' => __('Site Style 04', 'kadence-importer'), ), ); break; case 'Pinnacle Premium' : $theme_data = array( 'slug' => 'pp', 'plugins' => array( '0' => 'pagebuilder', '1' => 'visualeditor', '2' => 'woocommerce', '4' => 'kadenceslider', ), 'demostyles' => array( 'http://themes.kadencethemes.com/pinnacle-premium/' => __('Site Style 01', 'kadence-importer'), 'http://themes.kadencethemes.com/pinnacle-premium-2/' => __('Site Style 02', 'kadence-importer'), 'http://themes.kadencethemes.com/pinnacle-premium-3/' => __('Site Style 03', 'kadence-importer'), ), 'demooptions' => array( 'style01' => __('Site Style 01', 'kadence-importer'), 'style02' => __('Site Style 02', 'kadence-importer'), 'style03' => __('Site Style 03', 'kadence-importer'), ), ); break; case 'Virtue' : $theme_data = array( 'slug' => 'v', 'plugins' => array( '0' => 'virtuetoolkit', '1' => 'woocommerce', ), 'demostyles' => array( 'http://themes.kadencethemes.com/virtue/' => __('Site Style 01', 'kadence-importer'), 'http://themes.kadencethemes.com/virtue2/' => __('Site Style 02', 'kadence-importer'), ), 'demooptions' => array( 'style01' => __('Site Style 01', 'kadence-importer'), 'style02' => __('Site Style 02', 'kadence-importer'), ), ); break; case 'Pinnacle' : $theme_data = array( 'slug' => 'p', 'plugins' => array( '0' => 'virtuetoolkit', '1' => 'woocommerce', ), 'demostyles' => array( 'http://themes.kadencethemes.com/pinnacle/' => __('Site Style 01', 'kadence-importer'), ), 'demooptions' => array( 'style01' => __('Site Style 01', 'kadence-importer'), ), ); break; case 'Virtue Premium - Bold' : $theme_data = array( 'slug' => 'vpb', 'plugins' => array( '0' => 'pagebuilder', '1' => 'woocommerce', '3' => 'kadenceslider', ), 'demostyles' => array( 'http://themes.kadencethemes.com/virtue-bold/' => __('Demo Site', 'kadence-importer'), ), 'demooptions' => array( 'style01' => __('Demo Site', 'kadence-importer'), ), ); break; default: $theme_data = 'none'; echo __('No Kadence Theme activated. If you are using a child theme please activate the Parent Theme to import demo content.', 'kadence-importer'); } if($theme_data != 'none') { foreach ($theme_data['plugins'] as $key => $pluginname) { if($pluginname == 'pagebuilder') { if($this->kt_check_pagebuilder()) { echo '

'.__('Page Builder Activated', 'kadence-importer').'

'; } else { echo '

'.__('Page Builder Inactive.', 'kadence-importer').'
'.__('If you would like to install demo content with page builder elements please activate page builder', 'kadence-importer').'

'; } } if($pluginname == 'visualeditor') { if($this->kt_check_visualeditor()) { echo '

'.__('Black Studio TinyMCE Widget Activated', 'kadence-importer').'

'; } else { echo '

'.__('Black Studio TinyMCE Widget Inactive.', 'kadence-importer').'
'.__('If you would like to install demo content with page builder elements please activate Black Studio TinyMCE Widget', 'kadence-importer').'

'; } } if($pluginname == 'woocommerce') { if($this->kt_check_woocommerce()) { echo '

'.__('Woocommerce Activated', 'kadence-importer').'

'; } else { echo '

'.__('Woocommerce Inactive.', 'kadence-importer').'
'.__('If you would like to install the shop demo please activate woocommerce', 'kadence-importer').'

'; } } if($pluginname == 'kadenceslider') { if($this->kt_check_kadenceslider()) { echo '

'.__('Kadence Slider Activated', 'kadence-importer').'

'; } else { echo '

'.__('Kadence Slider Inactive.', 'kadence-importer').'
'.__('If you would like to install the demo sliders activate the Kadence Slider.', 'kadence-importer').'

'; } } if($pluginname == 'virtuetoolkit') { if($this->kt_check_virtuetoolkit()) { echo '

'.__('Virtue/Pinnacle Toolkit Activated', 'kadence-importer').'

'; } else { echo '

'.__('Virtue/Pinnacle Toolkit Inactive. If you would like to install demo content with portfolio options please activate the toolkit.', 'kadence-importer').'

'; } } } $php_max_time = ini_get('max_execution_time'); if(isset($php_max_time) && $php_max_time < 120) { echo '

Your servers php max time is: '.$php_max_time.'.
We suggest increasing that to at least 300 to import demo content else you will likely need to click the import button more then once

'; } ?>

.