Version Description
Download this release
Release Info
Developer | pbaylies |
Plugin | All in One SEO Pack |
Version | 1.6.13.5 |
Comparing to | |
See all releases |
Code changes from version 1.6.13.4 to 1.6.13.5
- aioseop.class.php +94 -55
- all_in_one_seo_pack.php +11 -83
- 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.13.
|
6 |
|
7 |
/** Max numbers of chars in auto-generated description */
|
8 |
var $maximum_description_length = 160;
|
@@ -141,14 +141,11 @@ class All_in_One_SEO_Pack {
|
|
141 |
//CHECK IF ARRAY EXISTS IN DB, IF SO, GET ARRAY, ADD EVERYTHING, CHECK FOR ISSET?
|
142 |
//
|
143 |
function init() {
|
144 |
-
if (function_exists('load_plugin_textdomain')) {
|
145 |
if ( !defined('WP_PLUGIN_DIR') ) {
|
146 |
load_plugin_textdomain('all_in_one_seo_pack', str_replace( ABSPATH, '', dirname(__FILE__)));
|
147 |
} else {
|
148 |
load_plugin_textdomain('all_in_one_seo_pack', false, dirname(plugin_basename(__FILE__)));
|
149 |
}
|
150 |
-
}
|
151 |
-
|
152 |
|
153 |
/*
|
154 |
if (function_exists('load_plugin_textdomain')) {
|
@@ -231,28 +228,6 @@ if (function_exists('load_plugin_textdomain')) {
|
|
231 |
}
|
232 |
}
|
233 |
|
234 |
-
/*
|
235 |
-
|
236 |
-
echo trim($_SERVER['REQUEST_URI'],'/');
|
237 |
-
$currenturl = trim($_SERVER['REQUEST_URI'],'/');
|
238 |
-
echo "<br /><br />";
|
239 |
-
|
240 |
-
echo $aioseop_options['aiosp_ex_pages'];
|
241 |
-
|
242 |
-
echo "<br /><br />";
|
243 |
-
|
244 |
-
$excludedstuff = explode(',',$aioseop_options['aiosp_ex_pages']);
|
245 |
-
foreach($excludedstuff as $exedd){
|
246 |
-
echo $exedd;
|
247 |
-
//echo "<br /><br />substring: ". stristr($currenturl,trim($exedd)) . "<br />";
|
248 |
-
if(stristr($currenturl, trim($exedd))){
|
249 |
-
echo "<br />match, should not display<br /><br />";
|
250 |
-
}else{
|
251 |
-
echo "<br />( " . $exedd . " was not found in " . $currenturl . " ) - no match<br /><br />";
|
252 |
-
}
|
253 |
-
}
|
254 |
-
//print_r($excludedstuff);
|
255 |
-
*/
|
256 |
echo "\n<!-- All in One SEO Pack $this->version by Michael Torbert of Semper Fi Web Design";
|
257 |
if ($this->ob_start_detected) {
|
258 |
echo "ob_start_detected ";
|
@@ -330,9 +305,7 @@ if (function_exists('load_plugin_textdomain')) {
|
|
330 |
$meta_string .= sprintf("<meta name=\"keywords\" content=\"%s\" />", $keywords);
|
331 |
}
|
332 |
|
333 |
-
|
334 |
-
$is_tag = is_tag();
|
335 |
-
}
|
336 |
|
337 |
if ((is_category() && $aioseop_options['aiosp_category_noindex']) || (!is_category() && is_archive() &&!$is_tag && $aioseop_options['aiosp_archive_noindex']) || ($aioseop_options['aiosp_tags_noindex'] && $is_tag)) {
|
338 |
if (isset($meta_string)) {
|
@@ -377,6 +350,56 @@ if (function_exists('load_plugin_textdomain')) {
|
|
377 |
echo "".'<link rel="canonical" href="'.$url.'" />'."\n";
|
378 |
}
|
379 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
|
381 |
echo "<!-- /all in one seo pack -->\n";
|
382 |
}
|
@@ -577,7 +600,7 @@ if (function_exists('load_plugin_textdomain')) {
|
|
577 |
$title = $category_name;
|
578 |
} else if (is_page()) {
|
579 |
$title = $this->internationalize(wp_title('', false));
|
580 |
-
} else if (
|
581 |
global $utw;
|
582 |
if ($utw) {
|
583 |
$tags = $utw->GetCurrentTagSet();
|
@@ -740,7 +763,7 @@ if (function_exists('load_plugin_textdomain')) {
|
|
740 |
$title = apply_filters('aioseop_title_page',$title);
|
741 |
$header = $this->replace_title($header, $title);
|
742 |
}
|
743 |
-
} else if (
|
744 |
global $utw;
|
745 |
if ($utw) {
|
746 |
$tags = $utw->GetCurrentTagSet();
|
@@ -1215,20 +1238,10 @@ if (function_exists('load_plugin_textdomain')) {
|
|
1215 |
// End -->
|
1216 |
</script>
|
1217 |
|
1218 |
-
<?php if (substr($this->wp_version, 0, 3) >= '2.5') { ?>
|
1219 |
<div id="postaiosp" class="postbox closed">
|
1220 |
<h3><?php _e('All in One SEO Pack', 'all_in_one_seo_pack') ?></h3>
|
1221 |
<div class="inside">
|
1222 |
<div id="postaiosp">
|
1223 |
-
<?php } else { ?>
|
1224 |
-
<div class="dbx-b-ox-wrapper">
|
1225 |
-
<fieldset id="seodiv" class="dbx-box">
|
1226 |
-
<div class="dbx-h-andle-wrapper">
|
1227 |
-
<h3 class="dbx-handle"><?php _e('All in One SEO Pack', 'all_in_one_seo_pack') ?></h3>
|
1228 |
-
</div>
|
1229 |
-
<div class="dbx-c-ontent-wrapper">
|
1230 |
-
<div class="dbx-content">
|
1231 |
-
<?php } ?>
|
1232 |
|
1233 |
<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>
|
1234 |
<input value="aiosp_edit" type="hidden" name="aiosp_edit" />
|
@@ -1275,15 +1288,9 @@ if (function_exists('load_plugin_textdomain')) {
|
|
1275 |
<?php } ?>
|
1276 |
</table>
|
1277 |
|
1278 |
-
<?php if (substr($this->wp_version, 0, 3) >= '2.5') { ?>
|
1279 |
</div>
|
1280 |
</div>
|
1281 |
</div>
|
1282 |
-
<?php } else { ?>
|
1283 |
-
</div>
|
1284 |
-
</fieldset>
|
1285 |
-
</div>
|
1286 |
-
<?php } ?>
|
1287 |
|
1288 |
<?php
|
1289 |
}
|
@@ -1291,10 +1298,6 @@ if (function_exists('load_plugin_textdomain')) {
|
|
1291 |
function admin_menu() {
|
1292 |
$file = __FILE__;
|
1293 |
|
1294 |
-
// hack for 1.5
|
1295 |
-
if (substr($this->wp_version, 0, 3) == '1.5') {
|
1296 |
-
$file = 'all-in-one-seo-pack/all_in_one_seo_pack.php';
|
1297 |
-
}
|
1298 |
//add_management_page(__('All in One SEO Title', 'all_in_one_seo_pack'), __('All in One SEO', 'all_in_one_seo_pack'), 10, $file, array($this, 'management_panel'));
|
1299 |
add_submenu_page('options-general.php', __('All in One SEO', 'all_in_one_seo_pack'), __('All in One SEO', 'all_in_one_seo_pack'), 'manage_options', $file, array($this, 'options_panel'));
|
1300 |
}
|
@@ -1357,6 +1360,8 @@ if (function_exists('load_plugin_textdomain')) {
|
|
1357 |
"aiosp_description_format"=>'%description%',
|
1358 |
"aiosp_404_title_format"=>'Nothing found for %request_words%',
|
1359 |
"aiosp_paged_format"=>' - Part %page%',
|
|
|
|
|
1360 |
"aiosp_use_categories"=>0,
|
1361 |
"aiosp_dynamic_postspage_keywords"=>1,
|
1362 |
"aiosp_category_noindex"=>1,
|
@@ -1401,6 +1406,8 @@ if (function_exists('load_plugin_textdomain')) {
|
|
1401 |
$aioseop_options['aiosp_description_format'] = $_POST['aiosp_description_format'];
|
1402 |
$aioseop_options['aiosp_404_title_format'] = $_POST['aiosp_404_title_format'];
|
1403 |
$aioseop_options['aiosp_paged_format'] = $_POST['aiosp_paged_format'];
|
|
|
|
|
1404 |
$aioseop_options['aiosp_use_categories'] = $_POST['aiosp_use_categories'];
|
1405 |
$aioseop_options['aiosp_dynamic_postspage_keywords'] = $_POST['aiosp_dynamic_postspage_keywords'];
|
1406 |
$aioseop_options['aiosp_category_noindex'] = $_POST['aiosp_category_noindex'];
|
@@ -1423,9 +1430,7 @@ if (function_exists('load_plugin_textdomain')) {
|
|
1423 |
|
1424 |
update_option('aioseop_options', $aioseop_options);
|
1425 |
|
1426 |
-
if (function_exists('wp_cache_flush')) {
|
1427 |
wp_cache_flush();
|
1428 |
-
}
|
1429 |
}
|
1430 |
} /*elseif ($_POST['aiosp_upgrade']) {
|
1431 |
$message = __("Upgraded to newest version. Please revisit the options page to make sure you see the newest version.", 'all_in_one_seo_pack');
|
@@ -2075,7 +2080,6 @@ _e('Check this if you want your enable AIOSEOP support for Custom Post Types on
|
|
2075 |
</div>
|
2076 |
</td>
|
2077 |
</tr>
|
2078 |
-
<?php if( function_exists('get_post_types')){ ?>
|
2079 |
<tr>
|
2080 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
2081 |
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('123_tip');">
|
@@ -2103,7 +2107,42 @@ _e('Choose which post types you want to have SEO columns on the edit.php screen.
|
|
2103 |
</div>
|
2104 |
</td>
|
2105 |
</tr>
|
2106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2107 |
<tr>
|
2108 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
2109 |
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_use_categories_tip');">
|
2 |
|
3 |
class All_in_One_SEO_Pack {
|
4 |
|
5 |
+
var $version = "1.6.13.5";
|
6 |
|
7 |
/** Max numbers of chars in auto-generated description */
|
8 |
var $maximum_description_length = 160;
|
141 |
//CHECK IF ARRAY EXISTS IN DB, IF SO, GET ARRAY, ADD EVERYTHING, CHECK FOR ISSET?
|
142 |
//
|
143 |
function init() {
|
|
|
144 |
if ( !defined('WP_PLUGIN_DIR') ) {
|
145 |
load_plugin_textdomain('all_in_one_seo_pack', str_replace( ABSPATH, '', dirname(__FILE__)));
|
146 |
} else {
|
147 |
load_plugin_textdomain('all_in_one_seo_pack', false, dirname(plugin_basename(__FILE__)));
|
148 |
}
|
|
|
|
|
149 |
|
150 |
/*
|
151 |
if (function_exists('load_plugin_textdomain')) {
|
228 |
}
|
229 |
}
|
230 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
echo "\n<!-- All in One SEO Pack $this->version by Michael Torbert of Semper Fi Web Design";
|
232 |
if ($this->ob_start_detected) {
|
233 |
echo "ob_start_detected ";
|
305 |
$meta_string .= sprintf("<meta name=\"keywords\" content=\"%s\" />", $keywords);
|
306 |
}
|
307 |
|
308 |
+
$is_tag = is_tag();
|
|
|
|
|
309 |
|
310 |
if ((is_category() && $aioseop_options['aiosp_category_noindex']) || (!is_category() && is_archive() &&!$is_tag && $aioseop_options['aiosp_archive_noindex']) || ($aioseop_options['aiosp_tags_noindex'] && $is_tag)) {
|
311 |
if (isset($meta_string)) {
|
350 |
echo "".'<link rel="canonical" href="'.$url.'" />'."\n";
|
351 |
}
|
352 |
}
|
353 |
+
if($aioseop_options['aiosp_google_analytics_id']) {
|
354 |
+
?>
|
355 |
+
<script type="text/javascript">
|
356 |
+
|
357 |
+
var _gaq = _gaq || [];
|
358 |
+
_gaq.push(['_setAccount', '<?php echo $aioseop_options['aiosp_google_analytics_id']; ?>']);
|
359 |
+
_gaq.push(['_trackPageview']);
|
360 |
+
|
361 |
+
(function() {
|
362 |
+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
363 |
+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
364 |
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
365 |
+
})();
|
366 |
+
|
367 |
+
</script>
|
368 |
+
<?php
|
369 |
+
if ($aioseop_options['aiosp_ga_track_outbound_links']) {
|
370 |
+
?>
|
371 |
+
<script type="text/javascript">
|
372 |
+
function recordOutboundLink(link, category, action) {
|
373 |
+
_gat._getTrackerByName()._trackEvent(category, action);
|
374 |
+
setTimeout('document.location = "' + link.href + '"', 100);
|
375 |
+
}
|
376 |
+
|
377 |
+
if(typeof jQuery == 'function') { /* use jQuery if it exists because it is a more elegant solution */
|
378 |
+
jQuery(function () {
|
379 |
+
jQuery('a:not([href*="' + document.domain + '"])').click(function () {
|
380 |
+
recordOutboundLink(this, 'Outbound Links', document.domain);
|
381 |
+
});
|
382 |
+
});
|
383 |
+
}
|
384 |
+
else { /* use regular Javascript if jQuery does not exist */
|
385 |
+
window.onload = function () {
|
386 |
+
var links = document.getElementsByTagName('a');
|
387 |
+
for (var x=0; x < links.length; x++) {
|
388 |
+
links[x].onclick = function () {
|
389 |
+
var mydomain = new RegExp(document.domain, 'i');
|
390 |
+
if(!mydomain.test(this.getAttribute('href'))) {
|
391 |
+
recordOutboundLink(this, 'Outbound Links', document.domain);
|
392 |
+
}
|
393 |
+
};
|
394 |
+
}
|
395 |
+
};
|
396 |
+
}
|
397 |
+
</script>
|
398 |
+
|
399 |
+
<?php
|
400 |
+
}
|
401 |
+
|
402 |
+
}
|
403 |
|
404 |
echo "<!-- /all in one seo pack -->\n";
|
405 |
}
|
600 |
$title = $category_name;
|
601 |
} else if (is_page()) {
|
602 |
$title = $this->internationalize(wp_title('', false));
|
603 |
+
} else if (is_tag()) {
|
604 |
global $utw;
|
605 |
if ($utw) {
|
606 |
$tags = $utw->GetCurrentTagSet();
|
763 |
$title = apply_filters('aioseop_title_page',$title);
|
764 |
$header = $this->replace_title($header, $title);
|
765 |
}
|
766 |
+
} else if (is_tag()) {
|
767 |
global $utw;
|
768 |
if ($utw) {
|
769 |
$tags = $utw->GetCurrentTagSet();
|
1238 |
// End -->
|
1239 |
</script>
|
1240 |
|
|
|
1241 |
<div id="postaiosp" class="postbox closed">
|
1242 |
<h3><?php _e('All in One SEO Pack', 'all_in_one_seo_pack') ?></h3>
|
1243 |
<div class="inside">
|
1244 |
<div id="postaiosp">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1245 |
|
1246 |
<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>
|
1247 |
<input value="aiosp_edit" type="hidden" name="aiosp_edit" />
|
1288 |
<?php } ?>
|
1289 |
</table>
|
1290 |
|
|
|
1291 |
</div>
|
1292 |
</div>
|
1293 |
</div>
|
|
|
|
|
|
|
|
|
|
|
1294 |
|
1295 |
<?php
|
1296 |
}
|
1298 |
function admin_menu() {
|
1299 |
$file = __FILE__;
|
1300 |
|
|
|
|
|
|
|
|
|
1301 |
//add_management_page(__('All in One SEO Title', 'all_in_one_seo_pack'), __('All in One SEO', 'all_in_one_seo_pack'), 10, $file, array($this, 'management_panel'));
|
1302 |
add_submenu_page('options-general.php', __('All in One SEO', 'all_in_one_seo_pack'), __('All in One SEO', 'all_in_one_seo_pack'), 'manage_options', $file, array($this, 'options_panel'));
|
1303 |
}
|
1360 |
"aiosp_description_format"=>'%description%',
|
1361 |
"aiosp_404_title_format"=>'Nothing found for %request_words%',
|
1362 |
"aiosp_paged_format"=>' - Part %page%',
|
1363 |
+
"aiosp_google_analytics_id"=>null,
|
1364 |
+
"aiosp_ga_track_outbound_links"=>0,
|
1365 |
"aiosp_use_categories"=>0,
|
1366 |
"aiosp_dynamic_postspage_keywords"=>1,
|
1367 |
"aiosp_category_noindex"=>1,
|
1406 |
$aioseop_options['aiosp_description_format'] = $_POST['aiosp_description_format'];
|
1407 |
$aioseop_options['aiosp_404_title_format'] = $_POST['aiosp_404_title_format'];
|
1408 |
$aioseop_options['aiosp_paged_format'] = $_POST['aiosp_paged_format'];
|
1409 |
+
$aioseop_options['aiosp_google_analytics_id'] = esc_attr($_POST['aiosp_google_analytics_id']);
|
1410 |
+
$aioseop_options['aiosp_ga_track_outbound_links'] = $_POST['aiosp_ga_track_outbound_links'];
|
1411 |
$aioseop_options['aiosp_use_categories'] = $_POST['aiosp_use_categories'];
|
1412 |
$aioseop_options['aiosp_dynamic_postspage_keywords'] = $_POST['aiosp_dynamic_postspage_keywords'];
|
1413 |
$aioseop_options['aiosp_category_noindex'] = $_POST['aiosp_category_noindex'];
|
1430 |
|
1431 |
update_option('aioseop_options', $aioseop_options);
|
1432 |
|
|
|
1433 |
wp_cache_flush();
|
|
|
1434 |
}
|
1435 |
} /*elseif ($_POST['aiosp_upgrade']) {
|
1436 |
$message = __("Upgraded to newest version. Please revisit the options page to make sure you see the newest version.", 'all_in_one_seo_pack');
|
2080 |
</div>
|
2081 |
</td>
|
2082 |
</tr>
|
|
|
2083 |
<tr>
|
2084 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
2085 |
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('123_tip');">
|
2107 |
</div>
|
2108 |
</td>
|
2109 |
</tr>
|
2110 |
+
<tr>
|
2111 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
2112 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_google_analytics_id_tip');">
|
2113 |
+
<?php _e('Google Analytics ID:', 'all_in_one_seo_pack')?>
|
2114 |
+
</td>
|
2115 |
+
<td>
|
2116 |
+
<input type="text" name="aiosp_google_analytics_id" value="<?php echo $aioseop_options['aiosp_google_analytics_id']; ?>" size="38"/>
|
2117 |
+
<div style="max-width:500px; text-align:left; display:none" id="aiosp_google_analytics_id_tip">
|
2118 |
+
<?php
|
2119 |
+
_e('Enter your Google Analytics ID here to track your site with Google Analytics.', 'all_in_one_seo_pack');
|
2120 |
+
?>
|
2121 |
+
</div>
|
2122 |
+
</td>
|
2123 |
+
</tr>
|
2124 |
+
<?php
|
2125 |
+
if ( isset( $aioseop_options['aiosp_google_analytics_id'] ) && $aioseop_options['aiosp_google_analytics_id'] ) {
|
2126 |
+
?>
|
2127 |
+
<tr>
|
2128 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
2129 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_ga_track_outbound_links_tip');">
|
2130 |
+
<?php _e('Track Outbound Links:', 'all_in_one_seo_pack')?>
|
2131 |
+
</td>
|
2132 |
+
<td>
|
2133 |
+
<input type="checkbox" name="aiosp_ga_track_outbound_links" <?php if ($aioseop_options['aiosp_ga_track_outbound_links']) echo "checked=\"1\""; ?>/>
|
2134 |
+
<div style="max-width:500px; text-align:left; display:none" id="aiosp_ga_track_outbound_links_tip">
|
2135 |
+
<?php
|
2136 |
+
_e('Add functionality to track outbound links with Google Analytics.', 'all_in_one_seo_pack');
|
2137 |
+
?>
|
2138 |
+
</div>
|
2139 |
+
</td>
|
2140 |
+
</tr>
|
2141 |
+
|
2142 |
+
<?php
|
2143 |
+
}
|
2144 |
+
?>
|
2145 |
+
|
2146 |
<tr>
|
2147 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
2148 |
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_use_categories_tip');">
|
all_in_one_seo_pack.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
Plugin Name: All in One SEO Pack
|
6 |
Plugin URI: http://semperfiwebdesign.com
|
7 |
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://wpplugins.com/plugin/50/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>
|
8 |
-
Version: 1.6.13.
|
9 |
Author: Michael Torbert
|
10 |
Author URI: http://michaeltorbert.com
|
11 |
*/
|
@@ -490,60 +490,14 @@ require_once( WP_PLUGIN_DIR . '/all-in-one-seo-pack/aioseop.class.php');
|
|
490 |
global $aioseop_options;
|
491 |
$aioseop_options = get_option('aioseop_options');
|
492 |
|
493 |
-
|
494 |
-
|
495 |
-
/*
|
496 |
-
add_option("aiosp_home_description", null, 'All in One SEO Plugin Home Description', 'yes');
|
497 |
-
add_option("aiosp_home_title", null, 'All in One SEO Plugin Home Title', 'yes');
|
498 |
-
add_option("aiosp_donate", 0, 'All in One SEO Pack Donate', 'no');
|
499 |
-
add_option("aiosp_can", 1, 'All in One SEO Pack Canonical URLs', 'yes');
|
500 |
-
add_option("aiosp_rewrite_titles", 1, 'All in One SEO Plugin Rewrite Titles', 'yes');
|
501 |
-
add_option("aiosp_use_categories", 0, 'All in One SEO Plugin Use Categories', 'yes');
|
502 |
-
add_option("aiosp_category_noindex", 1, 'All in One SEO Plugin Noindex for Categories', 'yes');
|
503 |
-
add_option("aiosp_archive_noindex", 1, 'All in One SEO Plugin Noindex for Archives', 'yes');
|
504 |
-
add_option("aiosp_tags_noindex", 0, 'All in One SEO Plugin Noindex for Tag Archives', 'yes');
|
505 |
-
add_option("aiosp_generate_descriptions", 1, 'All in One SEO Plugin Autogenerate Descriptions', 'yes');
|
506 |
-
add_option("aiosp_post_title_format", '%post_title% | %blog_title%', 'All in One SEO Plugin Post Title Format', 'yes');
|
507 |
-
add_option("aiosp_page_title_format", '%page_title% | %blog_title%', 'All in One SEO Plugin Page Title Format', 'yes');
|
508 |
-
add_option("aiosp_dynamic_postspage_keywords", 1, 'All in One SEO Plugin Dynamic Posts Page Keywords', 'yes');
|
509 |
-
add_option("aiosp_category_title_format", '%category_title% | %blog_title%', 'All in One SEO Plugin Category Title Format', 'yes');
|
510 |
-
add_option("aiosp_archive_title_format", '%date% | %blog_title%', 'All in One SEO Plugin Archive Title Format', 'yes');
|
511 |
-
add_option("aiosp_tag_title_format", '%tag% | %blog_title%', 'All in One SEO Plugin Tag Title Format', 'yes');
|
512 |
-
add_option("aiosp_search_title_format", '%search% | %blog_title%', 'All in One SEO Plugin Search Title Format', 'yes');
|
513 |
-
add_option("aiosp_description_format", '%description%', 'All in One SEO Plugin Description Format', 'yes');
|
514 |
-
add_option("aiosp_paged_format", ' - Part %page%', 'All in One SEO Plugin Paged Format', 'yes');
|
515 |
-
add_option("aiosp_404_title_format", 'Nothing found for %request_words%', 'All in One SEO Plugin 404 Title Format', 'yes');
|
516 |
-
add_option("aiosp_post_meta_tags", '', 'All in One SEO Plugin Additional Post Meta Tags', 'yes');
|
517 |
-
add_option("aiosp_page_meta_tags", '', 'All in One SEO Plugin Additional Post Meta Tags', 'yes');
|
518 |
-
add_option("aiosp_home_meta_tags", '', 'All in One SEO Plugin Additional Home Meta Tags', 'yes');
|
519 |
-
add_option("aiosp_do_log", null, 'All in One SEO Plugin write log file', 'yes');
|
520 |
-
*/
|
521 |
-
|
522 |
-
//$role = get_role('administrator');
|
523 |
-
//$role->add_cap('Edit AIOSEOP Options');
|
524 |
-
//$role->add_cap('Edit AIOSEOP on Posts/Pages');
|
525 |
-
|
526 |
////checking to see if things need to be updated
|
527 |
|
528 |
-
//if_post('turn-on'){
|
529 |
-
|
530 |
-
/* automattic?
|
531 |
-
if(!get_option('aioseop_options')){
|
532 |
-
aioseop_mrt_fix_meta(); //move this to the if also
|
533 |
-
aioseop_mrt_mkarry();
|
534 |
-
}
|
535 |
-
*/
|
536 |
-
|
537 |
if(isset($_POST['aioseop_migrate'])) aioseop_mrt_fix_meta();
|
538 |
if(isset($_POST['aioseop_migrate_options'])) aioseop_mrt_mkarry();
|
539 |
if(!get_option('aiosp_post_title_format') && !get_option('aioseop_options')) aioseop_mrt_mkarry();
|
540 |
|
541 |
-
//}end _post('turn_on')
|
542 |
-
|
543 |
-
|
544 |
////end checking to see if things need to be updated
|
545 |
|
546 |
-
|
547 |
function aioseop_mrt_fix_meta(){
|
548 |
global $wpdb;
|
549 |
$wpdb->query("UPDATE $wpdb->postmeta SET meta_key = '_aioseop_keywords' WHERE meta_key = 'keywords'");
|
@@ -576,6 +530,8 @@ $naioseop_options = array(
|
|
576 |
"aiosp_description_format"=>'%description%',
|
577 |
"aiosp_404_title_format"=>'Nothing found for %request_words%',
|
578 |
"aiosp_paged_format"=>' - Part %page%',
|
|
|
|
|
579 |
"aiosp_use_categories"=>0,
|
580 |
"aiosp_dynamic_postspage_keywords"=>1,
|
581 |
"aiosp_category_noindex"=>1,
|
@@ -613,15 +569,10 @@ add_option('aioseop_options',$naioseop_options);
|
|
613 |
echo "<div class='updated fade' style='background-color:green;border-color:green;'><p><strong>Updating SEO configuration options in database</strong></p></div";
|
614 |
|
615 |
}
|
616 |
-
//if( function_exists( 'is_site_admin' ) ) {
|
617 |
|
618 |
function aioseop_activation_notice(){
|
619 |
global $aioseop_options;
|
620 |
-
if(function_exists('admin_url')){
|
621 |
echo '<div class="error fade" style="background-color:red;"><p><strong>All in One SEO Pack must be configured. Go to <a href="' . admin_url( 'options-general.php?page=all-in-one-seo-pack/aioseop.class.php' ) . '">the admin page</a> to enable and configure the plugin.</strong><br />All in One SEO Pack now supports <em>Custom Post Types</em>.</p></div>';
|
622 |
-
}else{
|
623 |
-
echo '<div class="error fade" style="background-color:red;"><p><strong>All in One SEO Pack must be configured. Go to <a href="' . get_option('siteurl') . 'options-general.php?page=all-in-one-seo-pack/aioseop.class.php' . '">the admin page</a> to enable and configure the plugin.</strong></p></div>';
|
624 |
-
}
|
625 |
}
|
626 |
|
627 |
if($aioseopcc){
|
@@ -648,7 +599,7 @@ if($aioseop_options['aiosp_can'] == '1' || $aioseop_options['aiosp_can'] == 'on'
|
|
648 |
}
|
649 |
|
650 |
function aioseop_get_version(){
|
651 |
-
return '1.6.13.
|
652 |
}
|
653 |
|
654 |
function add_plugin_row($links, $file) {
|
@@ -659,15 +610,12 @@ echo '</td>';
|
|
659 |
|
660 |
}
|
661 |
|
662 |
-
|
663 |
$aiosp = new All_in_One_SEO_Pack();
|
664 |
|
665 |
////////new stuff
|
666 |
|
667 |
-
//add_action('quick_edit_custom_box','mys',10,2);
|
668 |
-
|
669 |
function mys($col, $type){
|
670 |
-
|
671 |
?>
|
672 |
|
673 |
|
@@ -688,7 +636,6 @@ add_action('load-edit.php','addmycolumns',1);
|
|
688 |
function addmycolumns(){
|
689 |
$aioseop_options = get_option('aioseop_options');
|
690 |
$aiosp_posttypecolumns = $aioseop_options['aiosp_posttypecolumns'];
|
691 |
-
//print_r($aiosp_posttypecolumns);
|
692 |
|
693 |
if ( !isset($_GET['post_type']) ) $post_type = 'post';
|
694 |
else $post_type = $_GET['post_type'];
|
@@ -739,13 +686,10 @@ add_action('init', array($aiosp, 'init'));
|
|
739 |
add_action('wp_head', array($aiosp, 'wp_head'));
|
740 |
add_action('template_redirect', array($aiosp, 'template_redirect'));
|
741 |
add_action('admin_menu', array($aiosp, 'admin_menu'));
|
742 |
-
//add_action('admin_head',array($aiosp, 'seo_mrt_admin_head');
|
743 |
add_action('admin_menu', 'aioseop_meta_box_add');
|
744 |
add_action('admin_menu', 'aioseop_mrt_nap');
|
745 |
|
746 |
function aioseop_mrt_nap(){
|
747 |
-
// add_object_page('All in One SEO Pack','All in One SEO Pack','administrator','aioseop','sometop2');
|
748 |
-
// add_object_page('All in One SEO Pack', 'SEO', 8, "__FILE__", 'aioseop_mrt_nap_menu2a','http://65.190.51.165/aioseo/wp-content/plugins/all-in-one-seo-pack/images/globe.png');
|
749 |
add_submenu_page("__FILE__", 'Settings', 'Settings', 'manage_options', '__FILE__', 'aioseop_mrt_nap_menu2a');
|
750 |
add_submenu_page("__FILE__", 'Tools', 'Tools', 'manage_options', 'subpageb', 'aioseop_mrt_nap_menu2b');
|
751 |
}
|
@@ -795,31 +739,15 @@ function aioseop_filter_callback($matches) {
|
|
795 |
return $filtered;
|
796 |
}
|
797 |
|
798 |
-
if (substr($aiosp->wp_version, 0, 3) < '2.5') {
|
799 |
-
add_action('dbx_post_advanced', array($aiosp, 'add_meta_tags_textinput'));
|
800 |
-
add_action('dbx_page_advanced', array($aiosp, 'add_meta_tags_textinput'));
|
801 |
-
}
|
802 |
-
|
803 |
function aioseop_meta_box_add() {
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
$
|
809 |
-
|
810 |
-
if($mrt_aioseop_pt == 'post' || $mrt_aioseop_pt == 'page' || $aioseop_mrt_cpt){
|
811 |
-
add_meta_box('aiosp',__('All in One SEO Pack', 'all_in_one_seo_pack'),'aiosp_meta',$mrt_aioseop_pt);
|
812 |
-
}
|
813 |
}
|
814 |
-
}else{
|
815 |
-
add_meta_box('aiosp',__('All in One SEO Pack', 'all_in_one_seo_pack'),'aiosp_meta','post');
|
816 |
-
add_meta_box('aiosp',__('All in One SEO Pack', 'all_in_one_seo_pack'),'aiosp_meta','page');
|
817 |
}
|
818 |
-
|
819 |
-
} else {
|
820 |
-
add_action('dbx_post_advanced', array($aiosp, 'add_meta_tags_textinput'));
|
821 |
-
add_action('dbx_page_advanced', array($aiosp, 'add_meta_tags_textinput'));
|
822 |
-
}
|
823 |
}
|
824 |
|
825 |
function aiosp_meta() {
|
5 |
Plugin Name: All in One SEO Pack
|
6 |
Plugin URI: http://semperfiwebdesign.com
|
7 |
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://wpplugins.com/plugin/50/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>
|
8 |
+
Version: 1.6.13.5
|
9 |
Author: Michael Torbert
|
10 |
Author URI: http://michaeltorbert.com
|
11 |
*/
|
490 |
global $aioseop_options;
|
491 |
$aioseop_options = get_option('aioseop_options');
|
492 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
493 |
////checking to see if things need to be updated
|
494 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
495 |
if(isset($_POST['aioseop_migrate'])) aioseop_mrt_fix_meta();
|
496 |
if(isset($_POST['aioseop_migrate_options'])) aioseop_mrt_mkarry();
|
497 |
if(!get_option('aiosp_post_title_format') && !get_option('aioseop_options')) aioseop_mrt_mkarry();
|
498 |
|
|
|
|
|
|
|
499 |
////end checking to see if things need to be updated
|
500 |
|
|
|
501 |
function aioseop_mrt_fix_meta(){
|
502 |
global $wpdb;
|
503 |
$wpdb->query("UPDATE $wpdb->postmeta SET meta_key = '_aioseop_keywords' WHERE meta_key = 'keywords'");
|
530 |
"aiosp_description_format"=>'%description%',
|
531 |
"aiosp_404_title_format"=>'Nothing found for %request_words%',
|
532 |
"aiosp_paged_format"=>' - Part %page%',
|
533 |
+
"aiosp_google_analytics_id"=>null,
|
534 |
+
"aiosp_ga_track_outbound_links"=>0,
|
535 |
"aiosp_use_categories"=>0,
|
536 |
"aiosp_dynamic_postspage_keywords"=>1,
|
537 |
"aiosp_category_noindex"=>1,
|
569 |
echo "<div class='updated fade' style='background-color:green;border-color:green;'><p><strong>Updating SEO configuration options in database</strong></p></div";
|
570 |
|
571 |
}
|
|
|
572 |
|
573 |
function aioseop_activation_notice(){
|
574 |
global $aioseop_options;
|
|
|
575 |
echo '<div class="error fade" style="background-color:red;"><p><strong>All in One SEO Pack must be configured. Go to <a href="' . admin_url( 'options-general.php?page=all-in-one-seo-pack/aioseop.class.php' ) . '">the admin page</a> to enable and configure the plugin.</strong><br />All in One SEO Pack now supports <em>Custom Post Types</em>.</p></div>';
|
|
|
|
|
|
|
576 |
}
|
577 |
|
578 |
if($aioseopcc){
|
599 |
}
|
600 |
|
601 |
function aioseop_get_version(){
|
602 |
+
return '1.6.13.5';
|
603 |
}
|
604 |
|
605 |
function add_plugin_row($links, $file) {
|
610 |
|
611 |
}
|
612 |
|
|
|
613 |
$aiosp = new All_in_One_SEO_Pack();
|
614 |
|
615 |
////////new stuff
|
616 |
|
|
|
|
|
617 |
function mys($col, $type){
|
618 |
+
|
619 |
?>
|
620 |
|
621 |
|
636 |
function addmycolumns(){
|
637 |
$aioseop_options = get_option('aioseop_options');
|
638 |
$aiosp_posttypecolumns = $aioseop_options['aiosp_posttypecolumns'];
|
|
|
639 |
|
640 |
if ( !isset($_GET['post_type']) ) $post_type = 'post';
|
641 |
else $post_type = $_GET['post_type'];
|
686 |
add_action('wp_head', array($aiosp, 'wp_head'));
|
687 |
add_action('template_redirect', array($aiosp, 'template_redirect'));
|
688 |
add_action('admin_menu', array($aiosp, 'admin_menu'));
|
|
|
689 |
add_action('admin_menu', 'aioseop_meta_box_add');
|
690 |
add_action('admin_menu', 'aioseop_mrt_nap');
|
691 |
|
692 |
function aioseop_mrt_nap(){
|
|
|
|
|
693 |
add_submenu_page("__FILE__", 'Settings', 'Settings', 'manage_options', '__FILE__', 'aioseop_mrt_nap_menu2a');
|
694 |
add_submenu_page("__FILE__", 'Tools', 'Tools', 'manage_options', 'subpageb', 'aioseop_mrt_nap_menu2b');
|
695 |
}
|
739 |
return $filtered;
|
740 |
}
|
741 |
|
|
|
|
|
|
|
|
|
|
|
742 |
function aioseop_meta_box_add() {
|
743 |
+
$mrt_aioseop_pts=get_post_types('','names');
|
744 |
+
$aioseop_options = get_option('aioseop_options');
|
745 |
+
$aioseop_mrt_cpt = $aioseop_options['aiosp_enablecpost'];
|
746 |
+
foreach ($mrt_aioseop_pts as $mrt_aioseop_pt) {
|
747 |
+
if($mrt_aioseop_pt == 'post' || $mrt_aioseop_pt == 'page' || $aioseop_mrt_cpt){
|
748 |
+
add_meta_box('aiosp',__('All in One SEO Pack', 'all_in_one_seo_pack'),'aiosp_meta',$mrt_aioseop_pt);
|
|
|
|
|
|
|
749 |
}
|
|
|
|
|
|
|
750 |
}
|
|
|
|
|
|
|
|
|
|
|
751 |
}
|
752 |
|
753 |
function aiosp_meta() {
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
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,meta,keywords,description,title,post, search engine optimization, google
|
5 |
-
Requires at least:
|
6 |
Tested up to: 3.2.1
|
7 |
Stable tag: trunk
|
8 |
|
2 |
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,meta,keywords,description,title,post, search engine optimization, google
|
5 |
+
Requires at least: 3.0
|
6 |
Tested up to: 3.2.1
|
7 |
Stable tag: trunk
|
8 |
|