All in One SEO Pack - Version 1.5.3

Version Description

Download this release

Release Info

Developer hallsofmontezuma
Plugin Icon 128x128 All in One SEO Pack
Version 1.5.3
Comparing to
See all releases

Code changes from version 1.5.2 to 1.5.3

Files changed (2) hide show
  1. all_in_one_seo_pack.php +38 -13
  2. readme.txt +5 -1
all_in_one_seo_pack.php CHANGED
@@ -4,9 +4,9 @@
4
  Plugin Name: All in One SEO Pack
5
  Plugin URI: http://semperfiwebdesign.com
6
  Description: Out-of-the-box SEO for your Wordpress blog. <a href="options-general.php?page=all-in-one-seo-pack/all_in_one_seo_pack.php">Options configuration panel</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&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8">Donate</a> | <a href="http://semperfiwebdesign.com/documentation/all-in-one-seo-pack/all-in-one-seo-faq/" >Support</a>
7
- Version: 1.5.2
8
  Author: Michael Torbert
9
- Author URI: http://semperfiwebdesign.com
10
  */
11
 
12
  /*
@@ -485,7 +485,7 @@ if ( ! defined( 'WP_PLUGIN_DIR' ) )
485
 
486
  class All_in_One_SEO_Pack {
487
 
488
- var $version = "1.5.1";
489
 
490
  /** Max numbers of chars in auto-generated description */
491
  var $maximum_description_length = 160;
