Changeset 825760
- Timestamp:
- 12/19/2013 09:02:47 PM (11 years ago)
- Location:
- all-in-one-seo-pack
- Files:
-
- 1 added
- 5 edited
- 44 copied
Legend:
- Unmodified
- Added
- Removed
-
all-in-one-seo-pack/tags/2.1.1/aioseop_class.php
r825759 r825760 169 169 "ga_domain" => __( "Enter your domain name if you have enabled tracking of Subdomains in Google Analytics.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ), 170 170 "ga_multi_domain" => __( "Check this if you have enabled tracking of Multiple top-level domains in Google Analytics.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ), 171 171 172 "ga_exclude_users" => __( "Exclude logged-in users from Google Analytics tracking by role.", 'all_in_one_seo_pack' ), 172 173 "ga_track_outbound_links"=> __( "Check this if you want to track outbound links with Google Analytics.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ), … … 369 370 'default' => 0, 370 371 'condshow' => Array( 'aiosp_google_analytics_id' => Array( 'lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => '' ) ) ), 372 373 374 375 376 371 377 "ga_exclude_users"=> Array( 372 378 'name' => __( 'Exclude Users From Tracking:', 'all_in_one_seo_pack' ), … … 520 526 'name' => __( 'Google Settings', 'all_in_one_seo_pack' ), 521 527 'help_link' => 'http://semperplugins.com/documentation/google-settings/', 522 'options' => Array( "google_publisher", "google_disable_profile", "google_connect", "google_analytics_id", "ga_use_universal_analytics", "ga_domain", "ga_multi_domain", "ga_ exclude_users", "ga_track_outbound_links" )528 'options' => Array( "google_publisher", "google_disable_profile", "google_connect", "google_analytics_id", "ga_use_universal_analytics", "ga_domain", "ga_multi_domain", "ga_exclude_users", "ga_track_outbound_links" ) 523 529 ), 524 530 'noindex' => Array( … … 604 610 <style> 605 611 #toplevel_page_all-in-one-seo-pack-aioseop_class .wp-menu-image { 606 background: url(<?php echo AIOSEOP_PLUGIN_IMAGES_URL; ?>shield-sprite-16.png) no-repeat 6px 6px !important;612 background: url(<?php echo AIOSEOP_PLUGIN_IMAGES_URL; ?>shield-sprite-16.png) no-repeat px 6px !important; 607 613 } 608 614 #toplevel_page_all-in-one-seo-pack-aioseop_class .wp-menu-image:before { … … 613 619 } 614 620 #toplevel_page_all-in-one-seo-pack-aioseop_class:hover .wp-menu-image, #toplevel_page_all-in-one-seo-pack-aioseop_class.wp-has-current-submenu .wp-menu-image { 615 background-position: 6px -26px !important;621 background-position: px -26px !important; 616 622 } 617 623 #icon-aioseop.icon32 { … … 761 767 762 768 function add_admin_pointers() { 763 $this->pointers['aioseop_menu_21 0'] = Array( 'pointer_target' => '#toplevel_page_all-in-one-seo-pack-aioseop_class',769 $this->pointers['aioseop_menu_21'] = Array( 'pointer_target' => '#toplevel_page_all-in-one-seo-pack-aioseop_class', 764 770 'pointer_text' => '<h3>' . sprintf( __( 'Welcome to Version %s!', 'all_in_one_seo_pack' ), AIOSEOP_VERSION ) 765 771 . '</h3><p>' . __( 'Thank you for running the latest and greatest All in One SEO Pack ever! Please review your settings, as we\'re always adding new features for you!', 'all_in_one_seo_pack' ) . '</p>', … … 768 774 'pointer_scope' => 'global' 769 775 ); 770 $this->pointers['aioseop_welcome_21 0'] = Array( 'pointer_target' => '#aioseop_top_button',776 $this->pointers['aioseop_welcome_21'] = Array( 'pointer_target' => '#aioseop_top_button', 771 777 'pointer_text' => '<h3>' . sprintf( __( 'Review Your Settings', 'all_in_one_seo_pack' ), AIOSEOP_VERSION ) 772 . '</h3><p>' . __( 'Thank you for running the latest and greatest All in One SEO Pack ever! N EW: Manage how your site appears on Facebook, Google+, and Twitter with our Social Meta module. Enable it from the Feature Manager. Remember to review your settings, we have added some new ones!', 'all_in_one_seo_pack' ) . '</p>',778 . '</h3><p>' . __( 'Thank you for running the latest and greatest All in One SEO Pack ever! N: Manage how your site appears on Facebook, Google+, and Twitter with our Social Meta module. Enable it from the Feature Manager. Remember to review your settings, we have added some new ones!', 'all_in_one_seo_pack' ) . '</p>', 773 779 'pointer_edge' => 'bottom', 774 780 'pointer_align' => 'left', … … 836 842 unset( $settings["{$prefix}$opt"] ); 837 843 844 845 846 838 847 } elseif ( $location == 'aiosp' ) { 839 848 global $post, $aioseop_sitemap; … … 1401 1410 1402 1411 function override_options( $options, $location, $settings ) { 1403 $opts = Array(); 1404 $options['aiosp_google_connect'] = $settings['aiosp_google_connect']['default']; 1412 if ( class_exists( 'DOMDocument' ) ) { 1413 $options['aiosp_google_connect'] = $settings['aiosp_google_connect']['default']; 1414 } 1405 1415 return $options; 1406 1416 } … … 1705 1715 (function() { 1706 1716 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 1707 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 1708 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 1717 <?php 1718 if (!empty( $aioseop_options['aiosp_ga_display_advertising'] ) ) { 1719 ?> ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; 1720 <?php 1721 } else { 1722 ?> ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 1723 <?php 1724 } 1725 ?> var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 1709 1726 })(); 1710 1727 </script> … … 1777 1794 return false; 1778 1795 1796 1779 1797 $haspost = count( $query->posts ) > 0; 1780 1798 … … 1824 1842 $taxonomy = get_query_var( 'taxonomy' ); 1825 1843 $term = get_query_var( 'term' ); 1826 $link = get_term_link( $term, $taxonomy ); 1844 if ( !empty( $term ) ) 1845 $link = get_term_link( $term, $taxonomy ); 1827 1846 } elseif ( $query->is_archive && function_exists( 'get_post_type_archive_link' ) && ( $post_type = get_query_var( 'post_type' ) ) ) { 1828 1847 $link = get_post_type_archive_link( $post_type ); … … 1830 1849 return false; 1831 1850 } 1851 1832 1852 return $this->yoast_get_paged( $link ); 1833 1853 } … … 2588 2608 add_meta_box('aioseop-list', __( "Join Our Mailing List", 'all_in_one_seo_pack' ), array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'normal', 'core'); 2589 2609 add_meta_box('aioseop-about', "About <span style='float:right;'>Version <b>" . AIOSEOP_VERSION . "</b></span>", array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'side', 'core'); 2610 2590 2611 2591 2612 add_action( 'aioseop_modules_add_menus', Array( $this, 'add_menu' ), 5 ); -
all-in-one-seo-pack/tags/2.1.1/aioseop_module_class.php
r825759 r825760 231 231 */ 232 232 function html_string_to_array( $xmlstr ) { 233 $doc = new DOMDocument(); 234 $doc->loadHTML( $xmlstr ); 235 return $this->domnode_to_array( $doc->documentElement ); 233 if ( !class_exists( 'DOMDocument' ) ) { 234 return Array(); 235 } else { 236 $doc = new DOMDocument(); 237 $doc->loadHTML( $xmlstr ); 238 return $this->domnode_to_array( $doc->documentElement ); 239 } 236 240 } 237 241 238 242 function xml_string_to_array( $xmlstr ) { 239 $doc = new DOMDocument(); 240 $doc->loadXML( $xmlstr ); 241 return $this->domnode_to_array( $doc->documentElement ); 243 if ( !class_exists( 'DOMDocument' ) ) { 244 return Array(); 245 } else { 246 $doc = new DOMDocument(); 247 $doc->loadXML( $xmlstr ); 248 return $this->domnode_to_array( $doc->documentElement ); 249 } 242 250 } 243 251 -
all-in-one-seo-pack/tags/2.1.1/aioseop_sitemap.php
r825759 r825760 1445 1445 'no_found_rows' => true 1446 1446 ); 1447 if ( defined( ' WPML_TM_VERSION' ) ) $defaults['suppress_filters'] = false;1447 if ( defined( '_VERSION' ) ) $defaults['suppress_filters'] = false; 1448 1448 $args = wp_parse_args( $args, $defaults ); 1449 1449 if ( empty( $args['post_type'] ) ) -
all-in-one-seo-pack/tags/2.1.1/all_in_one_seo_pack.php
r825759 r825760 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 6 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 33 * @version 2.1 34 34 */ 35 35 36 36 if ( ! defined( 'AIOSEOP_VERSION' ) ) 37 define( 'AIOSEOP_VERSION', '2.1 ' );37 define( 'AIOSEOP_VERSION', '2.1' ); 38 38 39 39 if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) ) { -
all-in-one-seo-pack/tags/2.1.1/readme.txt
r825759 r825760 4 4 Tags: all in one, all in one seo, all in one seo pack, seo, search engine optimization, google 5 5 Requires at least: 3.3 6 Tested up to: 3. 7.16 Tested up to: 3. 7 7 Stable tag: trunk 8 8 -
all-in-one-seo-pack/trunk/aioseop_class.php
r807614 r825760 169 169 "ga_domain" => __( "Enter your domain name if you have enabled tracking of Subdomains in Google Analytics.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ), 170 170 "ga_multi_domain" => __( "Check this if you have enabled tracking of Multiple top-level domains in Google Analytics.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ), 171 171 172 "ga_exclude_users" => __( "Exclude logged-in users from Google Analytics tracking by role.", 'all_in_one_seo_pack' ), 172 173 "ga_track_outbound_links"=> __( "Check this if you want to track outbound links with Google Analytics.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ), … … 369 370 'default' => 0, 370 371 'condshow' => Array( 'aiosp_google_analytics_id' => Array( 'lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => '' ) ) ), 372 373 374 375 376 371 377 "ga_exclude_users"=> Array( 372 378 'name' => __( 'Exclude Users From Tracking:', 'all_in_one_seo_pack' ), … … 520 526 'name' => __( 'Google Settings', 'all_in_one_seo_pack' ), 521 527 'help_link' => 'http://semperplugins.com/documentation/google-settings/', 522 'options' => Array( "google_publisher", "google_disable_profile", "google_connect", "google_analytics_id", "ga_use_universal_analytics", "ga_domain", "ga_multi_domain", "ga_ exclude_users", "ga_track_outbound_links" )528 'options' => Array( "google_publisher", "google_disable_profile", "google_connect", "google_analytics_id", "ga_use_universal_analytics", "ga_domain", "ga_multi_domain", "ga_exclude_users", "ga_track_outbound_links" ) 523 529 ), 524 530 'noindex' => Array( … … 604 610 <style> 605 611 #toplevel_page_all-in-one-seo-pack-aioseop_class .wp-menu-image { 606 background: url(<?php echo AIOSEOP_PLUGIN_IMAGES_URL; ?>shield-sprite-16.png) no-repeat 6px 6px !important;612 background: url(<?php echo AIOSEOP_PLUGIN_IMAGES_URL; ?>shield-sprite-16.png) no-repeat px 6px !important; 607 613 } 608 614 #toplevel_page_all-in-one-seo-pack-aioseop_class .wp-menu-image:before { … … 613 619 } 614 620 #toplevel_page_all-in-one-seo-pack-aioseop_class:hover .wp-menu-image, #toplevel_page_all-in-one-seo-pack-aioseop_class.wp-has-current-submenu .wp-menu-image { 615 background-position: 6px -26px !important;621 background-position: px -26px !important; 616 622 } 617 623 #icon-aioseop.icon32 { … … 761 767 762 768 function add_admin_pointers() { 763 $this->pointers['aioseop_menu_21 0'] = Array( 'pointer_target' => '#toplevel_page_all-in-one-seo-pack-aioseop_class',769 $this->pointers['aioseop_menu_21'] = Array( 'pointer_target' => '#toplevel_page_all-in-one-seo-pack-aioseop_class', 764 770 'pointer_text' => '<h3>' . sprintf( __( 'Welcome to Version %s!', 'all_in_one_seo_pack' ), AIOSEOP_VERSION ) 765 771 . '</h3><p>' . __( 'Thank you for running the latest and greatest All in One SEO Pack ever! Please review your settings, as we\'re always adding new features for you!', 'all_in_one_seo_pack' ) . '</p>', … … 768 774 'pointer_scope' => 'global' 769 775 ); 770 $this->pointers['aioseop_welcome_21 0'] = Array( 'pointer_target' => '#aioseop_top_button',776 $this->pointers['aioseop_welcome_21'] = Array( 'pointer_target' => '#aioseop_top_button', 771 777 'pointer_text' => '<h3>' . sprintf( __( 'Review Your Settings', 'all_in_one_seo_pack' ), AIOSEOP_VERSION ) 772 . '</h3><p>' . __( 'Thank you for running the latest and greatest All in One SEO Pack ever! N EW: Manage how your site appears on Facebook, Google+, and Twitter with our Social Meta module. Enable it from the Feature Manager. Remember to review your settings, we have added some new ones!', 'all_in_one_seo_pack' ) . '</p>',778 . '</h3><p>' . __( 'Thank you for running the latest and greatest All in One SEO Pack ever! N: Manage how your site appears on Facebook, Google+, and Twitter with our Social Meta module. Enable it from the Feature Manager. Remember to review your settings, we have added some new ones!', 'all_in_one_seo_pack' ) . '</p>', 773 779 'pointer_edge' => 'bottom', 774 780 'pointer_align' => 'left', … … 836 842 unset( $settings["{$prefix}$opt"] ); 837 843 844 845 846 838 847 } elseif ( $location == 'aiosp' ) { 839 848 global $post, $aioseop_sitemap; … … 1401 1410 1402 1411 function override_options( $options, $location, $settings ) { 1403 $opts = Array(); 1404 $options['aiosp_google_connect'] = $settings['aiosp_google_connect']['default']; 1412 if ( class_exists( 'DOMDocument' ) ) { 1413 $options['aiosp_google_connect'] = $settings['aiosp_google_connect']['default']; 1414 } 1405 1415 return $options; 1406 1416 } … … 1705 1715 (function() { 1706 1716 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 1707 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 1708 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 1717 <?php 1718 if (!empty( $aioseop_options['aiosp_ga_display_advertising'] ) ) { 1719 ?> ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; 1720 <?php 1721 } else { 1722 ?> ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 1723 <?php 1724 } 1725 ?> var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 1709 1726 })(); 1710 1727 </script> … … 1777 1794 return false; 1778 1795 1796 1779 1797 $haspost = count( $query->posts ) > 0; 1780 1798 … … 1824 1842 $taxonomy = get_query_var( 'taxonomy' ); 1825 1843 $term = get_query_var( 'term' ); 1826 $link = get_term_link( $term, $taxonomy ); 1844 if ( !empty( $term ) ) 1845 $link = get_term_link( $term, $taxonomy ); 1827 1846 } elseif ( $query->is_archive && function_exists( 'get_post_type_archive_link' ) && ( $post_type = get_query_var( 'post_type' ) ) ) { 1828 1847 $link = get_post_type_archive_link( $post_type ); … … 1830 1849 return false; 1831 1850 } 1851 1832 1852 return $this->yoast_get_paged( $link ); 1833 1853 } … … 2588 2608 add_meta_box('aioseop-list', __( "Join Our Mailing List", 'all_in_one_seo_pack' ), array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'normal', 'core'); 2589 2609 add_meta_box('aioseop-about', "About <span style='float:right;'>Version <b>" . AIOSEOP_VERSION . "</b></span>", array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'side', 'core'); 2610 2590 2611 2591 2612 add_action( 'aioseop_modules_add_menus', Array( $this, 'add_menu' ), 5 ); -
all-in-one-seo-pack/trunk/aioseop_module_class.php
r797370 r825760 231 231 */ 232 232 function html_string_to_array( $xmlstr ) { 233 $doc = new DOMDocument(); 234 $doc->loadHTML( $xmlstr ); 235 return $this->domnode_to_array( $doc->documentElement ); 233 if ( !class_exists( 'DOMDocument' ) ) { 234 return Array(); 235 } else { 236 $doc = new DOMDocument(); 237 $doc->loadHTML( $xmlstr ); 238 return $this->domnode_to_array( $doc->documentElement ); 239 } 236 240 } 237 241 238 242 function xml_string_to_array( $xmlstr ) { 239 $doc = new DOMDocument(); 240 $doc->loadXML( $xmlstr ); 241 return $this->domnode_to_array( $doc->documentElement ); 243 if ( !class_exists( 'DOMDocument' ) ) { 244 return Array(); 245 } else { 246 $doc = new DOMDocument(); 247 $doc->loadXML( $xmlstr ); 248 return $this->domnode_to_array( $doc->documentElement ); 249 } 242 250 } 243 251 -
all-in-one-seo-pack/trunk/aioseop_sitemap.php
r805127 r825760 1445 1445 'no_found_rows' => true 1446 1446 ); 1447 if ( defined( ' WPML_TM_VERSION' ) ) $defaults['suppress_filters'] = false;1447 if ( defined( '_VERSION' ) ) $defaults['suppress_filters'] = false; 1448 1448 $args = wp_parse_args( $args, $defaults ); 1449 1449 if ( empty( $args['post_type'] ) ) -
all-in-one-seo-pack/trunk/all_in_one_seo_pack.php
r805127 r825760 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 6 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 33 * @version 2.1 34 34 */ 35 35 36 36 if ( ! defined( 'AIOSEOP_VERSION' ) ) 37 define( 'AIOSEOP_VERSION', '2.1 ' );37 define( 'AIOSEOP_VERSION', '2.1' ); 38 38 39 39 if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) ) { -
all-in-one-seo-pack/trunk/readme.txt
r796767 r825760 4 4 Tags: all in one, all in one seo, all in one seo pack, seo, search engine optimization, google 5 5 Requires at least: 3.3 6 Tested up to: 3. 7.16 Tested up to: 3. 7 7 Stable tag: trunk 8 8
Note: See TracChangeset
for help on using the changeset viewer.