Version Description
Download this release
Release Info
| Developer | hallsofmontezuma |
| Plugin | |
| Version | 1.4.7.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.4.7.2 to 1.4.7.3
- all_in_one_seo_pack.php +83 -8
all_in_one_seo_pack.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
Plugin Name: All in One SEO Pack
|
| 5 |
Plugin URI: http://semperfiwebdesign.com
|
| 6 |
Description: Out-of-the-box SEO for your Wordpress blog.
|
| 7 |
-
Version: 1.4.7.
|
| 8 |
Author: Michael Torbert
|
| 9 |
Author URI: http://semperfiwebdesign.com
|
| 10 |
*/
|
|
@@ -476,7 +476,7 @@ $UTF8_TABLES['strtoupper'] = array(
|
|
| 476 |
|
| 477 |
class All_in_One_SEO_Pack {
|
| 478 |
|
| 479 |
-
var $version = "1.4.7.
|
| 480 |
|
| 481 |
/** Max numbers of chars in auto-generated description */
|
| 482 |
var $maximum_description_length = 160;
|
|
@@ -2081,18 +2081,93 @@ add_action('template_redirect', array($aiosp, 'template_redirect'));
|
|
| 2081 |
|
| 2082 |
add_action('init', array($aiosp, 'init'));
|
| 2083 |
|
| 2084 |
-
if (substr($aiosp->wp_version, 0, 3)
|
| 2085 |
-
|
| 2086 |
-
|
| 2087 |
-
} else {
|
| 2088 |
-
add_action('dbx_post_advanced', array($aiosp, 'add_meta_tags_textinput'));
|
| 2089 |
-
add_action('dbx_page_advanced', array($aiosp, 'add_meta_tags_textinput'));
|
| 2090 |
}
|
| 2091 |
|
|
|
|
| 2092 |
add_action('edit_post', array($aiosp, 'post_meta_tags'));
|
| 2093 |
add_action('publish_post', array($aiosp, 'post_meta_tags'));
|
| 2094 |
add_action('save_post', array($aiosp, 'post_meta_tags'));
|
| 2095 |
add_action('edit_page_form', array($aiosp, 'post_meta_tags'));
|
| 2096 |
|
| 2097 |
add_action('admin_menu', array($aiosp, 'admin_menu'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2098 |
?>
|
| 4 |
Plugin Name: All in One SEO Pack
|
| 5 |
Plugin URI: http://semperfiwebdesign.com
|
| 6 |
Description: Out-of-the-box SEO for your Wordpress blog.
|
| 7 |
+
Version: 1.4.7.3
|
| 8 |
Author: Michael Torbert
|
| 9 |
Author URI: http://semperfiwebdesign.com
|
| 10 |
*/
|
| 476 |
|
| 477 |
class All_in_One_SEO_Pack {
|
| 478 |
|
| 479 |
+
var $version = "1.4.7.3";
|
| 480 |
|
| 481 |
/** Max numbers of chars in auto-generated description */
|
| 482 |
var $maximum_description_length = 160;
|
| 2081 |
|
| 2082 |
add_action('init', array($aiosp, 'init'));
|
| 2083 |
|
| 2084 |
+
if (substr($aiosp->wp_version, 0, 3) < '2.5') {
|
| 2085 |
+
add_action('dbx_post_advanced', array($aiosp, 'add_meta_tags_textinput'));
|
| 2086 |
+
add_action('dbx_page_advanced', array($aiosp, 'add_meta_tags_textinput'));
|
|
|
|
|
|
|
|
|
|
| 2087 |
}
|
| 2088 |
|
| 2089 |
+
|
| 2090 |
add_action('edit_post', array($aiosp, 'post_meta_tags'));
|
| 2091 |
add_action('publish_post', array($aiosp, 'post_meta_tags'));
|
| 2092 |
add_action('save_post', array($aiosp, 'post_meta_tags'));
|
| 2093 |
add_action('edit_page_form', array($aiosp, 'post_meta_tags'));
|
| 2094 |
|
| 2095 |
add_action('admin_menu', array($aiosp, 'admin_menu'));
|
| 2096 |
+
|
| 2097 |
+
|
| 2098 |
+
add_action('admin_menu', 'aiosp_meta_box_add');
|
| 2099 |
+
|
| 2100 |
+
function aiosp_meta_box_add() {
|
| 2101 |
+
// Check whether the 2.5 function add_meta_box exists, and if it doesn't use 2.3 functions.
|
| 2102 |
+
if ( function_exists('add_meta_box') ) {
|
| 2103 |
+
add_meta_box('aiosp','All in One SEO Pack','aiosp_meta','post');
|
| 2104 |
+
add_meta_box('aiosp','All in One SEO Pack','aiosp_meta','page');
|
| 2105 |
+
} else {
|
| 2106 |
+
add_action('dbx_post_advanced', array($aiosp, 'add_meta_tags_textinput'));
|
| 2107 |
+
add_action('dbx_page_advanced', array($aiosp, 'add_meta_tags_textinput'));
|
| 2108 |
+
}
|
| 2109 |
+
}
|
| 2110 |
+
|
| 2111 |
+
function aiosp_meta() {
|
| 2112 |
+
|
| 2113 |
+
global $post;
|
| 2114 |
+
|
| 2115 |
+
$post_id = $post;
|
| 2116 |
+
if (is_object($post_id)){
|
| 2117 |
+
$post_id = $post_id->ID;
|
| 2118 |
+
}
|
| 2119 |
+
$keywords = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'keywords', true)));
|
| 2120 |
+
$title = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'title', true)));
|
| 2121 |
+
$description = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'description', true)));
|
| 2122 |
+
$aiosp_meta = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'aiosp_meta', true)));
|
| 2123 |
+
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'aiosp_disable', true)));
|
| 2124 |
+
|
| 2125 |
+
?>
|
| 2126 |
+
<SCRIPT LANGUAGE="JavaScript">
|
| 2127 |
+
<!-- Begin
|
| 2128 |
+
function countChars(field,cntfield) {
|
| 2129 |
+
cntfield.value = field.value.length;
|
| 2130 |
+
}
|
| 2131 |
+
// End -->
|
| 2132 |
+
</script>
|
| 2133 |
+
<input value="aiosp_edit" type="hidden" name="aiosp_edit" />
|
| 2134 |
+
|
| 2135 |
+
<a target="__blank" href="http://semperfiwebdesign.com/portfolio/wordpress/wordpress-plugins/all-in-one-seo-pack/"><?php _e('Click here for Support', 'all_in_one_seo_pack') ?></a>
|
| 2136 |
+
<table style="margin-bottom:40px">
|
| 2137 |
+
<tr>
|
| 2138 |
+
<th style="text-align:left;" colspan="2">
|
| 2139 |
+
</th>
|
| 2140 |
+
</tr>
|
| 2141 |
+
<tr>
|
| 2142 |
+
<th scope="row" style="text-align:right;"><?php _e('Title:', 'all_in_one_seo_pack') ?></th>
|
| 2143 |
+
<td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="62"/></td>
|
| 2144 |
+
</tr>
|
| 2145 |
+
<tr>
|
| 2146 |
+
<th scope="row" style="text-align:right;"><?php _e('Description:', 'all_in_one_seo_pack') ?></th>
|
| 2147 |
+
<td><textarea name="aiosp_description" rows="1" cols="60"
|
| 2148 |
+
onKeyDown="countChars(document.post.aiosp_description,document.post.length1)"
|
| 2149 |
+
onKeyUp="countChars(document.post.aiosp_description,document.post.length1)"><?php echo $description ?></textarea><br />
|
| 2150 |
+
<input readonly type="text" name="length1" size="3" maxlength="3" value="<?php echo strlen($description);?>" />
|
| 2151 |
+
<?php _e(' characters. Most search engines use a maximum of 160 chars for the description.', 'all_in_one_seo_pack') ?>
|
| 2152 |
+
</td>
|
| 2153 |
+
</tr>
|
| 2154 |
+
<tr>
|
| 2155 |
+
<th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
|
| 2156 |
+
<td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="62"/></td>
|
| 2157 |
+
</tr>
|
| 2158 |
+
|
| 2159 |
+
|
| 2160 |
+
<tr>
|
| 2161 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 2162 |
+
<?php _e('Disable on this page/post:', 'all_in_one_seo_pack')?>
|
| 2163 |
+
</th>
|
| 2164 |
+
<td>
|
| 2165 |
+
<input type="checkbox" name="aiosp_disable" <?php if ($aiosp_disable) echo "checked=\"1\""; ?>/>
|
| 2166 |
+
</td>
|
| 2167 |
+
</tr>
|
| 2168 |
+
|
| 2169 |
+
|
| 2170 |
+
</table>
|
| 2171 |
+
<?php
|
| 2172 |
+
}
|
| 2173 |
?>
|