@@ -619,7 +619,10 @@ class All_in_One_SEO_Pack {
619
  global $wp_query;
620
  $post = $wp_query->get_queried_object();
621
  $meta_string = null;
622
-
 
 
 
623
  //echo("wp_head() " . wp_title('', false) . " is_home() => " . is_home() . ", is_page() => " . is_page() . ", is_single() => " . is_single() . ", is_static_front_page() => " . $this->is_static_front_page() . ", is_static_posts_page() => " . $this->is_static_posts_page());
624
 
625
  if (is_single() || is_page()) {
@@ -658,13 +661,18 @@ class All_in_One_SEO_Pack {
658
  }
659
  echo "[$this->title_start,$this->title_end] ";
660
  echo "-->\n";
661
-
662
- if ((is_home() && get_option('aiosp_home_keywords')) || $this->is_static_front_page()) {
663
  $keywords = trim($this->internationalize(get_option('aiosp_home_keywords')));
664
- } else {
665
- $keywords = $this->get_all_keywords();
666
- }
667
- if (is_single() || is_page()) {
 
 
 
 
 
 
668
  if ($this->is_static_front_page()) {
669
  $description = trim(stripcslashes($this->internationalize(get_option('aiosp_home_description'))));
670
  } else {
@@ -728,7 +736,7 @@ class All_in_One_SEO_Pack {
728
  $page_meta = stripcslashes(get_option('aiosp_page_meta_tags'));
729
  $post_meta = stripcslashes(get_option('aiosp_post_meta_tags'));
730
  $home_meta = stripcslashes(get_option('aiosp_home_meta_tags'));
731
- if (is_page() && isset($page_meta) && !empty($page_meta)) {
732
  if (isset($meta_string)) {
733
  $meta_string .= "\n";
734
  }
@@ -1020,7 +1028,7 @@ class All_in_One_SEO_Pack {
1020
  // simple tagging support
1021
  global $STagging;
1022
 
1023
- if (is_home()) {
1024
  $title = $this->internationalize(get_option('aiosp_home_title'));
1025
  if (empty($title)) {
1026
  $title = $this->internationalize(get_option('blogname'));
@@ -1077,7 +1085,7 @@ class All_in_One_SEO_Pack {
1077
  $title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $title);
1078
  $title = $this->paged_title($title);
1079
  $header = $this->replace_title($header, $title);
1080
- } else if (is_page()) {
1081
  // we're not in the loop :(
1082
  $authordata = get_userdata($post->post_author);
1083
  if ($this->is_static_front_page()) {
@@ -1674,6 +1682,7 @@ class All_in_One_SEO_Pack {
1674
  update_option('aiosp_404_title_format', $_POST['aiosp_404_title_format']);
1675
  update_option('aiosp_paged_format', $_POST['aiosp_paged_format']);
1676
  update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
 
1677
  update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
1678
  update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
1679
  update_option('aiosp_tags_noindex', $_POST['aiosp_tags_noindex']);
@@ -2109,6 +2118,21 @@ _e('Check this if you want your categories for a given post used as the META key
2109
  </td>
2110
  </tr>
2111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2112
  <tr>
2113
  <th scope="row" style="text-align:right; vertical-align:top;">
2114
  <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_category_noindex_tip');">
@@ -2287,6 +2311,7 @@ add_option("aiosp_tags_noindex", 0, 'All in One SEO Plugin Noindex for Tag Archi
2287
  add_option("aiosp_generate_descriptions", 1, 'All in One SEO Plugin Autogenerate Descriptions', 'yes');
2288
  add_option("aiosp_post_title_format", '%post_title% | %blog_title%', 'All in One SEO Plugin Post Title Format', 'yes');
2289
  add_option("aiosp_page_title_format", '%page_title% | %blog_title%', 'All in One SEO Plugin Page Title Format', 'yes');
 
2290
  add_option("aiosp_category_title_format", '%category_title% | %blog_title%', 'All in One SEO Plugin Category Title Format', 'yes');
2291
  add_option("aiosp_archive_title_format", '%date% | %blog_title%', 'All in One SEO Plugin Archive Title Format', 'yes');
2292
  add_option("aiosp_tag_title_format", '%tag% | %blog_title%', 'All in One SEO Plugin Tag Title Format', 'yes');
4
  Plugin Name: All in One SEO Pack
5
  Plugin URI: http://semperfiwebdesign.com
6
  Description: Out-of-the-box SEO for your Wordpress blog. <a href="options-general.php?page=all-in-one-seo-pack/all_in_one_seo_pack.php">Options configuration panel</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&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8">Donate</a> | <a href="http://semperfiwebdesign.com/documentation/all-in-one-seo-pack/all-in-one-seo-faq/" >Support</a>
7
+ Version: 1.5.3
8
  Author: Michael Torbert
9
+ Author URI: http://michaeltorbert.com
10
  */
11
 
12
  /*
485
 
486
  class All_in_One_SEO_Pack {
487
 
488
+ var $version = "1.5.3";
489
 
490
  /** Max numbers of chars in auto-generated description */
491
  var $maximum_description_length = 160;
619
  global $wp_query;
620
  $post = $wp_query->get_queried_object();
621
  $meta_string = null;
622
+ if($this->is_static_posts_page()){
623
+ $title = strip_tags( apply_filters( 'single_post_title', $post->post_title ) );
624
+
625
+ }
626
  //echo("wp_head() " . wp_title('', false) . " is_home() => " . is_home() . ", is_page() => " . is_page() . ", is_single() => " . is_single() . ", is_static_front_page() => " . $this->is_static_front_page() . ", is_static_posts_page() => " . $this->is_static_posts_page());
627
 
628
  if (is_single() || is_page()) {
661
  }
662
  echo "[$this->title_start,$this->title_end] ";
663
  echo "-->\n";
664
+ if ((is_home() && get_option('aiosp_home_keywords') && !$this->is_static_posts_page()) || $this->is_static_front_page()) {
 
665
  $keywords = trim($this->internationalize(get_option('aiosp_home_keywords')));
666
+ } elseif($this->is_static_posts_page() && !get_option('aiosp_dynamic_postspage_keywords')){ // and if option = use page set keywords instead of keywords from recent posts
667
+ //$keywords = "posts keyyysss" . stripcslashes(get_post_meta($post->ID,'keywords',true));
668
+ $keywords = stripcslashes($this->internationalize(get_post_meta($post->ID, "keywords", true)));
669
+
670
+ // $keywords = $this->get_unique_keywords($keywords);
671
+
672
+ }else {
673
+ $keywords = $this->get_all_keywords();
674
+ }
675
+ if (is_single() || is_page() || $this->is_static_posts_page()) {
676
  if ($this->is_static_front_page()) {
677
  $description = trim(stripcslashes($this->internationalize(get_option('aiosp_home_description'))));
678
  } else {
736
  $page_meta = stripcslashes(get_option('aiosp_page_meta_tags'));
737
  $post_meta = stripcslashes(get_option('aiosp_post_meta_tags'));
738
  $home_meta = stripcslashes(get_option('aiosp_home_meta_tags'));
739
+ if (is_page() && isset($page_meta) && !empty($page_meta) || $this->is_static_posts_page()) {
740
  if (isset($meta_string)) {
741
  $meta_string .= "\n";
742
  }
1028
  // simple tagging support
1029
  global $STagging;
1030
 
1031
+ if (is_home() && !$this->is_static_posts_page()) {
1032
  $title = $this->internationalize(get_option('aiosp_home_title'));
1033
  if (empty($title)) {
1034
  $title = $this->internationalize(get_option('blogname'));
1085
  $title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $title);
1086
  $title = $this->paged_title($title);
1087
  $header = $this->replace_title($header, $title);
1088
+ } else if (is_page() || $this->is_static_posts_page()) {
1089
  // we're not in the loop :(
1090
  $authordata = get_userdata($post->post_author);
1091
  if ($this->is_static_front_page()) {
1682
  update_option('aiosp_404_title_format', $_POST['aiosp_404_title_format']);
1683
  update_option('aiosp_paged_format', $_POST['aiosp_paged_format']);
1684
  update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
1685
+ update_option('aiosp_dynamic_postspage_keywords', $_POST['aiosp_dynamic_postspage_keywords']);
1686
  update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
1687
  update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
1688
  update_option('aiosp_tags_noindex', $_POST['aiosp_tags_noindex']);
2118
  </td>
2119
  </tr>
2120
 
2121
+ <tr>
2122
+ <th scope="row" style="text-align:right; vertical-align:top;">
2123
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_dynamic_postspage_keywords_tip');">
2124
+ <?php _e('Dynamically Generate Keywords for Posts Page:', 'all_in_one_seo_pack')?>
2125
+ </td>
2126
+ <td>
2127
+ <input type="checkbox" name="aiosp_dynamic_postspage_keywords" <?php if (get_option('aiosp_dynamic_postspage_keywords')) echo "checked=\"1\""; ?>/>
2128
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_dynamic_postspage_keywords_tip">
2129
+ <?php
2130
+ _e('Check this if you want your keywords on a custom posts page (set it in options->reading) to be dynamically generated from the keywords of the posts showing on that page. If unchecked, it will use the keywords set in the edit page screen for the posts page.', 'all_in_one_seo_pack');
2131
+ ?>
2132
+ </div>
2133
+ </td>
2134
+ </tr>
2135
+
2136
  <tr>
2137
  <th scope="row" style="text-align:right; vertical-align:top;">
2138
  <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_category_noindex_tip');">
2311
  add_option("aiosp_generate_descriptions", 1, 'All in One SEO Plugin Autogenerate Descriptions', 'yes');
2312
  add_option("aiosp_post_title_format", '%post_title% | %blog_title%', 'All in One SEO Plugin Post Title Format', 'yes');
2313
  add_option("aiosp_page_title_format", '%page_title% | %blog_title%', 'All in One SEO Plugin Page Title Format', 'yes');
2314
+ add_option("aiosp_dynamic_postspage_keywords", 1, 'All in One SEO Plugin Dynamic Posts Page Keywords', 'yes');
2315
  add_option("aiosp_category_title_format", '%category_title% | %blog_title%', 'All in One SEO Plugin Category Title Format', 'yes');
2316
  add_option("aiosp_archive_title_format", '%date% | %blog_title%', 'All in One SEO Plugin Archive Title Format', 'yes');
2317
  add_option("aiosp_tag_title_format", '%tag% | %blog_title%', 'All in One SEO Plugin Tag Title Format', 'yes');
readme.txt CHANGED
@@ -21,7 +21,8 @@ Automatically optimizes your Wordpress blog for Search Engines (Search Engine Op
21
 
22
  Some features:
23
 
24
- **Canonical URLs
 
25
  * Automatically optimizes your **titles** for search engines
26
  * Generates **META tags automatically**
27
  * Avoids the typical duplicate content found on Wordpress blogs
@@ -35,6 +36,9 @@ Be sure to check out:
35
  and
36
  [SMS Text Message](http://wordpress.org/extend/plugins/sms-text-message/)
37
 
 
 
 
38
  == Installation ==
39
 
40
  1. Unzip into your `/wp-content/plugins/` directory. If you're uploading it make sure to upload
21
 
22
  Some features:
23
 
24
+ * Canonical URLs
25
+ * Support for CMS-style WordPress installations
26
  * Automatically optimizes your **titles** for search engines
27
  * Generates **META tags automatically**
28
  * Avoids the typical duplicate content found on Wordpress blogs
36
  and
37
  [SMS Text Message](http://wordpress.org/extend/plugins/sms-text-message/)
38
 
39
+ Follow me on Twitter to keep up with the latest updates [Michael
40
+ Torbert](http://twitter.com/michaeltorbert/)
41
+
42
  == Installation ==
43
 
44
  1. Unzip into your `/wp-content/plugins/` directory. If you're uploading it make sure to upload