Version Description
Download this release
Release Info
| Developer | pbaylies |
| Plugin | |
| Version | 1.6.15.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.6.15.2 to 1.6.15.3
- aioseop.class.php +53 -20
- aioseop_functions.php +13 -0
- all_in_one_seo_pack.php +6 -4
- readme.txt +1 -1
aioseop.class.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
class All_in_One_SEO_Pack {
|
| 4 |
|
| 5 |
-
var $version = "1.6.15.
|
| 6 |
|
| 7 |
/** Max numbers of chars in auto-generated description */
|
| 8 |
var $maximum_description_length = 160;
|
|
@@ -121,12 +121,13 @@ class All_in_One_SEO_Pack {
|
|
| 121 |
if (is_single() || is_page()) {
|
| 122 |
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post->ID, '_aioseop_disable', true)));
|
| 123 |
if ($aiosp_disable) {
|
|
|
|
|
|
|
|
|
|
| 124 |
return;
|
| 125 |
}
|
| 126 |
}
|
| 127 |
|
| 128 |
-
|
| 129 |
-
|
| 130 |
if ($aioseop_options['aiosp_rewrite_titles']) {
|
| 131 |
ob_start(array($this, 'output_callback_for_title'));
|
| 132 |
}
|
|
@@ -222,13 +223,14 @@ class All_in_One_SEO_Pack {
|
|
| 222 |
if (is_single() || is_page()) {
|
| 223 |
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post->ID, '_aioseop_disable', true)));
|
| 224 |
if ($aiosp_disable) {
|
| 225 |
-
|
|
|
|
|
|
|
|
|
|
| 226 |
}
|
| 227 |
}
|
| 228 |
|
| 229 |
-
|
| 230 |
-
return;
|
| 231 |
-
}
|
| 232 |
|
| 233 |
if ($aioseop_options['aiosp_rewrite_titles']) {
|
| 234 |
// make the title rewrite as short as possible
|
|
@@ -343,7 +345,7 @@ class All_in_One_SEO_Pack {
|
|
| 343 |
$page_meta = stripcslashes($aioseop_options['aiosp_page_meta_tags']);
|
| 344 |
$post_meta = stripcslashes($aioseop_options['aiosp_post_meta_tags']);
|
| 345 |
$home_meta = stripcslashes($aioseop_options['aiosp_home_meta_tags']);
|
| 346 |
-
$front_meta = stripcslashes($aioseop_options['aiosp_front_meta_tags']);
|
| 347 |
|
| 348 |
if ( is_page() && isset( $page_meta ) && !empty( $page_meta ) && ( !$is_front_page || empty( $front_meta ) ) ) {
|
| 349 |
if ( isset( $meta_string ) ) $meta_string .= "\n";
|
|
@@ -401,17 +403,18 @@ class All_in_One_SEO_Pack {
|
|
| 401 |
|
| 402 |
function aiosp_google_analytics(){
|
| 403 |
global $aioseop_options;
|
| 404 |
-
|
| 405 |
?>
|
| 406 |
<script type="text/javascript">
|
| 407 |
|
| 408 |
var _gaq = _gaq || [];
|
| 409 |
_gaq.push(['_setAccount', '<?php echo $aioseop_options['aiosp_google_analytics_id']; ?>']);
|
| 410 |
-
<?php if ( !empty( $aioseop_options['
|
|
|
|
|
|
|
|
|
|
|
|
|
| 411 |
?> _gaq.push(['_setDomainName', '<?php echo $aioseop_options['aiosp_ga_domain']; ?>']);
|
| 412 |
-
<?php
|
| 413 |
-
}
|
| 414 |
-
?>
|
| 415 |
_gaq.push(['_trackPageview']);
|
| 416 |
|
| 417 |
(function() {
|
|
@@ -1155,12 +1158,12 @@ function aiosp_google_analytics(){
|
|
| 1155 |
|
| 1156 |
|
| 1157 |
function post_meta_tags($id) {
|
| 1158 |
-
|
| 1159 |
-
$nonce = $_POST['nonce-aioseop-edit'];
|
| 1160 |
// if (!wp_verify_nonce($nonce, 'edit-aioseop-nonce')) die ( 'Security Check - If you receive this in error, log out and back in to WordPress');
|
| 1161 |
if (isset($awmp_edit) && !empty($awmp_edit) && wp_verify_nonce($nonce, 'edit-aioseop-nonce')) {
|
| 1162 |
|
| 1163 |
-
foreach (Array('keywords', 'description', 'title', 'meta', 'disable', 'titleatr', 'menulabel', 'togglekeywords') as $f) {
|
| 1164 |
$field = "aiosp_$f";
|
| 1165 |
if ( isset( $_POST[$field] ) ) $$field = $_POST[$field];
|
| 1166 |
}
|
|
@@ -1177,6 +1180,7 @@ function aiosp_google_analytics(){
|
|
| 1177 |
|
| 1178 |
if ($this->is_admin()) {
|
| 1179 |
delete_post_meta($id, '_aioseop_disable');
|
|
|
|
| 1180 |
}
|
| 1181 |
//delete_post_meta($id, 'aiosp_meta');
|
| 1182 |
|
|
@@ -1194,10 +1198,13 @@ function aiosp_google_analytics(){
|
|
| 1194 |
}
|
| 1195 |
if (isset($aiosp_menulabel) && !empty($aiosp_menulabel)) {
|
| 1196 |
add_post_meta($id, '_aioseop_menulabel', $aiosp_menulabel);
|
| 1197 |
-
}
|
| 1198 |
if (isset($aiosp_disable) && !empty($aiosp_disable) && $this->is_admin()) {
|
| 1199 |
add_post_meta($id, '_aioseop_disable', $aiosp_disable);
|
| 1200 |
}
|
|
|
|
|
|
|
|
|
|
| 1201 |
/*
|
| 1202 |
if (isset($aiosp_meta) && !empty($aiosp_meta)) {
|
| 1203 |
add_post_meta($id, 'aiosp_meta', $aiosp_meta);
|
|
@@ -1280,6 +1287,7 @@ function aiosp_google_analytics(){
|
|
| 1280 |
$description = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_description', true)));
|
| 1281 |
$aiosp_meta = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_meta', true)));
|
| 1282 |
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_disable', true)));
|
|
|
|
| 1283 |
$aiosp_titleatr = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_titleatr', true)));
|
| 1284 |
$aiosp_menulabel = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_menulabel', true)));
|
| 1285 |
|
|
@@ -1330,7 +1338,16 @@ function aiosp_google_analytics(){
|
|
| 1330 |
<input type="checkbox" name="aiosp_disable" <?php if ($aiosp_disable) echo "checked=\"1\""; ?>/>
|
| 1331 |
</td>
|
| 1332 |
</tr>
|
| 1333 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1334 |
<tr>
|
| 1335 |
<th scope="row" style="text-align:right;"><?php _e('Title Attribute:', 'all_in_one_seo_pack') ?></th>
|
| 1336 |
<td><input value="<?php echo $aiosp_titleatr ?>" type="text" name="aiosp_titleatr" size="62"/></td>
|
|
@@ -1416,6 +1433,7 @@ function aiosp_google_analytics(){
|
|
| 1416 |
"aiosp_paged_format"=>' - Part %page%',
|
| 1417 |
"aiosp_google_analytics_id"=>null,
|
| 1418 |
"aiosp_ga_domain"=>'',
|
|
|
|
| 1419 |
"aiosp_ga_track_outbound_links"=>0,
|
| 1420 |
"aiosp_google_publisher"=>'',
|
| 1421 |
"aiosp_use_categories"=>0,
|
|
@@ -1451,7 +1469,7 @@ function aiosp_google_analytics(){
|
|
| 1451 |
$options = Array( "aiosp_can", "aiosp_donate", "aiosp_home_title", "aiosp_home_description", "aiosp_home_keywords", "aiosp_max_words_excerpt",
|
| 1452 |
"aiosp_rewrite_titles", "aiosp_post_title_format", "aiosp_page_title_format", "aiosp_category_title_format",
|
| 1453 |
"aiosp_archive_title_format", "aiosp_tag_title_format", "aiosp_search_title_format", "aiosp_description_format",
|
| 1454 |
-
"aiosp_404_title_format", "aiosp_paged_format", "aiosp_google_publisher", "aiosp_google_analytics_id", "aiosp_ga_domain", "aiosp_ga_track_outbound_links",
|
| 1455 |
"aiosp_use_categories", "aiosp_dynamic_postspage_keywords", "aiosp_category_noindex", "aiosp_archive_noindex",
|
| 1456 |
"aiosp_tags_noindex", "aiosp_generate_descriptions", "aiosp_cap_cats", "aiosp_enablecpost", "aiosp_debug_info",
|
| 1457 |
"aiosp_post_meta_tags", "aiosp_page_meta_tags", "aiosp_home_meta_tags", "aiosp_front_meta_tags", "aiosp_ex_pages", "aiosp_do_log",
|
|
@@ -2157,6 +2175,21 @@ _e('Enter domain name for tracking with Google Analytics.', 'all_in_one_seo_pack
|
|
| 2157 |
</td>
|
| 2158 |
</tr>
|
| 2159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2160 |
<tr>
|
| 2161 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 2162 |
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_ga_track_outbound_links_tip');">
|
|
@@ -2379,7 +2412,7 @@ _e('What you enter here will be copied verbatim to your header on the home page.
|
|
| 2379 |
</a>
|
| 2380 |
</td>
|
| 2381 |
<td>
|
| 2382 |
-
<textarea cols="57" rows="2" name="aiosp_front_meta_tags"><?php echo stripcslashes($aioseop_options['aiosp_front_meta_tags']); ?></textarea>
|
| 2383 |
<div style="max-width:500px; text-align:left; display:none" id="aiosp_front_meta_tags_tip">
|
| 2384 |
<?php
|
| 2385 |
_e('What you enter here will be copied verbatim to your header on the front page. You can enter whatever additional headers you want here, even references to stylesheets.', 'all_in_one_seo_pack');
|
| 2 |
|
| 3 |
class All_in_One_SEO_Pack {
|
| 4 |
|
| 5 |
+
var $version = "1.6.15.3";
|
| 6 |
|
| 7 |
/** Max numbers of chars in auto-generated description */
|
| 8 |
var $maximum_description_length = 160;
|
| 121 |
if (is_single() || is_page()) {
|
| 122 |
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post->ID, '_aioseop_disable', true)));
|
| 123 |
if ($aiosp_disable) {
|
| 124 |
+
$aiosp_disable_analytics = htmlspecialchars(stripcslashes( get_post_meta( $post->ID, '_aioseop_disable_analytics', true ) ) );
|
| 125 |
+
if ( $aiosp_disable_analytics )
|
| 126 |
+
remove_action( 'wp_head', array( $this, 'aiosp_google_analytics' ) );
|
| 127 |
return;
|
| 128 |
}
|
| 129 |
}
|
| 130 |
|
|
|
|
|
|
|
| 131 |
if ($aioseop_options['aiosp_rewrite_titles']) {
|
| 132 |
ob_start(array($this, 'output_callback_for_title'));
|
| 133 |
}
|
| 223 |
if (is_single() || is_page()) {
|
| 224 |
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post->ID, '_aioseop_disable', true)));
|
| 225 |
if ($aiosp_disable) {
|
| 226 |
+
$aiosp_disable_analytics = htmlspecialchars(stripcslashes( get_post_meta( $post->ID, '_aioseop_disable_analytics', true ) ) );
|
| 227 |
+
if ( $aiosp_disable_analytics )
|
| 228 |
+
remove_action( 'wp_head', array( $this, 'aiosp_google_analytics' ) );
|
| 229 |
+
return;
|
| 230 |
}
|
| 231 |
}
|
| 232 |
|
| 233 |
+
if( $this->aioseop_mrt_exclude_this_page()==TRUE ) return;
|
|
|
|
|
|
|
| 234 |
|
| 235 |
if ($aioseop_options['aiosp_rewrite_titles']) {
|
| 236 |
// make the title rewrite as short as possible
|
| 345 |
$page_meta = stripcslashes($aioseop_options['aiosp_page_meta_tags']);
|
| 346 |
$post_meta = stripcslashes($aioseop_options['aiosp_post_meta_tags']);
|
| 347 |
$home_meta = stripcslashes($aioseop_options['aiosp_home_meta_tags']);
|
| 348 |
+
$front_meta = isset( $aioseop_options['aiosp_front_meta_tags'] ) ? '' : stripcslashes( $aioseop_options['aiosp_front_meta_tags'] );
|
| 349 |
|
| 350 |
if ( is_page() && isset( $page_meta ) && !empty( $page_meta ) && ( !$is_front_page || empty( $front_meta ) ) ) {
|
| 351 |
if ( isset( $meta_string ) ) $meta_string .= "\n";
|
| 403 |
|
| 404 |
function aiosp_google_analytics(){
|
| 405 |
global $aioseop_options;
|
|
|
|
| 406 |
?>
|
| 407 |
<script type="text/javascript">
|
| 408 |
|
| 409 |
var _gaq = _gaq || [];
|
| 410 |
_gaq.push(['_setAccount', '<?php echo $aioseop_options['aiosp_google_analytics_id']; ?>']);
|
| 411 |
+
<?php if ( !empty( $aioseop_options['aiosp_ga_multi_domain'] ) ) {
|
| 412 |
+
?> _gaq.push(['_setAllowLinker', true]);
|
| 413 |
+
<?php }
|
| 414 |
+
|
| 415 |
+
if ( !empty( $aioseop_options['aiosp_ga_domain'] ) ) {
|
| 416 |
?> _gaq.push(['_setDomainName', '<?php echo $aioseop_options['aiosp_ga_domain']; ?>']);
|
| 417 |
+
<?php } ?>
|
|
|
|
|
|
|
| 418 |
_gaq.push(['_trackPageview']);
|
| 419 |
|
| 420 |
(function() {
|
| 1158 |
|
| 1159 |
|
| 1160 |
function post_meta_tags($id) {
|
| 1161 |
+
$awmp_edit = isset( $_POST["aiosp_edit"] ) ? $_POST["aiosp_edit"] : null;
|
| 1162 |
+
$nonce = isset( $_POST['nonce-aioseop-edit'] ) ? $_POST['nonce-aioseop-edit'] : null;
|
| 1163 |
// if (!wp_verify_nonce($nonce, 'edit-aioseop-nonce')) die ( 'Security Check - If you receive this in error, log out and back in to WordPress');
|
| 1164 |
if (isset($awmp_edit) && !empty($awmp_edit) && wp_verify_nonce($nonce, 'edit-aioseop-nonce')) {
|
| 1165 |
|
| 1166 |
+
foreach (Array('keywords', 'description', 'title', 'meta', 'disable', 'disable_analytics', 'titleatr', 'menulabel', 'togglekeywords') as $f) {
|
| 1167 |
$field = "aiosp_$f";
|
| 1168 |
if ( isset( $_POST[$field] ) ) $$field = $_POST[$field];
|
| 1169 |
}
|
| 1180 |
|
| 1181 |
if ($this->is_admin()) {
|
| 1182 |
delete_post_meta($id, '_aioseop_disable');
|
| 1183 |
+
delete_post_meta($id, '_aioseop_disable_analytics');
|
| 1184 |
}
|
| 1185 |
//delete_post_meta($id, 'aiosp_meta');
|
| 1186 |
|
| 1198 |
}
|
| 1199 |
if (isset($aiosp_menulabel) && !empty($aiosp_menulabel)) {
|
| 1200 |
add_post_meta($id, '_aioseop_menulabel', $aiosp_menulabel);
|
| 1201 |
+
}
|
| 1202 |
if (isset($aiosp_disable) && !empty($aiosp_disable) && $this->is_admin()) {
|
| 1203 |
add_post_meta($id, '_aioseop_disable', $aiosp_disable);
|
| 1204 |
}
|
| 1205 |
+
if (isset($aiosp_disable_analytics) && !empty($aiosp_disable_analytics) && $this->is_admin()) {
|
| 1206 |
+
add_post_meta($id, '_aioseop_disable_analytics', $aiosp_disable_analytics);
|
| 1207 |
+
}
|
| 1208 |
/*
|
| 1209 |
if (isset($aiosp_meta) && !empty($aiosp_meta)) {
|
| 1210 |
add_post_meta($id, 'aiosp_meta', $aiosp_meta);
|
| 1287 |
$description = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_description', true)));
|
| 1288 |
$aiosp_meta = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_meta', true)));
|
| 1289 |
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_disable', true)));
|
| 1290 |
+
$aiosp_disable_analytics = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_disable_analytics', true)));
|
| 1291 |
$aiosp_titleatr = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_titleatr', true)));
|
| 1292 |
$aiosp_menulabel = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_menulabel', true)));
|
| 1293 |
|
| 1338 |
<input type="checkbox" name="aiosp_disable" <?php if ($aiosp_disable) echo "checked=\"1\""; ?>/>
|
| 1339 |
</td>
|
| 1340 |
</tr>
|
| 1341 |
+
<?php if ( $aiosp_disable ) { ?>
|
| 1342 |
+
<tr>
|
| 1343 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 1344 |
+
<?php _e('Disable Google Analytics:', 'all_in_one_seo_pack')?>
|
| 1345 |
+
</th>
|
| 1346 |
+
<td>
|
| 1347 |
+
<input type="checkbox" name="aiosp_disable_analytics" <?php if ($aiosp_disable_analytics) echo "checked=\"1\""; ?>/>
|
| 1348 |
+
</td>
|
| 1349 |
+
</tr>
|
| 1350 |
+
<?php } ?>
|
| 1351 |
<tr>
|
| 1352 |
<th scope="row" style="text-align:right;"><?php _e('Title Attribute:', 'all_in_one_seo_pack') ?></th>
|
| 1353 |
<td><input value="<?php echo $aiosp_titleatr ?>" type="text" name="aiosp_titleatr" size="62"/></td>
|
| 1433 |
"aiosp_paged_format"=>' - Part %page%',
|
| 1434 |
"aiosp_google_analytics_id"=>null,
|
| 1435 |
"aiosp_ga_domain"=>'',
|
| 1436 |
+
"aiosp_ga_multi_domain"=>0,
|
| 1437 |
"aiosp_ga_track_outbound_links"=>0,
|
| 1438 |
"aiosp_google_publisher"=>'',
|
| 1439 |
"aiosp_use_categories"=>0,
|
| 1469 |
$options = Array( "aiosp_can", "aiosp_donate", "aiosp_home_title", "aiosp_home_description", "aiosp_home_keywords", "aiosp_max_words_excerpt",
|
| 1470 |
"aiosp_rewrite_titles", "aiosp_post_title_format", "aiosp_page_title_format", "aiosp_category_title_format",
|
| 1471 |
"aiosp_archive_title_format", "aiosp_tag_title_format", "aiosp_search_title_format", "aiosp_description_format",
|
| 1472 |
+
"aiosp_404_title_format", "aiosp_paged_format", "aiosp_google_publisher", "aiosp_google_analytics_id", "aiosp_ga_domain", "aiosp_ga_multi_domain", "aiosp_ga_track_outbound_links",
|
| 1473 |
"aiosp_use_categories", "aiosp_dynamic_postspage_keywords", "aiosp_category_noindex", "aiosp_archive_noindex",
|
| 1474 |
"aiosp_tags_noindex", "aiosp_generate_descriptions", "aiosp_cap_cats", "aiosp_enablecpost", "aiosp_debug_info",
|
| 1475 |
"aiosp_post_meta_tags", "aiosp_page_meta_tags", "aiosp_home_meta_tags", "aiosp_front_meta_tags", "aiosp_ex_pages", "aiosp_do_log",
|
| 2175 |
</td>
|
| 2176 |
</tr>
|
| 2177 |
|
| 2178 |
+
<tr>
|
| 2179 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 2180 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_ga_multi_domain_tip');">
|
| 2181 |
+
<?php _e('Track Multiple Domains:', 'all_in_one_seo_pack')?>
|
| 2182 |
+
</td>
|
| 2183 |
+
<td>
|
| 2184 |
+
<input type="checkbox" name="aiosp_ga_multi_domain" <?php if ($aioseop_options['aiosp_ga_multi_domain']) echo "checked=\"1\""; ?>"/>
|
| 2185 |
+
<div style="max-width:500px; text-align:left; display:none" id="aiosp_ga_multi_domain_tip">
|
| 2186 |
+
<?php
|
| 2187 |
+
_e('Enable multi-domain tracking for Google Analytics.', 'all_in_one_seo_pack');
|
| 2188 |
+
?>
|
| 2189 |
+
</div>
|
| 2190 |
+
</td>
|
| 2191 |
+
</tr>
|
| 2192 |
+
|
| 2193 |
<tr>
|
| 2194 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 2195 |
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_ga_track_outbound_links_tip');">
|
| 2412 |
</a>
|
| 2413 |
</td>
|
| 2414 |
<td>
|
| 2415 |
+
<textarea cols="57" rows="2" name="aiosp_front_meta_tags"><?php if ( isset( $aioseop_options['aiosp_front_meta_tags'] ) ) echo stripcslashes($aioseop_options['aiosp_front_meta_tags']); ?></textarea>
|
| 2416 |
<div style="max-width:500px; text-align:left; display:none" id="aiosp_front_meta_tags_tip">
|
| 2417 |
<?php
|
| 2418 |
_e('What you enter here will be copied verbatim to your header on the front page. You can enter whatever additional headers you want here, even references to stylesheets.', 'all_in_one_seo_pack');
|
aioseop_functions.php
CHANGED
|
@@ -349,6 +349,7 @@ if (!function_exists('aiosp_meta')) {
|
|
| 349 |
$description = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_description', true)));
|
| 350 |
$aiosp_meta = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aiosp_meta', true)));
|
| 351 |
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_disable', true)));
|
|
|
|
| 352 |
$aiosp_titleatr = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_titleatr', true)));
|
| 353 |
$aiosp_menulabel = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_menulabel', true)));
|
| 354 |
?>
|
|
@@ -410,6 +411,18 @@ if (!function_exists('aiosp_meta')) {
|
|
| 410 |
<input type="checkbox" name="aiosp_disable" <?php if ($aiosp_disable) echo "checked=\"1\""; ?>/>
|
| 411 |
</td>
|
| 412 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 413 |
</table>
|
| 414 |
<?php
|
| 415 |
}
|
| 349 |
$description = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_description', true)));
|
| 350 |
$aiosp_meta = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aiosp_meta', true)));
|
| 351 |
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_disable', true)));
|
| 352 |
+
$aiosp_disable_analytics = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_disable_analytics', true)));
|
| 353 |
$aiosp_titleatr = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_titleatr', true)));
|
| 354 |
$aiosp_menulabel = htmlspecialchars(stripcslashes(get_post_meta($post_id, '_aioseop_menulabel', true)));
|
| 355 |
?>
|
| 411 |
<input type="checkbox" name="aiosp_disable" <?php if ($aiosp_disable) echo "checked=\"1\""; ?>/>
|
| 412 |
</td>
|
| 413 |
</tr>
|
| 414 |
+
|
| 415 |
+
<?php if ( $aiosp_disable ) { ?>
|
| 416 |
+
<tr>
|
| 417 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 418 |
+
<?php _e('Disable Google Analytics:', 'all_in_one_seo_pack')?>
|
| 419 |
+
</th>
|
| 420 |
+
<td>
|
| 421 |
+
<input type="checkbox" name="aiosp_disable_analytics" <?php if ($aiosp_disable_analytics) echo "checked=\"1\""; ?>/>
|
| 422 |
+
</td>
|
| 423 |
+
</tr>
|
| 424 |
+
<?php } ?>
|
| 425 |
+
|
| 426 |
</table>
|
| 427 |
<?php
|
| 428 |
}
|
all_in_one_seo_pack.php
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
/*
|
| 3 |
Plugin Name: All in One SEO Pack
|
| 4 |
Plugin URI: http://semperfiwebdesign.com
|
| 5 |
-
Description: Out-of-the-box SEO for your WordPress blog. <a href="options-general.php?page=all-in-one-seo-pack/aioseop.class.php">Options configuration panel</a> | <a href="http://
|
| 6 |
-
Version: 1.6.15.
|
| 7 |
Author: Michael Torbert
|
| 8 |
Author URI: http://michaeltorbert.com
|
| 9 |
*/
|
|
@@ -30,11 +30,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
| 30 |
|
| 31 |
/**
|
| 32 |
* @package All-in-One-SEO-Pack
|
| 33 |
-
* @version 1.6.15.
|
| 34 |
*/
|
| 35 |
|
| 36 |
if ( ! defined( 'AIOSEOP_VERSION' ) )
|
| 37 |
-
define( 'AIOSEOP_VERSION', '1.6.15.
|
| 38 |
|
| 39 |
if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) )
|
| 40 |
define( 'AIOSEOP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
|
@@ -95,6 +95,8 @@ add_filter( 'wp_list_pages', 'aioseop_list_pages' );
|
|
| 95 |
add_action( 'edit_post', array( $aiosp, 'post_meta_tags') );
|
| 96 |
add_action( 'publish_post', array( $aiosp, 'post_meta_tags') );
|
| 97 |
add_action( 'save_post', array( $aiosp, 'post_meta_tags') );
|
|
|
|
|
|
|
| 98 |
add_action( 'edit_page_form', array( $aiosp, 'post_meta_tags') );
|
| 99 |
add_action( 'init', array( $aiosp, 'init' ), 5 );
|
| 100 |
add_action( 'wp_head', array( $aiosp, 'wp_head') );
|
| 2 |
/*
|
| 3 |
Plugin Name: All in One SEO Pack
|
| 4 |
Plugin URI: http://semperfiwebdesign.com
|
| 5 |
+
Description: Out-of-the-box SEO for your WordPress blog. <a href="options-general.php?page=all-in-one-seo-pack/aioseop.class.php">Options configuration panel</a> | <a href="http://semperplugins.com/plugins/all-in-one-seo-pack-pro-version/">Upgrade to Pro Version</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8">Donate</a> | <a href="http://semperfiwebdesign.com/forum/" >Support</a> | <a href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web" target="_blank" title="Amazon Wish List">Amazon Wishlist</a>
|
| 6 |
+
Version: 1.6.15.3
|
| 7 |
Author: Michael Torbert
|
| 8 |
Author URI: http://michaeltorbert.com
|
| 9 |
*/
|
| 30 |
|
| 31 |
/**
|
| 32 |
* @package All-in-One-SEO-Pack
|
| 33 |
+
* @version 1.6.15.3
|
| 34 |
*/
|
| 35 |
|
| 36 |
if ( ! defined( 'AIOSEOP_VERSION' ) )
|
| 37 |
+
define( 'AIOSEOP_VERSION', '1.6.15.3' );
|
| 38 |
|
| 39 |
if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) )
|
| 40 |
define( 'AIOSEOP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
| 95 |
add_action( 'edit_post', array( $aiosp, 'post_meta_tags') );
|
| 96 |
add_action( 'publish_post', array( $aiosp, 'post_meta_tags') );
|
| 97 |
add_action( 'save_post', array( $aiosp, 'post_meta_tags') );
|
| 98 |
+
add_action( 'add_attachment', array( $aiosp, 'post_meta_tags') );
|
| 99 |
+
add_action( 'edit_attachment', array( $aiosp, 'post_meta_tags') );
|
| 100 |
add_action( 'edit_page_form', array( $aiosp, 'post_meta_tags') );
|
| 101 |
add_action( 'init', array( $aiosp, 'init' ), 5 );
|
| 102 |
add_action( 'wp_head', array( $aiosp, 'wp_head') );
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: hallsofmontezuma
|
|
| 3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
|
| 4 |
Tags: seo, search engine optimization, google
|
| 5 |
Requires at least: 3.0
|
| 6 |
-
Tested up to: 3.
|
| 7 |
Stable tag: trunk
|
| 8 |
|
| 9 |
WordPress SEO plugin to automatically optimize your Wordpress blog for Search Engines.
|
| 3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
|
| 4 |
Tags: seo, search engine optimization, google
|
| 5 |
Requires at least: 3.0
|
| 6 |
+
Tested up to: 3.5
|
| 7 |
Stable tag: trunk
|
| 8 |
|
| 9 |
WordPress SEO plugin to automatically optimize your Wordpress blog for Search Engines.
|
