/** * Output Manage Auto Post page */ function rssmi_posts_list() { global $myListTable; my_add_menu_items(); rssmi_add_options(); my_render_list_page(); $myListTable->admin_header(); }
function wp_rss_multi_importer_display($active_tab = '') { ?> <div class="wrap"> <?php $wprssmi_admin_options = get_option('rss_admin_options'); if (isset($_GET['page']) && $_GET['page'] == 'wp_rss_multi_importer_admin' && $wprssmi_admin_options['dismiss_slug'] != "true") { ?> <div id="message" class="updated fade"> <h3><?php _e("If you find this plugin helpful, let others know by <a target=\"_blank\" href=\"http://wordpress.org/extend/plugins/wp-rss-multi-importer/\">rating it here</a>. That way, it will help others determine whether or not they should try out the plugin. Thank you.", 'wp-rss-multi-importer'); ?> </h3> <form method="post" action="options.php"> <?php settings_fields('wp_rss_multi_importer_admin_options'); ?> <input type="hidden" name="rss_admin_options[dismiss_slug]" value="true"> <input type="submit" value="<?php _e("Dismiss This Message", 'wp-rss-multi-importer'); ?> " name="submit"> </form> </div> <?php } ?> <div id="icon-themes" class="icon32"></div> <h2><?php _e("WP RSS Multi-Importer Options", 'wp-rss-multi-importer'); ?> </h2> <?php //settings_errors(); ?> <?php if (isset($_GET['tab'])) { $active_tab = $_GET['tab']; } else { if ($active_tab == 'setting_options') { $active_tab = 'setting_options'; } else { if ($active_tab == 'category_options') { $active_tab = 'category_options'; } else { if ($active_tab == 'shortcode_parameters') { $active_tab = 'shortcode_parameters'; } else { if ($active_tab == 'template_options') { $active_tab = 'template_options'; } else { if ($active_tab == 'feed_options') { $active_tab = 'feed_options'; } else { if ($active_tab == 'feed_to_post_options') { $active_tab = 'feed_to_post_options'; } else { if ($active_tab == 'items_list') { $active_tab = 'items_list'; } else { if ($active_tab == 'posts_list') { $active_tab = 'posts_list'; } else { $active_tab = 'intro'; } } } } } } } } } // end if/else ?> <h2 class="nav-tab-wrapper"> <a href="?page=wp_rss_multi_importer_admin&tab=intro" class="nav-tab <?php echo $active_tab == 'intro' ? 'nav-tab-active' : ''; ?> "><?php _e("Overview", 'wp-rss-multi-importer'); ?> </a> <a href="?page=wp_rss_multi_importer_admin&tab=items_list" class="nav-tab <?php echo $active_tab == 'items_list' ? 'nav-tab-active' : ''; ?> "><?php _e("Feeds", 'wp-rss-multi-importer'); ?> </a> <a href="?page=wp_rss_multi_importer_admin&tab=category_options" class="nav-tab <?php echo $active_tab == 'category_options' ? 'nav-tab-active' : ''; ?> "><?php _e("Categories", 'wp-rss-multi-importer'); ?> </a> <a href="?page=wp_rss_multi_importer_admin&tab=setting_options" class="nav-tab <?php echo $active_tab == 'setting_options' ? 'nav-tab-active' : ''; ?> "><?php _e("Shortcode Settings", 'wp-rss-multi-importer'); ?> </a> <a href="?page=wp_rss_multi_importer_admin&tab=feed_to_post_options" class="nav-tab <?php echo $active_tab == 'feed_to_post_options' ? 'nav-tab-active' : ''; ?> "><?php _e("Feed to Post Settings", 'wp-rss-multi-importer'); ?> </a> <a href="?page=wp_rss_multi_importer_admin&tab=shortcode_parameters" class="nav-tab <?php echo $active_tab == 'shortcode_parameters' ? 'nav-tab-active' : ''; ?> "><?php _e("Shortcode Parameters", 'wp-rss-multi-importer'); ?> </a> <a href="?page=wp_rss_multi_importer_admin&tab=template_options" class="nav-tab <?php echo $active_tab == 'template_options' ? 'nav-tab-active' : ''; ?> "><?php _e("Template Options", 'wp-rss-multi-importer'); ?> </a> <a href="?page=wp_rss_multi_importer_admin&tab=posts_list" class="nav-tab <?php echo $active_tab == 'posts_list' ? 'nav-tab-active' : ''; ?> "><?php _e("Manage Posts", 'wp-rss-multi-importer'); ?> </a> <a href="?page=wp_rss_multi_importer_admin&tab=feed_options" class="nav-tab <?php echo $active_tab == 'feed_options' ? 'nav-tab-active' : ''; ?> "><?php _e("Export RSS", 'wp-rss-multi-importer'); ?> </a> </h2> <?php if ($active_tab == 'items_list') { wp_rss_multi_importer_items_page(); } else { if ($active_tab == 'setting_options') { wp_rss_multi_importer_options_page(); } else { if ($active_tab == 'category_options') { wp_rss_multi_importer_category_page(); wp_rss_multi_importer_category_images_page(); } else { if ($active_tab == 'shortcode_parameters') { wp_rss_multi_importer_style_tags(); } else { if ($active_tab == 'template_options') { wp_rss_multi_importer_template_page(); } else { if ($active_tab == 'feed_options') { wp_rss_multi_importer_feed_page(); } else { if ($active_tab == 'feed_to_post_options') { wp_rss_multi_importer_post_page(); } else { if ($active_tab == 'posts_list') { global $myListTable; my_add_menu_items(); add_options(); my_render_list_page(); $myListTable->admin_header(); } else { wp_rss_multi_importer_intro_page(); } } } } } } } } // end if/else ?> </div> <?php }