Version Description
Download this release
Release Info
| Developer | uberdose |
| Plugin | |
| Version | 1.4.5.4 |
| Comparing to | |
| See all releases | |
Code changes from version 1.4.5.3 to 1.4.5.4
- all_in_one_seo_pack-ja.mo +0 -0
- all_in_one_seo_pack.php +17 -4
all_in_one_seo_pack-ja.mo
ADDED
|
Binary file
|
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.4.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.4.5.
|
| 32 |
|
| 33 |
/** Max numbers of chars in auto-generated description */
|
| 34 |
var $maximum_description_length = 160;
|
|
@@ -261,10 +261,9 @@ class All_in_One_SEO_Pack {
|
|
| 261 |
|
| 262 |
if ($meta_string != null) {
|
| 263 |
echo "$meta_string\n";
|
| 264 |
-
} else {
|
| 265 |
-
echo "\n";
|
| 266 |
}
|
| 267 |
|
|
|
|
| 268 |
}
|
| 269 |
|
| 270 |
function get_post_description($post) {
|
|
@@ -405,6 +404,9 @@ class All_in_One_SEO_Pack {
|
|
| 405 |
|
| 406 |
// the_search_query() is not suitable, it cannot just return
|
| 407 |
global $s;
|
|
|
|
|
|
|
|
|
|
| 408 |
|
| 409 |
if (is_home()) {
|
| 410 |
if ($this->is_static_posts_page()) {
|
|
@@ -506,6 +508,17 @@ class All_in_One_SEO_Pack {
|
|
| 506 |
$title = $this->paged_title($title);
|
| 507 |
$header = $this->replace_title($header, $title);
|
| 508 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 509 |
} else if (is_archive()) {
|
| 510 |
$date = $this->internationalize(wp_title('', false));
|
| 511 |
$title_format = get_option('aiosp_archive_title_format');
|
| 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.4.5.4
|
| 8 |
Author: uberdose
|
| 9 |
Author URI: http://wp.uberdose.com/
|
| 10 |
*/
|
| 28 |
|
| 29 |
class All_in_One_SEO_Pack {
|
| 30 |
|
| 31 |
+
var $version = "1.4.5.4";
|
| 32 |
|
| 33 |
/** Max numbers of chars in auto-generated description */
|
| 34 |
var $maximum_description_length = 160;
|
| 261 |
|
| 262 |
if ($meta_string != null) {
|
| 263 |
echo "$meta_string\n";
|
|
|
|
|
|
|
| 264 |
}
|
| 265 |
|
| 266 |
+
echo "<!-- /all in one seo pack -->\n";
|
| 267 |
}
|
| 268 |
|
| 269 |
function get_post_description($post) {
|
| 404 |
|
| 405 |
// the_search_query() is not suitable, it cannot just return
|
| 406 |
global $s;
|
| 407 |
+
|
| 408 |
+
// simple tagging support
|
| 409 |
+
global $STagging;
|
| 410 |
|
| 411 |
if (is_home()) {
|
| 412 |
if ($this->is_static_posts_page()) {
|
| 508 |
$title = $this->paged_title($title);
|
| 509 |
$header = $this->replace_title($header, $title);
|
| 510 |
}
|
| 511 |
+
} else if (isset($STagging) && $STagging->is_tag_view()) {
|
| 512 |
+
$tag = $STagging->search_tag;
|
| 513 |
+
if ($tag) {
|
| 514 |
+
$tag = $this->capitalize($tag);
|
| 515 |
+
$title_format = get_option('aiosp_tag_title_format');
|
| 516 |
+
$title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
|
| 517 |
+
$title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $title);
|
| 518 |
+
$title = str_replace('%tag%', $tag, $title);
|
| 519 |
+
$title = $this->paged_title($title);
|
| 520 |
+
$header = $this->replace_title($header, $title);
|
| 521 |
+
}
|
| 522 |
} else if (is_archive()) {
|
| 523 |
$date = $this->internationalize(wp_title('', false));
|
| 524 |
$title_format = get_option('aiosp_archive_title_format');
|
