ID, array(60,60)); break; //Portfolio case 'cpo-portfolio-cats': echo get_the_term_list($post->ID, 'cpo_portfolio_category', '', ', ', ''); break; case 'cpo-portfolio-tags': echo get_the_term_list($post->ID, 'cpo_portfolio_tag', '', ', ', ''); break; //Services case 'cpo-service-cats': echo get_the_term_list($post->ID, 'cpo_service_category', '', ', ', ''); break; case 'cpo-service-tags': echo get_the_term_list($post->ID, 'cpo_service_tag', '', ', ', ''); break; //Team case 'cpo-team-cats': echo get_the_term_list($post->ID, 'cpo_team_category', '', ', ', ''); break; //Products case 'cpo-product-cats': echo get_the_term_list($post->ID, 'cpo_product_category', '', ', ', ''); break; case 'cpo-product-tags': echo get_the_term_list($post->ID, 'cpo_product_tag', '', ', ', ''); break; default:break; } } } //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_CORELITE_URL') ? CPO_CORELITE_URL : get_template_directory_uri().'/core/'; echo '
'; echo '
'; echo ''.__('Dismiss This Notice', 'cpocore').''; echo ''; echo '

'.sprintf(__('%s Is 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 special content types. Populate the following and your site will start taking shape.', 'cpocore'); echo ' '; $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 sprintf(__('You will need the %s plugin.', 'cpocore'), 'CPO Content Types'); //Posts and Pages - In case there are no custom post types if(!defined('CPOTHEME_USE_SLIDES') && !defined('CPOTHEME_USE_FEATURES') && !defined('CPOTHEME_USE_PORTFOLIO') && !defined('CPOTHEME_USE_PRODUCTS') && !defined('CPOTHEME_USE_SERVICES') && !defined('CPOTHEME_USE_TESTIMONIALS') && !defined('CPOTHEME_USE_TEAM')) 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').''; //Products if(defined('CPOTHEME_USE_PRODUCTS') && CPOTHEME_USE_PRODUCTS == true) echo ' '.__('Showcase your products', 'cpocore').''; //Services if(defined('CPOTHEME_USE_SERVICES') && CPOTHEME_USE_SERVICES == true) echo ' '.__('List your services', 'cpocore').''; //Testimonials if(defined('CPOTHEME_USE_TESTIMONIALS') && CPOTHEME_USE_TESTIMONIALS == true) echo ' '.__('Add some testimonials', 'cpocore').''; //Team if(defined('CPOTHEME_USE_TEAM') && CPOTHEME_USE_TEAM == true) echo ' '.__('Add your team members', 'cpocore').''; //Portfolio listing if(defined('CPOTHEME_USE_PORTFOLIO') && CPOTHEME_USE_PORTFOLIO == true) echo ' '.__('Create a page with the Portfolio template', 'cpocore').''; //Products listing if(defined('CPOTHEME_USE_PRODUCTS') && CPOTHEME_USE_PRODUCTS == true) echo ' '.__('Create a page with the Products template', 'cpocore').''; //Services listing if(defined('CPOTHEME_USE_SERVICES') && CPOTHEME_USE_SERVICES == true) echo ' '.__('Create a page with the Services template', 'cpocore').''; //Team listing if(defined('CPOTHEME_USE_TEAM') && CPOTHEME_USE_TEAM == true) echo ' '.__('Create a page with the Team 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 ' '.__('Customize the appearance of your site', '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')); } } } //Add a help link next to the Screen Options tab if(!function_exists('cpotheme_admin_help')){ //add_action('admin_footer', 'cpotheme_admin_help'); function cpotheme_admin_help(){ $core_path = defined('CPO_CORELITE_URL') ? CPO_CORELITE_URL : get_template_directory_uri().'/core/'; echo ''; } }