log_file = dirname( __FILE__ ) . '/all_in_one_seo_pack.log';
if ( $aioseop_options['aiosp_do_log'] )
$this->do_log = true;
else
$this->do_log = false;
$this->init();
global $aioseop_plugin_name;
$aioseop_plugin_name = __( 'All in One SEO Pack', 'all_in_one_seo_pack' );
if ( ! defined( 'AIOSEOP_PLUGIN_NAME' ) )
define( 'AIOSEOP_PLUGIN_NAME', $aioseop_plugin_name );
$this->name = sprintf( __( '%s Plugin Options', 'all_in_one_seo_pack' ), AIOSEOP_PLUGIN_NAME );
$this->menu_name = __( 'General Settings', 'all_in_one_seo_pack' );
$this->prefix = 'aiosp_'; // option prefix
$this->option_name = 'aioseop_options';
$this->store_option = true;
$this->file = __FILE__; // the current file
parent::__construct();
$this->default_options = array(
"donate"=> Array(
'name' => __( 'I enjoy this plugin and have made a donation:', 'all_in_one_seo_pack' ),
'help_text' => __( 'All donations support continued development of this free software.', 'all_in_one_seo_pack' ),
'default' => 0),
"home_title"=> Array(
'name' => __( 'Home Title:', 'all_in_one_seo_pack' ),
'help_text' => __( 'As the name implies, this will be the title of your homepage. This is independent of any other option. If not set, the default blog title will get used.', 'all_in_one_seo_pack' ),
'default' => null, 'type' => 'textarea', 'sanitize' => 'text' ),
"home_description"=> Array(
'name' => __( 'Home Description:', 'all_in_one_seo_pack' ),
'help_text' => __( 'The META description for your homepage. Independent of any other options, the default is no META description at all if this is not set.', 'all_in_one_seo_pack' ),
'default' => '', 'type' => 'textarea', 'sanitize' => 'text' ),
"togglekeywords" => Array(
'name' => __( 'Use Keywords:', 'all_in_one_seo_pack' ),
'help_text' => __( 'This option allows you to toggle the use of meta keywords throughout the whole of the site.', 'all_in_one_seo_pack' ),
'default' => 0,
'type' => 'radio',
'initial_options' => Array( 0 => __( 'Enabled', 'all_in_one_seo_pack' ),
1 => __( 'Disabled', 'all_in_one_seo_pack' ) )
),
"home_keywords"=> Array(
'name' => __( 'Home Keywords (comma separated):', 'all_in_one_seo_pack' ),
'help_text' => __( 'A comma separated list of your most important keywords for your site that will be written as META keywords on your homepage. Don\'t stuff everything in here.', 'all_in_one_seo_pack' ),
'default' => null, 'type' => 'textarea', 'sanitize' => 'text',
'condshow' => Array( "aiosp_togglekeywords" => 0 ) ),
"can"=> Array(
'name' => __( 'Canonical URLs:', 'all_in_one_seo_pack' ),
'help_text' => __( "This option will automatically generate Canonical URLS for your entire WordPress installation. This will help to prevent duplicate content penalties by Google.", 'all_in_one_seo_pack' ),
'default' => 1),
"rewrite_titles"=> Array(
'name' => __( 'Rewrite Titles:', 'all_in_one_seo_pack' ),
'help_text' => __( "Note that this is all about the title tag. This is what you see in your browser's window title bar. This is NOT visible on a page, only in the window title bar and of course in the source. If set, all page, post, category, search and archive page titles get rewritten. You can specify the format for most of them. For example: The default templates puts the title tag of posts like this: “Blog Archive >> Blog Name >> Post Title” (maybe I've overdone slightly). This is far from optimal. With the default post title format, Rewrite Title rewrites this to “Post Title | Blog Name”. If you have manually defined a title (in one of the text fields for All in One SEO Plugin input) this will become the title of your post in the format string.", 'all_in_one_seo_pack' ),
'default' => 1,
'type' => 'radio',
'initial_options' => Array( 1 => __( 'Enabled', 'all_in_one_seo_pack' ),
0 => __( 'Disabled', 'all_in_one_seo_pack' ) )
),
"force_rewrites"=> Array(
'name' => __( 'Force Rewrites:', 'all_in_one_seo_pack' ),
'help_text' => __( "Use output buffering to ensure that the title gets rewritten.", 'all_in_one_seo_pack' ),
'default' => 1,
'type' => 'hidden',
'prefix' => $this->prefix,
'initial_options' => Array( 1 => __( 'Enabled', 'all_in_one_seo_pack' ),
0 => __( 'Disabled', 'all_in_one_seo_pack' ) )
),
"use_original_title"=> Array(
'name' => __( 'Use Original Title:', 'all_in_one_seo_pack' ),
'help_text' => __( "Use wp_title to set the title; disable this option if you run into conflicts with the title being set by your theme or another plugin.", 'all_in_one_seo_pack' ),
'type' => 'radio',
'default' => 0,
'initial_options' => Array( 1 => __( 'Enabled', 'all_in_one_seo_pack' ),
0 => __( 'Disabled', 'all_in_one_seo_pack' ) )
),
"cap_titles"=> Array(
'name' => __( 'Capitalize Titles:', 'all_in_one_seo_pack' ),
'help_text' => __( "Check this and Search Page Titles and Tag Page Titles will have the first letter of each word capitalized.", 'all_in_one_seo_pack' ),
'default' => 1),
"cap_cats"=> Array(
'name' => __( 'Capitalize Category Titles:', 'all_in_one_seo_pack' ),
'help_text' => __( "Check this and Category Titles will have the first letter of each word capitalized.", 'all_in_one_seo_pack' ),
'default' => 1),
"page_title_format"=> Array(
'name' => __( 'Page Title Format:', 'all_in_one_seo_pack' ),
'help_text' =>
__( 'The following macros are supported:', 'all_in_one_seo_pack' )
. '
' . __( '%blog_title% - Your blog title', 'all_in_one_seo_pack' ) . '
' .
__( '%blog_description% - Your blog description', 'all_in_one_seo_pack' ) . '
' .
__( '%page_title% - The original title of the page', 'all_in_one_seo_pack' ) . '
' .
__( '%category_title% - The (main) category of the page', 'all_in_one_seo_pack' ) . '
' .
__( '%category% - Alias for %category_title%', 'all_in_one_seo_pack' ) . '
' . __( '%blog_title% - Your blog title', 'all_in_one_seo_pack' ) . '
' .
__( '%blog_description% - Your blog description', 'all_in_one_seo_pack' ) . '
' .
__( '%description% - The original description as determined by the plugin, e.g. the excerpt if one is set or an auto-generated one if that option is set', 'all_in_one_seo_pack' ) . '
' .
__( '%wp_title% - The original wordpress title, e.g. post_title for posts', 'all_in_one_seo_pack' ) . '
',
'type' => 'text',
'default' => '%description%',
'condshow' => Array( "aiosp_rewrite_titles" => 1 ) ),
"404_title_format"=> Array(
'name' => __( '404 Title Format:', 'all_in_one_seo_pack' ),
'help_text' => __( 'The following macros are supported:', 'all_in_one_seo_pack' ) .
'
' . __( '%blog_title% - Your blog title', 'all_in_one_seo_pack' ) . '
' .
__( '%blog_description% - Your blog description', 'all_in_one_seo_pack' ) . '
' .
__( '%request_url% - The original URL path, like "/url-that-does-not-exist/"', 'all_in_one_seo_pack' ) . '
' .
__( '%request_words% - The URL path in human readable form, like "Url That Does Not Exist"', 'all_in_one_seo_pack' ) . '
',
'type' => 'text',
'default' => 'Nothing found for %request_words%',
'condshow' => Array( "aiosp_rewrite_titles" => 1 ) ),
"paged_format"=> Array(
'name' => __( 'Paged Format:', 'all_in_one_seo_pack' ),
'help_text' => __( 'This string gets appended/prepended to titles when they are for paged index pages (like home or archive pages).', 'all_in_one_seo_pack' )
. __( 'The following macros are supported:', 'all_in_one_seo_pack' )
. '
',
'type' => 'text',
'default' => ' - Part %page%',
'condshow' => Array( "aiosp_rewrite_titles" => 1 ) ),
"enablecpost"=> Array(
'name' => __( 'SEO for Custom Post Types:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Check this if you want your enable AIOSEOP support for Custom Post Types on this site.', 'all_in_one_seo_pack' ),
'default' => 'on',
'type' => 'radio',
'initial_options' => Array( 'on' => __( 'Enabled', 'all_in_one_seo_pack' ),
0 => __( 'Disabled', 'all_in_one_seo_pack' ) )
),
"cpostadvanced" => Array(
'name' => __( 'Enable Advanced Options:', 'all_in_one_seo_pack' ),
'help_text' => __( 'This allows you to do more with your custom post types.', 'all_in_one_seo_pack' ),
'default' => 0,
'type' => 'radio',
'initial_options' => Array( 'on' => __( 'Enabled', 'all_in_one_seo_pack' ),
0 => __( 'Disabled', 'all_in_one_seo_pack' ) ),
'label' => null,
'condshow' => Array( "aiosp_enablecpost" => 'on' )
),
"cpostactive" => Array(
'name' => __( 'SEO on only these post types:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Select specific custom post types for AIOSEOP support.', 'all_in_one_seo_pack' ),
'type' => 'multicheckbox',
'default' => array('post', 'page'),
'condshow' => Array( 'aiosp_enablecpost' => 'on', 'aiosp_cpostadvanced' => 'on' )
),
"cposttitles" => Array(
'name' => __( 'Custom titles:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Allows setting specific custom titles for all post types.', 'all_in_one_seo_pack' ),
'type' => 'checkbox',
'default' => 0,
'condshow' => Array( 'aiosp_enablecpost' => 'on', 'aiosp_cpostadvanced' => 'on' )
),
"posttypecolumns" => Array(
'name' => __( 'Show Column Labels for Custom Post Types:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Choose which post types you want to have SEO columns on the edit.php screen. You can select as many as you like.', 'all_in_one_seo_pack' ),
'type' => 'multicheckbox',
'default' => array('post', 'page') ),
"admin_bar" => Array(
'name' => __( 'Display Menu In Admin Bar:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Check this for easy access to settings from the admin menu bar.', 'all_in_one_seo_pack' ),
'default' => 'on',
),
"google_verify" => Array(
'name' => __( 'Google Webmaster Tools:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Enter your verification code here to add a meta tag to your homepage to verify your site.', 'all_in_one_seo_pack' ),
'default' => '', 'type' => 'text' ),
"bing_verify" => Array(
'name' => __( 'Bing Webmaster Center:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Enter your verification code here to add a meta tag to your homepage to verify your site.', 'all_in_one_seo_pack' ),
'default' => '', 'type' => 'text' ),
"pinterest_verify" => Array(
'name' => __( 'Pinterest Site Verification:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Enter your verification code here to add a meta tag to your homepage to verify your site.', 'all_in_one_seo_pack' ),
'default' => '', 'type' => 'text' ),
"google_publisher"=> Array(
'name' => __( 'Google Plus Default Profile:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Enter your Google Plus Profile URL here to link your site\'s pages to Google Plus.', 'all_in_one_seo_pack' ),
'default' => '', 'type' => 'text' ),
"google_analytics_id"=> Array(
'name' => __( 'Google Analytics ID:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Enter your Google Analytics ID here to track your site with Google Analytics.', 'all_in_one_seo_pack' ),
'default' => null, 'type' => 'text' ),
"ga_domain"=> Array(
'name' => __( 'Tracking Domain:', 'all_in_one_seo_pack' ),
'type' => 'text',
'help_text' => __( 'Enter domain name for tracking with Google Analytics.', 'all_in_one_seo_pack' ),
'condshow' => Array( 'aiosp_google_analytics_id' => Array( 'lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => '' ) ) ),
"ga_multi_domain"=> Array(
'name' => __( 'Track Multiple Domains:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Enable multi-domain tracking for Google Analytics.', 'all_in_one_seo_pack' ),
'default' => 0,
'condshow' => Array( 'aiosp_google_analytics_id' => Array( 'lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => '' ) ) ),
"ga_track_outbound_links"=> Array(
'name' => __( 'Track Outbound Links:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Add functionality to track outbound links with Google Analytics.', 'all_in_one_seo_pack' ),
'default' => 0,
'condshow' => Array( 'aiosp_google_analytics_id' => Array( 'lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => '' ) ) ),
"use_categories"=> Array(
'name' => __( 'Use Categories for META keywords:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Check this if you want your categories for a given post used as the META keywords for this post (in addition to any keywords and tags you specify on the post edit page).', 'all_in_one_seo_pack' ),
'default' => 0,
'condshow' => Array( "aiosp_togglekeywords" => 0 ) ),
"use_tags_as_keywords" => Array(
'name' => __( 'Use Tags for META keywords:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Check this if you want your tags for a given post used as the META keywords for this post (in addition to any keywords you specify on the post edit page).', 'all_in_one_seo_pack' ),
'default' => 1,
'condshow' => Array( "aiosp_togglekeywords" => 0 ) ),
"dynamic_postspage_keywords"=> Array(
'name' => __( 'Dynamically Generate Keywords for Posts Page:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Check this if you want your keywords on a custom posts page (set it in options->reading) to be dynamically generated from the keywords of the posts showing on that page. If unchecked, it will use the keywords set in the edit page screen for the posts page.', 'all_in_one_seo_pack' ),
'default' => 1,
'condshow' => Array( "aiosp_togglekeywords" => 0 ) ),
"category_noindex"=> Array(
'name' => __( 'Use noindex for Categories:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Check this for excluding category pages from being crawled. Useful for avoiding duplicate content.', 'all_in_one_seo_pack' ),
'default' => 1),
"archive_noindex"=> Array(
'name' => __( 'Use noindex for Archives:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Check this for excluding archive pages from being crawled. Useful for avoiding duplicate content.', 'all_in_one_seo_pack' ),
'default' => 1),
"tags_noindex"=> Array(
'name' => __( 'Use noindex for Tag Archives:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Check this for excluding tag pages from being crawled. Useful for avoiding duplicate content.', 'all_in_one_seo_pack' ),
'default' => 0),
"generate_descriptions"=> Array(
'name' => __( 'Autogenerate Descriptions:', 'all_in_one_seo_pack' ),
'help_text' => __( "Check this and your META descriptions will get autogenerated if there's no excerpt.", 'all_in_one_seo_pack' ),
'default' => 1),
"unprotect_meta"=> Array(
'name' => __( 'Unprotect Post Meta Fields:', 'all_in_one_seo_pack' ),
'help_text' => __( "Unprotect internal postmeta fields for use with XMLRPC -- if you don't know what that is, leave it unchecked.", 'all_in_one_seo_pack' ),
'default' => 0),
"ex_pages" => Array(
'name' => __( 'Exclude Pages:', 'all_in_one_seo_pack' ),
'help_text' => __( "Enter any comma separated pages here to be excluded by All in One SEO Pack. This is helpful when using plugins which generate their own non-WordPress dynamic pages. Ex: /forum/,/contact/ For instance, if you want to exclude the virtual pages generated by a forum plugin, all you have to do is give forum or /forum or /forum/ or and any URL with the word \"forum\" in it, such as http://mysite.com/forum or http://mysite.com/forum/someforumpage will be excluded from All in One SEO Pack.", 'all_in_one_seo_pack' ),
'type' => 'textarea', 'default' => '' ),
"post_meta_tags"=> Array(
'name' => __( 'Additional Post Headers:', 'all_in_one_seo_pack' ),
'help_text' => __( 'What you enter here will be copied verbatim to your header on posts.', 'all_in_one_seo_pack' ) . ' ' . __( 'You can enter whatever additional headers you want here, even references to stylesheets.', 'all_in_one_seo_pack' ),
'type' => 'textarea', 'default' => '', 'sanitize' => 'default' ),
"page_meta_tags"=> Array(
'name' => __( 'Additional Page Headers:', 'all_in_one_seo_pack' ),
'help_text' => __( 'What you enter here will be copied verbatim to your header on pages.', 'all_in_one_seo_pack' ) . ' ' . __( 'You can enter whatever additional headers you want here, even references to stylesheets.', 'all_in_one_seo_pack' ),
'type' => 'textarea', 'default' => '', 'sanitize' => 'default' ),
"front_meta_tags"=> Array(
'name' => __( 'Additional Front Page Headers:', 'all_in_one_seo_pack' ),
'help_text' => __( 'What you enter here will be copied verbatim to your header on the front page if you have a static page set in Settings, Reading.', 'all_in_one_seo_pack' ) . ' ' . __( 'You can enter whatever additional headers you want here, even references to stylesheets.', 'all_in_one_seo_pack' ) . ' ' . __( 'This will fall back to using Additional Page Headers if you have them set and nothing is entered here.', 'all_in_one_seo_pack' ),
'type' => 'textarea', 'default' => '', 'sanitize' => 'default' ),
"home_meta_tags"=> Array(
'name' => __( 'Additional Blog Page Headers:', 'all_in_one_seo_pack' ),
'help_text' => __( 'What you enter here will be copied verbatim to your header on the home page if you have Front page displays your latest posts selected in Settings, Reading. It will also be copied verbatim to your header on the Posts page if you have one set in Settings, Reading.', 'all_in_one_seo_pack' ) . ' ' . __( 'You can enter whatever additional headers you want here, even references to stylesheets.', 'all_in_one_seo_pack' ),
'type' => 'textarea', 'default' => '', 'sanitize' => 'default' ),
"do_log"=> Array(
'name' => __( 'Log important events:', 'all_in_one_seo_pack' ),
'help_text' => __( 'Check this and SEO pack will create a log of important events (all_in_one_seo_pack.log) in its plugin directory which might help debugging it. Make sure this directory is writable.', 'all_in_one_seo_pack' ),
'default' => null ),
);
$this->locations = Array(
'default' => Array( 'name' => $this->name, 'prefix' => 'aiosp_', 'type' => 'settings', 'options' => null ),
'aiosp' => Array( 'name' => $this->plugin_name, 'type' => 'metabox', 'prefix' => '',
'options' => Array( 'edit', 'nonce-aioseop-edit', 'upgrade', 'snippet', 'title', 'description', 'keywords', 'noindex', 'nofollow', 'titleatr', 'menulabel', 'disable', 'disable_analytics' ),
'default_options' => Array(
'edit' => Array( 'type' => 'hidden', 'default' => 'aiosp_edit', 'prefix' => true, 'nowrap' => 1 ),
'nonce-aioseop-edit' => Array( 'type' => 'hidden', 'default' => null, 'prefix' => false, 'nowrap' => 1 ),
'upgrade' => Array( 'type' => 'html', 'label' => 'none',
'default' => ''
. __( 'Upgrade to All in One SEO Pack Pro Version', 'all_in_one_seo_pack' ) . ''
),
'snippet' => Array( 'name' => __( 'Preview Snippet', 'all_in_one_seo_pack' ), 'type' => 'custom', 'help_text' => __( 'A preview of what this page might look like in search engine results.', 'all_in_one_seo_pack' ), 'label' => 'top', 'default' => '
' . sprintf( __( 'Welcome to Version %s!', 'all_in_one_seo_pack' ), AIOSEOP_VERSION )
. '
' . __( 'Thank you for running the latest and greatest All in One SEO Pack ever! New in 2.0: manage your performance with our Performance module; enable it from our new feature manager! And please review your settings, we have added some new ones!', 'all_in_one_seo_pack' ) . '
If you like this plugin and find it useful, help keep this plugin free and actively developed by clicking the donate button or send me a gift from my Amazon wishlist. Also, don't forget to follow me on Twitter.
Your database options need to be updated.(Back up your database before updating.)
";
}
?>
Drag and Drop WordPress Design
Headway Themes allows you to easily create your own stunning website designs! Stop using premade themes start making your own design with Headway's easy to use Drag and Drop interface. All in One SEO Pack users have an exclusive discount by using coupon code SEMPERFI30 at checkout.