function random_posts_options_page() { echo '<div class="wrap"><h2>'; _e('Random Posts ', 'random_posts_plugin'); echo '<a href="http://rmarsh.com/plugins/post-options/" style="font-size: 0.8em;">'; _e('help and instructions'); echo '</a></h2></div>'; if (!RandomPosts::check_post_plugin_library(__('<h1>Please install the <a href="http://downloads.wordpress.org/plugin/post-plugin-library.zip">Post Plugin Library</a> plugin.</h1>'))) { return; } $m = new admin_subpages(); $m->add_subpage('General', 'general', 'random_posts_general_options_subpage'); $m->add_subpage('Output', 'output', 'random_posts_output_options_subpage'); $m->add_subpage('Filter', 'filter', 'random_posts_filter_options_subpage'); $m->add_subpage('Placement', 'placement', 'random_posts_placement_options_subpage'); $m->add_subpage('Other', 'other', 'random_posts_other_options_subpage'); $m->add_subpage('Report a Bug', 'bug', 'random_posts_bug_subpage'); $m->add_subpage('Remove this Plugin', 'remove', 'random_posts_remove_subpage'); $m->display(); add_action('in_admin_footer', 'random_posts_admin_footer'); }
function similar_posts_for_feed_options_page() { echo '<div class="wrap"><h2>'; _e('Similar Posts Feed ', 'post_plugins'); echo '<a href="http://rmarsh.com/plugins/post-options/" style="font-size: 0.8em;">'; _e('help and instructions'); echo '</a></h2></div>'; $m = new admin_subpages(); $m->add_subpage('General', 'general', 'similar_posts_feed_general_options_subpage'); $m->add_subpage('Output', 'output', 'similar_posts_feed_output_options_subpage'); $m->add_subpage('Filter', 'filter', 'similar_posts_feed_filter_options_subpage'); $m->add_subpage('Other', 'other', 'similar_posts_feed_other_options_subpage'); $m->add_subpage('Report a Bug', 'bug', 'similar_posts_feed_bug_subpage'); $m->add_subpage('Remove this Plugin', 'remove', 'similar_posts_feed_remove_subpage'); $m->display(); }