action == 'add' || $screen->base == 'plugins' || $screen->base == 'widgets') $display = false; //If notice hasn't been explicitly dismissed, display it if($display && current_user_can('manage_options')){ $core_path = defined('CPO_CORELITE_URL') ? CPO_CORELITE_URL : get_template_directory_uri().'/core/'; echo '
'; echo '
'; echo ''; echo ''.__('Upgrade', 'cpocore').''; echo '

'.sprintf(__('Upgrade To A Premium Theme', 'cpocore'), CPOTHEME_NAME).'

'; echo '

'.__('Control the layout of any page, change typography and colors, get premium support, and much more.', 'cpocore').'

'; echo '
'; echo '
'; echo '
'; } } }*/ //Display welcome wizard-- it should help new users get going if(!function_exists('cpotheme_admin_wizard')){ add_action('admin_notices', 'cpotheme_admin_wizard'); function cpotheme_admin_wizard(){ $screen = get_current_screen(); $wizard_dismissed = trim(cpotheme_get_option(CPOTHEME_ID.'_wizard', 'cpotheme_settings', false)); //Display only on the dashboard and custom post listings $display = true; if(isset($_GET['action']) && $_GET['action'] == 'edit' || $screen->action == 'add' || $screen->base == 'plugins' || $screen->base == 'widgets') $display = false; //If notice hasn't been explicitly dismissed, display it if(current_user_can('manage_options') && $wizard_dismissed != 'dismissed' && $display){ $core_path = defined('CPO_CORE_URL') ? CPO_CORE_URL : get_template_directory_uri().'/core/'; echo '
'; echo '
'; echo ''.__('Dismiss This Notice', 'cpocore').''; echo ''; echo '

'.sprintf(__('%s Is Now Ready', 'cpocore'), CPOTHEME_NAME).'

'; echo '

'.__('Your new theme has been activated! To get started, check the following list:', 'cpocore').'

'; echo '
'; //RECOMMENDED PLUGINS echo '
'; echo '

1. '.__('Install Recommended Plugins', 'cpocore').'

'; echo __('This theme works well with a number of free plugins to unlock its full potential. It is highly recommended that you install them.', 'cpocore'); //CPO Content Types $plugin_url = add_query_arg(array('tab' => 'plugin-information', 'plugin' => 'cpo-content-types', 'TB_iframe' => 'true', 'width' => '640', 'height' => '500'), admin_url('plugin-install.php')); echo ' '.__('Install CPO Content Types', 'cpocore').''; //CPO Shortcodes $plugin_url = add_query_arg(array('tab' => 'plugin-information', 'plugin' => 'cpo-shortcodes', 'TB_iframe' => 'true', 'width' => '640', 'height' => '500'), admin_url('plugin-install.php')); echo ' '.__('Install CPO Shortcodes', 'cpocore').''; //CPO Widgets $plugin_url = add_query_arg(array('tab' => 'plugin-information', 'plugin' => 'cpo-widgets', 'TB_iframe' => 'true', 'width' => '640', 'height' => '500'), admin_url('plugin-install.php')); echo ' '.__('Install CPO Widgets', 'cpocore').''; echo '
'; //CONTENT TYPES echo '
'; echo '

2. '.__('Add Custom Content Types', 'cpocore').'

'; echo __('This theme supports a number of special content types. Populate the following and your site will start taking shape on its own.', 'cpocore'); //Posts and Pages - In case there are no custom post types if(!defined('CPOTHEME_USE_SLIDES') && !defined('CPOTHEME_USE_FEATURES') && !defined('CPOTHEME_USE_PORTFOLIO')) echo ' '.__('Start creating posts', 'cpocore').''; //Homepage Slides if(defined('CPOTHEME_USE_SLIDES') && CPOTHEME_USE_SLIDES == true) echo ' '.__('Add slides to the homepage', 'cpocore').''; //Homepage features if(defined('CPOTHEME_USE_FEATURES') && CPOTHEME_USE_FEATURES == true) echo ' '.__('Add feature blocks to the homepage', 'cpocore').''; //Portfolio if(defined('CPOTHEME_USE_PORTFOLIO') && CPOTHEME_USE_PORTFOLIO == true) echo ' '.__('Create your portfolio items', 'cpocore').''; echo '
'; //LISTING PAGES /*echo '
'; echo '

2. '.__('Create Special Listing Pages', 'cpocore').'

'; echo __('Add specific pages such as the main portfolio listing, or the blog. Simply create a new page and use the corresponding template.', 'cpocore'); echo ' '.__('Create a page with the Blog template', 'cpocore').''; //Portfolio listing if(defined('CPOTHEME_USE_PORTFOLIO') && CPOTHEME_USE_PORTFOLIO == true) echo ' '.__('Create a page with the Portfolio template', 'cpocore').''; echo '
';*/ //THEME OPTIONS echo '
'; echo '

3. '.__('Configure The Theme', 'cpocore').'

'; echo __('Add the finishing touch. Customize your theme using the theme options page, add your menus, and create your sidebar widgets.', 'cpocore'); echo ' '.__('Configure the theme options page', 'cpocore').''; echo ' '.__('Set up the main navigation menu', 'cpocore').''; echo ' '.__('Add some widgets to your sidebar', 'cpocore').''; echo '
'; echo '
'; echo '
'; echo '
'; } } } //Notice display and dismissal if(!function_exists('cpotheme_admin_notice_control')){ add_action('admin_init', 'cpotheme_admin_notice_control'); function cpotheme_admin_notice_control(){ //Display a notice if(isset($_GET['ctdisplay']) && $_GET['ctdisplay'] != ''){ cpotheme_update_option(htmlentities($_GET['ctdisplay']), 'display'); header('Location: '.remove_query_arg('ctdisplay')); } //Dismiss a notice if(isset($_GET['ctdismiss']) && $_GET['ctdismiss'] != ''){ cpotheme_update_option(htmlentities($_GET['ctdismiss']), 'dismissed'); header('Location: '.remove_query_arg('ctdismiss')); } } }