All in One SEO Pack - Version 1.3.6.5

Version Description

Download this release

Release Info

Developer uberdose
Plugin Icon 128x128 All in One SEO Pack
Version 1.3.6.5
Comparing to
See all releases

Code changes from version 1.3.6.4 to 1.3.6.5

all_in_one_seo_pack-tr_TR.mo CHANGED
Binary file
all_in_one_seo_pack.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: All in One SEO Pack
5
  Plugin URI: http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/
6
  Description: Out-of-the-box SEO for your Wordpress blog.
7
- Version: 1.3.6.4
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.6.4";
32
 
33
  /**
34
  * Max numbers of chars in auto-generated description.
@@ -41,12 +41,6 @@ class All_in_One_SEO_Pack {
41
  */
42
  var $minimum_description_length = 1;
43
 
44
- var $table_prefix = "aiosp_";
45
-
46
- var $table_categries;
47
-
48
- var $db_version = '0.1';
49
-
50
  var $ob_start_detected = false;
51
 
52
  var $title_start = -1;
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.6.5
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.6.5";
32
 
33
  /**
34
  * Max numbers of chars in auto-generated description.
41
  */
42
  var $minimum_description_length = 1;
43
 
 
 
 
 
 
 
44
  var $ob_start_detected = false;
45
 
46
  var $title_start = -1;
all_in_one_seo_pack.pot CHANGED
@@ -189,6 +189,12 @@ msgstr ""
189
  msgid "Update Options"
190
  msgstr ""
191
 
 
 
 
 
 
 
192
  msgid "What you enter here will be copied verbatim to your header on post pages. You can enter whatever additional meta tags you want here, even references to stylesheets."
193
  msgstr ""
194
 
189
  msgid "Update Options"
190
  msgstr ""
191
 
192
+ msgid "Additional Post Meta Tags:"
193
+ msgstr ""
194
+
195
+ msgid "Additional Page Meta Tags:"
196
+ msgstr ""
197
+
198
  msgid "What you enter here will be copied verbatim to your header on post pages. You can enter whatever additional meta tags you want here, even references to stylesheets."
199
  msgstr ""
200
 
