コード例 #1
0
function WPSR_options_menu()
{
    global $util;
    if (!current_user_can('manage_options')) {
        wp_die(__('You do not have sufficient permissions to access this page.'));
    }
    if ($util->get_option_value('plugin_status') != '1') {
        $util->info_option_msg('SEO Redirection is disabled now, you can go to option tab and enable it!');
    }
    echo '<div class="wrap"><h2>SEO Redirection</h2><br/>';
    $mytabs = new phptab();
    $mytabs->set_ignore_parameter(array('del', 'search', 'page_num', 'add', 'edit', 'page404'));
    $mytabs->add_file_tab('cutom', 'Custom Redirects', 'option_page_custome_redirection.php', 'file');
    $mytabs->add_file_tab('posts', 'Post Redirects', 'option_page_post_redirection_list.php', 'file');
    $mytabs->add_file_tab('404', '404 Error Links', 'option_page_404.php', 'file');
    $mytabs->add_file_tab('history', 'History', 'option_page_history.php', 'file');
    $mytabs->add_file_tab('goptions', 'Options', 'option_page_goptions.php', 'file');
    $mytabs->add_file_tab('premium', '<span style="color:brown;"><b>&#9658; Premium Features</b></span>', 'premium.php', 'file');
    $mytabs->run();
}
コード例 #2
0
ファイル: seo-redirection.php プロジェクト: adwleg/site
function WPSR_options_menu()
{
    global $util;
    if (!current_user_can('manage_options')) {
        wp_die(__('You do not have sufficient permissions to access this page.'));
    }
    if ($util->get_option_value('plugin_status') != '1') {
        $util->info_option_msg('SEO Redirection is disabled now, you can go to option tab and enable it!');
    }
    echo '<div class="wrap"><h2>SEO Redirection Free</h2><br/>';
    if (is_multisite()) {
        echo '<div class="error" id="message"><p></p><div class="warning_icon"></div>This version does not support Multisite WordPress installation, you may face troubles like losing redirects when adding new sites to your network, the premium version supports multisite well (<a target="_blank" href="http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin">
http://www.clogica.com/product/seo-redirection-premium-wordpress-plugin</a>) <p></p></div>';
    }
    $mytabs = new phptab();
    $mytabs->set_ignore_parameter(array('del', 'search', 'page_num', 'add', 'edit', 'page404'));
    $mytabs->add_file_tab('cutom', 'Custom Redirects', 'option_page_custome_redirection.php', 'file');
    $mytabs->add_file_tab('posts', 'Post Redirects', 'option_page_post_redirection_list.php', 'file');
    $mytabs->add_file_tab('404', '404 Error Links', 'option_page_404.php', 'file');
    $mytabs->add_file_tab('history', 'History', 'option_page_history.php', 'file');
    $mytabs->add_file_tab('goptions', 'Options', 'option_page_goptions.php', 'file');
    $mytabs->add_file_tab('premium', '<span style="color:brown;"><b>&#9658; Premium Features</b></span>', 'premium.php', 'file');
    $mytabs->run();
}