/** * Menu page display. */ function wpcf_admin_menu_summary_ctt() { echo wpcf_add_admin_header(__('Custom Post Types and Taxonomies', 'wpcf')); $to_display_posts = get_option('wpcf-custom-types', array()); $to_display_tax = get_option('wpcf-custom-taxonomies', array()); if (!empty($to_display_posts) || !empty($to_display_tax)) { add_action('wpcf_types_tax_list_table_after', 'wpcf_admin_promotional_text'); } wpcf_admin_ctt_list(); echo wpcf_add_admin_footer(); }
/** * Menu page display. */ function wpcf_admin_menu_summary_ctt() { echo wpcf_add_admin_header(__('Custom Post Types and Taxonomies', 'wpcf')); wpcf_admin_ctt_list(); $to_display_posts = get_option('wpcf-custom-types', array()); $to_display_tax = get_option('wpcf-custom-taxonomies', array()); if (!empty($to_display_posts) || !empty($to_display_tax)) { $promotional_text = '<div class="message updated" style="padding: 5px 20px;"><h3>' . __('Want to display custom content easily?', 'wpcf') . '</h3>'; $promotional_text .= '<p style="font-size: 110%;">' . __('<a href="http://wp-types.com">Views</a> plugin let\'s you create dynamic templates for single pages and complex content lists. It queries content from the database, filters it and displays in any way you choose.', 'wpcf') . '</p>'; if (defined('WPV_VERSION')) { // Views active $promotional_text .= '<ul style="list-style-type:disc; list-style-position: inside; font-size: 110%;"><li><a href="' . admin_url('edit.php?post_type=view-template') . '">' . __('Create <strong>View Templates</strong> for single pages', 'wpcf') . '</a></li>'; $promotional_text .= '<li><a href="' . admin_url('edit.php?post_type=view') . '">' . __('Create <strong>Views</strong> for content lists', 'wpcf') . '</a></li>'; $promotional_text .= '<li><a href="http://wp-types.com">' . __('Find <strong>documentation</strong> and <strong>help</strong>', 'wpcf') . '</a></li></ul>'; } else { $promotional_text .= '<p style="font-size: 110%;">' . __('Learn more:', 'wpcf') . '</p>'; $promotional_text .= '<ul style="list-style-type:disc; list-style-position: inside; font-size: 110%;"><li><a href="http://wp-types.com/documentation/user-guides/view-templates/">' . __('Creating dynamic templates', 'wpcf') . '</a></li>'; $promotional_text .= '<li><a href="http://wp-types.com/documentation/user-guides/views/">' . __('Query content and display it', 'wpcf') . '</a></li>'; $promotional_text .= '</ul><p style="font-size: 110%;">' . __('Get Views:', 'wpcf') . '</p><ul>'; $promotional_text .= '<li style="font-size: 110%;"><a href="http://wp-types.com/buy/">' . __('Buy and download Views', 'wpcf') . '</a></li>'; $promotional_text .= '</ul>'; } $promotional_text .= '</div>'; echo '<br />' . $promotional_text; } echo wpcf_add_admin_footer(); }