Version Description
Download this release
Release Info
Developer | uberdose |
Plugin | All in One SEO Pack |
Version | 1.3.5.3 |
Comparing to | |
See all releases |
Code changes from version 1.3.5.2 to 1.3.5.3
- all_in_one_seo_pack.php +207 -18
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.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.3.5.
|
32 |
|
33 |
/**
|
34 |
* Max numbers of chars in auto-generated description.
|
@@ -345,12 +345,36 @@ class All_in_One_SEO_Pack {
|
|
345 |
$new_title = str_replace('%date%', $date, $new_title);
|
346 |
$title = trim($new_title);
|
347 |
$header = $this->replace_title($header, $title);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
348 |
}
|
349 |
|
350 |
return $header;
|
351 |
|
352 |
}
|
353 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
function capitalize($s) {
|
355 |
$s = trim($s);
|
356 |
$tokens = explode(' ', $s);
|
@@ -680,6 +704,7 @@ class All_in_One_SEO_Pack {
|
|
680 |
update_option('aiosp_tag_title_format', $_POST['aiosp_tag_title_format']);
|
681 |
update_option('aiosp_search_title_format', $_POST['aiosp_search_title_format']);
|
682 |
update_option('aiosp_description_format', $_POST['aiosp_description_format']);
|
|
|
683 |
update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
|
684 |
update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
|
685 |
update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
|
@@ -704,6 +729,17 @@ class All_in_One_SEO_Pack {
|
|
704 |
href="http://wp.uberdose.com/2007/07/27/all-in-one-seo-pack-release-history/"><php _e("Should I upgrade?", 'all_in_one_seo_pack')?>
|
705 |
</a>
|
706 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
707 |
<p>
|
708 |
<a target="_blank" title="<?php _e('All in One SEO Plugin Help', 'all_in_one_seo_pack') ?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/">
|
709 |
<?php _e('Help', 'all_in_one_seo_pack') ?></a>
|
@@ -716,170 +752,322 @@ href="http://wp.uberdose.com/2007/10/02/translations-for-all-in-one-seo-pack/"><
|
|
716 |
</p>
|
717 |
<form name="dofollow" action="" method="post">
|
718 |
<table>
|
|
|
719 |
<tr>
|
720 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
721 |
-
<a
|
722 |
<?php _e('Home Title:', 'all_in_one_seo_pack')?>
|
723 |
</a>
|
724 |
</td>
|
725 |
<td>
|
726 |
<textarea cols="60" rows="2" name="aiosp_home_title"><?php echo stripcslashes(get_option('aiosp_home_title')); ?></textarea>
|
|
|
|
|
|
|
|
|
|
|
727 |
</td>
|
728 |
</tr>
|
|
|
729 |
<tr>
|
730 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
731 |
-
<a
|
732 |
<?php _e('Home Description:', 'all_in_one_seo_pack')?>
|
733 |
</a>
|
734 |
</td>
|
735 |
<td>
|
736 |
<textarea cols="60" rows="2" name="aiosp_home_description"><?php echo stripcslashes(get_option('aiosp_home_description')); ?></textarea>
|
|
|
|
|
|
|
|
|
|
|
737 |
</td>
|
738 |
</tr>
|
|
|
739 |
<tr>
|
740 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
741 |
-
<a
|
742 |
<?php _e('Home Keywords (comma separated):', 'all_in_one_seo_pack')?>
|
743 |
</a>
|
744 |
</td>
|
745 |
<td>
|
746 |
<textarea cols="60" rows="2" name="aiosp_home_keywords"><?php echo stripcslashes(get_option('aiosp_home_keywords')); ?></textarea>
|
|
|
|
|
|
|
|
|
|
|
747 |
</td>
|
748 |
</tr>
|
|
|
749 |
<tr>
|
750 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
751 |
-
<a
|
752 |
<?php _e('Rewrite Titles:', 'all_in_one_seo_pack')?>
|
753 |
</a>
|
754 |
</td>
|
755 |
<td>
|
756 |
<input type="checkbox" name="aiosp_rewrite_titles" <?php if (get_option('aiosp_rewrite_titles')) echo "checked=\"1\""; ?>/>
|
|
|
|
|
|
|
|
|
|
|
757 |
</td>
|
758 |
</tr>
|
|
|
759 |
<tr>
|
760 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
761 |
-
<a
|
762 |
<?php _e('Post Title Format:', 'all_in_one_seo_pack')?>
|
763 |
</a>
|
764 |
</td>
|
765 |
<td>
|
766 |
<input size="59" name="aiosp_post_title_format" value="<?php echo stripcslashes(get_option('aiosp_post_title_format')); ?>"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
767 |
</td>
|
768 |
</tr>
|
|
|
769 |
<tr>
|
770 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
771 |
-
<a
|
772 |
<?php _e('Page Title Format:', 'all_in_one_seo_pack')?>
|
773 |
</a>
|
774 |
</td>
|
775 |
<td>
|
776 |
<input size="59" name="aiosp_page_title_format" value="<?php echo stripcslashes(get_option('aiosp_page_title_format')); ?>"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
777 |
</td>
|
778 |
</tr>
|
|
|
779 |
<tr>
|
780 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
781 |
-
<a
|
782 |
<?php _e('Category Title Format:', 'all_in_one_seo_pack')?>
|
783 |
</a>
|
784 |
</td>
|
785 |
<td>
|
786 |
<input size="59" name="aiosp_category_title_format" value="<?php echo stripcslashes(get_option('aiosp_category_title_format')); ?>"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
787 |
</td>
|
788 |
</tr>
|
789 |
|
790 |
<tr>
|
791 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
792 |
-
<a
|
793 |
<?php _e('Archive Title Format:', 'all_in_one_seo_pack')?>
|
794 |
</a>
|
795 |
</td>
|
796 |
<td>
|
797 |
<input size="59" name="aiosp_archive_title_format" value="<?php echo stripcslashes(get_option('aiosp_archive_title_format')); ?>"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
798 |
</td>
|
799 |
</tr>
|
800 |
|
801 |
<tr>
|
802 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
803 |
-
<a
|
804 |
<?php _e('Tag Title Format:', 'all_in_one_seo_pack')?>
|
805 |
</a>
|
806 |
</td>
|
807 |
<td>
|
808 |
<input size="59" name="aiosp_tag_title_format" value="<?php echo stripcslashes(get_option('aiosp_tag_title_format')); ?>"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
809 |
</td>
|
810 |
</tr>
|
811 |
|
812 |
<tr>
|
813 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
814 |
-
<a
|
815 |
<?php _e('Search Title Format:', 'all_in_one_seo_pack')?>
|
816 |
</a>
|
817 |
</td>
|
818 |
<td>
|
819 |
<input size="59" name="aiosp_search_title_format" value="<?php echo stripcslashes(get_option('aiosp_search_title_format')); ?>"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
820 |
</td>
|
821 |
</tr>
|
822 |
|
823 |
<tr>
|
824 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
825 |
-
<a
|
826 |
<?php _e('Description Format:', 'all_in_one_seo_pack')?>
|
827 |
</a>
|
828 |
</td>
|
829 |
<td>
|
830 |
<input size="59" name="aiosp_description_format" value="<?php echo stripcslashes(get_option('aiosp_description_format')); ?>"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
831 |
</td>
|
832 |
</tr>
|
833 |
|
834 |
<tr>
|
835 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
836 |
-
<a
|
837 |
<?php _e('Use Categories for META keywords:', 'all_in_one_seo_pack')?>
|
838 |
</td>
|
839 |
<td>
|
840 |
<input type="checkbox" name="aiosp_use_categories" <?php if (get_option('aiosp_use_categories')) echo "checked=\"1\""; ?>/>
|
|
|
|
|
|
|
|
|
|
|
841 |
</td>
|
842 |
</tr>
|
|
|
843 |
<tr>
|
844 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
845 |
-
<a
|
846 |
<?php _e('Use noindex for Categories:', 'all_in_one_seo_pack')?>
|
847 |
</a>
|
848 |
</td>
|
849 |
<td>
|
850 |
<input type="checkbox" name="aiosp_category_noindex" <?php if (get_option('aiosp_category_noindex')) echo "checked=\"1\""; ?>/>
|
|
|
|
|
|
|
|
|
|
|
851 |
</td>
|
852 |
</tr>
|
|
|
853 |
<tr>
|
854 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
855 |
-
<a
|
856 |
<?php _e('Use noindex for Archives:', 'all_in_one_seo_pack')?>
|
857 |
</a>
|
858 |
</td>
|
859 |
<td>
|
860 |
<input type="checkbox" name="aiosp_archive_noindex" <?php if (get_option('aiosp_archive_noindex')) echo "checked=\"1\""; ?>/>
|
|
|
|
|
|
|
|
|
|
|
861 |
</td>
|
862 |
</tr>
|
|
|
863 |
<tr>
|
864 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
865 |
-
<a
|
866 |
<?php _e('Use noindex for Tag Archives:', 'all_in_one_seo_pack')?>
|
867 |
</a>
|
868 |
</td>
|
869 |
<td>
|
870 |
<input type="checkbox" name="aiosp_tags_noindex" <?php if (get_option('aiosp_tags_noindex')) echo "checked=\"1\""; ?>/>
|
|
|
|
|
|
|
|
|
|
|
871 |
</td>
|
872 |
</tr>
|
|
|
873 |
<tr>
|
874 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
875 |
-
<a
|
876 |
<?php _e('Autogenerate Descriptions:', 'all_in_one_seo_pack')?>
|
877 |
</a>
|
878 |
</td>
|
879 |
<td>
|
880 |
<input type="checkbox" name="aiosp_generate_descriptions" <?php if (get_option('aiosp_generate_descriptions')) echo "checked=\"1\""; ?>/>
|
|
|
|
|
|
|
|
|
|
|
881 |
</td>
|
882 |
</tr>
|
|
|
883 |
</table>
|
884 |
<p class="submit">
|
885 |
<input type="hidden" name="action" value="aiosp_update" />
|
@@ -909,6 +1097,7 @@ add_option("aiosp_archive_title_format", '%date% | %blog_title%', 'All in One SE
|
|
909 |
add_option("aiosp_tag_title_format", '%tag% | %blog_title%', 'All in One SEO Plugin Tag Title Format', 'yes');
|
910 |
add_option("aiosp_search_title_format", '%search% | %blog_title%', 'All in One SEO Plugin Search Title Format', 'yes');
|
911 |
add_option("aiosp_description_format", '%description%', 'All in One SEO Plugin Description Format', 'yes');
|
|
|
912 |
|
913 |
$aiosp = new All_in_One_SEO_Pack();
|
914 |
add_action('wp_head', array($aiosp, 'wp_head'));
|
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.5.3
|
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.5.3";
|
32 |
|
33 |
/**
|
34 |
* Max numbers of chars in auto-generated description.
|
345 |
$new_title = str_replace('%date%', $date, $new_title);
|
346 |
$title = trim($new_title);
|
347 |
$header = $this->replace_title($header, $title);
|
348 |
+
} else if (is_404()) {
|
349 |
+
$title_format = get_option('aiosp_404_title_format');
|
350 |
+
$new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
351 |
+
$new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
|
352 |
+
$new_title = str_replace('%request_url%', $_SERVER['REQUEST_URI'], $new_title);
|
353 |
+
$new_title = str_replace('%request_words%', $this->request_as_words($_SERVER['REQUEST_URI']), $new_title);
|
354 |
+
$header = $this->replace_title($header, $new_title);
|
355 |
}
|
356 |
|
357 |
return $header;
|
358 |
|
359 |
}
|
360 |
|
361 |
+
/**
|
362 |
+
* @return User-readable nice words for a given request.
|
363 |
+
*/
|
364 |
+
function request_as_words($request) {
|
365 |
+
$request = str_replace('.html', ' ', $request);
|
366 |
+
$request = str_replace('.htm', ' ', $request);
|
367 |
+
$request = str_replace('.', ' ', $request);
|
368 |
+
$request = str_replace('/', ' ', $request);
|
369 |
+
$request_a = explode(' ', $request);
|
370 |
+
$request_new = array();
|
371 |
+
foreach ($request_a as $token) {
|
372 |
+
$request_new[] = ucwords(trim($token));
|
373 |
+
}
|
374 |
+
$request = implode(' ', $request_new);
|
375 |
+
return $request;
|
376 |
+
}
|
377 |
+
|
378 |
function capitalize($s) {
|
379 |
$s = trim($s);
|
380 |
$tokens = explode(' ', $s);
|
704 |
update_option('aiosp_tag_title_format', $_POST['aiosp_tag_title_format']);
|
705 |
update_option('aiosp_search_title_format', $_POST['aiosp_search_title_format']);
|
706 |
update_option('aiosp_description_format', $_POST['aiosp_description_format']);
|
707 |
+
update_option('aiosp_404_title_format', $_POST['aiosp_404_title_format']);
|
708 |
update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
|
709 |
update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
|
710 |
update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
|
729 |
href="http://wp.uberdose.com/2007/07/27/all-in-one-seo-pack-release-history/"><php _e("Should I upgrade?", 'all_in_one_seo_pack')?>
|
730 |
</a>
|
731 |
</p>
|
732 |
+
<script type="text/javascript">
|
733 |
+
<!--
|
734 |
+
function toggleVisibility(id) {
|
735 |
+
var e = document.getElementById(id);
|
736 |
+
if(e.style.display == 'block')
|
737 |
+
e.style.display = 'none';
|
738 |
+
else
|
739 |
+
e.style.display = 'block';
|
740 |
+
}
|
741 |
+
//-->
|
742 |
+
</script>
|
743 |
<p>
|
744 |
<a target="_blank" title="<?php _e('All in One SEO Plugin Help', 'all_in_one_seo_pack') ?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/">
|
745 |
<?php _e('Help', 'all_in_one_seo_pack') ?></a>
|
752 |
</p>
|
753 |
<form name="dofollow" action="" method="post">
|
754 |
<table>
|
755 |
+
|
756 |
<tr>
|
757 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
758 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_home_title_tip');">
|
759 |
<?php _e('Home Title:', 'all_in_one_seo_pack')?>
|
760 |
</a>
|
761 |
</td>
|
762 |
<td>
|
763 |
<textarea cols="60" rows="2" name="aiosp_home_title"><?php echo stripcslashes(get_option('aiosp_home_title')); ?></textarea>
|
764 |
+
<div style="text-align:left; display:none" id="aiosp_home_title_tip">
|
765 |
+
<?php
|
766 |
+
_e('As the name implies, this will be the title of your homepage. This is independent of any other option. If not set, the default blog title will get used.');
|
767 |
+
?>
|
768 |
+
</div>
|
769 |
</td>
|
770 |
</tr>
|
771 |
+
|
772 |
<tr>
|
773 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
774 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_home_description_tip');">
|
775 |
<?php _e('Home Description:', 'all_in_one_seo_pack')?>
|
776 |
</a>
|
777 |
</td>
|
778 |
<td>
|
779 |
<textarea cols="60" rows="2" name="aiosp_home_description"><?php echo stripcslashes(get_option('aiosp_home_description')); ?></textarea>
|
780 |
+
<div style="text-align:left; display:none" id="aiosp_home_description_tip">
|
781 |
+
<?php
|
782 |
+
_e('The META description for your homepage. Independent of any other options, the default is no META description at all if this is not set.');
|
783 |
+
?>
|
784 |
+
</div>
|
785 |
</td>
|
786 |
</tr>
|
787 |
+
|
788 |
<tr>
|
789 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
790 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_home_keywords_tip');">
|
791 |
<?php _e('Home Keywords (comma separated):', 'all_in_one_seo_pack')?>
|
792 |
</a>
|
793 |
</td>
|
794 |
<td>
|
795 |
<textarea cols="60" rows="2" name="aiosp_home_keywords"><?php echo stripcslashes(get_option('aiosp_home_keywords')); ?></textarea>
|
796 |
+
<div style="text-align:left; display:none" id="aiosp_home_keywords_tip">
|
797 |
+
<?php
|
798 |
+
_e('A comma separated list of your most important keywords for your site that will be written as META keywords on your homepage. Don’t stuff everything in here.');
|
799 |
+
?>
|
800 |
+
</div>
|
801 |
</td>
|
802 |
</tr>
|
803 |
+
|
804 |
<tr>
|
805 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
806 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_rewrite_titles_tip');">
|
807 |
<?php _e('Rewrite Titles:', 'all_in_one_seo_pack')?>
|
808 |
</a>
|
809 |
</td>
|
810 |
<td>
|
811 |
<input type="checkbox" name="aiosp_rewrite_titles" <?php if (get_option('aiosp_rewrite_titles')) echo "checked=\"1\""; ?>/>
|
812 |
+
<div style="text-align:left; display:none" id="aiosp_rewrite_titles_tip">
|
813 |
+
<?php
|
814 |
+
_e('Note that this is all about the title tag. This is what you see in your browser’s window title bar. This is NOT visible on a page, only in the window title bar and of course in the source. If set, all page, post, category, search and archive page titles get rewritten. You can specify the format for most of them. For example: The default templates puts the title tag of posts like this: “Blog Archive >> Blog Name >> Post Title” (maybe I’ve overdone slightly). This is far from optimal. With the default post title format, Rewrite Title rewrites this to “Post Title | Blog Name”. If you have manually defined a title (in one of the text fields for All in One SEO Plugin input) this will become the title of your post in the format string.');
|
815 |
+
?>
|
816 |
+
</div>
|
817 |
</td>
|
818 |
</tr>
|
819 |
+
|
820 |
<tr>
|
821 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
822 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_post_title_format_tip');">
|
823 |
<?php _e('Post Title Format:', 'all_in_one_seo_pack')?>
|
824 |
</a>
|
825 |
</td>
|
826 |
<td>
|
827 |
<input size="59" name="aiosp_post_title_format" value="<?php echo stripcslashes(get_option('aiosp_post_title_format')); ?>"/>
|
828 |
+
<div style="text-align:left; display:none" id="aiosp_post_title_format_tip">
|
829 |
+
<?php
|
830 |
+
_e('The following macros are supported:');
|
831 |
+
echo('<ul>');
|
832 |
+
echo('<li>'); _e('%blog_title% - Your blog title'); echo('</li>');
|
833 |
+
echo('<li>'); _e('%blog_description% - Your blog description'); echo('</li>');
|
834 |
+
echo('<li>'); _e('%post_title% - The original title of the post'); echo('</li>');
|
835 |
+
echo('<li>'); _e('%category_title% - The (main) category of the post'); echo('</li>');
|
836 |
+
echo('<li>'); _e('%category% - Alias for %category_title%'); echo('</li>');
|
837 |
+
echo('</ul>');
|
838 |
+
?>
|
839 |
+
</div>
|
840 |
</td>
|
841 |
</tr>
|
842 |
+
|
843 |
<tr>
|
844 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
845 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_page_title_format_tip');">
|
846 |
<?php _e('Page Title Format:', 'all_in_one_seo_pack')?>
|
847 |
</a>
|
848 |
</td>
|
849 |
<td>
|
850 |
<input size="59" name="aiosp_page_title_format" value="<?php echo stripcslashes(get_option('aiosp_page_title_format')); ?>"/>
|
851 |
+
<div style="text-align:left; display:none" id="aiosp_page_title_format_tip">
|
852 |
+
<?php
|
853 |
+
_e('The following macros are supported:');
|
854 |
+
echo('<ul>');
|
855 |
+
echo('<li>'); _e('%blog_title% - Your blog title'); echo('</li>');
|
856 |
+
echo('<li>'); _e('%blog_description% - Your blog description'); echo('</li>');
|
857 |
+
echo('<li>'); _e('%page_title% - The original title of the page'); echo('</li>');
|
858 |
+
echo('</ul>');
|
859 |
+
?>
|
860 |
+
</div>
|
861 |
</td>
|
862 |
</tr>
|
863 |
+
|
864 |
<tr>
|
865 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
866 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_category_title_format_tip');">
|
867 |
<?php _e('Category Title Format:', 'all_in_one_seo_pack')?>
|
868 |
</a>
|
869 |
</td>
|
870 |
<td>
|
871 |
<input size="59" name="aiosp_category_title_format" value="<?php echo stripcslashes(get_option('aiosp_category_title_format')); ?>"/>
|
872 |
+
<div style="text-align:left; display:none" id="aiosp_category_title_format_tip">
|
873 |
+
<?php
|
874 |
+
_e('The following macros are supported:');
|
875 |
+
echo('<ul>');
|
876 |
+
echo('<li>'); _e('%blog_title% - Your blog title'); echo('</li>');
|
877 |
+
echo('<li>'); _e('%blog_description% - Your blog description'); echo('</li>');
|
878 |
+
echo('<li>'); _e('%category_title% - The original title of the category'); echo('</li>');
|
879 |
+
echo('<li>'); _e('%category_description% - The description of the category'); echo('</li>');
|
880 |
+
echo('</ul>');
|
881 |
+
?>
|
882 |
+
</div>
|
883 |
</td>
|
884 |
</tr>
|
885 |
|
886 |
<tr>
|
887 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
888 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_archive_title_format_tip');">
|
889 |
<?php _e('Archive Title Format:', 'all_in_one_seo_pack')?>
|
890 |
</a>
|
891 |
</td>
|
892 |
<td>
|
893 |
<input size="59" name="aiosp_archive_title_format" value="<?php echo stripcslashes(get_option('aiosp_archive_title_format')); ?>"/>
|
894 |
+
<div style="text-align:left; display:none" id="aiosp_archive_title_format_tip">
|
895 |
+
<?php
|
896 |
+
_e('The following macros are supported:');
|
897 |
+
echo('<ul>');
|
898 |
+
echo('<li>'); _e('%blog_title% - Your blog title'); echo('</li>');
|
899 |
+
echo('<li>'); _e('%blog_description% - Your blog description'); echo('</li>');
|
900 |
+
echo('<li>'); _e('%date% - The original archive title given by wordpress, e.g. “2007″ or “2007 August”'); echo('</li>');
|
901 |
+
echo('</ul>');
|
902 |
+
?>
|
903 |
+
</div>
|
904 |
</td>
|
905 |
</tr>
|
906 |
|
907 |
<tr>
|
908 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
909 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_tag_title_format_tip');">
|
910 |
<?php _e('Tag Title Format:', 'all_in_one_seo_pack')?>
|
911 |
</a>
|
912 |
</td>
|
913 |
<td>
|
914 |
<input size="59" name="aiosp_tag_title_format" value="<?php echo stripcslashes(get_option('aiosp_tag_title_format')); ?>"/>
|
915 |
+
<div style="text-align:left; display:none" id="aiosp_tag_title_format_tip">
|
916 |
+
<?php
|
917 |
+
_e('The following macros are supported:');
|
918 |
+
echo('<ul>');
|
919 |
+
echo('<li>'); _e('%blog_title% - Your blog title'); echo('</li>');
|
920 |
+
echo('<li>'); _e('%blog_description% - Your blog description'); echo('</li>');
|
921 |
+
echo('<li>'); _e('%tag% - The name of the tag'); echo('</li>');
|
922 |
+
echo('</ul>');
|
923 |
+
?>
|
924 |
+
</div>
|
925 |
</td>
|
926 |
</tr>
|
927 |
|
928 |
<tr>
|
929 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
930 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_search_title_format_tip');">
|
931 |
<?php _e('Search Title Format:', 'all_in_one_seo_pack')?>
|
932 |
</a>
|
933 |
</td>
|
934 |
<td>
|
935 |
<input size="59" name="aiosp_search_title_format" value="<?php echo stripcslashes(get_option('aiosp_search_title_format')); ?>"/>
|
936 |
+
<div style="text-align:left; display:none" id="aiosp_search_title_format_tip">
|
937 |
+
<?php
|
938 |
+
_e('The following macros are supported:');
|
939 |
+
echo('<ul>');
|
940 |
+
echo('<li>'); _e('%blog_title% - Your blog title'); echo('</li>');
|
941 |
+
echo('<li>'); _e('%blog_description% - Your blog description'); echo('</li>');
|
942 |
+
echo('<li>'); _e('%search% - What was searched for'); echo('</li>');
|
943 |
+
echo('</ul>');
|
944 |
+
?>
|
945 |
+
</div>
|
946 |
</td>
|
947 |
</tr>
|
948 |
|
949 |
<tr>
|
950 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
951 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_description_format_tip');">
|
952 |
<?php _e('Description Format:', 'all_in_one_seo_pack')?>
|
953 |
</a>
|
954 |
</td>
|
955 |
<td>
|
956 |
<input size="59" name="aiosp_description_format" value="<?php echo stripcslashes(get_option('aiosp_description_format')); ?>"/>
|
957 |
+
<div style="text-align:left; display:none" id="aiosp_description_format_tip">
|
958 |
+
<?php
|
959 |
+
_e('The following macros are supported:');
|
960 |
+
echo('<ul>');
|
961 |
+
echo('<li>'); _e('%blog_title% - Your blog title'); echo('</li>');
|
962 |
+
echo('<li>'); _e('%blog_description% - Your blog description'); echo('</li>');
|
963 |
+
echo('<li>'); _e('%description% - The original description as determined by the plugin, e.g. the excerpt if one is set or an auto-generated one if that option is set'); echo('</li>');
|
964 |
+
echo('</ul>');
|
965 |
+
?>
|
966 |
+
</div>
|
967 |
+
</td>
|
968 |
+
</tr>
|
969 |
+
|
970 |
+
<tr>
|
971 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
972 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_404_title_format_tip');">
|
973 |
+
<?php _e('404 Title Format:', 'all_in_one_seo_pack')?>
|
974 |
+
</a>
|
975 |
+
</td>
|
976 |
+
<td>
|
977 |
+
<input size="59" name="aiosp_404_title_format" value="<?php echo stripcslashes(get_option('aiosp_404_title_format')); ?>"/>
|
978 |
+
<div style="text-align:left; display:none" id="aiosp_404_title_format_tip">
|
979 |
+
<?php
|
980 |
+
_e('The following macros are supported:');
|
981 |
+
echo('<ul>');
|
982 |
+
echo('<li>'); _e('%blog_title% - Your blog title'); echo('</li>');
|
983 |
+
echo('<li>'); _e('%blog_description% - Your blog description'); echo('</li>');
|
984 |
+
echo('<li>'); _e('%request_url% - The original URL path, like "/url-that-does-not-exist/"'); echo('</li>');
|
985 |
+
echo('<li>'); _e('%request_words% - The URL path in human readable form, like "Url That Does Not Exist"'); echo('</li>');
|
986 |
+
echo('</ul>');
|
987 |
+
?>
|
988 |
+
</div>
|
989 |
</td>
|
990 |
</tr>
|
991 |
|
992 |
<tr>
|
993 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
994 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_use_categories_tip');">
|
995 |
<?php _e('Use Categories for META keywords:', 'all_in_one_seo_pack')?>
|
996 |
</td>
|
997 |
<td>
|
998 |
<input type="checkbox" name="aiosp_use_categories" <?php if (get_option('aiosp_use_categories')) echo "checked=\"1\""; ?>/>
|
999 |
+
<div style="text-align:left; display:none" id="aiosp_use_categories_tip">
|
1000 |
+
<?php
|
1001 |
+
_e('Check this if you want your categories for a given post used as the META keywords for this post (in addition to any keywords and tags you specify on the post edit page).');
|
1002 |
+
?>
|
1003 |
+
</div>
|
1004 |
</td>
|
1005 |
</tr>
|
1006 |
+
|
1007 |
<tr>
|
1008 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
1009 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_category_noindex_tip');">
|
1010 |
<?php _e('Use noindex for Categories:', 'all_in_one_seo_pack')?>
|
1011 |
</a>
|
1012 |
</td>
|
1013 |
<td>
|
1014 |
<input type="checkbox" name="aiosp_category_noindex" <?php if (get_option('aiosp_category_noindex')) echo "checked=\"1\""; ?>/>
|
1015 |
+
<div style="text-align:left; display:none" id="aiosp_category_noindex_tip">
|
1016 |
+
<?php
|
1017 |
+
_e('Check this for excluding category pages from being crawled. Useful for avoiding duplicate content.');
|
1018 |
+
?>
|
1019 |
+
</div>
|
1020 |
</td>
|
1021 |
</tr>
|
1022 |
+
|
1023 |
<tr>
|
1024 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
1025 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_archive_noindex_tip');">
|
1026 |
<?php _e('Use noindex for Archives:', 'all_in_one_seo_pack')?>
|
1027 |
</a>
|
1028 |
</td>
|
1029 |
<td>
|
1030 |
<input type="checkbox" name="aiosp_archive_noindex" <?php if (get_option('aiosp_archive_noindex')) echo "checked=\"1\""; ?>/>
|
1031 |
+
<div style="text-align:left; display:none" id="aiosp_archive_noindex_tip">
|
1032 |
+
<?php
|
1033 |
+
_e('Check this for excluding archive pages from being crawled. Useful for avoiding duplicate content.');
|
1034 |
+
?>
|
1035 |
+
</div>
|
1036 |
</td>
|
1037 |
</tr>
|
1038 |
+
|
1039 |
<tr>
|
1040 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
1041 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_tags_noindex_tip');">
|
1042 |
<?php _e('Use noindex for Tag Archives:', 'all_in_one_seo_pack')?>
|
1043 |
</a>
|
1044 |
</td>
|
1045 |
<td>
|
1046 |
<input type="checkbox" name="aiosp_tags_noindex" <?php if (get_option('aiosp_tags_noindex')) echo "checked=\"1\""; ?>/>
|
1047 |
+
<div style="text-align:left; display:none" id="aiosp_tags_noindex_tip">
|
1048 |
+
<?php
|
1049 |
+
_e('Check this for excluding tag pages from being crawled. Useful for avoiding duplicate content.');
|
1050 |
+
?>
|
1051 |
+
</div>
|
1052 |
</td>
|
1053 |
</tr>
|
1054 |
+
|
1055 |
<tr>
|
1056 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
1057 |
+
<a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_generate_descriptions_tip');">
|
1058 |
<?php _e('Autogenerate Descriptions:', 'all_in_one_seo_pack')?>
|
1059 |
</a>
|
1060 |
</td>
|
1061 |
<td>
|
1062 |
<input type="checkbox" name="aiosp_generate_descriptions" <?php if (get_option('aiosp_generate_descriptions')) echo "checked=\"1\""; ?>/>
|
1063 |
+
<div style="text-align:left; display:none" id="aiosp_generate_descriptions_tip">
|
1064 |
+
<?php
|
1065 |
+
_e('Check this and your META descriptions will get autogenerated if there’s no excerpt.');
|
1066 |
+
?>
|
1067 |
+
</div>
|
1068 |
</td>
|
1069 |
</tr>
|
1070 |
+
|
1071 |
</table>
|
1072 |
<p class="submit">
|
1073 |
<input type="hidden" name="action" value="aiosp_update" />
|
1097 |
add_option("aiosp_tag_title_format", '%tag% | %blog_title%', 'All in One SEO Plugin Tag Title Format', 'yes');
|
1098 |
add_option("aiosp_search_title_format", '%search% | %blog_title%', 'All in One SEO Plugin Search Title Format', 'yes');
|
1099 |
add_option("aiosp_description_format", '%description%', 'All in One SEO Plugin Description Format', 'yes');
|
1100 |
+
add_option("aiosp_404_title_format", 'Nothing found for %request_words%', 'All in One SEO Plugin 404 Title Format', 'yes');
|
1101 |
|
1102 |
$aiosp = new All_in_One_SEO_Pack();
|
1103 |
add_action('wp_head', array($aiosp, 'wp_head'));
|