Changeset 861972
- Timestamp:
- 02/20/2014 11:53:57 PM (10 years ago)
- Location:
- all-in-one-seo-pack
- Files:
-
- 1 added
- 7 edited
- 44 copied
Legend:
- Unmodified
- Added
- Removed
-
all-in-one-seo-pack/tags/2.1.4/aioseop_class.php
r861970 r861972 162 162 "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' ), 163 163 "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' ), 164 "google_publisher" => __( "Enter your Google Plus Profile URL here to link your site to your Google Plus account forauthorship.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),164 "google_publisher" => __( "Enter your Google authorship.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ), 165 165 "google_disable_profile"=> __( "Check this to remove the Google Plus field from the user profile screen.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ), 166 167 168 169 166 170 "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' ), 167 171 "google_analytics_id" => __( "Enter your Google Analytics ID here to track visitor behavior on your site using Google Analytics.<br /><a href='http://semperplugins.com/documentation/google-analytics/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ), … … 353 357 'name' => __( 'Disable Google Plus Profile:', 'all_in_one_seo_pack' ), 'default' => 0, 'type' => 'checkbox' 354 358 ), 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 355 381 "google_connect"=>Array( 'name' => __( 'Connect With Google Analytics', 'all_in_one_seo_pack' ), 356 382 ), … … 526 552 'name' => __( 'Google Settings', 'all_in_one_seo_pack' ), 527 553 'help_link' => 'http://semperplugins.com/documentation/google-settings/', 528 'options' => Array( "google_publisher", "google_disable_profile", "google_connect", "google_analytics_id", "ga_use_universal_analytics", "ga_domain", "ga_multi_domain", "ga_display_advertising", "ga_exclude_users", "ga_track_outbound_links" ) 554 'options' => Array( "google_publisher", "google_disable_profile", "google_author_advanced", "google_author_location", "google_enable_publisher" , "google_specify_publisher", 555 "google_connect", "google_analytics_id", "ga_use_universal_analytics", "ga_domain", "ga_multi_domain", "ga_display_advertising", "ga_exclude_users", "ga_track_outbound_links" ) 529 556 ), 530 557 'noindex' => Array( … … 728 755 $this->default_options["cpostnoindex"]['initial_options'] = $post_types; 729 756 $this->default_options["cpostnofollow"]['initial_options'] = $post_types; 757 758 759 760 730 761 foreach ( $post_types as $p => $pt ) { 731 762 $field = $p . "_title_format"; … … 903 934 if ( ( isset( $options["{$prefix}use_original_title"] ) ) && ( $options["{$prefix}use_original_title"] === '' ) ) 904 935 $options["{$prefix}use_original_title"] = 0; 936 937 905 938 } 906 939 return $options; … … 1174 1207 $description = $this->get_aioseop_description( $post ); 1175 1208 1209 1210 1176 1211 $description = apply_filters( 'aioseop_description', $description ); 1177 1212 … … 1303 1338 $googleplus = $aioseop_options['aiosp_google_publisher']; 1304 1339 1305 if ( $is_front_page && !empty( $aioseop_options['aiosp_google_publisher'] ) ) 1306 $publisher = $aioseop_options['aiosp_google_publisher']; 1340 1341 if ( $is_front_page ) { 1342 if ( !empty( $aioseop_options['aiosp_google_publisher'] ) ) 1343 $publisher = $aioseop_options['aiosp_google_publisher']; 1344 1345 if ( !empty( $aioseop_options["aiosp_google_author_advanced"] ) ) { 1346 if ( empty( $aioseop_options["aiosp_google_enable_publisher"] ) ) { 1347 $publisher = ''; 1348 } elseif ( !empty( $aioseop_options["aiosp_google_specify_publisher"] ) ) { 1349 $publisher = $aioseop_options["aiosp_google_specify_publisher"]; 1350 } 1351 } 1352 } 1307 1353 1308 1354 $publisher = apply_filters( 'aioseop_google_publisher', $publisher ); … … 1315 1361 else if ( !empty( $aioseop_options['aiosp_google_publisher'] ) ) 1316 1362 $author = $aioseop_options['aiosp_google_publisher']; 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1317 1377 1318 1378 $author = apply_filters( 'aioseop_google_author', $author ); -
all-in-one-seo-pack/tags/2.1.4/aioseop_functions.php
r861970 r861972 171 171 var aioseopadmin = { 172 172 blogUrl: "<?php print get_bloginfo( 'url'); ?>", 173 pluginPath: "<?php print AIOSEOP_PLUGIN_DIR; ?>",174 173 pluginUrl: "<?php print AIOSEOP_PLUGIN_URL; ?>", 175 174 requestUrl: "<?php print WP_ADMIN_URL . '/admin-ajax.php' ?>", -
all-in-one-seo-pack/tags/2.1.4/aioseop_module.css
r861970 r861972 679 679 .aioseop_tabs { 680 680 padding-top: 6px; 681 682 683 681 684 } 682 685 .aioseop_header_tabs li { -
all-in-one-seo-pack/tags/2.1.4/aioseop_module_class.php
r861970 r861972 47 47 $this->plugin_name = AIOSEOP_PLUGIN_NAME; 48 48 $this->plugin_path = Array(); 49 $this->plugin_path['dir'] = plugin_dir_path( $this->file );49 $this->plugin_path['dir'] = plugin_dir_path( $this->file ); 50 50 $this->plugin_path['basename'] = plugin_basename( $this->file ); 51 51 $this->plugin_path['dirname'] = dirname( $this->plugin_path['basename'] ); -
all-in-one-seo-pack/tags/2.1.4/aioseop_opengraph.php
r861970 r861972 277 277 278 278 function add_attributes( $output ) { // avoid having duplicate meta tags 279 if ( !empty( $this->options[ 'aiosp_opengraph_disable_jetpack' ] ) ) 279 if ( !empty( $this->options[ 'aiosp_opengraph_disable_jetpack' ] ) ) 280 280 remove_action( 'wp_head', 'jetpack_og_tags' ); 281 282 281 283 foreach( Array( 'xmlns="http://www.w3.org/1999/xhtml"', 'xmlns:og="http://ogp.me/ns#"', 'xmlns:fb="http://www.facebook.com/2008/fbml"' ) as $xmlns ) { 282 284 if ( strpos( $output, $xmlns ) === false ) { … … 304 306 } 305 307 $url = $aiosp->aiosp_mrt_get_url( $wp_query ); 306 $url = apply_filters( 'aioseop_canonical_url',$url ); 308 $home_url = get_option( 'home' ); 309 if ( $url == $home_url ) $url = trailingslashit( $url ); 310 $url = apply_filters( 'aioseop_canonical_url',$url ); 307 311 $setmeta = $this->options['aiosp_opengraph_setmeta']; 308 312 if ( is_home( ) || $aiosp->is_static_front_page() ) { … … 357 361 358 362 if ( !empty( $description ) ) 359 $description = $aiosp->trim_excerpt_without_filters( $aiosp->internationalize( preg_replace( '/\s+/', ' ', $ post->post_content) ), 1000 );363 $description = $aiosp->trim_excerpt_without_filters( $aiosp->internationalize( preg_replace( '/\s+/', ' ', $ ) ), 1000 ); 360 364 361 365 /* Data Validation */ -
all-in-one-seo-pack/tags/2.1.4/all_in_one_seo_pack.php
r861970 r861972 4 4 Plugin URI: http://semperfiwebdesign.com 5 5 Description: Out-of-the-box SEO for your WordPress blog. <a href="admin.php?page=all-in-one-seo-pack/aioseop_class.php">Options configuration panel</a> | <a href="http://semperplugins.com/plugins/all-in-one-seo-pack-pro-version/?loc=plugins" target="_blank">Upgrade to Pro Version</a> | <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¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8">Donate</a> | <a href="http://semperplugins.com/support/" >Support</a> | <a href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web" target="_blank" title="Amazon Wish List">Amazon Wishlist</a> 6 Version: 2.1. 36 Version: 2.1. 7 7 Author: Michael Torbert 8 8 Author URI: http://michaeltorbert.com … … 31 31 /** 32 32 * @package All-in-One-SEO-Pack 33 * @version 2.1. 333 * @version 2.1. 34 34 */ 35 35 36 36 if ( ! defined( 'AIOSEOP_VERSION' ) ) 37 define( 'AIOSEOP_VERSION', '2.1. 3' );37 define( 'AIOSEOP_VERSION', '2.1.' ); 38 38 39 39 if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) ) { -
all-in-one-seo-pack/trunk/aioseop_class.php
r844829 r861972 162 162 "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' ), 163 163 "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' ), 164 "google_publisher" => __( "Enter your Google Plus Profile URL here to link your site to your Google Plus account forauthorship.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),164 "google_publisher" => __( "Enter your Google authorship.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ), 165 165 "google_disable_profile"=> __( "Check this to remove the Google Plus field from the user profile screen.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ), 166 167 168 169 166 170 "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' ), 167 171 "google_analytics_id" => __( "Enter your Google Analytics ID here to track visitor behavior on your site using Google Analytics.<br /><a href='http://semperplugins.com/documentation/google-analytics/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ), … … 353 357 'name' => __( 'Disable Google Plus Profile:', 'all_in_one_seo_pack' ), 'default' => 0, 'type' => 'checkbox' 354 358 ), 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 355 381 "google_connect"=>Array( 'name' => __( 'Connect With Google Analytics', 'all_in_one_seo_pack' ), 356 382 ), … … 526 552 'name' => __( 'Google Settings', 'all_in_one_seo_pack' ), 527 553 'help_link' => 'http://semperplugins.com/documentation/google-settings/', 528 'options' => Array( "google_publisher", "google_disable_profile", "google_connect", "google_analytics_id", "ga_use_universal_analytics", "ga_domain", "ga_multi_domain", "ga_display_advertising", "ga_exclude_users", "ga_track_outbound_links" ) 554 'options' => Array( "google_publisher", "google_disable_profile", "google_author_advanced", "google_author_location", "google_enable_publisher" , "google_specify_publisher", 555 "google_connect", "google_analytics_id", "ga_use_universal_analytics", "ga_domain", "ga_multi_domain", "ga_display_advertising", "ga_exclude_users", "ga_track_outbound_links" ) 529 556 ), 530 557 'noindex' => Array( … … 728 755 $this->default_options["cpostnoindex"]['initial_options'] = $post_types; 729 756 $this->default_options["cpostnofollow"]['initial_options'] = $post_types; 757 758 759 760 730 761 foreach ( $post_types as $p => $pt ) { 731 762 $field = $p . "_title_format"; … … 903 934 if ( ( isset( $options["{$prefix}use_original_title"] ) ) && ( $options["{$prefix}use_original_title"] === '' ) ) 904 935 $options["{$prefix}use_original_title"] = 0; 936 937 905 938 } 906 939 return $options; … … 1174 1207 $description = $this->get_aioseop_description( $post ); 1175 1208 1209 1210 1176 1211 $description = apply_filters( 'aioseop_description', $description ); 1177 1212 … … 1303 1338 $googleplus = $aioseop_options['aiosp_google_publisher']; 1304 1339 1305 if ( $is_front_page && !empty( $aioseop_options['aiosp_google_publisher'] ) ) 1306 $publisher = $aioseop_options['aiosp_google_publisher']; 1340 1341 if ( $is_front_page ) { 1342 if ( !empty( $aioseop_options['aiosp_google_publisher'] ) ) 1343 $publisher = $aioseop_options['aiosp_google_publisher']; 1344 1345 if ( !empty( $aioseop_options["aiosp_google_author_advanced"] ) ) { 1346 if ( empty( $aioseop_options["aiosp_google_enable_publisher"] ) ) { 1347 $publisher = ''; 1348 } elseif ( !empty( $aioseop_options["aiosp_google_specify_publisher"] ) ) { 1349 $publisher = $aioseop_options["aiosp_google_specify_publisher"]; 1350 } 1351 } 1352 } 1307 1353 1308 1354 $publisher = apply_filters( 'aioseop_google_publisher', $publisher ); … … 1315 1361 else if ( !empty( $aioseop_options['aiosp_google_publisher'] ) ) 1316 1362 $author = $aioseop_options['aiosp_google_publisher']; 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1317 1377 1318 1378 $author = apply_filters( 'aioseop_google_author', $author ); -
all-in-one-seo-pack/trunk/aioseop_functions.php
r805127 r861972 171 171 var aioseopadmin = { 172 172 blogUrl: "<?php print get_bloginfo( 'url'); ?>", 173 pluginPath: "<?php print AIOSEOP_PLUGIN_DIR; ?>",174 173 pluginUrl: "<?php print AIOSEOP_PLUGIN_URL; ?>", 175 174 requestUrl: "<?php print WP_ADMIN_URL . '/admin-ajax.php' ?>", -
all-in-one-seo-pack/trunk/aioseop_module.css
r805127 r861972 679 679 .aioseop_tabs { 680 680 padding-top: 6px; 681 682 683 681 684 } 682 685 .aioseop_header_tabs li { -
all-in-one-seo-pack/trunk/aioseop_module_class.php
r825760 r861972 47 47 $this->plugin_name = AIOSEOP_PLUGIN_NAME; 48 48 $this->plugin_path = Array(); 49 $this->plugin_path['dir'] = plugin_dir_path( $this->file );49 $this->plugin_path['dir'] = plugin_dir_path( $this->file ); 50 50 $this->plugin_path['basename'] = plugin_basename( $this->file ); 51 51 $this->plugin_path['dirname'] = dirname( $this->plugin_path['basename'] ); -
all-in-one-seo-pack/trunk/aioseop_opengraph.php
r844829 r861972 277 277 278 278 function add_attributes( $output ) { // avoid having duplicate meta tags 279 if ( !empty( $this->options[ 'aiosp_opengraph_disable_jetpack' ] ) ) 279 if ( !empty( $this->options[ 'aiosp_opengraph_disable_jetpack' ] ) ) 280 280 remove_action( 'wp_head', 'jetpack_og_tags' ); 281 282 281 283 foreach( Array( 'xmlns="http://www.w3.org/1999/xhtml"', 'xmlns:og="http://ogp.me/ns#"', 'xmlns:fb="http://www.facebook.com/2008/fbml"' ) as $xmlns ) { 282 284 if ( strpos( $output, $xmlns ) === false ) { … … 304 306 } 305 307 $url = $aiosp->aiosp_mrt_get_url( $wp_query ); 306 $url = apply_filters( 'aioseop_canonical_url',$url ); 308 $home_url = get_option( 'home' ); 309 if ( $url == $home_url ) $url = trailingslashit( $url ); 310 $url = apply_filters( 'aioseop_canonical_url',$url ); 307 311 $setmeta = $this->options['aiosp_opengraph_setmeta']; 308 312 if ( is_home( ) || $aiosp->is_static_front_page() ) { … … 357 361 358 362 if ( !empty( $description ) ) 359 $description = $aiosp->trim_excerpt_without_filters( $aiosp->internationalize( preg_replace( '/\s+/', ' ', $ post->post_content) ), 1000 );363 $description = $aiosp->trim_excerpt_without_filters( $aiosp->internationalize( preg_replace( '/\s+/', ' ', $ ) ), 1000 ); 360 364 361 365 /* Data Validation */ -
all-in-one-seo-pack/trunk/all_in_one_seo_pack.php
r844829 r861972 4 4 Plugin URI: http://semperfiwebdesign.com 5 5 Description: Out-of-the-box SEO for your WordPress blog. <a href="admin.php?page=all-in-one-seo-pack/aioseop_class.php">Options configuration panel</a> | <a href="http://semperplugins.com/plugins/all-in-one-seo-pack-pro-version/?loc=plugins" target="_blank">Upgrade to Pro Version</a> | <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¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8">Donate</a> | <a href="http://semperplugins.com/support/" >Support</a> | <a href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web" target="_blank" title="Amazon Wish List">Amazon Wishlist</a> 6 Version: 2.1. 36 Version: 2.1. 7 7 Author: Michael Torbert 8 8 Author URI: http://michaeltorbert.com … … 31 31 /** 32 32 * @package All-in-One-SEO-Pack 33 * @version 2.1. 333 * @version 2.1. 34 34 */ 35 35 36 36 if ( ! defined( 'AIOSEOP_VERSION' ) ) 37 define( 'AIOSEOP_VERSION', '2.1. 3' );37 define( 'AIOSEOP_VERSION', '2.1.' ); 38 38 39 39 if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.