Version Description
Download this release
Release Info
| Developer | uberdose |
| Plugin | |
| Version | 1.3.8.7 |
| Comparing to | |
| See all releases | |
Code changes from version 1.3.8.6 to 1.3.8.7
- all_in_one_seo_pack-de_DE.mo +0 -0
- all_in_one_seo_pack.php +52 -7
- all_in_one_seo_pack.pot +3 -0
all_in_one_seo_pack-de_DE.mo
CHANGED
|
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.3.8.
|
| 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.3.8.
|
| 32 |
|
| 33 |
/** Max numbers of chars in auto-generated description */
|
| 34 |
var $maximum_description_length = 160;
|
|
@@ -65,10 +65,20 @@ class All_in_One_SEO_Pack {
|
|
| 65 |
}
|
| 66 |
|
| 67 |
function template_redirect() {
|
|
|
|
|
|
|
|
|
|
| 68 |
if (is_feed()) {
|
| 69 |
return;
|
| 70 |
}
|
| 71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
if (get_option('aiosp_rewrite_titles')) {
|
| 73 |
ob_start(array($this, 'output_callback_for_title'));
|
| 74 |
}
|
|
@@ -100,6 +110,18 @@ class All_in_One_SEO_Pack {
|
|
| 100 |
if (is_feed()) {
|
| 101 |
return;
|
| 102 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
if (get_option('aiosp_rewrite_titles')) {
|
| 104 |
// make the title rewrite as short as possible
|
| 105 |
if (function_exists('ob_list_handlers')) {
|
|
@@ -121,10 +143,6 @@ class All_in_One_SEO_Pack {
|
|
| 121 |
}
|
| 122 |
}
|
| 123 |
|
| 124 |
-
global $wp_query;
|
| 125 |
-
$post = $wp_query->get_queried_object();
|
| 126 |
-
$meta_string = null;
|
| 127 |
-
|
| 128 |
echo "\n<!-- all in one seo pack $this->version ";
|
| 129 |
if ($this->ob_start_detected) {
|
| 130 |
echo "ob_start_detected ";
|
|
@@ -710,10 +728,12 @@ class All_in_One_SEO_Pack {
|
|
| 710 |
$description = $_POST["aiosp_description"];
|
| 711 |
$title = $_POST["aiosp_title"];
|
| 712 |
$aiosp_meta = $_POST["aiosp_meta"];
|
|
|
|
| 713 |
|
| 714 |
delete_post_meta($id, 'keywords');
|
| 715 |
delete_post_meta($id, 'description');
|
| 716 |
delete_post_meta($id, 'title');
|
|
|
|
| 717 |
//delete_post_meta($id, 'aiosp_meta');
|
| 718 |
|
| 719 |
if (isset($keywords) && !empty($keywords)) {
|
|
@@ -725,6 +745,9 @@ class All_in_One_SEO_Pack {
|
|
| 725 |
if (isset($title) && !empty($title)) {
|
| 726 |
add_post_meta($id, 'title', $title);
|
| 727 |
}
|
|
|
|
|
|
|
|
|
|
| 728 |
/*
|
| 729 |
if (isset($aiosp_meta) && !empty($aiosp_meta)) {
|
| 730 |
add_post_meta($id, 'aiosp_meta', $aiosp_meta);
|
|
@@ -806,6 +829,7 @@ class All_in_One_SEO_Pack {
|
|
| 806 |
$title = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'title', true)));
|
| 807 |
$description = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'description', true)));
|
| 808 |
$aiosp_meta = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'aiosp_meta', true)));
|
|
|
|
| 809 |
?>
|
| 810 |
<SCRIPT LANGUAGE="JavaScript">
|
| 811 |
<!-- Begin
|
|
@@ -836,8 +860,18 @@ class All_in_One_SEO_Pack {
|
|
| 836 |
</tr>
|
| 837 |
<tr>
|
| 838 |
<th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
|
| 839 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 840 |
</tr>
|
|
|
|
| 841 |
<!--
|
| 842 |
<tr>
|
| 843 |
<th scope="row" style="text-align:right;"><?php _e('Additional META:', 'all_in_one_seo_pack') ?></th>
|
|
@@ -858,6 +892,7 @@ class All_in_One_SEO_Pack {
|
|
| 858 |
$description = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'description', true)));
|
| 859 |
$title = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'title', true)));
|
| 860 |
$aiosp_meta = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'aiosp_meta', true)));
|
|
|
|
| 861 |
?>
|
| 862 |
<SCRIPT LANGUAGE="JavaScript">
|
| 863 |
<!-- Begin
|
|
@@ -889,6 +924,16 @@ class All_in_One_SEO_Pack {
|
|
| 889 |
<th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
|
| 890 |
<td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80" tabindex="1002"/></td>
|
| 891 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 892 |
<!--
|
| 893 |
<tr>
|
| 894 |
<th scope="row" style="text-align:right;"><?php _e('Additional META:', 'all_in_one_seo_pack') ?></th>
|
| 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.3.8.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.3.8.7";
|
| 32 |
|
| 33 |
/** Max numbers of chars in auto-generated description */
|
| 34 |
var $maximum_description_length = 160;
|
| 65 |
}
|
| 66 |
|
| 67 |
function template_redirect() {
|
| 68 |
+
global $wp_query;
|
| 69 |
+
$post = $wp_query->get_queried_object();
|
| 70 |
+
|
| 71 |
if (is_feed()) {
|
| 72 |
return;
|
| 73 |
}
|
| 74 |
|
| 75 |
+
if (is_single() || is_page()) {
|
| 76 |
+
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'aiosp_disable', false)));
|
| 77 |
+
if ($aiosp_disable) {
|
| 78 |
+
return;
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
if (get_option('aiosp_rewrite_titles')) {
|
| 83 |
ob_start(array($this, 'output_callback_for_title'));
|
| 84 |
}
|
| 110 |
if (is_feed()) {
|
| 111 |
return;
|
| 112 |
}
|
| 113 |
+
|
| 114 |
+
global $wp_query;
|
| 115 |
+
$post = $wp_query->get_queried_object();
|
| 116 |
+
$meta_string = null;
|
| 117 |
+
|
| 118 |
+
if (is_single() || is_page()) {
|
| 119 |
+
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'aiosp_disable', false)));
|
| 120 |
+
if ($aiosp_disable) {
|
| 121 |
+
return;
|
| 122 |
+
}
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
if (get_option('aiosp_rewrite_titles')) {
|
| 126 |
// make the title rewrite as short as possible
|
| 127 |
if (function_exists('ob_list_handlers')) {
|
| 143 |
}
|
| 144 |
}
|
| 145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
echo "\n<!-- all in one seo pack $this->version ";
|
| 147 |
if ($this->ob_start_detected) {
|
| 148 |
echo "ob_start_detected ";
|
| 728 |
$description = $_POST["aiosp_description"];
|
| 729 |
$title = $_POST["aiosp_title"];
|
| 730 |
$aiosp_meta = $_POST["aiosp_meta"];
|
| 731 |
+
$aiosp_disable = $_POST["aiosp_disable"];
|
| 732 |
|
| 733 |
delete_post_meta($id, 'keywords');
|
| 734 |
delete_post_meta($id, 'description');
|
| 735 |
delete_post_meta($id, 'title');
|
| 736 |
+
delete_post_meta($id, 'aiosp_disable');
|
| 737 |
//delete_post_meta($id, 'aiosp_meta');
|
| 738 |
|
| 739 |
if (isset($keywords) && !empty($keywords)) {
|
| 745 |
if (isset($title) && !empty($title)) {
|
| 746 |
add_post_meta($id, 'title', $title);
|
| 747 |
}
|
| 748 |
+
if (isset($aiosp_disable) && !empty($aiosp_disable)) {
|
| 749 |
+
add_post_meta($id, 'aiosp_disable', $aiosp_disable);
|
| 750 |
+
}
|
| 751 |
/*
|
| 752 |
if (isset($aiosp_meta) && !empty($aiosp_meta)) {
|
| 753 |
add_post_meta($id, 'aiosp_meta', $aiosp_meta);
|
| 829 |
$title = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'title', true)));
|
| 830 |
$description = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'description', true)));
|
| 831 |
$aiosp_meta = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'aiosp_meta', true)));
|
| 832 |
+
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'aiosp_disable', false)));
|
| 833 |
?>
|
| 834 |
<SCRIPT LANGUAGE="JavaScript">
|
| 835 |
<!-- Begin
|
| 860 |
</tr>
|
| 861 |
<tr>
|
| 862 |
<th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
|
| 863 |
+
<th><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80"/></th>
|
| 864 |
+
</tr>
|
| 865 |
+
|
| 866 |
+
<tr>
|
| 867 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 868 |
+
<?php _e('Disable on this page/post:', 'all_in_one_seo_pack')?>
|
| 869 |
+
</th>
|
| 870 |
+
<td>
|
| 871 |
+
<input type="checkbox" name="aiosp_disable" <?php if ($aiosp_disable) echo "checked=\"1\""; ?>/>
|
| 872 |
+
</td>
|
| 873 |
</tr>
|
| 874 |
+
|
| 875 |
<!--
|
| 876 |
<tr>
|
| 877 |
<th scope="row" style="text-align:right;"><?php _e('Additional META:', 'all_in_one_seo_pack') ?></th>
|
| 892 |
$description = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'description', true)));
|
| 893 |
$title = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'title', true)));
|
| 894 |
$aiosp_meta = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'aiosp_meta', true)));
|
| 895 |
+
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'aiosp_disable', false)));
|
| 896 |
?>
|
| 897 |
<SCRIPT LANGUAGE="JavaScript">
|
| 898 |
<!-- Begin
|
| 924 |
<th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
|
| 925 |
<td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80" tabindex="1002"/></td>
|
| 926 |
</tr>
|
| 927 |
+
|
| 928 |
+
<tr>
|
| 929 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 930 |
+
<?php _e('Disable on this page/post:', 'all_in_one_seo_pack')?>
|
| 931 |
+
</th>
|
| 932 |
+
<td>
|
| 933 |
+
<input type="checkbox" name="aiosp_disable" <?php if ($aiosp_disable) echo "checked=\"1\""; ?>/>
|
| 934 |
+
</td>
|
| 935 |
+
</tr>
|
| 936 |
+
|
| 937 |
<!--
|
| 938 |
<tr>
|
| 939 |
<th scope="row" style="text-align:right;"><?php _e('Additional META:', 'all_in_one_seo_pack') ?></th>
|
all_in_one_seo_pack.pot
CHANGED
|
@@ -238,3 +238,6 @@ msgstr ""
|
|
| 238 |
msgid "Could not write to %s"
|
| 239 |
msgstr ""
|
| 240 |
|
|
|
|
|
|
|
|
|
| 238 |
msgid "Could not write to %s"
|
| 239 |
msgstr ""
|
| 240 |
|
| 241 |
+
msgid "Disable on this page/post:"
|
| 242 |
+
msgstr ""
|
| 243 |
+
|