trunk/all_in_one_seo_pack-bg_BG.mo ADDED
Binary file
trunk/all_in_one_seo_pack-bg_NO.mo ADDED
Binary file
trunk/all_in_one_seo_pack-da_DK.mo ADDED
Binary file
trunk/all_in_one_seo_pack-es_ES.mo ADDED
Binary file
trunk/all_in_one_seo_pack-fr_FR.mo ADDED
Binary file
trunk/all_in_one_seo_pack-he_IL.mo ADDED
Binary file
trunk/all_in_one_seo_pack-it_IT.mo ADDED
Binary file
trunk/all_in_one_seo_pack-pl_PL.mo ADDED
Binary file
trunk/all_in_one_seo_pack-tr_TR.mo ADDED
Binary file
trunk/all_in_one_seo_pack-uk.mo ADDED
Binary file
trunk/all_in_one_seo_pack-zh_CN.mo ADDED
Binary file
trunk/all_in_one_seo_pack-zh_TW.mo ADDED
Binary file
trunk/all_in_one_seo_pack.php ADDED
@@ -0,0 +1,1162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
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.6.5
8
+ Author: uberdose
9
+ Author URI: http://wp.uberdose.com/
10
+ */
11
+
12
+ /*
13
+ Copyright (C) 2007 uberdose (seopack AT uberdose DOT com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License as published by
17
+ the Free Software Foundation; either version 3 of the License, or
18
+ (at your option) any later version.
19
+
20
+ This program is distributed in the hope that it will be useful,
21
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
+ GNU General Public License for more details.
24
+
25
+ You should have received a copy of the GNU General Public License
26
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
27
+ */
28
+
29
+ class All_in_One_SEO_Pack {
30
+
31
+ var $version = "1.3.6.5";
32
+
33
+ /**
34
+ * Max numbers of chars in auto-generated description.
35
+ */
36
+ var $maximum_description_length = 160;
37
+
38
+ /**
39
+ * Minimum number of chars an excerpt should be so that it can be used
40
+ * as description. Touch only if you know what you're doing.
41
+ */
42
+ var $minimum_description_length = 1;
43
+
44
+ var $ob_start_detected = false;
45
+
46
+ var $title_start = -1;
47
+
48
+ var $title_end = -1;
49
+
50
+ var $orig_title = '';
51
+
52
+ function template_redirect() {
53
+ if (is_feed()) {
54
+ return;
55
+ }
56
+
57
+ if (get_option('aiosp_rewrite_titles')) {
58
+ ob_start(array($this, 'output_callback_for_title'));
59
+ }
60
+ }
61
+
62
+ function output_callback_for_title($content) {
63
+ return $this->rewrite_title($content);
64
+ }
65
+
66
+ function init() {
67
+ if(function_exists('load_plugin_textdomain')) {
68
+ load_plugin_textdomain('all_in_one_seo_pack', 'wp-content/plugins/all-in-one-seo-pack');
69
+ }
70
+ }
71
+
72
+ function is_static_front_page() {
73
+ global $wp_query;
74
+ $post = $wp_query->get_queried_object();
75
+ return get_option('show_on_front') == 'page' && is_page() && $post->ID == get_option('page_on_front');
76
+ }
77
+
78
+ function is_static_posts_page() {
79
+ global $wp_query;
80
+ $post = $wp_query->get_queried_object();
81
+ return get_option('show_on_front') == 'page' && is_home() && $post->ID == get_option('page_for_posts');
82
+ }
83
+
84
+ function wp_head() {
85
+ if (is_feed()) {
86
+ return;
87
+ }
88
+ if (get_option('aiosp_rewrite_titles')) {
89
+ // make the title rewrite as short as possible
90
+ $active_handlers = ob_list_handlers();
91
+ if (sizeof($active_handlers) > 0 &&
92
+ strtolower($active_handlers[sizeof($active_handlers) - 1]) ==
93
+ strtolower('All_in_One_SEO_Pack::output_callback_for_title')) {
94
+ ob_end_flush();
95
+ } else {
96
+ // if we get here there *could* be trouble with another plugin :(
97
+ $this->ob_start_detected = true;
98
+ echo "\n";
99
+ foreach (ob_list_handlers() as $handler) {
100
+ echo "<!-- all in one seo pack output handler $handler -->\n";
101
+ }
102
+ }
103
+ }
104
+
105
+ global $wp_query;
106
+ $post = $wp_query->get_queried_object();
107
+ $meta_string = null;
108
+
109
+ echo "\n<!-- all in one seo pack $this->version ";
110
+ if ($this->ob_start_detected) {
111
+ echo "ob_start_detected ";
112
+ }
113
+ echo "[$this->title_start,$this->title_end,$this->orig_title] ";
114
+ echo "-->\n";
115
+
116
+ if ((is_home() && !$this->is_static_posts_page() && get_option('aiosp_home_keywords')) || $this->is_static_front_page()) {
117
+ $keywords = trim(get_option('aiosp_home_keywords'));
118
+ } else {
119
+ $keywords = $this->get_all_keywords();
120
+ }
121
+ if (is_single() || is_page()) {
122
+ if ($this->is_static_front_page()) {
123
+ $description = trim(stripcslashes(get_option('aiosp_home_description')));
124
+ } else {
125
+ $description = $this->get_post_description($post);
126
+ }
127
+ } else if (is_home()) {
128
+ if ($this->is_static_posts_page()) {
129
+ $description = $this->get_post_description(get_post(get_option('page_for_posts')));
130
+ } else {
131
+ $description = trim(stripcslashes(get_option('aiosp_home_description')));
132
+ }
133
+ } else if (is_category()) {
134
+ $description = category_description();
135
+ }
136
+
137
+ if (isset($description) && strlen($description) > $this->minimum_description_length) {
138
+ $description = trim(strip_tags($description));
139
+ $description = str_replace('"', '', $description);
140
+
141
+ // replace newlines on mac / windows?
142
+ $description = str_replace("\r\n", ' ', $description);
143
+
144
+ // maybe linux uses this alone
145
+ $description = str_replace("\n", ' ', $description);
146
+
147
+ if (isset($meta_string)) {
148
+ $meta_string .= "\n";
149
+ } else {
150
+ $meta_string = '';
151
+ }
152
+
153
+ // description format
154
+ $description_format = get_option('aiosp_description_format');
155
+ if (!isset($description_format) || empty($description_format)) {
156
+ $description_format = "%description%";
157
+ }
158
+ $description = str_replace('%description%', $description, $description_format);
159
+ $description = str_replace('%blog_title%', get_bloginfo('name'), $description);
160
+ $description = str_replace('%blog_description%', get_bloginfo('description'), $description);
161
+
162
+ $meta_string .= sprintf("<meta name=\"description\" content=\"%s\"/>", $description);
163
+ }
164
+
165
+ if (isset ($keywords) && !empty($keywords)) {
166
+ if (isset($meta_string)) {
167
+ $meta_string .= "\n";
168
+ }
169
+ $meta_string .= sprintf("<meta name=\"keywords\" content=\"%s\"/>", $keywords);
170
+ }
171
+
172
+ if (function_exists('is_tag')) {
173
+ $is_tag = is_tag();
174
+ }
175
+
176
+ if ((is_category() && get_option('aiosp_category_noindex')) ||
177
+ (!is_category() && is_archive() &&!$is_tag && get_option('aiosp_archive_noindex')) ||
178
+ (get_option('aiosp_tags_noindex') && $is_tag)) {
179
+ if (isset($meta_string)) {
180
+ $meta_string .= "\n";
181
+ }
182
+ $meta_string = '<meta name="robots" content="noindex,follow" />';
183
+ }
184
+
185
+ if ($meta_string != null) {
186
+ echo "$meta_string\n";
187
+ }
188
+
189
+ $page_meta = stripcslashes(get_option('aiosp_page_meta_tags'));
190
+ $post_meta = stripcslashes(get_option('aiosp_post_meta_tags'));
191
+ if (is_page() && isset($page_meta)) {
192
+ echo "$page_meta\n";
193
+ }
194
+
195
+ if (is_single() && isset($post_meta)) {
196
+ echo "$post_meta\n";
197
+ }
198
+
199
+ }
200
+
201
+ function get_post_description($post) {
202
+ $description = trim(stripcslashes(get_post_meta($post->ID, "description", true)));
203
+ if (!$description) {
204
+ $description = $this->trim_excerpt_without_filters_full_length($post->post_excerpt);
205
+ if (!$description && get_option("aiosp_generate_descriptions")) {
206
+ $description = $this->trim_excerpt_without_filters($post->post_content);
207
+ }
208
+ }
209
+ return $description;
210
+ }
211
+
212
+ function replace_title($content, $title) {
213
+ $title = trim(strip_tags($title));
214
+
215
+ if (function_exists('langswitch_filter_langs_with_message')) {
216
+ $title = langswitch_filter_langs_with_message($title);
217
+ }
218
+
219
+ $title_tag_start = "<title>";
220
+ $title_tag_end = "</title>";
221
+ $len_start = strlen($title_tag_start);
222
+ $len_end = strlen($title_tag_end);
223
+ $title = stripcslashes(trim($title));
224
+ $start = strpos($content, "<title>");
225
+ $end = strpos($content, "</title>");
226
+
227
+ $this->title_start = $start;
228
+ $this->title_end = $end;
229
+ $this->orig_title = $title;
230
+
231
+ if ($start && $end) {
232
+ $header = substr($content, 0, $start + $len_start) . $title . substr($content, $end);
233
+ } else {
234
+ // this breaks some sitemap plugins (like wpg2)
235
+ //$header = $content . "<title>$title</title>";
236
+
237
+ $header = $content;
238
+ }
239
+
240
+ return $header;
241
+ }
242
+
243
+ function rewrite_title($header) {
244
+ global $wp_query;
245
+ if (!$wp_query) {
246
+ $header .= "<!-- no wp_query found! -->\n";
247
+ return $header;
248
+ }
249
+
250
+ $post = $wp_query->get_queried_object();
251
+
252
+ // the_search_query() is not suitable, it cannot just return
253
+ global $s;
254
+
255
+ if (is_home()) {
256
+ if ($this->is_static_posts_page()) {
257
+ $title = get_post_meta(get_option('page_for_posts'), "title", true);
258
+ if (!$title) {
259
+ $title = wp_title('', false);
260
+ }
261
+ $title_format = get_option('aiosp_page_title_format');
262
+ $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
263
+ $new_title = str_replace('%page_title%', $title, $new_title);
264
+ $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
265
+ $title = trim($new_title);
266
+ $header = $this->replace_title($header, $title);
267
+ } else {
268
+ if (get_option('aiosp_home_title')) {
269
+ $header = $this->replace_title($header, get_option('aiosp_home_title'));
270
+ }
271
+ }
272
+ } else if (is_single()) {
273
+ $categories = get_the_category();
274
+ $category = '';
275
+ if (count($categories) > 0) {
276
+ $category = $categories[0]->cat_name;
277
+ }
278
+ $title = get_post_meta($post->ID, "title", true);
279
+ if (!$title) {
280
+ $title = get_post_meta($post->ID, "title_tag", true);
281
+ if (!$title) {
282
+ $title = wp_title('', false);
283
+ }
284
+ }
285
+ $title_format = get_option('aiosp_post_title_format');
286
+ $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
287
+ $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
288
+ $new_title = str_replace('%post_title%', $title, $new_title);
289
+ $new_title = str_replace('%category%', $category, $new_title);
290
+ $new_title = str_replace('%category_title%', $category, $new_title);
291
+ $title = $new_title;
292
+ $title = trim($title);
293
+ $header = $this->replace_title($header, $title);
294
+ } else if (is_search() && isset($s) && !empty($s)) {
295
+ if (function_exists('attribute_escape')) {
296
+ $search = attribute_escape(stripcslashes($s));
297
+ } else {
298
+ $search = wp_specialchars(stripcslashes($s), true);
299
+ }
300
+ $search = $this->capitalize($search);
301
+ $title_format = get_option('aiosp_search_title_format');
302
+ $title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
303
+ $title = str_replace('%blog_description%', get_bloginfo('description'), $title);
304
+ $title = str_replace('%search%', $search, $title);
305
+ $header = $this->replace_title($header, $title);
306
+ } else if (is_category() && !is_feed()) {
307
+ $category_description = category_description();
308
+ $category_name = ucwords(single_cat_title('', false));
309
+ $title_format = get_option('aiosp_category_title_format');
310
+ $title = str_replace('%category_title%', $category_name, $title_format);
311
+ $title = str_replace('%category_description%', $category_description, $title);
312
+ $title = str_replace('%blog_title%', get_bloginfo('name'), $title);
313
+ $title = str_replace('%blog_description%', get_bloginfo('description'), $title);
314
+ $header = $this->replace_title($header, $title);
315
+ } else if (is_page()) {
316
+ if ($this->is_static_front_page()) {
317
+ if (get_option('aiosp_home_title')) {
318
+ $header = $this->replace_title($header, get_option('aiosp_home_title'));
319
+ }
320
+ } else {
321
+ $title = get_post_meta($post->ID, "title", true);
322
+ if (!$title) {
323
+ $title = wp_title('', false);
324
+ }
325
+ $title_format = get_option('aiosp_page_title_format');
326
+ $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
327
+ $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
328
+ $new_title = str_replace('%page_title%', $title, $new_title);
329
+ $title = trim($new_title);
330
+ $header = $this->replace_title($header, $title);
331
+ }
332
+ } else if (function_exists('is_tag') && is_tag()) {
333
+ global $utw;
334
+ if ($utw) {
335
+ $tags = $utw->GetCurrentTagSet();
336
+ $tag = $tags[0]->tag;
337
+ $tag = str_replace('-', ' ', $tag);
338
+ } else {
339
+ // wordpress > 2.3
340
+ $tag = wp_title('', false);
341
+ }
342
+ if ($tag) {
343
+ $tag = $this->capitalize($tag);
344
+ $title_format = get_option('aiosp_tag_title_format');
345
+ $title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
346
+ $title = str_replace('%blog_description%', get_bloginfo('description'), $title);
347
+ $title = str_replace('%tag%', $tag, $title);
348
+ $header = $this->replace_title($header, $title);
349
+ }
350
+ } else if (is_archive()) {
351
+ $date = wp_title('', false);
352
+ $title_format = get_option('aiosp_archive_title_format');
353
+ $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
354
+ $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
355
+ $new_title = str_replace('%date%', $date, $new_title);
356
+ $title = trim($new_title);
357
+ $header = $this->replace_title($header, $title);
358
+ } else if (is_404()) {
359
+ $title_format = get_option('aiosp_404_title_format');
360
+ $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
361
+ $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
362
+ $new_title = str_replace('%request_url%', $_SERVER['REQUEST_URI'], $new_title);
363
+ $new_title = str_replace('%request_words%', $this->request_as_words($_SERVER['REQUEST_URI']), $new_title);
364
+ $header = $this->replace_title($header, $new_title);
365
+ }
366
+
367
+ return $header;
368
+
369
+ }
370
+
371
+ /**
372
+ * @return User-readable nice words for a given request.
373
+ */
374
+ function request_as_words($request) {
375
+ $request = str_replace('.html', ' ', $request);
376
+ $request = str_replace('.htm', ' ', $request);
377
+ $request = str_replace('.', ' ', $request);
378
+ $request = str_replace('/', ' ', $request);
379
+ $request_a = explode(' ', $request);
380
+ $request_new = array();
381
+ foreach ($request_a as $token) {
382
+ $request_new[] = ucwords(trim($token));
383
+ }
384
+ $request = implode(' ', $request_new);
385
+ return $request;
386
+ }
387
+
388
+ function capitalize($s) {
389
+ $s = trim($s);
390
+ $tokens = explode(' ', $s);
391
+ while (list($key, $val) = each($tokens)) {
392
+ $tokens[$key] = trim($tokens[$key]);
393
+ $tokens[$key] = strtoupper(substr($tokens[$key], 0, 1)) . substr($tokens[$key], 1);
394
+ }
395
+ $s = implode(' ', $tokens);
396
+ return $s;
397
+ }
398
+
399
+ function trim_excerpt_without_filters($text) {
400
+ $text = str_replace(']]>', ']]&gt;', $text);
401
+ $text = strip_tags($text);
402
+ $max = $this->maximum_description_length;
403
+ if ($max < strlen($text)) {
404
+ while($text[$max] != ' ' && $max > $this->minimum_description_length) {
405
+ $max--;
406
+ }
407
+ }
408
+ $text = substr($text, 0, $max);
409
+ return trim(stripcslashes($text));
410
+ }
411
+
412
+ function trim_excerpt_without_filters_full_length($text) {
413
+ $text = str_replace(']]>', ']]&gt;', $text);
414
+ $text = strip_tags($text);
415
+ return trim(stripcslashes($text));
416
+ }
417
+
418
+ /**
419
+ * @return comma-separated list of unique keywords
420
+ */
421
+ function get_all_keywords() {
422
+ global $posts;
423
+
424
+ $keywords = array();
425
+ if (is_array($posts)) {
426
+ foreach ($posts as $post) {
427
+ if ($post) {
428
+
429
+ // custom field keywords
430
+ $keywords_a = $keywords_i = null;
431
+ $description_a = $description_i = null;
432
+ $id = $post->ID;
433
+ $keywords_i = stripcslashes(get_post_meta($post->ID, "keywords", true));
434
+ $keywords_i = str_replace('"', '', $keywords_i);
435
+ if (isset($keywords_i) && !empty($keywords_i)) {
436
+ $keywords[] = $keywords_i;
437
+ }
438
+
439
+ // WP 2.3 tags
440
+ if (function_exists('get_the_tags')) {
441
+ $tags = get_the_tags($post->ID);
442
+ if ($tags && is_array($tags)) {
443
+ foreach ($tags as $tag) {
444
+ $keywords[] = $tag->name;
445
+ }
446
+ }
447
+ }
448
+
449
+ // Ultimate Tag Warrior integration
450
+ global $utw;
451
+ if ($utw) {
452
+ $tags = $utw->GetTagsForPost($post);
453
+ foreach ($tags as $tag) {
454
+ $tag = $tag->tag;
455
+ $tag = str_replace('_',' ', $tag);
456
+ $tag = str_replace('-',' ',$tag);
457
+ $tag = stripcslashes($tag);
458
+ $keywords[] = $tag;
459
+ }
460
+ }
461
+
462
+ // autometa
463
+ $autometa = stripcslashes(get_post_meta($post->ID, "autometa", true));
464
+ if (isset($autometa) && !empty($autometa)) {
465
+ $autometa_array = explode(' ', $autometa);
466
+ foreach ($autometa_array as $e) {
467
+ $keywords[] = $e;
468
+ }
469
+ }
470
+
471
+ if (get_option('aiosp_use_categories') && !is_page()) {
472
+ $categories = get_the_category($post->ID);
473
+ foreach ($categories as $category) {
474
+ $keywords[] = $category->cat_name;
475
+ }
476
+ }
477
+
478
+ }
479
+ }
480
+ }
481
+
482
+ return $this->get_unique_keywords($keywords);
483
+ }
484
+
485
+ function get_meta_keywords() {
486
+ global $posts;
487
+
488
+ $keywords = array();
489
+ if (is_array($posts)) {
490
+ foreach ($posts as $post) {
491
+ if ($post) {
492
+ // custom field keywords
493
+ $keywords_a = $keywords_i = null;
494
+ $description_a = $description_i = null;
495
+ $id = $post->ID;
496
+ $keywords_i = stripcslashes(get_post_meta($post->ID, "keywords", true));
497
+ $keywords_i = str_replace('"', '', $keywords_i);
498
+ if (isset($keywords_i) && !empty($keywords_i)) {
499
+ $keywords[] = $keywords_i;
500
+ }
501
+ }
502
+ }
503
+ }
504
+
505
+ return $this->get_unique_keywords($keywords);
506
+ }
507
+
508
+ function get_unique_keywords($keywords) {
509
+ $keywords_ar = array_unique($keywords);
510
+ return implode(',', $keywords_ar);
511
+ }
512
+
513
+ function post_meta_tags($id) {
514
+ $awmp_edit = $_POST["aiosp_edit"];
515
+ if (isset($awmp_edit) && !empty($awmp_edit)) {
516
+ $keywords = $_POST["aiosp_keywords"];
517
+ $description = $_POST["aiosp_description"];
518
+ $title = $_POST["aiosp_title"];
519
+
520
+ delete_post_meta($id, 'keywords');
521
+ delete_post_meta($id, 'description');
522
+ delete_post_meta($id, 'title');
523
+
524
+ if (isset($keywords) && !empty($keywords)) {
525
+ add_post_meta($id, 'keywords', $keywords);
526
+ }
527
+ if (isset($description) && !empty($description)) {
528
+ add_post_meta($id, 'description', $description);
529
+ }
530
+ if (isset($title) && !empty($title)) {
531
+ add_post_meta($id, 'title', $title);
532
+ }
533
+ }
534
+ }
535
+
536
+ function edit_category($id) {
537
+ global $wpdb;
538
+ $id = $wpdb->escape($id);
539
+ $awmp_edit = $_POST["aiosp_edit"];
540
+ if (isset($awmp_edit) && !empty($awmp_edit)) {
541
+ $keywords = $wpdb->escape($_POST["aiosp_keywords"]);
542
+ $title = $wpdb->escape($_POST["aiosp_title"]);
543
+ $old_category = $wpdb->get_row("select * from $this->table_categories where category_id=$id", OBJECT);
544
+ if ($old_category) {
545
+ $wpdb->query("update $this->table_categories
546
+ set meta_title='$title', meta_keywords='$keywords'
547
+ where category_id=$id");
548
+ } else {
549
+ $wpdb->query("insert into $this->table_categories(meta_title, meta_keywords, category_id)
550
+ values ('$title', '$keywords', $id");
551
+ }
552
+ //$wpdb->query("insert into $this->table_categories")
553
+ /*
554
+ delete_post_meta($id, 'keywords');
555
+ delete_post_meta($id, 'description');
556
+ delete_post_meta($id, 'title');
557
+
558
+ if (isset($keywords) && !empty($keywords)) {
559
+ add_post_meta($id, 'keywords', $keywords);
560
+ }
561
+ if (isset($description) && !empty($description)) {
562
+ add_post_meta($id, 'description', $description);
563
+ }
564
+ if (isset($title) && !empty($title)) {
565
+ add_post_meta($id, 'title', $title);
566
+ }
567
+ */
568
+ }
569
+ }
570
+
571
+ /**
572
+ * @deprecated This was for the feature of dedicated meta tags for categories which never went mainstream.
573
+ */
574
+ function edit_category_form() {
575
+ global $post;
576
+ $keywords = stripcslashes(get_post_meta($post->ID, 'keywords', true));
577
+ $title = stripcslashes(get_post_meta($post->ID, 'title', true));
578
+ $description = stripcslashes(get_post_meta($post->ID, 'description', true));
579
+ ?>
580
+ <input value="aiosp_edit" type="hidden" name="aiosp_edit" />
581
+ <table class="editform" width="100%" cellspacing="2" cellpadding="5">
582
+ <tr>
583
+ <th width="33%" scope="row" valign="top">
584
+ <a href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/"><?php _e('All in One SEO Pack', 'all_in_one_seo_pack') ?></a>
585
+ </th>
586
+ </tr>
587
+ <tr>
588
+ <th width="33%" scope="row" valign="top"><label for="aiosp_title"><?php _e('Title:', 'all_in_one_seo_pack') ?></label></th>
589
+ <td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="70"/></td>
590
+ </tr>
591
+ <tr>
592
+ <th width="33%" scope="row" valign="top"><label for="aiosp_keywords"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></label></th>
593
+ <td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="70"/></td>
594
+ </tr>
595
+ </table>
596
+ <?php
597
+ }
598
+
599
+ function add_meta_tags_textinput() {
600
+ global $post;
601
+ $post_id = $post;
602
+ if (is_object($post_id)) {
603
+ $post_id = $post_id->ID;
604
+ }
605
+ $keywords = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'keywords', true)));
606
+ $title = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'title', true)));
607
+ $description = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'description', true)));
608
+ ?>
609
+ <SCRIPT LANGUAGE="JavaScript">
610
+ <!-- Begin
611
+ function countChars(field,cntfield) {
612
+ cntfield.value = field.value.length;
613
+ }
614
+ // End -->
615
+ </script>
616
+ <input value="aiosp_edit" type="hidden" name="aiosp_edit" />
617
+ <table style="margin-bottom:40px; margin-top:30px;">
618
+ <tr>
619
+ <th style="text-align:left;" colspan="2">
620
+ <a href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/"><?php _e('All in One SEO Pack', 'all_in_one_seo_pack') ?></a>
621
+ </th>
622
+ </tr>
623
+ <tr>
624
+ <th scope="row" style="text-align:right;"><?php _e('Title:', 'all_in_one_seo_pack') ?></th>
625
+ <td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="80"/></td>
626
+ </tr>
627
+ <tr>
628
+ <th scope="row" style="text-align:right;"><?php _e('Description:', 'all_in_one_seo_pack') ?></th>
629
+ <td><textarea name="aiosp_description" rows="1" cols="78"
630
+ onKeyDown="countChars(document.post.aiosp_description,document.post.length1)"
631
+ onKeyUp="countChars(document.post.aiosp_description,document.post.length1)"><?php echo $description ?></textarea><br/>
632
+ <input readonly type="text" name="length1" size="3" maxlength="3" value="<?php echo strlen($description);?>" />
633
+ <?php _e(' characters. Most search engines use a maximum of 160 chars for the description.', 'all_in_one_seo_pack') ?>
634
+ </td>
635
+ </tr>
636
+ <tr>
637
+ <th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
638
+ <td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80"/></td>
639
+ </tr>
640
+ </table>
641
+ <?php
642
+ }
643
+
644
+ function add_meta_tags_page_textinput() {
645
+ global $post;
646
+ $keywords = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'keywords', true)));
647
+ $description = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'description', true)));
648
+ $title = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'title', true)));
649
+ ?>
650
+ <SCRIPT LANGUAGE="JavaScript">
651
+ <!-- Begin
652
+ function countChars(field,cntfield) {
653
+ cntfield.value = field.value.length;
654
+ }
655
+ // End -->
656
+ </script>
657
+ <input value="aiosp_edit" type="hidden" name="aiosp_edit"/>
658
+ <table style="margin-bottom:40px; margin-top:30px;">
659
+ <tr>
660
+ <th style="text-align:left;" colspan="2">
661
+ <a href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/"><?php _e('All in One SEO Pack', 'all_in_one_seo_pack')?></a>
662
+ </th>
663
+ </tr>
664
+ <tr>
665
+ <th scope="row" style="text-align:right;"><?php _e('Title:', 'all_in_one_seo_pack') ?></th>
666
+ <td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="80" tabindex="1000"/></td>
667
+ </tr>
668
+ <tr>
669
+ <th scope="row" style="text-align:right;"><?php _e('Description:', 'all_in_one_seo_pack') ?></th>
670
+ <td><textarea name="aiosp_description" rows="1" cols="78" tabindex="1001"
671
+ onKeyDown="countChars(document.post.aiosp_description,document.post.length1)"
672
+ onKeyUp="countChars(document.post.aiosp_description,document.post.length1)"><?php echo $description ?></textarea><br/>
673
+ <input readonly type="text" name="length1" size="3" maxlength="3" value="<?php echo strlen($description);?>" />
674
+ <?php _e(' characters. Most search engines use a maximum of 160 chars for the description.', 'all_in_one_seo_pack')?></td>
675
+ </tr>
676
+ <tr>
677
+ <th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
678
+ <td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80" tabindex="1002"/></td>
679
+ </tr>
680
+ </table>
681
+ <?php
682
+ }
683
+
684
+ function admin_menu() {
685
+ $file = __FILE__;
686
+
687
+ // hack for 1.5
688
+ global $wp_version;
689
+ if (substr($wp_version, 0, 3) == '1.5') {
690
+ $file = 'all-in-one-seo-pack/all_in_one_seo_pack.php';
691
+ }
692
+ add_submenu_page('options-general.php', __('All in One SEO', 'all_in_one_seo_pack'), __('All in One SEO', 'all_in_one_seo_pack'), 5, $file, array($this, 'plugin_menu'));
693
+ }
694
+
695
+ function plugin_menu() {
696
+ $message = null;
697
+ $message_updated = __("All in One SEO Options Updated.", 'all_in_one_seo_pack');
698
+
699
+ // update options
700
+ if ($_POST['action'] && $_POST['action'] == 'aiosp_update') {
701
+ $message = $message_updated;
702
+ update_option('aiosp_home_title', $_POST['aiosp_home_title']);
703
+ update_option('aiosp_home_description', $_POST['aiosp_home_description']);
704
+ update_option('aiosp_home_keywords', $_POST['aiosp_home_keywords']);
705
+ update_option('aiosp_max_words_excerpt', $_POST['aiosp_max_words_excerpt']);
706
+ update_option('aiosp_rewrite_titles', $_POST['aiosp_rewrite_titles']);
707
+ update_option('aiosp_post_title_format', $_POST['aiosp_post_title_format']);
708
+ update_option('aiosp_page_title_format', $_POST['aiosp_page_title_format']);
709
+ update_option('aiosp_category_title_format', $_POST['aiosp_category_title_format']);
710
+ update_option('aiosp_archive_title_format', $_POST['aiosp_archive_title_format']);
711
+ update_option('aiosp_tag_title_format', $_POST['aiosp_tag_title_format']);
712
+ update_option('aiosp_search_title_format', $_POST['aiosp_search_title_format']);
713
+ update_option('aiosp_description_format', $_POST['aiosp_description_format']);
714
+ update_option('aiosp_404_title_format', $_POST['aiosp_404_title_format']);
715
+ update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
716
+ update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
717
+ update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
718
+ update_option('aiosp_tags_noindex', $_POST['aiosp_tags_noindex']);
719
+ update_option('aiosp_generate_descriptions', $_POST['aiosp_generate_descriptions']);
720
+ update_option('aiosp_debug_info', $_POST['aiosp_debug_info']);
721
+ update_option('aiosp_post_meta_tags', $_POST['aiosp_post_meta_tags']);
722
+ update_option('aiosp_page_meta_tags', $_POST['aiosp_page_meta_tags']);
723
+ if (function_exists('wp_cache_flush')) {
724
+ wp_cache_flush();
725
+ }
726
+ }
727
+
728
+ ?>
729
+ <?php if ($message) : ?>
730
+ <div id="message" class="updated fade"><p><?php echo $message; ?></p></div>
731
+ <?php endif; ?>
732
+ <div id="dropmessage" class="updated" style="display:none;"></div>
733
+ <div class="wrap">
734
+ <h2><?php _e('All in One SEO Plugin Options', 'all_in_one_seo_pack'); ?></h2>
735
+ <p>
736
+ <?php _e("This is version ", 'all_in_one_seo_pack') ?><?php _e("$this->version. ", 'all_in_one_seo_pack') ?>
737
+ <a target="_blank" title="<?php _e('All in One SEO Plugin Release History', 'all_in_one_seo_pack')?>"
738
+ 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')?>
739
+ </a>
740
+ </p>
741
+ <script type="text/javascript">
742
+ <!--
743
+ function toggleVisibility(id) {
744
+ var e = document.getElementById(id);
745
+ if(e.style.display == 'block')
746
+ e.style.display = 'none';
747
+ else
748
+ e.style.display = 'block';
749
+ }
750
+ //-->
751
+ </script>
752
+ <p>
753
+ <a target="_blank" title="<?php _e('FAQ', 'all_in_one_seo_pack') ?>"
754
+ href="http://wp.uberdose.com/2007/07/11/all-in-one-seo-pack-faq/"><?php _e('FAQ', 'all_in_one_seo_pack') ?></a>
755
+ | <a target="_blank" title="<?php _e('All in One SEO Plugin Feedback', 'all_in_one_seo_pack') ?>"
756
+ href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond"><?php _e('Feedback', 'all_in_one_seo_pack') ?></a>
757
+ | <a target="_blank" title="<?php _e('All in One SEO Plugin Translations', 'all_in_one_seo_pack') ?>"
758
+ href="http://wp.uberdose.com/2007/10/02/translations-for-all-in-one-seo-pack/"><?php _e('Translations', 'all_in_one_seo_pack') ?></a>
759
+ </p>
760
+ <form name="dofollow" action="" method="post">
761
+ <table>
762
+
763
+ <tr>
764
+ <th scope="row" style="text-align:right; vertical-align:top;">
765
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_home_title_tip');">
766
+ <?php _e('Home Title:', 'all_in_one_seo_pack')?>
767
+ </a>
768
+ </td>
769
+ <td>
770
+ <textarea cols="57" rows="2" name="aiosp_home_title"><?php echo stripcslashes(get_option('aiosp_home_title')); ?></textarea>
771
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_home_title_tip">
772
+ <?php
773
+ _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.', 'all_in_one_seo_pack');
774
+ ?>
775
+ </div>
776
+ </td>
777
+ </tr>
778
+
779
+ <tr>
780
+ <th scope="row" style="text-align:right; vertical-align:top;">
781
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_home_description_tip');">
782
+ <?php _e('Home Description:', 'all_in_one_seo_pack')?>
783
+ </a>
784
+ </td>
785
+ <td>
786
+ <textarea cols="57" rows="2" name="aiosp_home_description"><?php echo stripcslashes(get_option('aiosp_home_description')); ?></textarea>
787
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_home_description_tip">
788
+ <?php
789
+ _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.', 'all_in_one_seo_pack');
790
+ ?>
791
+ </div>
792
+ </td>
793
+ </tr>
794
+
795
+ <tr>
796
+ <th scope="row" style="text-align:right; vertical-align:top;">
797
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_home_keywords_tip');">
798
+ <?php _e('Home Keywords (comma separated):', 'all_in_one_seo_pack')?>
799
+ </a>
800
+ </td>
801
+ <td>
802
+ <textarea cols="57" rows="2" name="aiosp_home_keywords"><?php echo stripcslashes(get_option('aiosp_home_keywords')); ?></textarea>
803
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_home_keywords_tip">
804
+ <?php
805
+ _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.', 'all_in_one_seo_pack');
806
+ ?>
807
+ </div>
808
+ </td>
809
+ </tr>
810
+
811
+ <tr>
812
+ <th scope="row" style="text-align:right; vertical-align:top;">
813
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_rewrite_titles_tip');">
814
+ <?php _e('Rewrite Titles:', 'all_in_one_seo_pack')?>
815
+ </a>
816
+ </td>
817
+ <td>
818
+ <input type="checkbox" name="aiosp_rewrite_titles" <?php if (get_option('aiosp_rewrite_titles')) echo "checked=\"1\""; ?>/>
819
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_rewrite_titles_tip">
820
+ <?php
821
+ _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.', 'all_in_one_seo_pack');
822
+ ?>
823
+ </div>
824
+ </td>
825
+ </tr>
826
+
827
+ <tr>
828
+ <th scope="row" style="text-align:right; vertical-align:top;">
829
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_post_title_format_tip');">
830
+ <?php _e('Post Title Format:', 'all_in_one_seo_pack')?>
831
+ </a>
832
+ </td>
833
+ <td>
834
+ <input size="59" name="aiosp_post_title_format" value="<?php echo stripcslashes(get_option('aiosp_post_title_format')); ?>"/>
835
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_post_title_format_tip">
836
+ <?php
837
+ _e('The following macros are supported:', 'all_in_one_seo_pack');
838
+ echo('<ul>');
839
+ echo('<li>'); _e('%blog_title% - Your blog title', 'all_in_one_seo_pack'); echo('</li>');
840
+ echo('<li>'); _e('%blog_description% - Your blog description', 'all_in_one_seo_pack'); echo('</li>');
841
+ echo('<li>'); _e('%post_title% - The original title of the post', 'all_in_one_seo_pack'); echo('</li>');
842
+ echo('<li>'); _e('%category_title% - The (main) category of the post', 'all_in_one_seo_pack'); echo('</li>');
843
+ echo('<li>'); _e('%category% - Alias for %category_title%', 'all_in_one_seo_pack'); echo('</li>');
844
+ echo('</ul>');
845
+ ?>
846
+ </div>
847
+ </td>
848
+ </tr>
849
+
850
+ <tr>
851
+ <th scope="row" style="text-align:right; vertical-align:top;">
852
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_page_title_format_tip');">
853
+ <?php _e('Page Title Format:', 'all_in_one_seo_pack')?>
854
+ </a>
855
+ </td>
856
+ <td>
857
+ <input size="59" name="aiosp_page_title_format" value="<?php echo stripcslashes(get_option('aiosp_page_title_format')); ?>"/>
858
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_page_title_format_tip">
859
+ <?php
860
+ _e('The following macros are supported:', 'all_in_one_seo_pack');
861
+ echo('<ul>');
862
+ echo('<li>'); _e('%blog_title% - Your blog title', 'all_in_one_seo_pack'); echo('</li>');
863
+ echo('<li>'); _e('%blog_description% - Your blog description', 'all_in_one_seo_pack'); echo('</li>');
864
+ echo('<li>'); _e('%page_title% - The original title of the page', 'all_in_one_seo_pack'); echo('</li>');
865
+ echo('</ul>');
866
+ ?>
867
+ </div>
868
+ </td>
869
+ </tr>
870
+
871
+ <tr>
872
+ <th scope="row" style="text-align:right; vertical-align:top;">
873
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_category_title_format_tip');">
874
+ <?php _e('Category Title Format:', 'all_in_one_seo_pack')?>
875
+ </a>
876
+ </td>
877
+ <td>
878
+ <input size="59" name="aiosp_category_title_format" value="<?php echo stripcslashes(get_option('aiosp_category_title_format')); ?>"/>
879
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_category_title_format_tip">
880
+ <?php
881
+ _e('The following macros are supported:', 'all_in_one_seo_pack');
882
+ echo('<ul>');
883
+ echo('<li>'); _e('%blog_title% - Your blog title', 'all_in_one_seo_pack'); echo('</li>');
884
+ echo('<li>'); _e('%blog_description% - Your blog description', 'all_in_one_seo_pack'); echo('</li>');
885
+ echo('<li>'); _e('%category_title% - The original title of the category', 'all_in_one_seo_pack'); echo('</li>');
886
+ echo('<li>'); _e('%category_description% - The description of the category', 'all_in_one_seo_pack'); echo('</li>');
887
+ echo('</ul>');
888
+ ?>
889
+ </div>
890
+ </td>
891
+ </tr>
892
+
893
+ <tr>
894
+ <th scope="row" style="text-align:right; vertical-align:top;">
895
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_archive_title_format_tip');">
896
+ <?php _e('Archive Title Format:', 'all_in_one_seo_pack')?>
897
+ </a>
898
+ </td>
899
+ <td>
900
+ <input size="59" name="aiosp_archive_title_format" value="<?php echo stripcslashes(get_option('aiosp_archive_title_format')); ?>"/>
901
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_archive_title_format_tip">
902
+ <?php
903
+ _e('The following macros are supported:', 'all_in_one_seo_pack');
904
+ echo('<ul>');
905
+ echo('<li>'); _e('%blog_title% - Your blog title', 'all_in_one_seo_pack'); echo('</li>');
906
+ echo('<li>'); _e('%blog_description% - Your blog description', 'all_in_one_seo_pack'); echo('</li>');
907
+ echo('<li>'); _e('%date% - The original archive title given by wordpress, e.g. “2007″ or “2007 August”', 'all_in_one_seo_pack'); echo('</li>');
908
+ echo('</ul>');
909
+ ?>
910
+ </div>
911
+ </td>
912
+ </tr>
913
+
914
+ <tr>
915
+ <th scope="row" style="text-align:right; vertical-align:top;">
916
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_tag_title_format_tip');">
917
+ <?php _e('Tag Title Format:', 'all_in_one_seo_pack')?>
918
+ </a>
919
+ </td>
920
+ <td>
921
+ <input size="59" name="aiosp_tag_title_format" value="<?php echo stripcslashes(get_option('aiosp_tag_title_format')); ?>"/>
922
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_tag_title_format_tip">
923
+ <?php
924
+ _e('The following macros are supported:', 'all_in_one_seo_pack');
925
+ echo('<ul>');
926
+ echo('<li>'); _e('%blog_title% - Your blog title', 'all_in_one_seo_pack'); echo('</li>');
927
+ echo('<li>'); _e('%blog_description% - Your blog description', 'all_in_one_seo_pack'); echo('</li>');
928
+ echo('<li>'); _e('%tag% - The name of the tag', 'all_in_one_seo_pack'); echo('</li>');
929
+ echo('</ul>');
930
+ ?>
931
+ </div>
932
+ </td>
933
+ </tr>
934
+
935
+ <tr>
936
+ <th scope="row" style="text-align:right; vertical-align:top;">
937
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_search_title_format_tip');">
938
+ <?php _e('Search Title Format:', 'all_in_one_seo_pack')?>
939
+ </a>
940
+ </td>
941
+ <td>
942
+ <input size="59" name="aiosp_search_title_format" value="<?php echo stripcslashes(get_option('aiosp_search_title_format')); ?>"/>
943
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_search_title_format_tip">
944
+ <?php
945
+ _e('The following macros are supported:', 'all_in_one_seo_pack');
946
+ echo('<ul>');
947
+ echo('<li>'); _e('%blog_title% - Your blog title', 'all_in_one_seo_pack'); echo('</li>');
948
+ echo('<li>'); _e('%blog_description% - Your blog description', 'all_in_one_seo_pack'); echo('</li>');
949
+ echo('<li>'); _e('%search% - What was searched for', 'all_in_one_seo_pack'); echo('</li>');
950
+ echo('</ul>');
951
+ ?>
952
+ </div>
953
+ </td>
954
+ </tr>
955
+
956
+ <tr>
957
+ <th scope="row" style="text-align:right; vertical-align:top;">
958
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_description_format_tip');">
959
+ <?php _e('Description Format:', 'all_in_one_seo_pack')?>
960
+ </a>
961
+ </td>
962
+ <td>
963
+ <input size="59" name="aiosp_description_format" value="<?php echo stripcslashes(get_option('aiosp_description_format')); ?>"/>
964
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_description_format_tip">
965
+ <?php
966
+ _e('The following macros are supported:', 'all_in_one_seo_pack');
967
+ echo('<ul>');
968
+ echo('<li>'); _e('%blog_title% - Your blog title', 'all_in_one_seo_pack'); echo('</li>');
969
+ echo('<li>'); _e('%blog_description% - Your blog description', 'all_in_one_seo_pack'); echo('</li>');
970
+ 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', 'all_in_one_seo_pack'); echo('</li>');
971
+ echo('</ul>');
972
+ ?>
973
+ </div>
974
+ </td>
975
+ </tr>
976
+
977
+ <tr>
978
+ <th scope="row" style="text-align:right; vertical-align:top;">
979
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_404_title_format_tip');">
980
+ <?php _e('404 Title Format:', 'all_in_one_seo_pack')?>
981
+ </a>
982
+ </td>
983
+ <td>
984
+ <input size="59" name="aiosp_404_title_format" value="<?php echo stripcslashes(get_option('aiosp_404_title_format')); ?>"/>
985
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_404_title_format_tip">
986
+ <?php
987
+ _e('The following macros are supported:', 'all_in_one_seo_pack');
988
+ echo('<ul>');
989
+ echo('<li>'); _e('%blog_title% - Your blog title', 'all_in_one_seo_pack'); echo('</li>');
990
+ echo('<li>'); _e('%blog_description% - Your blog description', 'all_in_one_seo_pack'); echo('</li>');
991
+ echo('<li>'); _e('%request_url% - The original URL path, like "/url-that-does-not-exist/"', 'all_in_one_seo_pack'); echo('</li>');
992
+ echo('<li>'); _e('%request_words% - The URL path in human readable form, like "Url That Does Not Exist"', 'all_in_one_seo_pack'); echo('</li>');
993
+ echo('</ul>');
994
+ ?>
995
+ </div>
996
+ </td>
997
+ </tr>
998
+
999
+ <tr>
1000
+ <th scope="row" style="text-align:right; vertical-align:top;">
1001
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_use_categories_tip');">
1002
+ <?php _e('Use Categories for META keywords:', 'all_in_one_seo_pack')?>
1003
+ </td>
1004
+ <td>
1005
+ <input type="checkbox" name="aiosp_use_categories" <?php if (get_option('aiosp_use_categories')) echo "checked=\"1\""; ?>/>
1006
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_use_categories_tip">
1007
+ <?php
1008
+ _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).', 'all_in_one_seo_pack');
1009
+ ?>
1010
+ </div>
1011
+ </td>
1012
+ </tr>
1013
+
1014
+ <tr>
1015
+ <th scope="row" style="text-align:right; vertical-align:top;">
1016
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_category_noindex_tip');">
1017
+ <?php _e('Use noindex for Categories:', 'all_in_one_seo_pack')?>
1018
+ </a>
1019
+ </td>
1020
+ <td>
1021
+ <input type="checkbox" name="aiosp_category_noindex" <?php if (get_option('aiosp_category_noindex')) echo "checked=\"1\""; ?>/>
1022
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_category_noindex_tip">
1023
+ <?php
1024
+ _e('Check this for excluding category pages from being crawled. Useful for avoiding duplicate content.', 'all_in_one_seo_pack');
1025
+ ?>
1026
+ </div>
1027
+ </td>
1028
+ </tr>
1029
+
1030
+ <tr>
1031
+ <th scope="row" style="text-align:right; vertical-align:top;">
1032
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_archive_noindex_tip');">
1033
+ <?php _e('Use noindex for Archives:', 'all_in_one_seo_pack')?>
1034
+ </a>
1035
+ </td>
1036
+ <td>
1037
+ <input type="checkbox" name="aiosp_archive_noindex" <?php if (get_option('aiosp_archive_noindex')) echo "checked=\"1\""; ?>/>
1038
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_archive_noindex_tip">
1039
+ <?php
1040
+ _e('Check this for excluding archive pages from being crawled. Useful for avoiding duplicate content.', 'all_in_one_seo_pack');
1041
+ ?>
1042
+ </div>
1043
+ </td>
1044
+ </tr>
1045
+
1046
+ <tr>
1047
+ <th scope="row" style="text-align:right; vertical-align:top;">
1048
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_tags_noindex_tip');">
1049
+ <?php _e('Use noindex for Tag Archives:', 'all_in_one_seo_pack')?>
1050
+ </a>
1051
+ </td>
1052
+ <td>
1053
+ <input type="checkbox" name="aiosp_tags_noindex" <?php if (get_option('aiosp_tags_noindex')) echo "checked=\"1\""; ?>/>
1054
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_tags_noindex_tip">
1055
+ <?php
1056
+ _e('Check this for excluding tag pages from being crawled. Useful for avoiding duplicate content.', 'all_in_one_seo_pack');
1057
+ ?>
1058
+ </div>
1059
+ </td>
1060
+ </tr>
1061
+
1062
+ <tr>
1063
+ <th scope="row" style="text-align:right; vertical-align:top;">
1064
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_generate_descriptions_tip');">
1065
+ <?php _e('Autogenerate Descriptions:', 'all_in_one_seo_pack')?>
1066
+ </a>
1067
+ </td>
1068
+ <td>
1069
+ <input type="checkbox" name="aiosp_generate_descriptions" <?php if (get_option('aiosp_generate_descriptions')) echo "checked=\"1\""; ?>/>
1070
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_generate_descriptions_tip">
1071
+ <?php
1072
+ _e('Check this and your META descriptions will get autogenerated if there’s no excerpt.', 'all_in_one_seo_pack');
1073
+ ?>
1074
+ </div>
1075
+ </td>
1076
+ </tr>
1077
+
1078
+ <tr>
1079
+ <th scope="row" style="text-align:right; vertical-align:top;">
1080
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_post_meta_tags_tip');">
1081
+ <?php _e('Additional Post Meta Tags:', 'all_in_one_seo_pack')?>
1082
+ </a>
1083
+ </td>
1084
+ <td>
1085
+ <textarea cols="57" rows="2" name="aiosp_post_meta_tags"><?php echo stripcslashes(get_option('aiosp_post_meta_tags')); ?></textarea>
1086
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_post_meta_tags_tip">
1087
+ <?php
1088
+ _e('What you enter here will be copied verbatim to your header on post pages. You can enter whatever additional meta tags you want here, even references to stylesheets.', 'all_in_one_seo_pack');
1089
+ ?>
1090
+ </div>
1091
+ </td>
1092
+ </tr>
1093
+
1094
+ <tr>
1095
+ <th scope="row" style="text-align:right; vertical-align:top;">
1096
+ <a style="cursor:pointer;" title="<?php _e('Click for Help!', 'all_in_one_seo_pack')?>" onclick="toggleVisibility('aiosp_page_meta_tags_tip');">
1097
+ <?php _e('Additional Page Meta Tags:', 'all_in_one_seo_pack')?>
1098
+ </a>
1099
+ </td>
1100
+ <td>
1101
+ <textarea cols="57" rows="2" name="aiosp_page_meta_tags"><?php echo stripcslashes(get_option('aiosp_page_meta_tags')); ?></textarea>
1102
+ <div style="max-width:500px; text-align:left; display:none" id="aiosp_page_meta_tags_tip">
1103
+ <?php
1104
+ _e('What you enter here will be copied verbatim to your header on pages. You can enter whatever additional meta tags you want here, even references to stylesheets.', 'all_in_one_seo_pack');
1105
+ ?>
1106
+ </div>
1107
+ </td>
1108
+ </tr>
1109
+
1110
+ </table>
1111
+ <p class="submit">
1112
+ <input type="hidden" name="action" value="aiosp_update" />
1113
+ <input type="hidden" name="page_options" value="aiosp_home_description" />
1114
+ <input type="submit" name="Submit" value="<?php _e('Update Options', 'all_in_one_seo_pack')?> &raquo;" />
1115
+ </p>
1116
+ </form>
1117
+ </div>
1118
+ <?php
1119
+
1120
+ } // plugin_menu
1121
+
1122
+ }
1123
+
1124
+ add_option("aiosp_home_description", null, 'All in One SEO Plugin Home Description', 'yes');
1125
+ add_option("aiosp_home_title", null, 'All in One SEO Plugin Home Title', 'yes');
1126
+ add_option("aiosp_rewrite_titles", 1, 'All in One SEO Plugin Rewrite Titles', 'yes');
1127
+ add_option("aiosp_use_categories", 0, 'All in One SEO Plugin Use Categories', 'yes');
1128
+ add_option("aiosp_category_noindex", 1, 'All in One SEO Plugin Noindex for Categories', 'yes');
1129
+ add_option("aiosp_archive_noindex", 1, 'All in One SEO Plugin Noindex for Archives', 'yes');
1130
+ add_option("aiosp_tags_noindex", 0, 'All in One SEO Plugin Noindex for Tag Archives', 'yes');
1131
+ add_option("aiosp_generate_descriptions", 1, 'All in One SEO Plugin Autogenerate Descriptions', 'yes');
1132
+ add_option("aiosp_post_title_format", '%post_title% | %blog_title%', 'All in One SEO Plugin Post Title Format', 'yes');
1133
+ add_option("aiosp_page_title_format", '%page_title% | %blog_title%', 'All in One SEO Plugin Page Title Format', 'yes');
1134
+ add_option("aiosp_category_title_format", '%category_title% | %blog_title%', 'All in One SEO Plugin Category Title Format', 'yes');
1135
+ add_option("aiosp_archive_title_format", '%date% | %blog_title%', 'All in One SEO Plugin Archive Title Format', 'yes');
1136
+ add_option("aiosp_tag_title_format", '%tag% | %blog_title%', 'All in One SEO Plugin Tag Title Format', 'yes');
1137
+ add_option("aiosp_search_title_format", '%search% | %blog_title%', 'All in One SEO Plugin Search Title Format', 'yes');
1138
+ add_option("aiosp_description_format", '%description%', 'All in One SEO Plugin Description Format', 'yes');
1139
+ add_option("aiosp_404_title_format", 'Nothing found for %request_words%', 'All in One SEO Plugin 404 Title Format', 'yes');
1140
+ add_option("aiosp_post_meta_tags", '', 'All in One SEO Plugin Additional Post Meta Tags', 'yes');
1141
+ add_option("aiosp_page_meta_tags", '', 'All in One SEO Plugin Additional Post Meta Tags', 'yes');
1142
+
1143
+ $aiosp = new All_in_One_SEO_Pack();
1144
+ add_action('wp_head', array($aiosp, 'wp_head'));
1145
+ add_action('template_redirect', array($aiosp, 'template_redirect'));
1146
+
1147
+ add_action('init', array($aiosp, 'init'));
1148
+
1149
+ add_action('simple_edit_form', array($aiosp, 'add_meta_tags_textinput'));
1150
+ add_action('edit_form_advanced', array($aiosp, 'add_meta_tags_textinput'));
1151
+ add_action('edit_page_form', array($aiosp, 'add_meta_tags_page_textinput'));
1152
+ //add_action('edit_category_form', array($aiosp, 'edit_category_form'));
1153
+
1154
+ add_action('edit_post', array($aiosp, 'post_meta_tags'));
1155
+ add_action('publish_post', array($aiosp, 'post_meta_tags'));
1156
+ add_action('save_post', array($aiosp, 'post_meta_tags'));
1157
+ add_action('edit_page_form', array($aiosp, 'post_meta_tags'));
1158
+ //add_action('edit_category', array($aiosp, 'edit_category'));
1159
+
1160
+ add_action('admin_menu', array($aiosp, 'admin_menu'));
1161
+
1162
+ ?>
trunk/all_in_one_seo_pack.pot ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: all in one seo pack\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-10-26 15:54+0800\n"
6
+ "Last-Translator: Leo <skyros@gmail.com>\n"
7
+ "Language-Team: WordPress 中文团队\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-Language: \n"
12
+ "X-Poedit-Country: \n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e\n"
15
+ "X-Poedit-Basepath: .\n"
16
+ "X-Poedit-SearchPath-0: \n"
17
+
18
+ msgid "All in One SEO Pack"
19
+ msgstr ""
20
+
21
+ msgid "Title:"
22
+ msgstr ""
23
+
24
+ msgid "Keywords (comma separated):"
25
+ msgstr ""
26
+
27
+ msgid "Description:"
28
+ msgstr ""
29
+
30
+ msgid " characters. Most search engines use a maximum of 160 chars for the description."
31
+ msgstr ""
32
+
33
+ msgid "All in One SEO"
34
+ msgstr ""
35
+
36
+ msgid "All in One SEO Options Updated."
37
+ msgstr ""
38
+
39
+ msgid "All in One SEO Plugin Options"
40
+ msgstr ""
41
+
42
+ msgid "This is version "
43
+ msgstr ""
44
+
45
+ msgid "All in One SEO Plugin Release History"
46
+ msgstr ""
47
+
48
+ msgid "FAQ"
49
+ msgstr ""
50
+
51
+ msgid "All in One SEO Plugin Feedback"
52
+ msgstr ""
53
+
54
+ msgid "Feedback"
55
+ msgstr ""
56
+
57
+ msgid "All in One SEO Plugin Translations"
58
+ msgstr ""
59
+
60
+ msgid "Translations"
61
+ msgstr ""
62
+
63
+ msgid "Click for Help!"
64
+ msgstr ""
65
+
66
+ msgid "Home Title:"
67
+ msgstr ""
68
+
69
+ msgid "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."
70
+ msgstr ""
71
+
72
+ msgid "Home Description:"
73
+ msgstr ""
74
+
75
+ msgid "The META description for your homepage. Independent of any other options, the default is no META description at all if this is not set."
76
+ msgstr ""
77
+
78
+ msgid "Home Keywords (comma separated):"
79
+ msgstr ""
80
+
81
+ msgid "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."
82
+ msgstr ""
83
+
84
+ msgid "Rewrite Titles:"
85
+ msgstr ""
86
+
87
+ msgid "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."
88
+ msgstr ""
89
+
90
+ msgid "Post Title Format:"
91
+ msgstr ""
92
+
93
+ msgid "The following macros are supported:"
94
+ msgstr ""
95
+
96
+ msgid "%blog_title% - Your blog title"
97
+ msgstr ""
98
+
99
+ msgid "%blog_description% - Your blog description"
100
+ msgstr ""
101
+
102
+ msgid "%post_title% - The original title of the post"
103
+ msgstr ""
104
+
105
+ msgid "%category_title% - The (main) category of the post"
106
+ msgstr ""
107
+
108
+ msgid "%category% - Alias for %category_title%"
109
+ msgstr ""
110
+
111
+ msgid "Page Title Format:"
112
+ msgstr ""
113
+
114
+ msgid "%page_title% - The original title of the page"
115
+ msgstr ""
116
+
117
+ msgid "Category Title Format:"
118
+ msgstr ""
119
+
120
+ msgid "%category_title% - The original title of the category"
121
+ msgstr ""
122
+
123
+ msgid "%category_description% - The description of the category"
124
+ msgstr ""
125
+
126
+ msgid "Archive Title Format:"
127
+ msgstr ""
128
+
129
+ msgid "%date% - The original archive title given by wordpress, e.g. “2007″ or “2007 August”"
130
+ msgstr ""
131
+
132
+ msgid "Tag Title Format:"
133
+ msgstr ""
134
+
135
+ msgid "%tag% - The name of the tag"
136
+ msgstr ""
137
+
138
+ msgid "Search Title Format:"
139
+ msgstr ""
140
+
141
+ msgid "%search% - What was searched for"
142
+ msgstr ""
143
+
144
+ msgid "Description Format:"
145
+ msgstr ""
146
+
147
+ msgid "%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"
148
+ msgstr ""
149
+
150
+ msgid "404 Title Format:"
151
+ msgstr ""
152
+
153
+ msgid "%request_url% - The original URL path, like \"/url-that-does-not-exist/\""
154
+ msgstr ""
155
+
156
+ msgid "%request_words% - The URL path in human readable form, like \"Url That Does Not Exist\""
157
+ msgstr ""
158
+
159
+ msgid "Use Categories for META keywords:"
160
+ msgstr ""
161
+
162
+ msgid "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)."
163
+ msgstr ""
164
+
165
+ msgid "Use noindex for Categories:"
166
+ msgstr ""
167
+
168
+ msgid "Check this for excluding category pages from being crawled. Useful for avoiding duplicate content."
169
+ msgstr ""
170
+
171
+ msgid "Use noindex for Archives:"
172
+ msgstr ""
173
+
174
+ msgid "Check this for excluding archive pages from being crawled. Useful for avoiding duplicate content."
175
+ msgstr ""
176
+
177
+ msgid "Use noindex for Tag Archives:"
178
+ msgstr ""
179
+
180
+ msgid "Check this for excluding tag pages from being crawled. Useful for avoiding duplicate content."
181
+ msgstr ""
182
+
183
+ msgid "Autogenerate Descriptions:"
184
+ msgstr ""
185
+
186
+ msgid "Check this and your META descriptions will get autogenerated if there’s no excerpt."
187
+ msgstr ""
188
+
189
+ msgid "Update Options"
190
+ msgstr ""
191
+
192
+ msgid "Additional Post Meta Tags:"
193
+ msgstr ""
194
+
195
+ msgid "Additional Page Meta Tags:"
196
+ msgstr ""
197
+
198
+ msgid "What you enter here will be copied verbatim to your header on post pages. You can enter whatever additional meta tags you want here, even references to stylesheets."
199
+ msgstr ""
200
+
201
+ msgid "What you enter here will be copied verbatim to your header on pages. You can enter whatever additional meta tags you want here, even references to stylesheets."
202
+ msgstr ""
203
+
trunk/readme.txt ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === All in One SEO Pack ===
2
+ Contributors: uberdose
3
+ Donate link: http://wp.uberdose.com/contribute/
4
+ Tags: post,google,seo,meta,meta keywords,meta description,title
5
+ Requires at least: 1.5
6
+ Tested up to: 2.3.1
7
+ Stable tag: trunk
8
+
9
+ Automatically optimizes your Wordpress blog for Search Engines (Search Engine Optimization).
10
+
11
+ == Description ==
12
+
13
+ **Optimizes** your Wordpress blog for Search Engines (**Search Engine Optimization**).
14
+
15
+ Some features:
16
+
17
+ * Automatically optimizes your **titles** for search engines
18
+ * Generates **META tags automatically**
19
+ * Avoids the typical duplicate content found on Wordpress blogs
20
+ * For Wordpress 2.3 you don't even have to look at the options, it works out-of-the-box. Just install.
21
+ * You can override any title and set any META description and any META keywords you want.
22
+ * You can fine-tune everything
23
+ * Backward-Compatibility with many other plugins, like Auto Meta, Ultimate Tag Warrior and others.
24
+
25
+ **[Download now!](http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip)**
26
+
27
+ * [Support](http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond)
28
+ * [Wordpress SEO Pack Home](http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/)
29
+ * [Version History](http://wp.uberdose.com/2007/07/27/all-in-one-seo-pack-release-history/)
30
+ * [FAQ](http://wp.uberdose.com/2007/07/11/all-in-one-seo-pack-faq/)
31
+
32
+ == Installation ==
33
+
34
+ 1. Unzip into your `/wp-content/plugins/` directory. If you're uploading it make sure to upload
35
+ the top-level folder. Don't just upload all the php files and put them in `/wp-content/plugins/`.
36
+ 1. Activate the plugin through the 'Plugins' menu in WordPress
37
+ 1. Visit your SEO options (*Options - All in One SEO*)
38
+ 1. That's it! Don't forget to write good excerpts :)
39
+
40
+ == Frequently Asked Questions ==
41
+
42
+ Please read these [FAQs](http://wp.uberdose.com/2007/07/11/all-in-one-seo-pack-faq/)