<?php
/**
* SEO Ultimate Plugin Settings Module
*
* @since 0.2
*/
if (class_exists('SU_Module')) {
class SU_Settings extends SU_Module {
function get_module_title() {
if (is_network_admin())
return __('Plugin Management', 'seo-ultimate');
return __('Plugin Settings', 'seo-ultimate');
}
function get_page_title() {
if (is_network_admin())
return __('SEO Ultimate Plugin Management', 'seo-ultimate');
return __('SEO Ultimate Plugin Settings', 'seo-ultimate');
}
function get_menu_title() { return __('SEO Ultimate', 'seo-ultimate'); }
function get_menu_parent() {
if (is_network_admin())
return 'plugins.php';
return 'options-general.php';
}
function admin_page_contents() { $this->children_admin_page_tabs(); }
function belongs_in_admin($admin_scope = null) {
if ($admin_scope === null)
$admin_scope = suwp::get_admin_scope();
switch ($admin_scope) {
case 'blog':
return true;
case 'network':
if ( ! function_exists( 'is_plugin_active_for_network' ) )
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
return is_plugin_active_for_network($this->plugin->plugin_basename);
break;
default:
return false;
break;
}
}
function add_help_tabs($screen) {
$screen->add_help_tab(array(
'id' => 'su-settings-overview'
, 'title' => __('Overview', 'seo-ultimate')
, 'content' => __("
<p>The Settings module lets you manage settings related to the SEO Ultimate plugin as a whole.</p>
", 'seo-ultimate')));
$screen->add_help_tab(array(
'id' => 'su-settings-settings'
, 'title' => __('Global Settings', 'seo-ultimate')
, 'content' => __("
<p>Here’s information on some of the settings:</p>
<ul>
<li><strong>Identify the plugin’s HTML code insertions with HTML comment tags</strong> — If enabled, SEO Ultimate will use HTML comments to identify all code it inserts into your <code><head></code> tag. This is useful if you’re trying to figure out whether or not SEO Ultimate is inserting a certain piece of header code.</li>
<li><strong>Enable nofollow’d attribution link on my site</strong> — If enabled, the plugin will display an attribution link on your site.</li>
</ul>
", 'seo-ultimate')));
$screen->add_help_tab(array(
'id' => 'su-settings-faq'
, 'title' => __('FAQ', 'seo-ultimate')
, 'content' => __("
<ul>
<li>
<p><strong>Why doesn’t the settings exporter include all my data in an export?</strong><br />The settings export/import system is designed to facilitate moving settings between sites. It is NOT a replacement for keeping your database backed up. The settings exporter doesn’t include data that is specific to your site. For example, logged 404 errors are not included because those 404 errors only apply to your site, not another site. Also, post/page titles/meta are not included because the site into which you import the file could have totally different posts/pages located under the same ID numbers.</p>
<p>If you’re moving a site to a different server or restoring a crashed site, you should do so with database backup/restore.</p>
</li>
</ul>
", 'seo-ultimate')));
}
}
}
?>