コード例 #1
0
    static function display_extra_metaboxes($add, $meta)
    {
        echo "<div class='aioseop_metabox_wrapper' >";
        switch ($meta['id']) {
            case "aioseop-about":
                ?>
<div class="aioseop_metabox_text">
							<p><h2 style="display:inline;"><?php 
                echo AIOSEOP_PLUGIN_NAME;
                ?>
</h2><?php 
                sprintf(__("by %s of %s.", 'all-in-one-seo-pack'), 'Michael Torbert', '<a target="_blank" title="Semper Fi Web Design"
							href="http://semperfiwebdesign.com/">Semper Fi Web Design</a>');
                ?>
.</p>
							<?php 
                global $current_user;
                $user_id = $current_user->ID;
                $ignore = get_user_meta($user_id, 'aioseop_ignore_notice');
                if (!empty($ignore)) {
                    $qa = array();
                    wp_parse_str($_SERVER["QUERY_STRING"], $qa);
                    $qa['aioseop_reset_notices'] = 1;
                    $url = '?' . build_query($qa);
                    echo '<p><a href="' . $url . '">' . __("Reset Dismissed Notices", 'all-in-one-seo-pack') . '</a></p>';
                }
                if (!AIOSEOPPRO) {
                    ?>
							<p>
							<strong><?php 
                    echo aiosp_common::get_upgrade_hyperlink('side', __('Pro Version', 'all-in-one-seo-pack'), __('UPGRADE TO PRO VERSION', 'all-in-one-seo-pack'), '_blank');
                    ?>
</strong></p>
							<?php 
                }
                ?>
						</div>
				<?php 
            case "aioseop-donate":
                ?>
				<div>

				<?php 
                if (!AIOSEOPPRO) {
                    ?>
					<div class="aioseop_metabox_text">
						<p>If you like this plugin and find it useful, help keep this plugin free and actively developed by clicking the <a 				href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8"
							target="_blank"><strong>donate</strong></a> button or send me a gift from my <a
							href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web" target="_blank">
							<strong>Amazon wishlist</strong></a>.  Also, don't forget to follow me on <a
							href="http://twitter.com/michaeltorbert/" target="_blank"><strong>Twitter</strong></a>.
						</p>
					</div>
				<?php 
                }
                ?>

					<div class="aioseop_metabox_feature">

				<?php 
                if (!AIOSEOPPRO) {
                    ?>
								<a target="_blank" title="<?php 
                    _e('Donate', 'all-in-one-seo-pack');
                    ?>
"
	href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8">
					<img src="<?php 
                    echo AIOSEOP_PLUGIN_URL;
                    ?>
images/donate.jpg" alt="<?php 
                    _e('Donate with Paypal', 'all-in-one-seo-pack');
                    ?>
" />	</a>
					<a target="_blank" title="Amazon Wish List" href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web">
					<img src="<?php 
                    echo AIOSEOP_PLUGIN_URL;
                    ?>
images/amazon.jpg" alt="<?php 
                    _e('My Amazon Wish List', 'all-in-one-seo-pack');
                    ?>
" /> </a>
				<?php 
                }
                ?>

					<a target="_blank" title="<?php 
                _e('Follow us on Facebook', 'all-in-one-seo-pack');
                ?>
" href="http://www.facebook.com/pages/Semper-Fi-Web-Design/121878784498475"><span class="aioseop_follow_button aioseop_facebook_follow"></span></a>
					<a target="_blank" title="<?php 
                _e('Follow us on Twitter', 'all-in-one-seo-pack');
                ?>
" href="http://twitter.com/semperfidev/"><span class="aioseop_follow_button aioseop_twitter_follow"></span></a>
					</div><?php 
                if (get_locale() != 'en_US') {
                    ?>
					<div><strong>
					<a target="_blank" title="translate" href="https://translate.wordpress.org/projects/wp-plugins/all-in-one-seo-pack">
					<?php 
                    _e('We need your help translating All in One SEO Pack into your language! Click Here to help make the translation complete and fix any errors.', 'all-in-one-seo-pack');
                    ?>
					</a></strong>
					</div>
					<?php 
                }
                ?>
				</div>
		        <?php 
                break;
            case "aioseop-list":
                ?>
				<div class="aioseop_metabox_text">
						<form action="http://semperfiwebdesign.us1.list-manage.com/subscribe/post?u=794674d3d54fdd912f961ef14&amp;id=af0a96d3d9"
						method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank">
						<h2><?php 
                _e('Join our mailing list for tips, tricks, and WordPress secrets.', 'all-in-one-seo-pack');
                ?>
</h2>
						<p><i><?php 
                _e('Sign up today and receive a free copy of the e-book 5 SEO Tips for WordPress ($39 value).', 'all-in-one-seo-pack');
                ?>
</i></p>
						<p><input type="text" value="" name="EMAIL" class="required email" id="mce-EMAIL" placeholder="Email Address">
							<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="btn"></p>
						</form>
				</div>
			<?php 
                break;
            case "aioseop-support":
                ?>
<div class="aioseop_metabox_text">
				<p><div class="aioseop_icon aioseop_file_icon"></div><a target="_blank" href="http://semperplugins.com/documentation/"><?php 
                _e('Read the All in One SEO Pack user guide', 'all-in-one-seo-pack');
                ?>
</a></p>
				<p><div class="aioseop_icon aioseop_support_icon"></div><a target="_blank" title="<?php 
                _e('All in One SEO Pro Plugin Support Forum', 'all-in-one-seo-pack');
                ?>
"
				href="http://semperplugins.com/support/"><?php 
                _e('Access our Premium Support Forums', 'all-in-one-seo-pack');
                ?>
</a></p>
				<p><div class="aioseop_icon aioseop_cog_icon"></div><a target="_blank" title="<?php 
                _e('All in One SEO Pro Plugin Changelog', 'all-in-one-seo-pack');
                ?>
"
				href="<?php 
                if (AIOSEOPPRO) {
                    echo 'http://semperplugins.com/documentation/all-in-one-seo-pack-pro-changelog/';
                } else {
                    echo 'http://semperfiwebdesign.com/blog/all-in-one-seo-pack/all-in-one-seo-pack-release-history/';
                }
                ?>
"><?php 
                _e('View the Changelog', 'all-in-one-seo-pack');
                ?>
</a></p>
				<p><div class="aioseop_icon aioseop_youtube_icon"></div><a target="_blank" href="http://semperplugins.com/doc-type/video/"><?php 
                _e('Watch video tutorials', 'all-in-one-seo-pack');
                ?>
</a></p>
				<p><div class="aioseop_icon aioseop_book_icon"></div><a target="_blank" href="http://semperplugins.com/documentation/quick-start-guide/"><?php 
                _e('Getting started? Read the Beginners Guide', 'all-in-one-seo-pack');
                ?>
</a></p>
				</div>
		        <?php 
                break;
        }
        echo "</div>";
    }
コード例 #2
0
    /**
     * All_in_One_SEO_Pack constructor.
     */
    function __construct()
    {
        global $aioseop_options;
        $this->log_file = dirname(__FILE__) . '/all-in-one-seo-pack.log';
        // PHP <5.3 compatibility, once we drop support we can use __DIR___.
        if (!empty($aioseop_options) && isset($aioseop_options['aiosp_do_log']) && $aioseop_options['aiosp_do_log']) {
            $this->do_log = true;
        } else {
            $this->do_log = false;
        }
        $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.
        $blog_name = esc_attr(get_bloginfo('name'));
        parent::__construct();
        $this->help_text = array('donate' => __('All donations support continued development of this free software.', 'all-in-one-seo-pack'), 'license_key' => __('This will be the license key received when the product was purchased. This is used for automatic upgrades.', 'all-in-one-seo-pack'), 'can' => __("This option will automatically generate Canonical URLs for your entire WordPress installation.  This will help to prevent duplicate content penalties by <a href=\\'http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html\\' target=\\'_blank\\'>Google</a>.", 'all-in-one-seo-pack'), 'no_paged_canonical_links' => __('Checking this option will set the Canonical URL for all paginated content to the first page.', 'all-in-one-seo-pack'), 'customize_canonical_links' => __('Checking this option will allow you to customize Canonical URLs for specific posts.', 'all-in-one-seo-pack'), 'can_set_protocol' => __('Set protocol for canonical URLs.', 'all-in-one-seo-pack'), 'use_original_title' => __('Use wp_title to get the title used by the theme; this is disabled by default. If you use this option, set your title formats appropriately, as your theme might try to do its own title SEO as well.', 'all-in-one-seo-pack'), 'do_log' => __('Check this and All in One SEO Pack will create a log of important events (all-in-one-seo-pack.log) in its plugin directory which might help debugging. Make sure this directory is writable.', 'all-in-one-seo-pack'), 'home_title' => __('As the name implies, this will be the Meta Title of your homepage. This is independent of any other option. If not set, the default Site Title (found in WordPress under Settings, General, Site Title) will be used.', 'all-in-one-seo-pack'), 'home_description' => __('This will be the Meta Description for your homepage. This is independent of any other option. The default is no Meta Description at all if this is not set.', 'all-in-one-seo-pack'), 'home_keywords' => __('Enter a comma separated list of your most important keywords for your site that will be written as Meta Keywords on your homepage. Do not stuff everything in here.', 'all-in-one-seo-pack'), 'use_static_home_info' => __('Checking this option uses the title, description, and keywords set on your static Front Page.', 'all-in-one-seo-pack'), 'togglekeywords' => __('This option allows you to toggle the use of Meta Keywords throughout the whole of the site.', 'all-in-one-seo-pack'), 'use_categories' => __('Check this if you want your categories for a given post used as the Meta Keywords for this post (in addition to any keywords you specify on the Edit Post screen).', 'all-in-one-seo-pack'), 'use_tags_as_keywords' => __('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 Edit Post screen).', 'all-in-one-seo-pack'), 'dynamic_postspage_keywords' => __('Check this if you want your keywords on your Posts page (set in WordPress under Settings, Reading, Front Page Displays) and your archive pages 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'), 'rewrite_titles' => __("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 title bar and in the source code. If enabled, all page, post, category, search and archive page titles get rewritten. You can specify the format for most of them. For example: Using the default post title format below, Rewrite Titles will write all post titles as 'Post Title | Blog Name'. If you have manually defined a title using All in One SEO Pack, this will become the title of your post in the format string.", 'all-in-one-seo-pack'), 'cap_titles' => __('Check this and Search Page Titles and Tag Page Titles will have the first letter of each word capitalized.', 'all-in-one-seo-pack'), 'cap_cats' => __('Check this and Category Titles will have the first letter of each word capitalized.', 'all-in-one-seo-pack'), 'home_page_title_format' => __('This controls the format of the title tag for your Home Page.<br />The following macros are supported:', 'all-in-one-seo-pack') . '<ul><li>' . __('%blog_title% - Your blog title', 'all-in-one-seo-pack') . '</li><li>' . __('%blog_description% - Your blog description', 'all-in-one-seo-pack') . '</li><li>' . __('%page_title% - The original title of the page', 'all-in-one-seo-pack') . '</li><li>' . __("%page_author_login% - This page's author' login", 'all-in-one-seo-pack') . '</li><li>' . __("%page_author_nicename% - This page's author' nicename", 'all-in-one-seo-pack') . '</li><li>' . __("%page_author_firstname% - This page's author' first name (capitalized)", 'all-in-one-seo-pack') . '</li><li>' . __("%page_author_lastname% - This page's author' last name (capitalized)", 'all-in-one-seo-pack') . '</li></ul>', 'page_title_format' => __('This controls the format of the title tag for Pages.<br />The following macros are supported:', 'all-in-one-seo-pack') . '<ul><li>' . __('%blog_title% - Your blog title', 'all-in-one-seo-pack') . '</li><li>' . __('%blog_description% - Your blog description', 'all-in-one-seo-pack') . '</li><li>' . __('%page_title% - The original title of the page', 'all-in-one-seo-pack') . '</li><li>' . __("%page_author_login% - This page's author' login", 'all-in-one-seo-pack') . '</li><li>' . __("%page_author_nicename% - This page's author' nicename", 'all-in-one-seo-pack') . '</li><li>' . __("%page_author_firstname% - This page's author' first name (capitalized)", 'all-in-one-seo-pack') . '</li><li>' . __("%page_author_lastname% - This page's author' last name (capitalized)", 'all-in-one-seo-pack') . '</li></ul>', 'post_title_format' => __('This controls the format of the title tag for Posts.<br />The following macros are supported:', 'all-in-one-seo-pack') . '<ul><li>' . __('%blog_title% - Your blog title', 'all-in-one-seo-pack') . '</li><li>' . __('%blog_description% - Your blog description', 'all-in-one-seo-pack') . '</li><li>' . __('%post_title% - The original title of the post', 'all-in-one-seo-pack') . '</li><li>' . __('%category_title% - The (main) category of the post', 'all-in-one-seo-pack') . '</li><li>' . __('%category% - Alias for %category_title%', 'all-in-one-seo-pack') . '</li><li>' . __("%post_author_login% - This post's author' login", 'all-in-one-seo-pack') . '</li><li>' . __("%post_author_nicename% - This post's author' nicename", 'all-in-one-seo-pack') . '</li><li>' . __("%post_author_firstname% - This post's author' first name (capitalized)", 'all-in-one-seo-pack') . '</li><li>' . __("%post_author_lastname% - This post's author' last name (capitalized)", 'all-in-one-seo-pack') . '</li></ul>', 'category_title_format' => __('This controls the format of the title tag for Category Archives.<br />The following macros are supported:', 'all-in-one-seo-pack') . '<ul><li>' . __('%blog_title% - Your blog title', 'all-in-one-seo-pack') . '</li><li>' . __('%blog_description% - Your blog description', 'all-in-one-seo-pack') . '</li><li>' . __('%category_title% - The original title of the category', 'all-in-one-seo-pack') . '</li><li>' . __('%category_description% - The description of the category', 'all-in-one-seo-pack') . '</li></ul>', 'archive_title_format' => __('This controls the format of the title tag for Custom Post Archives.<br />The following macros are supported:', 'all-in-one-seo-pack') . '<ul><li>' . __('%blog_title% - Your blog title', 'all-in-one-seo-pack') . '</li><li>' . __('%blog_description% - Your blog description', 'all-in-one-seo-pack') . '</li><li>' . __('%archive_title - The original archive title given by wordpress', 'all-in-one-seo-pack') . '</li></ul>', 'date_title_format' => __('This controls the format of the title tag for Date Archives.<br />The following macros are supported:', 'all-in-one-seo-pack') . '<ul><li>' . __('%blog_title% - Your blog title', 'all-in-one-seo-pack') . '</li><li>' . __('%blog_description% - Your blog description', 'all-in-one-seo-pack') . '</li><li>' . __('%date% - The original archive title given by wordpress, e.g. "2007" or "2007 August"', 'all-in-one-seo-pack') . '</li><li>' . __('%day% - The original archive day given by wordpress, e.g. "17"', 'all-in-one-seo-pack') . '</li><li>' . __('%month% - The original archive month given by wordpress, e.g. "August"', 'all-in-one-seo-pack') . '</li><li>' . __('%year% - The original archive year given by wordpress, e.g. "2007"', 'all-in-one-seo-pack') . '</li></ul>', 'author_title_format' => __('This controls the format of the title tag for Author Archives.<br />The following macros are supported:', 'all-in-one-seo-pack') . '<ul><li>' . __('%blog_title% - Your blog title', 'all-in-one-seo-pack') . '</li><li>' . __('%blog_description% - Your blog description', 'all-in-one-seo-pack') . '</li><li>' . __('%author% - The original archive title given by wordpress, e.g. "Steve" or "John Smith"', 'all-in-one-seo-pack') . '</li></ul>', 'tag_title_format' => __('This controls the format of the title tag for Tag Archives.<br />The following macros are supported:', 'all-in-one-seo-pack') . '<ul><li>' . __('%blog_title% - Your blog title', 'all-in-one-seo-pack') . '</li><li>' . __('%blog_description% - Your blog description', 'all-in-one-seo-pack') . '</li><li>' . __('%tag% - The name of the tag', 'all-in-one-seo-pack') . '</li></ul>', 'search_title_format' => __('This controls the format of the title tag for the Search page.<br />The following macros are supported:', 'all-in-one-seo-pack') . '<ul><li>' . __('%blog_title% - Your blog title', 'all-in-one-seo-pack') . '</li><li>' . __('%blog_description% - Your blog description', 'all-in-one-seo-pack') . '</li><li>' . __('%search% - What was searched for', 'all-in-one-seo-pack') . '</li></ul>', 'description_format' => __('This controls the format of Meta Descriptions.The following macros are supported:', 'all-in-one-seo-pack') . '<ul><li>' . __('%blog_title% - Your blog title', 'all-in-one-seo-pack') . '</li><li>' . __('%blog_description% - Your blog description', 'all-in-one-seo-pack') . '</li><li>' . __('%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') . '</li><li>' . __('%post_title% - The original title of the post', 'all-in-one-seo-pack') . '</li><li>' . __('%wp_title% - The original wordpress title, e.g. post_title for posts', 'all-in-one-seo-pack') . '</li></ul>', '404_title_format' => __('This controls the format of the title tag for the 404 page.<br />The following macros are supported:', 'all-in-one-seo-pack') . '<ul><li>' . __('%blog_title% - Your blog title', 'all-in-one-seo-pack') . '</li><li>' . __('%blog_description% - Your blog description', 'all-in-one-seo-pack') . '</li><li>' . __('%request_url% - The original URL path, like "/url-that-does-not-exist/"', 'all-in-one-seo-pack') . '</li><li>' . __('%request_words% - The URL path in human readable form, like "Url That Does Not Exist"', 'all-in-one-seo-pack') . '</li><li>' . __('%404_title% - Additional 404 title input"', 'all-in-one-seo-pack') . '</li></ul>', 'paged_format' => __('This string gets appended/prepended to titles of paged index pages (like home or archive pages).', 'all-in-one-seo-pack') . __('The following macros are supported:', 'all-in-one-seo-pack') . '<ul><li>' . __('%page% - The page number', 'all-in-one-seo-pack') . '</li></ul>', 'enablecpost' => __('Check this if you want to use All in One SEO Pack with any Custom Post Types on this site.', 'all-in-one-seo-pack'), 'cpostadvanced' => __('This will show or hide the advanced options for SEO for Custom Post Types.', 'all-in-one-seo-pack'), 'cpostactive' => __('Use these checkboxes to select which Post Types you want to use All in One SEO Pack with.', 'all-in-one-seo-pack'), 'taxactive' => __('Use these checkboxes to select which Taxonomies you want to use All in One SEO Pack with.', 'all-in-one-seo-pack'), 'cposttitles' => __('This allows you to set the title tags for each Custom Post Type.', 'all-in-one-seo-pack'), 'posttypecolumns' => __('This lets you select which screens display the SEO Title, SEO Keywords and SEO Description columns.', 'all-in-one-seo-pack'), 'admin_bar' => __('Check this to add All in One SEO Pack to the Admin Bar for easy access to your SEO settings.', 'all-in-one-seo-pack'), 'custom_menu_order' => __('Check this to move the All in One SEO Pack menu item to the top of your WordPress Dashboard menu.', 'all-in-one-seo-pack'), 'google_verify' => __("Enter your verification code here to verify your site with Google Webmaster Tools.<br /><a href='http://semperplugins.com/documentation/google-webmaster-tools-verification/' target='_blank'>Click here for documentation on this setting</a>", 'all-in-one-seo-pack'), 'bing_verify' => __("Enter your verification code here to verify your site with Bing Webmaster Tools.<br /><a href='http://semperplugins.com/documentation/bing-webmaster-verification/' target='_blank'>Click here for documentation on this setting</a>", 'all-in-one-seo-pack'), 'pinterest_verify' => __("Enter your verification code here to verify your site with Pinterest.<br /><a href='http://semperplugins.com/documentation/pinterest-site-verification/' target='_blank'>Click here for documentation on this setting</a>", 'all-in-one-seo-pack'), 'google_publisher' => __('Enter your Google+ Profile URL here to add the rel=“author” tag to your site for Google authorship. It is recommended that the URL you enter here should be your personal Google+ profile.  Use the Advanced Authorship Options below if you want greater control over the use of authorship.', 'all-in-one-seo-pack'), 'google_disable_profile' => __('Check this to remove the Google Plus field from the user profile screen.', 'all-in-one-seo-pack'), 'google_author_advanced' => __('Enable this to display advanced options for controlling Google Plus authorship information on your website.', 'all-in-one-seo-pack'), 'google_author_location' => __('This option allows you to control which types of pages you want to display rel=\\"author\\" on for Google authorship. The options include the Front Page (the homepage of your site), Posts, Pages, and any Custom Post Types. The Everywhere Else option includes 404, search, categories, tags, custom taxonomies, date archives, author archives and any other page template.', 'all-in-one-seo-pack'), 'google_enable_publisher' => __('This option allows you to control whether rel=\\"publisher\\" is displayed on the homepage of your site. Google recommends using this if the site is a business website.', 'all-in-one-seo-pack'), 'google_specify_publisher' => __('The Google+ profile you enter here will appear on your homepage only as the rel=\\"publisher\\" tag. It is recommended that the URL you enter here should be the Google+ profile for your business.', 'all-in-one-seo-pack'), 'google_sitelinks_search' => __('Add markup to display the Google Sitelinks Search Box next to your search results in Google.', 'all-in-one-seo-pack'), 'google_set_site_name' => __('Add markup to tell Google the preferred name for your website.', 'all-in-one-seo-pack'), 'google_connect' => __('Press the connect button to connect with Google Analytics; or if already connected, press the disconnect button to disable and remove any stored analytics credentials.', 'all-in-one-seo-pack'), 'google_analytics_id' => __('Enter your Google Analytics ID here to track visitor behavior on your site using Google Analytics.', 'all-in-one-seo-pack'), 'ga_use_universal_analytics' => __('Use the new Universal Analytics tracking code for Google Analytics.', 'all-in-one-seo-pack'), 'ga_advanced_options' => __('Check to use advanced Google Analytics options.', 'all-in-one-seo-pack'), 'ga_domain' => __('Enter your domain name without the http:// to set your cookie domain.', 'all-in-one-seo-pack'), 'ga_multi_domain' => __('Use this option to enable tracking of multiple or additional domains.', 'all-in-one-seo-pack'), 'ga_addl_domains' => __('Add a list of additional domains to track here.  Enter one domain name per line without the http://.', 'all-in-one-seo-pack'), 'ga_anonymize_ip' => __('This enables support for IP Anonymization in Google Analytics.', 'all-in-one-seo-pack'), 'ga_display_advertising' => __('This enables support for the Display Advertiser Features in Google Analytics.', 'all-in-one-seo-pack'), 'ga_exclude_users' => __('Exclude logged-in users from Google Analytics tracking by role.', 'all-in-one-seo-pack'), 'ga_track_outbound_links' => __('Check this if you want to track outbound links with Google Analytics.', 'all-in-one-seo-pack'), 'ga_link_attribution' => __('This enables support for the Enhanced Link Attribution in Google Analytics.', 'all-in-one-seo-pack'), 'ga_enhanced_ecommerce' => __('This enables support for the Enhanced Ecommerce in Google Analytics.', 'all-in-one-seo-pack'), 'cpostnoindex' => __('Set the default NOINDEX setting for each Post Type.', 'all-in-one-seo-pack'), 'cpostnofollow' => __('Set the default NOFOLLOW setting for each Post Type.', 'all-in-one-seo-pack'), 'category_noindex' => __('Check this to ask search engines not to index Category Archives. Useful for avoiding duplicate content.', 'all-in-one-seo-pack'), 'archive_date_noindex' => __('Check this to ask search engines not to index Date Archives. Useful for avoiding duplicate content.', 'all-in-one-seo-pack'), 'archive_author_noindex' => __('Check this to ask search engines not to index Author Archives. Useful for avoiding duplicate content.', 'all-in-one-seo-pack'), 'tags_noindex' => __('Check this to ask search engines not to index Tag Archives. Useful for avoiding duplicate content.', 'all-in-one-seo-pack'), 'search_noindex' => __('Check this to ask search engines not to index the Search page. Useful for avoiding duplicate content.', 'all-in-one-seo-pack'), '404_noindex' => __('Check this to ask search engines not to index the 404 page.', 'all-in-one-seo-pack'), 'tax_noindex' => __('Check this to ask search engines not to index custom Taxonomy archive pages. Useful for avoiding duplicate content.', 'all-in-one-seo-pack'), 'paginated_noindex' => __('Check this to ask search engines not to index paginated pages/posts. Useful for avoiding duplicate content.', 'all-in-one-seo-pack'), 'paginated_nofollow' => __('Check this to ask search engines not to follow links from paginated pages/posts. Useful for avoiding duplicate content.', 'all-in-one-seo-pack'), 'noodp' => __('Check this box to ask search engines not to use descriptions from the Open Directory Project for your entire site.', 'all-in-one-seo-pack'), 'cpostnoodp' => __('Set the default noodp setting for each Post Type.', 'all-in-one-seo-pack'), 'noydir' => __('Check this box to ask Yahoo! not to use descriptions from the Yahoo! directory for your entire site.', 'all-in-one-seo-pack'), 'cpostnoydir' => __('Set the default noydir setting for each Post Type.', 'all-in-one-seo-pack'), 'skip_excerpt' => __("Check this and your Meta Descriptions won't be generated from the excerpt.", 'all-in-one-seo-pack'), 'generate_descriptions' => __('Check this and your Meta Descriptions will be auto-generated from your excerpt or content.', 'all-in-one-seo-pack'), 'run_shortcodes' => __('Check this and shortcodes will get executed for descriptions auto-generated from content.', 'all-in-one-seo-pack'), 'hide_paginated_descriptions' => __('Check this and your Meta Descriptions will be removed from page 2 or later of paginated content.', 'all-in-one-seo-pack'), 'dont_truncate_descriptions' => __('Check this to prevent your Description from being truncated regardless of its length.', 'all-in-one-seo-pack'), 'schema_markup' => __('Check this to support Schema.org markup, i.e., itemprop on supported metadata.', 'all-in-one-seo-pack'), 'unprotect_meta' => __("Check this to unprotect internal postmeta fields for use with XMLRPC. If you don't know what that is, leave it unchecked.", 'all-in-one-seo-pack'), 'ex_pages' => __('Enter a comma separated list of 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: <em>/forum/, /contact/</em>  For instance, if you want to exclude the virtual pages generated by a forum plugin, all you have to do is add 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 here and it will be excluded from All in One SEO Pack.', 'all-in-one-seo-pack'), 'post_meta_tags' => __('What you enter here will be copied verbatim to the header of all Posts. You can enter whatever additional headers you want here, even references to stylesheets.', 'all-in-one-seo-pack'), 'page_meta_tags' => __('What you enter here will be copied verbatim to the header of all Pages. You can enter whatever additional headers you want here, even references to stylesheets.', 'all-in-one-seo-pack'), 'front_meta_tags' => __('What you enter here will be copied verbatim to the header of the front page if you have set a static page in Settings, Reading, Front Page Displays. You can enter whatever additional headers you want here, even references to stylesheets. This will fall back to using Additional Page Headers if you have them set and nothing is entered here.', 'all-in-one-seo-pack'), 'home_meta_tags' => __('What you enter here will be copied verbatim to the header of the home page if you have Front page displays your latest posts selected in Settings, Reading.  It will also be copied verbatim to the header on the Posts page if you have one set in Settings, Reading. You can enter whatever additional headers you want here, even references to stylesheets.', 'all-in-one-seo-pack'));
        $this->help_anchors = array('license_key' => '#license-key', 'can' => '#canonical-urls', 'no_paged_canonical_links' => '#no-pagination-for-canonical-urls', 'customize_canonical_links' => '#enable-custom-canonical-urls', 'can_set_protocol' => '#set-protocol-for-canonical-urls', 'use_original_title' => '#use-original-title', 'schema_markup' => '#use-schema-markup', 'do_log' => '#log-important-events', 'home_title' => '#home-title', 'home_description' => '#home-description', 'home_keywords' => '#home-keywords', 'use_static_home_info' => '#use-static-front-page-instead', 'togglekeywords' => '#use-keywords', 'use_categories' => '#use-categories-for-meta-keywords', 'use_tags_as_keywords' => '#use-tags-for-meta-keywords', 'dynamic_postspage_keywords' => '#dynamically-generate-keywords-for-posts-page', 'rewrite_titles' => '#rewrite-titles', 'cap_titles' => '#capitalize-titles', 'cap_cats' => '#capitalize-titles', 'home_page_title_format' => '#title-format-fields', 'page_title_format' => '#title-format-fields', 'post_title_format' => '#title-format-fields', 'category_title_format' => '#title-format-fields', 'archive_title_format' => '#title-format-fields', 'date_title_format' => '#title-format-fields', 'author_title_format' => '#title-format-fields', 'tag_title_format' => '#title-format-fields', 'search_title_format' => '#title-format-fields', 'description_format' => '#title-format-fields', '404_title_format' => '#title-format-fields', 'paged_format' => '#title-format-fields', 'enablecpost' => '#seo-for-custom-post-types', 'cpostadvanced' => '#enable-advanced-options', 'cpostactive' => '#seo-on-only-these-post-types', 'taxactive' => '#seo-on-only-these-taxonomies', 'cposttitles' => '#custom-titles', 'posttypecolumns' => '#show-column-labels-for-custom-post-types', 'admin_bar' => '#display-menu-in-admin-bar', 'custom_menu_order' => '#display-menu-at-the-top', 'google_verify' => '', 'bing_verify' => '', 'pinterest_verify' => '', 'google_publisher' => '#google-plus-default-profile', 'google_disable_profile' => '#disable-google-plus-profile', 'google_sitelinks_search' => '#display-sitelinks-search-box', 'google_set_site_name' => '#set-preferred-site-name', 'google_author_advanced' => '#advanced-authorship-options', 'google_author_location' => '#display-google-authorship', 'google_enable_publisher' => '#display-publisher-meta-on-front-page', 'google_specify_publisher' => '#specify-publisher-url', 'google_analytics_id' => 'http://semperplugins.com/documentation/setting-up-google-analytics/', 'ga_use_universal_analytics' => '#use-universal-analytics', 'ga_domain' => '#tracking-domain', 'ga_multi_domain' => '#track-multiple-domains-additional-domains', 'ga_addl_domains' => '#track-multiple-domains-additional-domains', 'ga_anonymize_ip' => '#anonymize-ip-addresses', 'ga_display_advertising' => '#display-advertiser-tracking', 'ga_exclude_users' => '#exclude-users-from-tracking', 'ga_track_outbound_links' => '#track-outbound-links', 'ga_link_attribution' => '#enhanced-link-attribution', 'ga_enhanced_ecommerce' => '#enhanced-ecommerce', 'cpostnoindex' => '#noindex', 'cpostnofollow' => '#nofollow', 'cpostnoodp' => '#noodp', 'cpostnoydir' => '#noydir', 'category_noindex' => '#noindex-settings', 'archive_date_noindex' => '#noindex-settings', 'archive_author_noindex' => '#noindex-settings', 'tags_noindex' => '#noindex-settings', 'search_noindex' => '#use-noindex-for-the-search-page', '404_noindex' => '#use-noindex-for-the-404-page', 'tax_noindex' => '#use-noindex-for-the-taxonomy-archives', 'paginated_noindex' => '#use-noindex-for-paginated-pages-posts', 'paginated_nofollow' => '#use-nofollow-for-paginated-pages-posts', 'noodp' => '#exclude-site-from-the-open-directory-project', 'noydir' => '#exclude-site-from-yahoo-directory', 'skip_excerpt' => '#avoid-using-the-excerpt-in-descriptions', 'generate_descriptions' => '#autogenerate-descriptions', 'run_shortcodes' => '#run-shortcodes-in-autogenerated-descriptions', 'hide_paginated_descriptions' => '#remove-descriptions-for-paginated-pages', 'dont_truncate_descriptions' => '#never-shorten-long-descriptions', 'unprotect_meta' => '#unprotect-post-meta-fields', 'ex_pages' => '#exclude-pages', 'post_meta_tags' => '#additional-post-headers', 'page_meta_tags' => '#additional-page-headers', 'front_meta_tags' => '#additional-front-page-headers', 'home_meta_tags' => '#additional-blog-page-headers');
        $meta_help_text = array('snippet' => __('A preview of what this page might look like in search engine results.', 'all-in-one-seo-pack'), 'title' => __('A custom title that shows up in the title tag for this page.', 'all-in-one-seo-pack'), 'description' => __('The META description for this page. This will override any autogenerated descriptions.', 'all-in-one-seo-pack'), 'keywords' => __('A comma separated list of your most important keywords for this page that will be written as META keywords.', 'all-in-one-seo-pack'), 'custom_link' => __('Override the canonical URLs for this post.', 'all-in-one-seo-pack'), 'noindex' => __('Check this box to ask search engines not to index this page.', 'all-in-one-seo-pack'), 'nofollow' => __('Check this box to ask search engines not to follow links from this page.', 'all-in-one-seo-pack'), 'noodp' => __('Check this box to ask search engines not to use descriptions from the Open Directory Project for this page.', 'all-in-one-seo-pack'), 'noydir' => __('Check this box to ask Yahoo! not to use descriptions from the Yahoo! directory for this page.', 'all-in-one-seo-pack'), 'titleatr' => __('Set the title attribute for menu links.', 'all-in-one-seo-pack'), 'menulabel' => __('Set the label for this page menu item.', 'all-in-one-seo-pack'), 'sitemap_exclude' => __("Don't display this page in the sitemap.", 'all-in-one-seo-pack'), 'disable' => __('Disable SEO on this page.', 'all-in-one-seo-pack'), 'disable_analytics' => __('Disable Google Analytics on this page.', 'all-in-one-seo-pack'));
        $this->default_options = array('license_key' => array('name' => __('License Key:', 'all-in-one-seo-pack'), 'type' => 'text'), 'donate' => array('name' => __('I enjoy this plugin and have made a donation:', 'all-in-one-seo-pack')), 'home_title' => array('name' => __('Home Title:', 'all-in-one-seo-pack'), 'default' => null, 'type' => 'textarea', 'sanitize' => 'text', 'count' => true, 'rows' => 1, 'cols' => 60, 'condshow' => array('aiosp_use_static_home_info' => 0)), 'home_description' => array('name' => __('Home Description:', 'all-in-one-seo-pack'), 'default' => '', 'type' => 'textarea', 'sanitize' => 'text', 'count' => true, 'cols' => 80, 'rows' => 2, 'condshow' => array('aiosp_use_static_home_info' => 0)), 'togglekeywords' => array('name' => __('Use Keywords:', 'all-in-one-seo-pack'), 'default' => 1, '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'), 'default' => null, 'type' => 'textarea', 'sanitize' => 'text', 'condshow' => array('aiosp_togglekeywords' => 0, 'aiosp_use_static_home_info' => 0)), 'use_static_home_info' => array('name' => __('Use Static Front Page Instead', 'all-in-one-seo-pack'), 'default' => 0, 'type' => 'radio', 'initial_options' => array(1 => __('Enabled', 'all-in-one-seo-pack'), 0 => __('Disabled', 'all-in-one-seo-pack'))), 'can' => array('name' => __('Canonical URLs:', 'all-in-one-seo-pack'), 'default' => 1), 'no_paged_canonical_links' => array('name' => __('No Pagination for Canonical URLs:', 'all-in-one-seo-pack'), 'default' => 0, 'condshow' => array('aiosp_can' => 'on')), 'customize_canonical_links' => array('name' => __('Enable Custom Canonical URLs:', 'all-in-one-seo-pack'), 'default' => 0, 'condshow' => array('aiosp_can' => 'on')), 'can_set_protocol' => array('name' => __('Set Protocol For Canonical URLs:', 'all-in-one-seo-pack'), 'type' => 'radio', 'default' => 'auto', 'initial_options' => array('auto' => __('Auto', 'all-in-one-seo-pack'), 'http' => __('HTTP', 'all-in-one-seo-pack'), 'https' => __('HTTPS', 'all-in-one-seo-pack')), 'condshow' => array('aiosp_can' => 'on')), 'rewrite_titles' => array('name' => __('Rewrite Titles:', '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'), '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'), '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 Tag and Search Titles:', 'all-in-one-seo-pack'), 'default' => 1), 'cap_cats' => array('name' => __('Capitalize Category Titles:', 'all-in-one-seo-pack'), 'default' => 1), 'home_page_title_format' => array('name' => __('Home Page Title Format:', 'all-in-one-seo-pack'), 'type' => 'text', 'default' => '%page_title%', 'condshow' => array('aiosp_rewrite_titles' => 1)), 'page_title_format' => array('name' => __('Page Title Format:', 'all-in-one-seo-pack'), 'type' => 'text', 'default' => '%page_title% | %blog_title%', 'condshow' => array('aiosp_rewrite_titles' => 1)), 'post_title_format' => array('name' => __('Post Title Format:', 'all-in-one-seo-pack'), 'type' => 'text', 'default' => '%post_title% | %blog_title%', 'condshow' => array('aiosp_rewrite_titles' => 1)), 'category_title_format' => array('name' => __('Category Title Format:', 'all-in-one-seo-pack'), 'type' => 'text', 'default' => '%category_title% | %blog_title%', 'condshow' => array('aiosp_rewrite_titles' => 1)), 'archive_title_format' => array('name' => __('Archive Title Format:', 'all-in-one-seo-pack'), 'type' => 'text', 'default' => '%archive_title% | %blog_title%', 'condshow' => array('aiosp_rewrite_titles' => 1)), 'date_title_format' => array('name' => __('Date Archive Title Format:', 'all-in-one-seo-pack'), 'type' => 'text', 'default' => '%date% | %blog_title%', 'condshow' => array('aiosp_rewrite_titles' => 1)), 'author_title_format' => array('name' => __('Author Archive Title Format:', 'all-in-one-seo-pack'), 'type' => 'text', 'default' => '%author% | %blog_title%', 'condshow' => array('aiosp_rewrite_titles' => 1)), 'tag_title_format' => array('name' => __('Tag Title Format:', 'all-in-one-seo-pack'), 'type' => 'text', 'default' => '%tag% | %blog_title%', 'condshow' => array('aiosp_rewrite_titles' => 1)), 'search_title_format' => array('name' => __('Search Title Format:', 'all-in-one-seo-pack'), 'type' => 'text', 'default' => '%search% | %blog_title%', 'condshow' => array('aiosp_rewrite_titles' => 1)), 'description_format' => array('name' => __('Description Format', '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'), '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'), 'type' => 'text', 'default' => ' - Part %page%', 'condshow' => array('aiosp_rewrite_titles' => 1)), 'enablecpost' => array('name' => __('SEO for Custom Post Types:', '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'))), 'cpostactive' => array('name' => __('SEO on only these post types:', 'all-in-one-seo-pack'), 'type' => 'multicheckbox', 'default' => array('post', 'page'), 'condshow' => array('aiosp_enablecpost' => 'on')), 'taxactive' => array('name' => __('SEO on only these taxonomies:', 'all-in-one-seo-pack'), 'type' => 'multicheckbox', 'default' => array('category', 'post_tag'), 'condshow' => array('aiosp_enablecpost' => 'on')), 'cpostadvanced' => array('name' => __('Enable Advanced Options:', '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')), 'cpostnoindex' => array('name' => __('Default to NOINDEX:', 'all-in-one-seo-pack'), 'type' => 'multicheckbox', 'default' => array()), 'cpostnofollow' => array('name' => __('Default to NOFOLLOW:', 'all-in-one-seo-pack'), 'type' => 'multicheckbox', 'default' => array()), 'cpostnoodp' => array('name' => __('Default to NOODP:', 'all-in-one-seo-pack'), 'type' => 'multicheckbox', 'default' => array()), 'cpostnoydir' => array('name' => __('Default to NOYDIR:', 'all-in-one-seo-pack'), 'type' => 'multicheckbox', 'default' => array()), 'cposttitles' => array('name' => __('Custom titles:', 'all-in-one-seo-pack'), 'type' => 'checkbox', 'default' => 0, 'condshow' => array('aiosp_rewrite_titles' => 1, 'aiosp_enablecpost' => 'on', 'aiosp_cpostadvanced' => 'on')), 'posttypecolumns' => array('name' => __('Show Column Labels for Custom Post Types:', 'all-in-one-seo-pack'), 'type' => 'multicheckbox', 'default' => array('post', 'page'), 'condshow' => array('aiosp_enablecpost' => 'on')), 'admin_bar' => array('name' => __('Display Menu In Admin Bar:', 'all-in-one-seo-pack'), 'default' => 'on'), 'custom_menu_order' => array('name' => __('Display Menu At The Top:', 'all-in-one-seo-pack'), 'default' => 'on'), 'google_verify' => array('name' => __('Google Webmaster Tools:', 'all-in-one-seo-pack'), 'default' => '', 'type' => 'text'), 'bing_verify' => array('name' => __('Bing Webmaster Center:', 'all-in-one-seo-pack'), 'default' => '', 'type' => 'text'), 'pinterest_verify' => array('name' => __('Pinterest Site Verification:', 'all-in-one-seo-pack'), 'default' => '', 'type' => 'text'), 'google_publisher' => array('name' => __('Google Plus Default Profile:', 'all-in-one-seo-pack'), 'default' => '', 'type' => 'text'), 'google_disable_profile' => array('name' => __('Disable Google Plus Profile:', 'all-in-one-seo-pack'), 'default' => 0, 'type' => 'checkbox'), 'google_sitelinks_search' => array('name' => __('Display Sitelinks Search Box:', 'all-in-one-seo-pack')), 'google_set_site_name' => array('name' => __('Set Preferred Site Name:', 'all-in-one-seo-pack')), 'google_specify_site_name' => array('name' => __('Specify A Preferred Name:', 'all-in-one-seo-pack'), 'type' => 'text', 'placeholder' => $blog_name, 'condshow' => array('aiosp_google_set_site_name' => 'on')), 'google_author_advanced' => array('name' => __('Advanced Authorship Options:', '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), 'google_author_location' => array('name' => __('Display Google Authorship:', 'all-in-one-seo-pack'), 'default' => array('all'), 'type' => 'multicheckbox', 'condshow' => array('aiosp_google_author_advanced' => 'on')), 'google_enable_publisher' => array('name' => __('Display Publisher Meta on Front Page:', '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')), 'condshow' => array('aiosp_google_author_advanced' => 'on')), 'google_specify_publisher' => array('name' => __('Specify Publisher URL:', 'all-in-one-seo-pack'), 'type' => 'text', 'condshow' => array('aiosp_google_author_advanced' => 'on', 'aiosp_google_enable_publisher' => 'on')), 'google_analytics_id' => array('name' => __('Google Analytics ID:', 'all-in-one-seo-pack'), 'default' => null, 'type' => 'text', 'placeholder' => 'UA-########-#'), 'ga_use_universal_analytics' => array('name' => __('Use Universal Analytics:', 'all-in-one-seo-pack'), 'default' => 0, 'condshow' => array('aiosp_google_analytics_id' => array('lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => ''))), 'ga_advanced_options' => array('name' => __('Advanced Analytics Options:', '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')), 'condshow' => array('aiosp_google_analytics_id' => array('lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => ''))), 'ga_domain' => array('name' => __('Tracking Domain:', 'all-in-one-seo-pack'), 'type' => 'text', 'condshow' => array('aiosp_google_analytics_id' => array('lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => ''), 'aiosp_ga_advanced_options' => 'on')), 'ga_multi_domain' => array('name' => __('Track Multiple Domains:', 'all-in-one-seo-pack'), 'default' => 0, 'condshow' => array('aiosp_google_analytics_id' => array('lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => ''), 'aiosp_ga_advanced_options' => 'on')), 'ga_addl_domains' => array('name' => __('Additional Domains:', 'all-in-one-seo-pack'), 'type' => 'textarea', 'condshow' => array('aiosp_google_analytics_id' => array('lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => ''), 'aiosp_ga_advanced_options' => 'on', 'aiosp_ga_multi_domain' => 'on')), 'ga_anonymize_ip' => array('name' => __('Anonymize IP Addresses:', 'all-in-one-seo-pack'), 'type' => 'checkbox', 'condshow' => array('aiosp_google_analytics_id' => array('lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => ''), 'aiosp_ga_advanced_options' => 'on')), 'ga_display_advertising' => array('name' => __('Display Advertiser Tracking:', 'all-in-one-seo-pack'), 'type' => 'checkbox', 'condshow' => array('aiosp_google_analytics_id' => array('lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => ''), 'aiosp_ga_advanced_options' => 'on')), 'ga_exclude_users' => array('name' => __('Exclude Users From Tracking:', 'all-in-one-seo-pack'), 'type' => 'multicheckbox', 'condshow' => array('aiosp_google_analytics_id' => array('lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => ''), 'aiosp_ga_advanced_options' => 'on')), 'ga_track_outbound_links' => array('name' => __('Track Outbound Links:', 'all-in-one-seo-pack'), 'default' => 0, 'condshow' => array('aiosp_google_analytics_id' => array('lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => ''), 'aiosp_ga_advanced_options' => 'on')), 'ga_link_attribution' => array('name' => __('Enhanced Link Attribution:', 'all-in-one-seo-pack'), 'default' => 0, 'condshow' => array('aiosp_google_analytics_id' => array('lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => ''), 'aiosp_ga_advanced_options' => 'on')), 'ga_enhanced_ecommerce' => array('name' => __('Enhanced Ecommerce:', 'all-in-one-seo-pack'), 'default' => 0, 'condshow' => array('aiosp_google_analytics_id' => array('lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => ''), 'aiosp_ga_use_universal_analytics' => 'on', 'aiosp_ga_advanced_options' => 'on')), 'use_categories' => array('name' => __('Use Categories for META keywords:', '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'), 'default' => 1, 'condshow' => array('aiosp_togglekeywords' => 0)), 'dynamic_postspage_keywords' => array('name' => __('Dynamically Generate Keywords for Posts Page/Archives:', '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'), 'default' => 1), 'archive_date_noindex' => array('name' => __('Use noindex for Date Archives:', 'all-in-one-seo-pack'), 'default' => 1), 'archive_author_noindex' => array('name' => __('Use noindex for Author Archives:', 'all-in-one-seo-pack'), 'default' => 1), 'tags_noindex' => array('name' => __('Use noindex for Tag Archives:', 'all-in-one-seo-pack'), 'default' => 0), 'search_noindex' => array('name' => __('Use noindex for the Search page:', 'all-in-one-seo-pack'), 'default' => 0), '404_noindex' => array('name' => __('Use noindex for the 404 page:', 'all-in-one-seo-pack'), 'default' => 0), 'tax_noindex' => array('name' => __('Use noindex for Taxonomy Archives:', 'all-in-one-seo-pack'), 'type' => 'multicheckbox', 'default' => array(), 'condshow' => array('aiosp_enablecpost' => 'on', 'aiosp_cpostadvanced' => 'on')), 'paginated_noindex' => array('name' => __('Use noindex for paginated pages/posts:', 'all-in-one-seo-pack'), 'default' => 0), 'paginated_nofollow' => array('name' => __('Use nofollow for paginated pages/posts:', 'all-in-one-seo-pack'), 'default' => 0), 'noodp' => array('name' => __('Exclude site from the Open Directory Project:', 'all-in-one-seo-pack'), 'default' => 0), 'noydir' => array('name' => __('Exclude site from Yahoo! Directory:', 'all-in-one-seo-pack'), 'default' => 0), 'skip_excerpt' => array('name' => __('Avoid Using The Excerpt In Descriptions:', 'all-in-one-seo-pack'), 'default' => 0), 'generate_descriptions' => array('name' => __('Autogenerate Descriptions:', 'all-in-one-seo-pack'), 'default' => 1), 'run_shortcodes' => array('name' => __('Run Shortcodes In Autogenerated Descriptions:', 'all-in-one-seo-pack'), 'default' => 0, 'condshow' => array('aiosp_generate_descriptions' => 'on')), 'hide_paginated_descriptions' => array('name' => __('Remove Descriptions For Paginated Pages:', 'all-in-one-seo-pack'), 'default' => 0), 'dont_truncate_descriptions' => array('name' => __('Never Shorten Long Descriptions:', 'all-in-one-seo-pack'), 'default' => 0), 'schema_markup' => array('name' => __('Use Schema.org Markup', 'all-in-one-seo-pack'), 'default' => 1), 'unprotect_meta' => array('name' => __('Unprotect Post Meta Fields:', 'all-in-one-seo-pack'), 'default' => 0), 'ex_pages' => array('name' => __('Exclude Pages:', 'all-in-one-seo-pack'), 'type' => 'textarea', 'default' => ''), 'post_meta_tags' => array('name' => __('Additional Post Headers:', 'all-in-one-seo-pack'), 'type' => 'textarea', 'default' => '', 'sanitize' => 'default'), 'page_meta_tags' => array('name' => __('Additional Page Headers:', 'all-in-one-seo-pack'), 'type' => 'textarea', 'default' => '', 'sanitize' => 'default'), 'front_meta_tags' => array('name' => __('Additional Front Page Headers:', 'all-in-one-seo-pack'), 'type' => 'textarea', 'default' => '', 'sanitize' => 'default'), 'home_meta_tags' => array('name' => __('Additional Blog Page Headers:', 'all-in-one-seo-pack'), 'type' => 'textarea', 'default' => '', 'sanitize' => 'default'), 'do_log' => array('name' => __('Log important events:', 'all-in-one-seo-pack'), 'default' => null));
        if (AIOSEOPPRO) {
            unset($this->default_options['donate']);
        } else {
            unset($this->default_options['license_key']);
            unset($this->default_options['taxactive']);
        }
        $this->locations = array('default' => array('name' => $this->name, 'prefix' => 'aiosp_', 'type' => 'settings', 'options' => null), 'aiosp' => array('name' => $this->plugin_name, 'type' => 'metabox', 'prefix' => '', 'help_link' => 'http://semperplugins.com/sections/postpage-settings/', 'options' => array('edit', 'nonce-aioseop-edit', AIOSEOPPRO ? 'support' : 'upgrade', 'snippet', 'title', 'description', 'keywords', 'custom_link', 'noindex', 'nofollow', 'noodp', 'noydir', 'titleatr', 'menulabel', 'sitemap_exclude', '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' => aiosp_common::get_upgrade_hyperlink('meta', __('Upgrade to All in One SEO Pack Pro Version', 'all-in-one-seo-pack'), __('UPGRADE TO PRO VERSION', 'all-in-one-seo-pack'), '_blank')), 'support' => array('type' => 'html', 'label' => 'none', 'default' => '<a target="_blank" href="https://semperplugins.com/support/">' . __('Support Forum', 'all-in-one-seo-pack') . '</a>'), 'snippet' => array('name' => __('Preview Snippet', 'all-in-one-seo-pack'), 'type' => 'custom', 'label' => 'top', 'default' => '
																									<script>
																									jQuery(document).ready(function() {
																										jQuery("#aiosp_title_wrapper").bind("input", function() {
																										    jQuery("#aiosp_snippet_title").text(jQuery("#aiosp_title_wrapper input").val().replace(/<(?:.|\\n)*?>/gm, ""));
																										});
																										jQuery("#aiosp_description_wrapper").bind("input", function() {
																										    jQuery("#aioseop_snippet_description").text(jQuery("#aiosp_description_wrapper textarea").val().replace(/<(?:.|\\n)*?>/gm, ""));
																										});
																									});
																									</script>
																									<div class="preview_snippet"><div id="aioseop_snippet"><h3><a>%s</a></h3><div><div><cite id="aioseop_snippet_link">%s</cite></div><span id="aioseop_snippet_description">%s</span></div></div></div>'), 'title' => array('name' => __('Title', 'all-in-one-seo-pack'), 'type' => 'text', 'count' => true, 'size' => 60), 'description' => array('name' => __('Description', 'all-in-one-seo-pack'), 'type' => 'textarea', 'count' => true, 'cols' => 80, 'rows' => 2), 'keywords' => array('name' => __('Keywords (comma separated)', 'all-in-one-seo-pack'), 'type' => 'text'), 'custom_link' => array('name' => __('Custom Canonical URL', 'all-in-one-seo-pack'), 'type' => 'text', 'size' => 60), 'noindex' => array('name' => __('Robots Meta NOINDEX', 'all-in-one-seo-pack'), 'default' => ''), 'nofollow' => array('name' => __('Robots Meta NOFOLLOW', 'all-in-one-seo-pack'), 'default' => ''), 'noodp' => array('name' => __('Robots Meta NOODP', 'all-in-one-seo-pack')), 'noydir' => array('name' => __('Robots Meta NOYDIR', 'all-in-one-seo-pack')), 'titleatr' => array('name' => __('Title Attribute', 'all-in-one-seo-pack'), 'type' => 'text', 'size' => 60), 'menulabel' => array('name' => __('Menu Label', 'all-in-one-seo-pack'), 'type' => 'text', 'size' => 60), 'sitemap_exclude' => array('name' => __('Exclude From Sitemap', 'all-in-one-seo-pack')), 'disable' => array('name' => __('Disable on this page/post', 'all-in-one-seo-pack')), 'disable_analytics' => array('name' => __('Disable Google Analytics', 'all-in-one-seo-pack'), 'condshow' => array('aiosp_disable' => 'on'))), 'display' => null));
        if (!empty($meta_help_text)) {
            foreach ($meta_help_text as $k => $v) {
                $this->locations['aiosp']['default_options'][$k]['help_text'] = $v;
            }
        }
        $this->layout = array('default' => array('name' => __('General Settings', 'all-in-one-seo-pack'), 'help_link' => 'https://semperplugins.com/documentation/general-settings/', 'options' => array()), 'home' => array('name' => __('Home Page Settings', 'all-in-one-seo-pack'), 'help_link' => 'https://semperplugins.com/documentation/home-page-settings/', 'options' => array('home_title', 'home_description', 'home_keywords', 'use_static_home_info')), 'title' => array('name' => __('Title Settings', 'all-in-one-seo-pack'), 'help_link' => 'https://semperplugins.com/documentation/title-settings/', 'options' => array('rewrite_titles', 'force_rewrites', 'cap_titles', 'cap_cats', 'home_page_title_format', 'page_title_format', 'post_title_format', 'category_title_format', 'archive_title_format', 'date_title_format', 'author_title_format', 'tag_title_format', 'search_title_format', 'description_format', '404_title_format', 'paged_format')), 'cpt' => array('name' => __('Custom Post Type Settings', 'all-in-one-seo-pack'), 'help_link' => 'http://semperplugins.com/documentation/custom-post-type-settings/', 'options' => array('enablecpost', 'cpostadvanced', 'taxactive', 'cpostactive', 'cposttitles')), 'display' => array('name' => __('Display Settings', 'all-in-one-seo-pack'), 'help_link' => 'http://semperplugins.com/documentation/display-settings/', 'options' => array('posttypecolumns', 'admin_bar', 'custom_menu_order')), 'webmaster' => array('name' => __('Webmaster Verification', 'all-in-one-seo-pack'), 'help_link' => 'http://semperplugins.com/sections/webmaster-verification/', 'options' => array('google_verify', 'bing_verify', 'pinterest_verify')), 'google' => array('name' => __('Google Settings', 'all-in-one-seo-pack'), 'help_link' => 'http://semperplugins.com/documentation/google-settings/', 'options' => array('google_publisher', 'google_disable_profile', 'google_sitelinks_search', 'google_set_site_name', 'google_specify_site_name', 'google_author_advanced', 'google_author_location', 'google_enable_publisher', 'google_specify_publisher', 'google_analytics_id', 'ga_use_universal_analytics', 'ga_advanced_options', 'ga_domain', 'ga_multi_domain', 'ga_addl_domains', 'ga_anonymize_ip', 'ga_display_advertising', 'ga_exclude_users', 'ga_track_outbound_links', 'ga_link_attribution', 'ga_enhanced_ecommerce')), 'noindex' => array('name' => __('Noindex Settings', 'all-in-one-seo-pack'), 'help_link' => 'http://semperplugins.com/documentation/noindex-settings/', 'options' => array('cpostnoindex', 'cpostnofollow', 'cpostnoodp', 'cpostnoydir', 'category_noindex', 'archive_date_noindex', 'archive_author_noindex', 'tags_noindex', 'search_noindex', '404_noindex', 'tax_noindex', 'paginated_noindex', 'paginated_nofollow', 'noodp', 'noydir')), 'advanced' => array('name' => __('Advanced Settings', 'all-in-one-seo-pack'), 'help_link' => 'http://semperplugins.com/documentation/advanced-settings/', 'options' => array('generate_descriptions', 'skip_excerpt', 'run_shortcodes', 'hide_paginated_descriptions', 'dont_truncate_descriptions', 'unprotect_meta', 'ex_pages', 'post_meta_tags', 'page_meta_tags', 'front_meta_tags', 'home_meta_tags')), 'keywords' => array('name' => __('Keyword Settings', 'all-in-one-seo-pack'), 'help_link' => 'http://semperplugins.com/documentation/keyword-settings/', 'options' => array('togglekeywords', 'use_categories', 'use_tags_as_keywords', 'dynamic_postspage_keywords')));
        if (!AIOSEOPPRO) {
            unset($this->layout['cpt']['options']['2']);
        }
        $other_options = array();
        foreach ($this->layout as $k => $v) {
            $other_options = array_merge($other_options, $v['options']);
        }
        $this->layout['default']['options'] = array_diff(array_keys($this->default_options), $other_options);
        if (is_admin()) {
            $this->add_help_text_links();
            add_action('aioseop_global_settings_header', array($this, 'display_right_sidebar'));
            add_action('aioseop_global_settings_footer', array($this, 'display_settings_footer'));
            add_action('output_option', array($this, 'custom_output_option'), 10, 2);
            add_action('all_admin_notices', array($this, 'visibility_warning'));
            if (!AIOSEOPPRO) {
                //	add_action('all_admin_notices', array( $this, 'woo_upgrade_notice'));
            }
        }
        if (AIOSEOPPRO) {
            add_action('split_shared_term', array($this, 'split_shared_term'), 10, 4);
        }
    }