/** * Menu page display. */ function wpcf_admin_menu_summary() { echo wpcf_add_admin_header(__('Custom Fields', 'wpcf')); require_once WPCF_INC_ABSPATH . '/fields.php'; require_once WPCF_INC_ABSPATH . '/fields-list.php'; wpcf_admin_fields_list(); $to_display = wpcf_admin_fields_get_fields(); if (!empty($to_display)) { $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(); }
/** * Menu page display. */ function wpcf_admin_menu_summary() { echo wpcf_add_admin_header(__('Custom Fields', 'wpcf')); require_once WPCF_INC_ABSPATH . '/fields.php'; require_once WPCF_INC_ABSPATH . '/fields-list.php'; $to_display = wpcf_admin_fields_get_fields(); if (!empty($to_display)) { add_action('wpcf_groups_list_table_after', 'wpcf_admin_promotional_text'); } wpcf_admin_fields_list(); echo wpcf_add_admin_footer(); }
/** * Menu page display. */ function wpcf_admin_menu_summary() { wpcf_add_admin_header(__('Post Field Groups', 'wpcf'), array('page' => 'wpcf-edit')); require_once WPCF_INC_ABSPATH . '/fields.php'; require_once WPCF_INC_ABSPATH . '/fields-list.php'; $to_display = wpcf_admin_fields_get_fields(); if (!empty($to_display)) { add_action('wpcf_groups_list_table_after', 'wpcf_admin_promotional_text'); } wpcf_admin_fields_list(); wpcf_add_admin_footer(); }