Version Description
Download this release
Release Info
| Developer | uberdose |
| Plugin | |
| Version | 1.2.5.7 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.5.6 to 1.2.5.7
- all_in_one_seo_pack.php +20 -6
all_in_one_seo_pack.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
Plugin Name: All in One SEO Pack
|
| 5 |
Plugin URI: http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/
|
| 6 |
Description: Out-of-the-box SEO for your Wordpress blog.
|
| 7 |
-
Version: 1.2.5.
|
| 8 |
Author: uberdose
|
| 9 |
Author URI: http://wp.uberdose.com/
|
| 10 |
*/
|
|
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
| 28 |
|
| 29 |
class All_in_One_SEO_Pack {
|
| 30 |
|
| 31 |
-
var $version = "1.2.5.
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Number of words to be used (max) for generating an excerpt.
|
|
@@ -107,6 +107,8 @@ class All_in_One_SEO_Pack {
|
|
| 107 |
}
|
| 108 |
} else if (is_home()) {
|
| 109 |
$description = trim(stripslashes(get_option('aiosp_home_description')));
|
|
|
|
|
|
|
| 110 |
}
|
| 111 |
|
| 112 |
if (isset($description) && strlen($description) > $this->minimum_excerpt_length) {
|
|
@@ -188,10 +190,10 @@ class All_in_One_SEO_Pack {
|
|
| 188 |
}
|
| 189 |
$header = $this->replace_title($header, $title);
|
| 190 |
} else if (is_category() && !is_feed()) {
|
| 191 |
-
$
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
$header = $this->replace_title($header, $title);
|
| 196 |
} else if (is_page()) {
|
| 197 |
$title = get_post_meta($post->ID, "title", true);
|
|
@@ -465,6 +467,7 @@ class All_in_One_SEO_Pack {
|
|
| 465 |
update_option('aiosp_rewrite_titles', $_POST['aiosp_rewrite_titles']);
|
| 466 |
update_option('aiosp_post_title_format', $_POST['aiosp_post_title_format']);
|
| 467 |
update_option('aiosp_page_title_format', $_POST['aiosp_page_title_format']);
|
|
|
|
| 468 |
update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
|
| 469 |
update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
|
| 470 |
update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
|
|
@@ -553,6 +556,16 @@ class All_in_One_SEO_Pack {
|
|
| 553 |
</tr>
|
| 554 |
<tr>
|
| 555 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 556 |
<a target="_blank" title="<?php _e('Help for Option Categories for META keywords', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#categorymetakeywords">
|
| 557 |
<?php _e('Use Categories for META keywords:', 'all_in_one_seo_pack')?>
|
| 558 |
</td>
|
|
@@ -635,6 +648,7 @@ add_option("aiosp_tags_noindex", 1, __('All in One SEO Plugin Noindex for Tag Ar
|
|
| 635 |
add_option("aiosp_generate_descriptions", 0, __('All in One SEO Plugin Autogenerate Descriptions', 'all_in_one_seo_pack'), 'yes');
|
| 636 |
add_option("aiosp_post_title_format", '%post_title% | %blog_title%', __('All in One SEO Plugin Post Title Format', 'all_in_one_seo_pack'), 'yes');
|
| 637 |
add_option("aiosp_page_title_format", '%page_title% | %blog_title%', __('All in One SEO Plugin Page Title Format', 'all_in_one_seo_pack'), 'yes');
|
|
|
|
| 638 |
|
| 639 |
$aiosp = new All_in_One_SEO_Pack();
|
| 640 |
add_action('wp_head', array($aiosp, 'wp_head'));
|
| 4 |
Plugin Name: All in One SEO Pack
|
| 5 |
Plugin URI: http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/
|
| 6 |
Description: Out-of-the-box SEO for your Wordpress blog.
|
| 7 |
+
Version: 1.2.5.7
|
| 8 |
Author: uberdose
|
| 9 |
Author URI: http://wp.uberdose.com/
|
| 10 |
*/
|
| 28 |
|
| 29 |
class All_in_One_SEO_Pack {
|
| 30 |
|
| 31 |
+
var $version = "1.2.5.7";
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Number of words to be used (max) for generating an excerpt.
|
| 107 |
}
|
| 108 |
} else if (is_home()) {
|
| 109 |
$description = trim(stripslashes(get_option('aiosp_home_description')));
|
| 110 |
+
} else if (is_category()) {
|
| 111 |
+
$description = category_description();
|
| 112 |
}
|
| 113 |
|
| 114 |
if (isset($description) && strlen($description) > $this->minimum_excerpt_length) {
|
| 190 |
}
|
| 191 |
$header = $this->replace_title($header, $title);
|
| 192 |
} else if (is_category() && !is_feed()) {
|
| 193 |
+
$category_name = ucwords(single_cat_title('', false));
|
| 194 |
+
$title_format = get_option('aiosp_category_title_format');
|
| 195 |
+
$title = str_replace('%category_title%', $category_name, $title_format);
|
| 196 |
+
$title = str_replace('%blog_title%', get_bloginfo('name'), $title);
|
| 197 |
$header = $this->replace_title($header, $title);
|
| 198 |
} else if (is_page()) {
|
| 199 |
$title = get_post_meta($post->ID, "title", true);
|
| 467 |
update_option('aiosp_rewrite_titles', $_POST['aiosp_rewrite_titles']);
|
| 468 |
update_option('aiosp_post_title_format', $_POST['aiosp_post_title_format']);
|
| 469 |
update_option('aiosp_page_title_format', $_POST['aiosp_page_title_format']);
|
| 470 |
+
update_option('aiosp_category_title_format', $_POST['aiosp_category_title_format']);
|
| 471 |
update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
|
| 472 |
update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
|
| 473 |
update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
|
| 556 |
</tr>
|
| 557 |
<tr>
|
| 558 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 559 |
+
<a target="_blank" title="<?php _e('Help for Category Title Format', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#categorytitleformat">
|
| 560 |
+
<?php _e('Category Title Format:', 'all_in_one_seo_pack')?>
|
| 561 |
+
</a>
|
| 562 |
+
</td>
|
| 563 |
+
<td>
|
| 564 |
+
<input size="59" name="aiosp_category_title_format" value="<?php echo stripcslashes(get_option('aiosp_category_title_format')); ?>"/>
|
| 565 |
+
</td>
|
| 566 |
+
</tr>
|
| 567 |
+
<tr>
|
| 568 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 569 |
<a target="_blank" title="<?php _e('Help for Option Categories for META keywords', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#categorymetakeywords">
|
| 570 |
<?php _e('Use Categories for META keywords:', 'all_in_one_seo_pack')?>
|
| 571 |
</td>
|
| 648 |
add_option("aiosp_generate_descriptions", 0, __('All in One SEO Plugin Autogenerate Descriptions', 'all_in_one_seo_pack'), 'yes');
|
| 649 |
add_option("aiosp_post_title_format", '%post_title% | %blog_title%', __('All in One SEO Plugin Post Title Format', 'all_in_one_seo_pack'), 'yes');
|
| 650 |
add_option("aiosp_page_title_format", '%page_title% | %blog_title%', __('All in One SEO Plugin Page Title Format', 'all_in_one_seo_pack'), 'yes');
|
| 651 |
+
add_option("aiosp_category_title_format", '%category_title% | %blog_title%', __('All in One SEO Plugin Category Title Format', 'all_in_one_seo_pack'), 'yes');
|
| 652 |
|
| 653 |
$aiosp = new All_in_One_SEO_Pack();
|
| 654 |
add_action('wp_head', array($aiosp, 'wp_head'));
|
