Version Description
Download this release
Release Info
| Developer | uberdose |
| Plugin | |
| Version | 1.4.5.9 |
| Comparing to | |
| See all releases | |
Code changes from version 1.4.5.8 to 1.4.5.9
- all_in_one_seo_pack.php +23 -3
- all_in_one_seo_pack.pot +24 -0
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;
|
|
@@ -417,6 +417,8 @@ class All_in_One_SEO_Pack {
|
|
| 417 |
$title = $this->paged_title($title);
|
| 418 |
$header = $this->replace_title($header, $title);
|
| 419 |
} else if (is_single()) {
|
|
|
|
|
|
|
| 420 |
$categories = get_the_category();
|
| 421 |
$category = '';
|
| 422 |
if (count($categories) > 0) {
|
|
@@ -435,6 +437,10 @@ class All_in_One_SEO_Pack {
|
|
| 435 |
$new_title = str_replace('%post_title%', $title, $new_title);
|
| 436 |
$new_title = str_replace('%category%', $category, $new_title);
|
| 437 |
$new_title = str_replace('%category_title%', $category, $new_title);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 438 |
$title = $new_title;
|
| 439 |
$title = trim($title);
|
| 440 |
$header = $this->replace_title($header, $title);
|
|
@@ -461,6 +467,8 @@ class All_in_One_SEO_Pack {
|
|
| 461 |
$title = $this->paged_title($title);
|
| 462 |
$header = $this->replace_title($header, $title);
|
| 463 |
} else if (is_page()) {
|
|
|
|
|
|
|
| 464 |
if ($this->is_static_front_page()) {
|
| 465 |
if ($this->internationalize(get_option('aiosp_home_title'))) {
|
| 466 |
$header = $this->replace_title($header, $this->internationalize(get_option('aiosp_home_title')));
|
|
@@ -474,6 +482,10 @@ class All_in_One_SEO_Pack {
|
|
| 474 |
$new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
|
| 475 |
$new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
|
| 476 |
$new_title = str_replace('%page_title%', $title, $new_title);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 477 |
$title = trim($new_title);
|
| 478 |
$header = $this->replace_title($header, $title);
|
| 479 |
}
|
|
@@ -533,7 +545,7 @@ class All_in_One_SEO_Pack {
|
|
| 533 |
* @return User-readable nice words for a given request.
|
| 534 |
*/
|
| 535 |
function request_as_words($request) {
|
| 536 |
-
$request =
|
| 537 |
$request = str_replace('.html', ' ', $request);
|
| 538 |
$request = str_replace('.htm', ' ', $request);
|
| 539 |
$request = str_replace('.', ' ', $request);
|
|
@@ -1185,6 +1197,10 @@ echo('<li>'); _e('%blog_description% - Your blog description', 'all_in_one_seo_p
|
|
| 1185 |
echo('<li>'); _e('%post_title% - The original title of the post', 'all_in_one_seo_pack'); echo('</li>');
|
| 1186 |
echo('<li>'); _e('%category_title% - The (main) category of the post', 'all_in_one_seo_pack'); echo('</li>');
|
| 1187 |
echo('<li>'); _e('%category% - Alias for %category_title%', 'all_in_one_seo_pack'); echo('</li>');
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1188 |
echo('</ul>');
|
| 1189 |
?>
|
| 1190 |
</div>
|
|
@@ -1206,6 +1222,10 @@ echo('<ul>');
|
|
| 1206 |
echo('<li>'); _e('%blog_title% - Your blog title', 'all_in_one_seo_pack'); echo('</li>');
|
| 1207 |
echo('<li>'); _e('%blog_description% - Your blog description', 'all_in_one_seo_pack'); echo('</li>');
|
| 1208 |
echo('<li>'); _e('%page_title% - The original title of the page', 'all_in_one_seo_pack'); echo('</li>');
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1209 |
echo('</ul>');
|
| 1210 |
?>
|
| 1211 |
</div>
|
| 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.9
|
| 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.9";
|
| 32 |
|
| 33 |
/** Max numbers of chars in auto-generated description */
|
| 34 |
var $maximum_description_length = 160;
|
| 417 |
$title = $this->paged_title($title);
|
| 418 |
$header = $this->replace_title($header, $title);
|
| 419 |
} else if (is_single()) {
|
| 420 |
+
// we're not in the loop :(
|
| 421 |
+
$authordata = get_userdata($post->post_author);
|
| 422 |
$categories = get_the_category();
|
| 423 |
$category = '';
|
| 424 |
if (count($categories) > 0) {
|
| 437 |
$new_title = str_replace('%post_title%', $title, $new_title);
|
| 438 |
$new_title = str_replace('%category%', $category, $new_title);
|
| 439 |
$new_title = str_replace('%category_title%', $category, $new_title);
|
| 440 |
+
$new_title = str_replace('%post_author_login%', $authordata->user_login, $new_title);
|
| 441 |
+
$new_title = str_replace('%post_author_nicename%', $authordata->user_nicename, $new_title);
|
| 442 |
+
$new_title = str_replace('%post_author_firstname%', ucwords($authordata->first_name), $new_title);
|
| 443 |
+
$new_title = str_replace('%post_author_lastname%', ucwords($authordata->last_name), $new_title);
|
| 444 |
$title = $new_title;
|
| 445 |
$title = trim($title);
|
| 446 |
$header = $this->replace_title($header, $title);
|
| 467 |
$title = $this->paged_title($title);
|
| 468 |
$header = $this->replace_title($header, $title);
|
| 469 |
} else if (is_page()) {
|
| 470 |
+
// we're not in the loop :(
|
| 471 |
+
$authordata = get_userdata($post->post_author);
|
| 472 |
if ($this->is_static_front_page()) {
|
| 473 |
if ($this->internationalize(get_option('aiosp_home_title'))) {
|
| 474 |
$header = $this->replace_title($header, $this->internationalize(get_option('aiosp_home_title')));
|
| 482 |
$new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
|
| 483 |
$new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
|
| 484 |
$new_title = str_replace('%page_title%', $title, $new_title);
|
| 485 |
+
$new_title = str_replace('%page_author_login%', $authordata->user_login, $new_title);
|
| 486 |
+
$new_title = str_replace('%page_author_nicename%', $authordata->user_nicename, $new_title);
|
| 487 |
+
$new_title = str_replace('%page_author_firstname%', ucwords($authordata->first_name), $new_title);
|
| 488 |
+
$new_title = str_replace('%page_author_lastname%', ucwords($authordata->last_name), $new_title);
|
| 489 |
$title = trim($new_title);
|
| 490 |
$header = $this->replace_title($header, $title);
|
| 491 |
}
|
| 545 |
* @return User-readable nice words for a given request.
|
| 546 |
*/
|
| 547 |
function request_as_words($request) {
|
| 548 |
+
$request = htmlspecialchars($request);
|
| 549 |
$request = str_replace('.html', ' ', $request);
|
| 550 |
$request = str_replace('.htm', ' ', $request);
|
| 551 |
$request = str_replace('.', ' ', $request);
|
| 1197 |
echo('<li>'); _e('%post_title% - The original title of the post', 'all_in_one_seo_pack'); echo('</li>');
|
| 1198 |
echo('<li>'); _e('%category_title% - The (main) category of the post', 'all_in_one_seo_pack'); echo('</li>');
|
| 1199 |
echo('<li>'); _e('%category% - Alias for %category_title%', 'all_in_one_seo_pack'); echo('</li>');
|
| 1200 |
+
echo('<li>'); _e("%post_author_login% - This post's author' login", 'all_in_one_seo_pack'); echo('</li>');
|
| 1201 |
+
echo('<li>'); _e("%post_author_nicename% - This post's author' nicename", 'all_in_one_seo_pack'); echo('</li>');
|
| 1202 |
+
echo('<li>'); _e("%post_author_firstname% - This post's author' first name (capitalized)", 'all_in_one_seo_pack'); echo('</li>');
|
| 1203 |
+
echo('<li>'); _e("%post_author_lastname% - This post's author' last name (capitalized)", 'all_in_one_seo_pack'); echo('</li>');
|
| 1204 |
echo('</ul>');
|
| 1205 |
?>
|
| 1206 |
</div>
|
| 1222 |
echo('<li>'); _e('%blog_title% - Your blog title', 'all_in_one_seo_pack'); echo('</li>');
|
| 1223 |
echo('<li>'); _e('%blog_description% - Your blog description', 'all_in_one_seo_pack'); echo('</li>');
|
| 1224 |
echo('<li>'); _e('%page_title% - The original title of the page', 'all_in_one_seo_pack'); echo('</li>');
|
| 1225 |
+
echo('<li>'); _e("%page_author_login% - This page's author' login", 'all_in_one_seo_pack'); echo('</li>');
|
| 1226 |
+
echo('<li>'); _e("%page_author_nicename% - This page's author' nicename", 'all_in_one_seo_pack'); echo('</li>');
|
| 1227 |
+
echo('<li>'); _e("%page_author_firstname% - This page's author' first name (capitalized)", 'all_in_one_seo_pack'); echo('</li>');
|
| 1228 |
+
echo('<li>'); _e("%page_author_lastname% - This page's author' last name (capitalized)", 'all_in_one_seo_pack'); echo('</li>');
|
| 1229 |
echo('</ul>');
|
| 1230 |
?>
|
| 1231 |
</div>
|
all_in_one_seo_pack.pot
CHANGED
|
@@ -255,3 +255,27 @@ msgstr ""
|
|
| 255 |
msgid "Check this and SEO pack will create a log of important events (all_in_one_seo_pack.log) in its plugin directory which might help debugging it. Make sure this directory is writable."
|
| 256 |
msgstr ""
|
| 257 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 255 |
msgid "Check this and SEO pack will create a log of important events (all_in_one_seo_pack.log) in its plugin directory which might help debugging it. Make sure this directory is writable."
|
| 256 |
msgstr ""
|
| 257 |
|
| 258 |
+
msgid "%page_author_login% - This page's author' login"
|
| 259 |
+
msgstr ""
|
| 260 |
+
|
| 261 |
+
msgid "%page_author_nicename% - This page's author' nicename"
|
| 262 |
+
msgstr ""
|
| 263 |
+
|
| 264 |
+
msgid "%page_author_firstname% - This page's author' first name (capitalized)"
|
| 265 |
+
msgstr ""
|
| 266 |
+
|
| 267 |
+
msgid "%page_author_lastname% - This page's author' last name (capitalized)"
|
| 268 |
+
msgstr ""
|
| 269 |
+
|
| 270 |
+
msgid "%post_author_login% - This post's author' login"
|
| 271 |
+
msgstr ""
|
| 272 |
+
|
| 273 |
+
msgid "%post_author_nicename% - This post's author' nicename"
|
| 274 |
+
msgstr ""
|
| 275 |
+
|
| 276 |
+
msgid "%post_author_firstname% - This post's author' first name (capitalized)"
|
| 277 |
+
msgstr ""
|
| 278 |
+
|
| 279 |
+
msgid "%post_author_lastname% - This post's author' last name (capitalized)"
|
| 280 |
+
msgstr ""
|
| 281 |
+
|
