Version Description
Download this release
Release Info
Developer | uberdose |
Plugin | All in One SEO Pack |
Version | 1.0 |
Comparing to | |
See all releases |
Code changes from version 0.6.3.6 to 1.0
- all_in_one_seo_pack.php +9 -3
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: 0
|
8 |
Author: uberdose
|
9 |
Author URI: http://wp.uberdose.com/
|
10 |
*/
|
@@ -27,7 +27,7 @@ Author URI: http://wp.uberdose.com/
|
|
27 |
|
28 |
class All_in_One_SEO_Pack {
|
29 |
|
30 |
-
var $version = "0
|
31 |
|
32 |
/**
|
33 |
* Number of words to be used (max) for generating an excerpt.
|
@@ -149,7 +149,10 @@ class All_in_One_SEO_Pack {
|
|
149 |
$title = wp_title('', false);
|
150 |
}
|
151 |
if ($title) {
|
152 |
-
|
|
|
|
|
|
|
153 |
$title = trim($title);
|
154 |
$header = preg_replace("/<title>.*<\/title>/", "<title>$title</title>", $header);
|
155 |
}
|
@@ -332,6 +335,7 @@ class All_in_One_SEO_Pack {
|
|
332 |
update_option('aiosp_home_keywords', $_POST['aiosp_home_keywords']);
|
333 |
update_option('aiosp_max_words_excerpt', $_POST['aiosp_max_words_excerpt']);
|
334 |
update_option('aiosp_rewrite_titles', $_POST['aiosp_rewrite_titles']);
|
|
|
335 |
update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
|
336 |
update_option('aiosp_use_category_description_as_title', $_POST['aiosp_use_category_description_as_title']);
|
337 |
update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
|
@@ -392,6 +396,7 @@ class All_in_One_SEO_Pack {
|
|
392 |
</td>
|
393 |
<td>
|
394 |
<input type="checkbox" name="aiosp_rewrite_titles" <?php if (get_option('aiosp_rewrite_titles')) echo "checked=\"1\""; ?>/>
|
|
|
395 |
</td>
|
396 |
</tr>
|
397 |
<tr>
|
@@ -476,6 +481,7 @@ add_option("aiosp_use_category_description_as_title", 0, __('Use Category Descri
|
|
476 |
add_option("aiosp_category_noindex", 1, __('All in One SEO Plugin Noindex for Categories', 'all_in_one_seo_pack'), 'yes');
|
477 |
add_option("aiosp_archive_noindex", 1, __('All in One SEO Plugin Noindex for Archives', 'all_in_one_seo_pack'), 'yes');
|
478 |
add_option("aiosp_generate_descriptions", 0, __('All in One SEO Plugin Autogenerate Descriptions', 'all_in_one_seo_pack'), 'yes');
|
|
|
479 |
|
480 |
$aiosp = new All_in_One_SEO_Pack();
|
481 |
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.0
|
8 |
Author: uberdose
|
9 |
Author URI: http://wp.uberdose.com/
|
10 |
*/
|
27 |
|
28 |
class All_in_One_SEO_Pack {
|
29 |
|
30 |
+
var $version = "1.0";
|
31 |
|
32 |
/**
|
33 |
* Number of words to be used (max) for generating an excerpt.
|
149 |
$title = wp_title('', false);
|
150 |
}
|
151 |
if ($title) {
|
152 |
+
$title_format = get_option('aiosp_title_format');
|
153 |
+
$new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
154 |
+
$new_title = str_replace('%post_title%', $title, $new_title);
|
155 |
+
$title = $new_title;
|
156 |
$title = trim($title);
|
157 |
$header = preg_replace("/<title>.*<\/title>/", "<title>$title</title>", $header);
|
158 |
}
|
335 |
update_option('aiosp_home_keywords', $_POST['aiosp_home_keywords']);
|
336 |
update_option('aiosp_max_words_excerpt', $_POST['aiosp_max_words_excerpt']);
|
337 |
update_option('aiosp_rewrite_titles', $_POST['aiosp_rewrite_titles']);
|
338 |
+
update_option('aiosp_title_format', $_POST['aiosp_title_format']);
|
339 |
update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
|
340 |
update_option('aiosp_use_category_description_as_title', $_POST['aiosp_use_category_description_as_title']);
|
341 |
update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
|
396 |
</td>
|
397 |
<td>
|
398 |
<input type="checkbox" name="aiosp_rewrite_titles" <?php if (get_option('aiosp_rewrite_titles')) echo "checked=\"1\""; ?>/>
|
399 |
+
<input size="59" name="aiosp_title_format" value="<?php echo stripcslashes(get_option('aiosp_title_format')); ?>"/>
|
400 |
</td>
|
401 |
</tr>
|
402 |
<tr>
|
481 |
add_option("aiosp_category_noindex", 1, __('All in One SEO Plugin Noindex for Categories', 'all_in_one_seo_pack'), 'yes');
|
482 |
add_option("aiosp_archive_noindex", 1, __('All in One SEO Plugin Noindex for Archives', 'all_in_one_seo_pack'), 'yes');
|
483 |
add_option("aiosp_generate_descriptions", 0, __('All in One SEO Plugin Autogenerate Descriptions', 'all_in_one_seo_pack'), 'yes');
|
484 |
+
add_option("aiosp_title_format", '%post_title% | %blog_title%', __('All in One SEO Plugin Title Format', 'all_in_one_seo_pack'), 'yes');
|
485 |
|
486 |
$aiosp = new All_in_One_SEO_Pack();
|
487 |
add_action('wp_head', array($aiosp, 'wp_head'));
|