All in One SEO Pack - Version 1.2.8.6

Version Description

Download this release

Release Info

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

Code changes from version 1.2.8.5 to 1.2.8.6

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.2.8.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.2.8.5";
32
 
33
  /**
34
  * Max numbers of chars in auto-generated description.
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.2.8.6
8
  Author: uberdose
9
  Author URI: http://wp.uberdose.com/
10
  */
28
 
29
  class All_in_One_SEO_Pack {
30
 
31
+ var $version = "1.2.8.6";
32
 
33
  /**
34
  * Max numbers of chars in auto-generated description.
trunk/all_in_one_seo_pack-bg_BG.mo ADDED
Binary file
trunk/all_in_one_seo_pack-bg_BG.po 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-09-28 17:32+0200\n"
6
+ "Last-Translator: Iliyan Darganov <iliyan@darganov.com>\n"
7
+ "Language-Team: Iliyan Darganov <iliyan@darganov.com>\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: Bulgarian\n"
12
+ "X-Poedit-Country: BULGARIA\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
+ #: all_in_one_seo_pack.php:263
19
+ #: all_in_one_seo_pack.php:288
20
+ msgid "Title:"
21
+ msgstr "Заглавие:"
22
+
23
+ #: all_in_one_seo_pack.php:267
24
+ #: all_in_one_seo_pack.php:292
25
+ msgid "Keywords (comma separated):"
26
+ msgstr "Ключови думи (разделени със запетая):"
27
+
28
+ #: all_in_one_seo_pack.php:284
29
+ msgid "All in One SEO Pack"
30
+ msgstr "All in One SEO пакет"
31
+
32
+ #: all_in_one_seo_pack.php:296
33
+ msgid "Description:"
34
+ msgstr "Описание:"
35
+
36
+ #: all_in_one_seo_pack.php:304
37
+ msgid "All in One SEO"
38
+ msgstr "All in One SEO"
39
+
40
+ #: all_in_one_seo_pack.php:309
41
+ msgid "All in One SEO Options Updated."
42
+ msgstr "настройките на All in One SEO са обновени."
43
+
44
+ #: all_in_one_seo_pack.php:333
45
+ msgid "All in One SEO Plugin Options"
46
+ msgstr "All in One SEO настройки"
47
+
48
+ #: all_in_one_seo_pack.php:335
49
+ msgid "<a target=\"_blank\" title=\"All in One SEO Plugin Feedback\" href=\"http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond\">Feedback</a>"
50
+ msgstr "<a target=\"_blank\" title=\"All in One SEO Plugin обратна връзка\" href=\"http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond\">Обратна връзка</a>"
51
+
52
+ #: all_in_one_seo_pack.php:336
53
+ msgid "<a target=\"_blank\" title=\"All in One SEO Plugin Help\" href=\"http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/\">Help</a>"
54
+ msgstr "<a target=\"_blank\" title=\"All in One SEO Plugin помощ\" href=\"http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/\">Помощ</a>"
55
+
56
+ #: all_in_one_seo_pack.php:342
57
+ msgid "Help for Option Home Title"
58
+ msgstr "Помощ за настройка на заглавие за началната станица"
59
+
60
+ #: all_in_one_seo_pack.php:343
61
+ msgid "Home Title:"
62
+ msgstr "Заглавие на началната страница:"
63
+
64
+ #: all_in_one_seo_pack.php:352
65
+ msgid "Help for Option Home Description"
66
+ msgstr "Помощ за настройка на описание за началната станица"
67
+
68
+ #: all_in_one_seo_pack.php:353
69
+ msgid "Home Description:"
70
+ msgstr "Описание на началната страница:"
71
+
72
+ #: all_in_one_seo_pack.php:362
73
+ msgid "Help for Option Home Keywords"
74
+ msgstr "Помощ за настройка на ключови думи за началната станица"
75
+
76
+ #: all_in_one_seo_pack.php:363
77
+ msgid "Home Keywords (comma separated):"
78
+ msgstr "Ключови думи (разделени със запетая) на началната страница:"
79
+
80
+ #: all_in_one_seo_pack.php:372
81
+ msgid "Help for Option Rewrite Titles"
82
+ msgstr "Помощ за настройка на пренаписване на заглавията"
83
+
84
+ #: all_in_one_seo_pack.php:373
85
+ msgid "Rewrite Titles:"
86
+ msgstr "Пренаписване на заглавията:"
87
+
88
+ #: all_in_one_seo_pack.php:382
89
+ msgid "Help for Option Categories for META keywords"
90
+ msgstr "Помощ за настройка на META ключови ползвайки категориите"
91
+
92
+ #: all_in_one_seo_pack.php:383
93
+ msgid "Use Categories for META keywords:"
94
+ msgstr "Използване на категориите за META ключови думи:"
95
+
96
+ #: all_in_one_seo_pack.php:391
97
+ msgid "Help for Option Category Description as Title"
98
+ msgstr "Помощ за настройка на описанието на категорията за заглавие"
99
+
100
+ #: all_in_one_seo_pack.php:392
101
+ msgid "Use Category Description as Title:"
102
+ msgstr "Използване на описанието на категорията за заглавие:"
103
+
104
+ #: all_in_one_seo_pack.php:401
105
+ msgid "Help for Option noindex for Categories"
106
+ msgstr "Помощ за настройка на noindex за категориите"
107
+
108
+ #: all_in_one_seo_pack.php:402
109
+ msgid "Use noindex for Categories:"
110
+ msgstr "Използване на noindex за категориите:"
111
+
112
+ #: all_in_one_seo_pack.php:411
113
+ msgid "Help for Option noindex for Archives"
114
+ msgstr "Помощ за настройка на noindex за архивите"
115
+
116
+ #: all_in_one_seo_pack.php:412
117
+ msgid "Use noindex for Archives:"
118
+ msgstr "Използване на noindex за архивите:"
119
+
120
+ #: all_in_one_seo_pack.php:421
121
+ msgid "Help for Autogenerate Descriptions"
122
+ msgstr "Помощ за автоматично създаване на описанията"
123
+
124
+ #: all_in_one_seo_pack.php:422
125
+ msgid "Autogenerate Descriptions:"
126
+ msgstr "Автоматично създаване на описанията:"
127
+
128
+ #: all_in_one_seo_pack.php:431
129
+ msgid "Help for Option Max Number of Words in Auto-Generated Descriptions"
130
+ msgstr "Помощ за настройка на максимален брой думи в автоматично създадените описания:"
131
+
132
+ #: all_in_one_seo_pack.php:432
133
+ msgid "Max Number of Words in Auto-Generated Descriptions:"
134
+ msgstr "Максимален брой думи в автоматично създадените описания:"
135
+
136
+ #: all_in_one_seo_pack.php:443
137
+ msgid "Update Options"
138
+ msgstr "Обновяване на настройките"
139
+
140
+ #: all_in_one_seo_pack.php:453
141
+ msgid "All in One SEO Plugin Home Description"
142
+ msgstr "All in One SEO описание на началната страница"
143
+
144
+ #: all_in_one_seo_pack.php:454
145
+ msgid "All in One SEO Plugin Home Title"
146
+ msgstr "All in One SEO заглавие на началната страница"
147
+
148
+ #: all_in_one_seo_pack.php:455
149
+ msgid "All in One SEO Plugin Rewrite Titles"
150
+ msgstr "All in One SEO пренаписване на заглавията"
151
+
152
+ #: all_in_one_seo_pack.php:456
153
+ msgid "All in One SEO Plugin Use Categories"
154
+ msgstr "All in One SEO използване на категориите"
155
+
156
+ #: all_in_one_seo_pack.php:457
157
+ msgid "All in One SEO Plugin Maximum Number of Words in Auto-Generated Descriptions"
158
+ msgstr "All in One SEO максимален брой думи в автоматично създадените описания"
159
+
160
+ #: all_in_one_seo_pack.php:458
161
+ msgid "Use Category Description for Title"
162
+ msgstr "Използване на описанието на категорията за заглавие"
163
+
164
+ #: all_in_one_seo_pack.php:459
165
+ msgid "All in One SEO Plugin Noindex for Categories"
166
+ msgstr "All in One SEO Noindex за категориите"
167
+
168
+ #: all_in_one_seo_pack.php:460
169
+ msgid "All in One SEO Plugin Noindex for Archives"
170
+ msgstr "All in One SEO Noindex за архивите"
171
+
172
+ #: all_in_one_seo_pack.php:461
173
+ msgid "All in One SEO Plugin Autogenerate Descriptions"
174
+ msgstr "All in One SEO автоматично създаване на описанията"
175
+
176
+ #: all_in_one_seo_pack.php:462
177
+ msgid "Use noindex for Tag Archives:"
178
+ msgstr "Използване на noindex за архивите по етикет:"
179
+
180
+ #: all_in_one_seo_pack.php:463
181
+ msgid "Post Title Format:"
182
+ msgstr "Формат на заглавието на публикация:"
183
+
184
+ #: all_in_one_seo_pack.php:464
185
+ msgid "Page Title Format:"
186
+ msgstr "Формат на заглавието на страница:"
187
+
188
+ #: all_in_one_seo_pack.php:465
189
+ msgid "Category Title Format:"
190
+ msgstr "Формат на заглавието на категория:"
191
+
192
+ #: all_in_one_seo_pack.php:466
193
+ msgid "Archive Title Format:"
194
+ msgstr "Формат на заглавието на архив:"
195
+
196
+ #: all_in_one_seo_pack.php:467
197
+ msgid "Tag Title Format:"
198
+ msgstr "Формат на заглавието на етикет:"
199
+
200
+ #: all_in_one_seo_pack.php:468
201
+ msgid "Search Title Format:"
202
+ msgstr "Формат на заглавието при търсене:"
203
+
trunk/all_in_one_seo_pack-he_IL.mo ADDED
Binary file
trunk/all_in_one_seo_pack-he_IL.po ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: all in one seo pack\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-07-03 09:58+0200\n"
6
+ "Last-Translator: Hannit Cohen <hannit@gmail.com>\n"
7
+ "Language-Team: hannit <webmaster@dakars.info>\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: Hebrew\n"
12
+ "X-Poedit-Country: ISRAEL\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
+ #: all_in_one_seo_pack.php:263
19
+ #: all_in_one_seo_pack.php:288
20
+ msgid "Title:"
21
+ msgstr "כותרת דפדפן (Title):"
22
+
23
+ #: all_in_one_seo_pack.php:267
24
+ #: all_in_one_seo_pack.php:292
25
+ msgid "Keywords (comma separated):"
26
+ msgstr "מילות מפתח (מופרדות בפסיקים):"
27
+
28
+ #: all_in_one_seo_pack.php:284
29
+ #, fuzzy
30
+ msgid "All in One SEO Pack"
31
+ msgstr "All in One SEO"
32
+
33
+ #: all_in_one_seo_pack.php:296
34
+ msgid "Description:"
35
+ msgstr "תיאור:"
36
+
37
+ #: all_in_one_seo_pack.php:304
38
+ msgid "All in One SEO"
39
+ msgstr "All in One SEO"
40
+
41
+ #: all_in_one_seo_pack.php:309
42
+ msgid "All in One SEO Options Updated."
43
+ msgstr "האפשרויות עודכנו"
44
+
45
+ #: all_in_one_seo_pack.php:333
46
+ msgid "All in One SEO Plugin Options"
47
+ msgstr " אפשרויות All in One SEO"
48
+
49
+ #: all_in_one_seo_pack.php:335
50
+ msgid "<a target=\"_blank\" title=\"All in One SEO Plugin Feedback\" href=\"http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond\">Feedback</a>"
51
+ msgstr "<a target=\"_blank\" title=\"All in One SEO Plugin Feedback\" href=\"http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond\">הביעו דעה</a>"
52
+
53
+ #: all_in_one_seo_pack.php:336
54
+ msgid "<a target=\"_blank\" title=\"All in One SEO Plugin Help\" href=\"http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/\">Help</a>"
55
+ msgstr "<a target=\"_blank\" title=\"All in One SEO Plugin Help\" href=\"http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/\">עזרה</a>"
56
+
57
+ #: all_in_one_seo_pack.php:342
58
+ msgid "Help for Option Home Title"
59
+ msgstr "עזרה לאפשרות כותרת דף הבית"
60
+
61
+ #: all_in_one_seo_pack.php:343
62
+ msgid "Home Title:"
63
+ msgstr "כותרת דף הבית (title):"
64
+
65
+ #: all_in_one_seo_pack.php:352
66
+ msgid "Help for Option Home Description"
67
+ msgstr "עזרה לאפשרות תיאור דף הבית"
68
+
69
+ #: all_in_one_seo_pack.php:353
70
+ msgid "Home Description:"
71
+ msgstr "תיאור דף הבית:"
72
+
73
+ #: all_in_one_seo_pack.php:362
74
+ msgid "Help for Option Home Keywords"
75
+ msgstr "עזרה לאפשרות מילות מפתח בדף הבית"
76
+
77
+ #: all_in_one_seo_pack.php:363
78
+ msgid "Home Keywords (comma separated):"
79
+ msgstr "תגיות מפתח לדף הבית (מופרדות בפסיקים):"
80
+
81
+ #: all_in_one_seo_pack.php:372
82
+ msgid "Help for Option Rewrite Titles"
83
+ msgstr "עזרה לאפשרות שכתוב כותרות"
84
+
85
+ #: all_in_one_seo_pack.php:373
86
+ msgid "Rewrite Titles:"
87
+ msgstr "שכתוב כותרות:"
88
+
89
+ #: all_in_one_seo_pack.php:382
90
+ msgid "Help for Option Categories for META keywords"
91
+ msgstr "עזרה לאפשרות קטגוריות בתור תגיות מטא"
92
+
93
+ #: all_in_one_seo_pack.php:383
94
+ msgid "Use Categories for META keywords:"
95
+ msgstr "שימוש בקטגוריות עבור תגיות מפתח:"
96
+
97
+ #: all_in_one_seo_pack.php:391
98
+ msgid "Help for Option Category Description as Title"
99
+ msgstr "עזרה לאפשרות תאור קטגוריות בתור כותרת"
100
+
101
+ #: all_in_one_seo_pack.php:392
102
+ msgid "Use Category Description as Title:"
103
+ msgstr "שימוש בתיאור הקטגוריות ככותרת:"
104
+
105
+ #: all_in_one_seo_pack.php:401
106
+ msgid "Help for Option noindex for Categories"
107
+ msgstr "עזרה לאפרות ביטול אינדוקס קטגוריות"
108
+
109
+ #: all_in_one_seo_pack.php:402
110
+ msgid "Use noindex for Categories:"
111
+ msgstr "לא לאנדקס את דפי הקטגוריות:"
112
+
113
+ #: all_in_one_seo_pack.php:411
114
+ msgid "Help for Option noindex for Archives"
115
+ msgstr "עזרה לאפשרות ביטול אינדוקס ארכיון"
116
+
117
+ #: all_in_one_seo_pack.php:412
118
+ msgid "Use noindex for Archives:"
119
+ msgstr "לא לאנדקס את דפי הארכיון:"
120
+
121
+ #: all_in_one_seo_pack.php:421
122
+ msgid "Help for Autogenerate Descriptions"
123
+ msgstr "עזרה לאפשרות יצירת תיאור אוטומטי"
124
+
125
+ #: all_in_one_seo_pack.php:422
126
+ msgid "Autogenerate Descriptions:"
127
+ msgstr "ייצור תיאור אוטומטי:"
128
+
129
+ #: all_in_one_seo_pack.php:431
130
+ msgid "Help for Option Max Number of Words in Auto-Generated Descriptions"
131
+ msgstr "עזרה לאפשרות מספר מקסימלי של מילים בתיאור אוטומטי"
132
+
133
+ #: all_in_one_seo_pack.php:432
134
+ msgid "Max Number of Words in Auto-Generated Descriptions:"
135
+ msgstr "מספר מילים מקסימלי בתיאור שיוצר אוטומטית:"
136
+
137
+ #: all_in_one_seo_pack.php:443
138
+ msgid "Update Options"
139
+ msgstr "עדכון אפשרויות"
140
+
141
+ #: all_in_one_seo_pack.php:453
142
+ msgid "All in One SEO Plugin Home Description"
143
+ msgstr "תיאור דף הבית"
144
+
145
+ #: all_in_one_seo_pack.php:454
146
+ msgid "All in One SEO Plugin Home Title"
147
+ msgstr "כותרת דף הבית"
148
+
149
+ #: all_in_one_seo_pack.php:455
150
+ msgid "All in One SEO Plugin Rewrite Titles"
151
+ msgstr "שיכתוב כותרות"
152
+
153
+ #: all_in_one_seo_pack.php:456
154
+ msgid "All in One SEO Plugin Use Categories"
155
+ msgstr "שימוש בקטגוריות"
156
+
157
+ #: all_in_one_seo_pack.php:457
158
+ msgid "All in One SEO Plugin Maximum Number of Words in Auto-Generated Descriptions"
159
+ msgstr "מספר מקסימלי של מילים לשימוש בתיאר המיוצר אוטומטית"
160
+
161
+ #: all_in_one_seo_pack.php:458
162
+ msgid "Use Category Description for Title"
163
+ msgstr "שימוש בתיאור הקטגוריות ככותרת"
164
+
165
+ #: all_in_one_seo_pack.php:459
166
+ msgid "All in One SEO Plugin Noindex for Categories"
167
+ msgstr "שימוש ב-noindex לדפי קטגוריות"
168
+
169
+ #: all_in_one_seo_pack.php:460
170
+ msgid "All in One SEO Plugin Noindex for Archives"
171
+ msgstr "שימוש ב-noindex לדפי ארכיון"
172
+
173
+ #: all_in_one_seo_pack.php:461
174
+ msgid "All in One SEO Plugin Autogenerate Descriptions"
175
+ msgstr "ייצור תיאור אוטומטי"
176
+
trunk/all_in_one_seo_pack-tr_TR.mo ADDED
Binary file
trunk/all_in_one_seo_pack-tr_TR.po ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: all in one seo pack\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-09-29 13:22+0200\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: Baris Unver <baris.unver@beyn.org>\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: Turkish\n"
12
+ "X-Poedit-Country: TURKEY\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
+ #: all_in_one_seo_pack.php:263
19
+ #: all_in_one_seo_pack.php:288
20
+ msgid "Title:"
21
+ msgstr "Başlık:"
22
+
23
+ #: all_in_one_seo_pack.php:267
24
+ #: all_in_one_seo_pack.php:292
25
+ msgid "Keywords (comma separated):"
26
+ msgstr "Anahtar kelimeler (virüglle ayırın):"
27
+
28
+ #: all_in_one_seo_pack.php:284
29
+ msgid "All in One SEO Pack"
30
+ msgstr "All in One SEO Pack"
31
+
32
+ #: all_in_one_seo_pack.php:296
33
+ msgid "Description:"
34
+ msgstr "Açıklama:"
35
+
36
+ #: all_in_one_seo_pack.php:304
37
+ msgid "All in One SEO"
38
+ msgstr "All in One SEO"
39
+
40
+ #: all_in_one_seo_pack.php:309
41
+ msgid "All in One SEO Options Updated."
42
+ msgstr "Seçenekler Güncellendi."
43
+
44
+ #: all_in_one_seo_pack.php:333
45
+ msgid "All in One SEO Plugin Options"
46
+ msgstr "All in One SEO Pack Seçenekleri"
47
+
48
+ #: all_in_one_seo_pack.php:335
49
+ msgid "<a target=\"_blank\" title=\"All in One SEO Plugin Feedback\" href=\"http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond\">Feedback</a>"
50
+ msgstr "<a target=\"_blank\" title=\"All in One SEO Plugin Feedback\" href=\"http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond\">Geribildirim</a>"
51
+
52
+ #: all_in_one_seo_pack.php:336
53
+ msgid "<a target=\"_blank\" title=\"All in One SEO Plugin Help\" href=\"http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/\">Help</a>"
54
+ msgstr "<a target=\"_blank\" title=\"All in One SEO Plugin Help\" href=\"http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/\">Yardım</a>"
55
+
56
+ #: all_in_one_seo_pack.php:342
57
+ msgid "Help for Option Home Title"
58
+ msgstr "\"Başlangıç Sayfası Başlığı\" seçeneği yardımı"
59
+
60
+ #: all_in_one_seo_pack.php:343
61
+ msgid "Home Title:"
62
+ msgstr "Başlangıç Sayfası Başlığı:"
63
+
64
+ #: all_in_one_seo_pack.php:352
65
+ msgid "Help for Option Home Description"
66
+ msgstr "\"Başlangıç Sayfası Açıklaması\" seçeneği yardımı"
67
+
68
+ #: all_in_one_seo_pack.php:353
69
+ msgid "Home Description:"
70
+ msgstr "Başlangıç Sayfası Açıklaması:"
71
+
72
+ #: all_in_one_seo_pack.php:362
73
+ msgid "Help for Option Home Keywords"
74
+ msgstr "\"Başlangıç Sayfası Anahtar Kelimeleri\" seçeneği yardımı"
75
+
76
+ #: all_in_one_seo_pack.php:363
77
+ msgid "Home Keywords (comma separated):"
78
+ msgstr "Başlangıç Sayfası Anahtar Kelimeleri (virgülle ayırın):"
79
+
80
+ #: all_in_one_seo_pack.php:372
81
+ msgid "Help for Option Rewrite Titles"
82
+ msgstr "\"Başlıkları Yeniden Biçimlendir\" seçeneği yardımı"
83
+
84
+ #: all_in_one_seo_pack.php:373
85
+ msgid "Rewrite Titles:"
86
+ msgstr "Başlıkları Yeniden Biçimlendir:"
87
+
88
+ #: all_in_one_seo_pack.php:382
89
+ msgid "Help for Option Categories for META keywords"
90
+ msgstr "\"META Etiketi Olarak Kategorileri Kullan\" seçeneği için yardım"
91
+
92
+ #: all_in_one_seo_pack.php:383
93
+ msgid "Use Categories for META keywords:"
94
+ msgstr "META Etiketi Olarak Kategorileri Kullan"
95
+
96
+ #: all_in_one_seo_pack.php:391
97
+ msgid "Help for Option Category Description as Title"
98
+ msgstr "\"Kategori Sayfa Başlıklarında Kategori İsmini Kullan\" seçeneği yardımı"
99
+
100
+ #: all_in_one_seo_pack.php:392
101
+ msgid "Use Category Description as Title:"
102
+ msgstr "Kategori Sayfa Başlıklarında Kategori İsmini Kullan:"
103
+
104
+ #: all_in_one_seo_pack.php:401
105
+ msgid "Help for Option noindex for Categories"
106
+ msgstr "\"Kategoriler İçin noindex Kullan\" seçeneği yardımı"
107
+
108
+ #: all_in_one_seo_pack.php:402
109
+ msgid "Use noindex for Categories:"
110
+ msgstr "Kategoriler İçin noindex Kullan:"
111
+
112
+ #: all_in_one_seo_pack.php:411
113
+ msgid "Help for Option noindex for Archives"
114
+ msgstr "\"Arşivler İçin noindex Kullan\" seçeneği yardımı"
115
+
116
+ #: all_in_one_seo_pack.php:412
117
+ msgid "Use noindex for Archives:"
118
+ msgstr "Arşivler İçin noindex Kullan:"
119
+
120
+ #: all_in_one_seo_pack.php:421
121
+ msgid "Help for Autogenerate Descriptions"
122
+ msgstr "\"Otomatik Olarak META Description'u Oluştur\" seçeneği yardımı"
123
+
124
+ #: all_in_one_seo_pack.php:422
125
+ msgid "Autogenerate Descriptions:"
126
+ msgstr "Otomatik META Description'u Oluştur:"
127
+
128
+ #: all_in_one_seo_pack.php:431
129
+ msgid "Help for Option Max Number of Words in Auto-Generated Descriptions"
130
+ msgstr "\"Otomatik Oluşturulan Açıklamaların En Yüksek Kelime Sayısı\" seçeneği yardımı"
131
+
132
+ #: all_in_one_seo_pack.php:432
133
+ msgid "Max Number of Words in Auto-Generated Descriptions:"
134
+ msgstr "Otomatik Oluşturulan Açıklamaların En Yüksek Kelime Sayısı:"
135
+
136
+ #: all_in_one_seo_pack.php:443
137
+ msgid "Update Options"
138
+ msgstr "Seçenekleri Güncelle"
139
+
140
+ #: all_in_one_seo_pack.php:453
141
+ msgid "All in One SEO Plugin Home Description"
142
+ msgstr "All in One SEO - Anasayfa Açıklaması"
143
+
144
+ #: all_in_one_seo_pack.php:454
145
+ msgid "All in One SEO Plugin Home Title"
146
+ msgstr "All in One SEO - Anasayfa Başlığı"
147
+
148
+ #: all_in_one_seo_pack.php:455
149
+ msgid "All in One SEO Plugin Rewrite Titles"
150
+ msgstr "All in One SEO - Başlıkları Yeniden Biçimlendir"
151
+
152
+ #: all_in_one_seo_pack.php:456
153
+ msgid "All in One SEO Plugin Use Categories"
154
+ msgstr "All in One SEO - META İçin Kategorileri Kullan"
155
+
156
+ #: all_in_one_seo_pack.php:457
157
+ msgid "All in One SEO Plugin Maximum Number of Words in Auto-Generated Descriptions"
158
+ msgstr "All in One SEO - Otomatik Oluşturulan Açıklamalarının En Yüksek Kelime Sayısı"
159
+
160
+ #: all_in_one_seo_pack.php:458
161
+ msgid "Use Category Description for Title"
162
+ msgstr "All in One SEO - Kategori Açıklamasını Başlıkta Kullan"
163
+
164
+ #: all_in_one_seo_pack.php:459
165
+ msgid "All in One SEO Plugin Noindex for Categories"
166
+ msgstr "All in One SEO - Kategoriler İçin noindex Kullan"
167
+
168
+ #: all_in_one_seo_pack.php:460
169
+ msgid "All in One SEO Plugin Noindex for Archives"
170
+ msgstr "All in One SEO - Arşivler İçin noindex Kullan"
171
+
172
+ #: all_in_one_seo_pack.php:461
173
+ msgid "All in One SEO Plugin Autogenerate Descriptions"
174
+ msgstr "All in One SEO - Otomatik META Açıklaması Oluştur"
175
+
trunk/all_in_one_seo_pack-zh_CN.mo ADDED
Binary file
trunk/all_in_one_seo_pack-zh_CN.po ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: all in one seo pack\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-06-16 01:24-0800\n"
6
+ "Last-Translator: 72pines <webmaster@72pines.com>\n"
7
+ "Language-Team: 72pines\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: Chinese\n"
12
+ "X-Poedit-Country: CHINA\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
+ #: all_in_one_seo_pack.php:263
19
+ #: all_in_one_seo_pack.php:288
20
+ msgid "Title:"
21
+ msgstr "标题: "
22
+
23
+ #: all_in_one_seo_pack.php:267
24
+ #: all_in_one_seo_pack.php:292
25
+ msgid "Keywords (comma separated):"
26
+ msgstr "关键词 (半角的逗号分开)"
27
+
28
+ #: all_in_one_seo_pack.php:284
29
+ #, fuzzy
30
+ msgid "All in One SEO Pack"
31
+ msgstr "All in One SEO"
32
+
33
+ #: all_in_one_seo_pack.php:296
34
+ msgid "Description:"
35
+ msgstr "站点描述: "
36
+
37
+ #: all_in_one_seo_pack.php:304
38
+ msgid "All in One SEO"
39
+ msgstr "All in One SEO"
40
+
41
+ #: all_in_one_seo_pack.php:309
42
+ msgid "All in One SEO Options Updated."
43
+ msgstr "更新选项成功。"
44
+
45
+ #: all_in_one_seo_pack.php:333
46
+ msgid "All in One SEO Plugin Options"
47
+ msgstr "All in One SEO 选项"
48
+
49
+ #: all_in_one_seo_pack.php:335
50
+ msgid "<a target=\"_blank\" title=\"All in One SEO Plugin Feedback\" href=\"http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond\">Feedback</a>"
51
+ msgstr "<a target=\"_blank\" title=\"All in One SEO Plugin Feedback\" href=\"http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond\">反馈意见</a>"
52
+
53
+ #: all_in_one_seo_pack.php:336
54
+ msgid "<a target=\"_blank\" title=\"All in One SEO Plugin Help\" href=\"http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/\">Help</a>"
55
+ msgstr "<a target=\"_blank\" title=\"All in One SEO Plugin Help\" href=\"http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/\">帮助文档</a>"
56
+
57
+ #: all_in_one_seo_pack.php:342
58
+ msgid "Help for Option Home Title"
59
+ msgstr "首页标题选项的帮助"
60
+
61
+ #: all_in_one_seo_pack.php:343
62
+ msgid "Home Title:"
63
+ msgstr "首页标题: "
64
+
65
+ #: all_in_one_seo_pack.php:352
66
+ #, fuzzy
67
+ msgid "Help for Option Home Description"
68
+ msgstr "首页描述: "
69
+
70
+ #: all_in_one_seo_pack.php:353
71
+ msgid "Home Description:"
72
+ msgstr "首页描述: "
73
+
74
+ #: all_in_one_seo_pack.php:362
75
+ msgid "Help for Option Home Keywords"
76
+ msgstr "首页关键词选项的帮助"
77
+
78
+ #: all_in_one_seo_pack.php:363
79
+ msgid "Home Keywords (comma separated):"
80
+ msgstr "首页关键词 (半角的逗号分开)"
81
+
82
+ #: all_in_one_seo_pack.php:372
83
+ #, fuzzy
84
+ msgid "Help for Option Rewrite Titles"
85
+ msgstr "是否对所有文章使用 “标题名 | 博客名” 的优化格式: "
86
+
87
+ #: all_in_one_seo_pack.php:373
88
+ msgid "Rewrite Titles:"
89
+ msgstr "是否对所有文章使用 “标题名 | 博客名” 的优化格式: "
90
+
91
+ #: all_in_one_seo_pack.php:382
92
+ #, fuzzy
93
+ msgid "Help for Option Categories for META keywords"
94
+ msgstr "使用分类名作为关键字: "
95
+
96
+ #: all_in_one_seo_pack.php:383
97
+ msgid "Use Categories for META keywords:"
98
+ msgstr "使用分类名作为关键字: "
99
+
100
+ #: all_in_one_seo_pack.php:391
101
+ #, fuzzy
102
+ msgid "Help for Option Category Description as Title"
103
+ msgstr "使用分类描述作为标题: "
104
+
105
+ #: all_in_one_seo_pack.php:392
106
+ msgid "Use Category Description as Title:"
107
+ msgstr "使用分类描述作为标题: "
108
+
109
+ #: all_in_one_seo_pack.php:401
110
+ #, fuzzy
111
+ msgid "Help for Option noindex for Categories"
112
+ msgstr "不让搜索引擎抓取分类页:"
113
+
114
+ #: all_in_one_seo_pack.php:402
115
+ msgid "Use noindex for Categories:"
116
+ msgstr "不让搜索引擎抓取分类页:"
117
+
118
+ #: all_in_one_seo_pack.php:411
119
+ #, fuzzy
120
+ msgid "Help for Option noindex for Archives"
121
+ msgstr "不让搜索引擎抓取档案页:"
122
+
123
+ #: all_in_one_seo_pack.php:412
124
+ msgid "Use noindex for Archives:"
125
+ msgstr "不让搜索引擎抓取档案页:"
126
+
127
+ #: all_in_one_seo_pack.php:421
128
+ #, fuzzy
129
+ msgid "Help for Autogenerate Descriptions"
130
+ msgstr "自动生成文章描述: "
131
+
132
+ #: all_in_one_seo_pack.php:422
133
+ msgid "Autogenerate Descriptions:"
134
+ msgstr "自动生成文章描述: "
135
+
136
+ #: all_in_one_seo_pack.php:431
137
+ #, fuzzy
138
+ msgid "Help for Option Max Number of Words in Auto-Generated Descriptions"
139
+ msgstr "自动生成文章描述时的字数限制: "
140
+
141
+ #: all_in_one_seo_pack.php:432
142
+ msgid "Max Number of Words in Auto-Generated Descriptions:"
143
+ msgstr "自动生成文章描述时的字数限制: "
144
+
145
+ #: all_in_one_seo_pack.php:443
146
+ msgid "Update Options"
147
+ msgstr "更新选项"
148
+
149
+ #: all_in_one_seo_pack.php:453
150
+ #, fuzzy
151
+ msgid "All in One SEO Plugin Home Description"
152
+ msgstr "All in One SEO 选项"
153
+
154
+ #: all_in_one_seo_pack.php:454
155
+ #, fuzzy
156
+ msgid "All in One SEO Plugin Home Title"
157
+ msgstr "All in One SEO 选项"
158
+
159
+ #: all_in_one_seo_pack.php:455
160
+ #, fuzzy
161
+ msgid "All in One SEO Plugin Rewrite Titles"
162
+ msgstr "All in One SEO 选项"
163
+
164
+ #: all_in_one_seo_pack.php:456
165
+ #, fuzzy
166
+ msgid "All in One SEO Plugin Use Categories"
167
+ msgstr "All in One SEO 选项"
168
+
169
+ #: all_in_one_seo_pack.php:457
170
+ #, fuzzy
171
+ msgid "All in One SEO Plugin Maximum Number of Words in Auto-Generated Descriptions"
172
+ msgstr "自动生成文章描述时的字数限制: "
173
+
174
+ #: all_in_one_seo_pack.php:458
175
+ #, fuzzy
176
+ msgid "Use Category Description for Title"
177
+ msgstr "使用分类描述作为标题: "
178
+
179
+ #: all_in_one_seo_pack.php:459
180
+ #, fuzzy
181
+ msgid "All in One SEO Plugin Noindex for Categories"
182
+ msgstr "All in One SEO 选项"
183
+
184
+ #: all_in_one_seo_pack.php:460
185
+ #, fuzzy
186
+ msgid "All in One SEO Plugin Noindex for Archives"
187
+ msgstr "All in One SEO 选项"
188
+
189
+ #: all_in_one_seo_pack.php:461
190
+ #, fuzzy
191
+ msgid "All in One SEO Plugin Autogenerate Descriptions"
192
+ msgstr "All in One SEO 选项"
193
+
trunk/all_in_one_seo_pack.php ADDED
@@ -0,0 +1,873 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.2.8.6
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.2.8.6";
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 $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;
53
+
54
+ var $title_end = -1;
55
+
56
+ var $orig_title = '';
57
+
58
+ function template_redirect() {
59
+ if (is_feed()) {
60
+ return;
61
+ }
62
+
63
+ if (get_option('aiosp_rewrite_titles')) {
64
+ ob_start(array($this, 'output_callback_for_title'));
65
+ }
66
+ }
67
+
68
+ function output_callback_for_title($content) {
69
+ return $this->rewrite_title($content);
70
+ }
71
+
72
+ function init() {
73
+ if(function_exists('load_plugin_textdomain')) {
74
+ load_plugin_textdomain('all_in_one_seo_pack', 'wp-content/plugins/all-in-one-seo-pack');
75
+ }
76
+ }
77
+
78
+ function is_static_front_page() {
79
+ global $wp_query;
80
+ $post = $wp_query->get_queried_object();
81
+ return get_option('show_on_front') == 'page' && is_page() && $post->ID == get_option('page_on_front');
82
+ }
83
+
84
+ function is_static_posts_page() {
85
+ global $wp_query;
86
+ $post = $wp_query->get_queried_object();
87
+ return get_option('show_on_front') == 'page' && is_home() && $post->ID == get_option('page_for_posts');
88
+ }
89
+
90
+ function wp_head() {
91
+ if (is_feed()) {
92
+ return;
93
+ }
94
+ if (get_option('aiosp_rewrite_titles')) {
95
+ // make the title rewrite as short as possible
96
+ $active_handlers = ob_list_handlers();
97
+ if (sizeof($active_handlers) > 0 &&
98
+ strtolower($active_handlers[sizeof($active_handlers) - 1]) ==
99
+ strtolower('All_in_One_SEO_Pack::output_callback_for_title')) {
100
+ ob_end_flush();
101
+ } else {
102
+ // if we get here there *could* be trouble with another plugin :(
103
+ $this->ob_start_detected = true;
104
+ echo "\n";
105
+ foreach (ob_list_handlers() as $handler) {
106
+ echo "<!-- all in one seo pack output handler $handler -->\n";
107
+ }
108
+ }
109
+ }
110
+
111
+ global $wp_query;
112
+ $post = $wp_query->get_queried_object();
113
+ $meta_string = null;
114
+
115
+ echo "<!-- all in one seo pack $this->version ";
116
+ if ($this->ob_start_detected) {
117
+ echo "ob_start_detected ";
118
+ }
119
+ echo "[$this->title_start,$this->title_end,$this->orig_title] ";
120
+ echo "-->\n";
121
+
122
+ if ((is_home() && !$this->is_static_posts_page() && get_option('aiosp_home_keywords')) || $this->is_static_front_page()) {
123
+ $keywords = trim(get_option('aiosp_home_keywords'));
124
+ } else {
125
+ $keywords = $this->get_all_keywords();
126
+ }
127
+ if (is_single() || is_page()) {
128
+ if ($this->is_static_front_page()) {
129
+ $description = trim(stripslashes(get_option('aiosp_home_description')));
130
+ } else {
131
+ $description = $this->get_post_description($post);
132
+ }
133
+ } else if (is_home()) {
134
+ if ($this->is_static_posts_page()) {
135
+ $description = $this->get_post_description(get_post(get_option('page_for_posts')));
136
+ } else {
137
+ $description = trim(stripslashes(get_option('aiosp_home_description')));
138
+ }
139
+ } else if (is_category()) {
140
+ $description = category_description();
141
+ }
142
+
143
+ if (isset($description) && strlen($description) > $this->minimum_description_length) {
144
+ $description = str_replace('"', '', $description);
145
+
146
+ // replace newlines on mac / windows?
147
+ $description = str_replace("\r\n", ' ', $description);
148
+
149
+ // maybe linux uses this alone
150
+ $description = str_replace("\n", ' ', $description);
151
+
152
+ if (isset($meta_string)) {
153
+ $meta_string .= "\n";
154
+ }
155
+ $meta_string .= sprintf("<meta name=\"description\" content=\"%s\"/>", $description);
156
+ }
157
+
158
+ if (isset ($keywords) && !empty($keywords)) {
159
+ if (isset($meta_string)) {
160
+ $meta_string .= "\n";
161
+ }
162
+ $meta_string .= sprintf("<meta name=\"keywords\" content=\"%s\"/>", $keywords);
163
+ }
164
+
165
+ if (function_exists('is_tag')) {
166
+ $is_tag = is_tag();
167
+ }
168
+
169
+ if ((is_category() && get_option('aiosp_category_noindex')) ||
170
+ (!is_category() && is_archive() &&!$is_tag && get_option('aiosp_archive_noindex')) ||
171
+ (get_option('aiosp_tags_noindex') && $is_tag)) {
172
+ if (isset($meta_string)) {
173
+ $meta_string .= "\n";
174
+ }
175
+ $meta_string = '<meta name="robots" content="noindex,follow" />';
176
+ }
177
+
178
+ if ($meta_string != null) {
179
+ echo "$meta_string\n";
180
+ }
181
+ }
182
+
183
+ function get_post_description($post) {
184
+ $description = trim(stripslashes(get_post_meta($post->ID, "description", true)));
185
+ if (!$description) {
186
+ $description = $this->trim_excerpt_without_filters_full_length($post->post_excerpt);
187
+ if (!$description && get_option("aiosp_generate_descriptions")) {
188
+ $description = $this->trim_excerpt_without_filters($post->post_content);
189
+ }
190
+ }
191
+ return $description;
192
+ }
193
+
194
+ function replace_title($content, $title) {
195
+ $title_tag_start = "<title>";
196
+ $title_tag_end = "</title>";
197
+ $len_start = strlen($title_tag_start);
198
+ $len_end = strlen($title_tag_end);
199
+ $title = stripslashes(trim($title));
200
+ $start = strpos($content, "<title>");
201
+ $end = strpos($content, "</title>");
202
+
203
+ $this->title_start = $start;
204
+ $this->title_end = $end;
205
+ $this->orig_title = $title;
206
+
207
+ if ($start && $end) {
208
+ $header = substr($content, 0, $start + $len_start) . $title . substr($content, $end);
209
+ } else {
210
+ $header = $content . "<title>$title</title>";
211
+ }
212
+
213
+ return $header;
214
+ }
215
+
216
+ function rewrite_title($header) {
217
+ global $wp_query;
218
+ if (!$wp_query) {
219
+ $header .= "<!-- no wp_query found! -->\n";
220
+ return $header;
221
+ }
222
+
223
+ $post = $wp_query->get_queried_object();
224
+
225
+ // the_search_query() is not suitable, it cannot just return
226
+ global $s;
227
+
228
+ if (is_home()) {
229
+ if ($this->is_static_posts_page()) {
230
+ $title = get_post_meta(get_option('page_for_posts'), "title", true);
231
+ if (!$title) {
232
+ $title = wp_title('', false);
233
+ }
234
+ $title_format = get_option('aiosp_page_title_format');
235
+ $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
236
+ $new_title = str_replace('%page_title%', $title, $new_title);
237
+ $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
238
+ $title = trim($new_title);
239
+ $header = $this->replace_title($header, $title);
240
+ } else {
241
+ if (get_option('aiosp_home_title')) {
242
+ $header = $this->replace_title($header, get_option('aiosp_home_title'));
243
+ }
244
+ }
245
+ } else if (is_single()) {
246
+ $categories = get_the_category();
247
+ $category = '';
248
+ if (count($categories) > 0) {
249
+ $category = $categories[0]->cat_name;
250
+ }
251
+ $title = get_post_meta($post->ID, "title", true);
252
+ if (!$title) {
253
+ $title = get_post_meta($post->ID, "title_tag", true);
254
+ if (!$title) {
255
+ $title = wp_title('', false);
256
+ }
257
+ }
258
+ $title_format = get_option('aiosp_post_title_format');
259
+ $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
260
+ $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
261
+ $new_title = str_replace('%post_title%', $title, $new_title);
262
+ $new_title = str_replace('%category%', $category, $new_title);
263
+ $title = $new_title;
264
+ $title = trim($title);
265
+ $header = $this->replace_title($header, $title);
266
+ } else if (is_search() && isset($s) && !empty($s)) {
267
+ if (function_exists('attribute_escape')) {
268
+ $search = attribute_escape(stripslashes($s));
269
+ } else {
270
+ $search = wp_specialchars(stripslashes($s), true);
271
+ }
272
+ $search = $this->capitalize($search);
273
+ $title_format = get_option('aiosp_search_title_format');
274
+ $title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
275
+ $title = str_replace('%blog_description%', get_bloginfo('description'), $title);
276
+ $title = str_replace('%search%', $search, $title);
277
+ $header = $this->replace_title($header, $title);
278
+ } else if (is_category() && !is_feed()) {
279
+ $category_description = category_description();
280
+ $category_name = ucwords(single_cat_title('', false));
281
+ $title_format = get_option('aiosp_category_title_format');
282
+ $title = str_replace('%category_title%', $category_name, $title_format);
283
+ $title = str_replace('%category_description%', $category_description, $title);
284
+ $title = str_replace('%blog_title%', get_bloginfo('name'), $title);
285
+ $title = str_replace('%blog_description%', get_bloginfo('description'), $title);
286
+ $header = $this->replace_title($header, $title);
287
+ } else if (is_page()) {
288
+ if ($this->is_static_front_page()) {
289
+ if (get_option('aiosp_home_title')) {
290
+ $header = $this->replace_title($header, get_option('aiosp_home_title'));
291
+ }
292
+ } else {
293
+ $title = get_post_meta($post->ID, "title", true);
294
+ if (!$title) {
295
+ $title = wp_title('', false);
296
+ }
297
+ $title_format = get_option('aiosp_page_title_format');
298
+ $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
299
+ $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
300
+ $new_title = str_replace('%page_title%', $title, $new_title);
301
+ $title = trim($new_title);
302
+ $header = $this->replace_title($header, $title);
303
+ }
304
+ } else if (function_exists('is_tag') && is_tag()) {
305
+ global $utw;
306
+ if ($utw) {
307
+ $tags = $utw->GetCurrentTagSet();
308
+ $tag = $tags[0]->tag;
309
+ $tag = str_replace('-', ' ', $tag);
310
+ } else {
311
+ // wordpress > 2.3
312
+ $tag = wp_title('', false);
313
+ }
314
+ if ($tag) {
315
+ $tag = $this->capitalize($tag);
316
+ $title_format = get_option('aiosp_tag_title_format');
317
+ $title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
318
+ $title = str_replace('%blog_description%', get_bloginfo('description'), $title);
319
+ $title = str_replace('%tag%', $tag, $title);
320
+ $header = $this->replace_title($header, $title);
321
+ }
322
+ } else if (is_archive()) {
323
+ $date = wp_title('', false);
324
+ $title_format = get_option('aiosp_archive_title_format');
325
+ $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
326
+ $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
327
+ $new_title = str_replace('%date%', $date, $new_title);
328
+ $title = trim($new_title);
329
+ $header = $this->replace_title($header, $title);
330
+ }
331
+
332
+ return $header;
333
+
334
+ }
335
+
336
+ function capitalize($s) {
337
+ $s = trim($s);
338
+ $tokens = explode(' ', $s);
339
+ while (list($key, $val) = each($tokens)) {
340
+ $tokens[$key] = trim($tokens[$key]);
341
+ $tokens[$key] = strtoupper(substr($tokens[$key], 0, 1)) . substr($tokens[$key], 1);
342
+ }
343
+ $s = implode(' ', $tokens);
344
+ return $s;
345
+ }
346
+
347
+ function trim_excerpt_without_filters($text) {
348
+ $text = str_replace(']]>', ']]&gt;', $text);
349
+ $text = strip_tags($text);
350
+ $max = $this->maximum_description_length;
351
+ if ($max < strlen($text)) {
352
+ while($text[$max] != ' ' && $max > $this->minimum_description_length) {
353
+ $max--;
354
+ }
355
+ }
356
+ $text = substr($text, 0, $max);
357
+ return trim(stripslashes($text));
358
+ }
359
+
360
+ function trim_excerpt_without_filters_full_length($text) {
361
+ $text = str_replace(']]>', ']]&gt;', $text);
362
+ $text = strip_tags($text);
363
+ return trim(stripslashes($text));
364
+ }
365
+
366
+ /**
367
+ * @return comma-separated list of unique keywords
368
+ */
369
+ function get_all_keywords() {
370
+ global $posts;
371
+
372
+ $keywords = array();
373
+ if (is_array($posts)) {
374
+ foreach ($posts as $post) {
375
+ if ($post) {
376
+ if (get_option('aiosp_use_categories') && !is_page()) {
377
+ $categories = get_the_category($post->ID);
378
+ foreach ($categories as $category) {
379
+ $keywords[] = $category->cat_name;
380
+ }
381
+ }
382
+
383
+ // Ultimate Tag Warrior integration
384
+ global $utw;
385
+ if ($utw) {
386
+ $tags = $utw->GetTagsForPost($post);
387
+ foreach ($tags as $tag) {
388
+ $tag = $tag->tag;
389
+ $tag = str_replace('_',' ', $tag);
390
+ $tag = str_replace('-',' ',$tag);
391
+ $tag = stripslashes($tag);
392
+ $keywords[] = $tag;
393
+ }
394
+ }
395
+
396
+ // WP 2.3 tags
397
+ if (function_exists('get_the_tags')) {
398
+ $tags = get_the_tags($post->ID);
399
+ if ($tags && is_array($tags)) {
400
+ foreach ($tags as $tag) {
401
+ $keywords[] = $tag->name;
402
+ }
403
+ }
404
+ }
405
+
406
+ // custom field keywords
407
+ $keywords_a = $keywords_i = null;
408
+ $description_a = $description_i = null;
409
+ $id = $post->ID;
410
+ $keywords_i = stripslashes(get_post_meta($post->ID, "keywords", true));
411
+ $keywords_i = str_replace('"', '', $keywords_i);
412
+ if (isset($keywords_i) && !empty($keywords_i)) {
413
+ $keywords[] = $keywords_i;
414
+ }
415
+
416
+ // autometa
417
+ $autometa = stripslashes(get_post_meta($post->ID, "autometa", true));
418
+ if (isset($autometa)) {
419
+ $autometa_array = explode(' ', $autometa);
420
+ foreach ($autometa_array as $e) {
421
+ $keywords[] = $e;
422
+ }
423
+ }
424
+ }
425
+ }
426
+ }
427
+
428
+ return $this->get_unique_keywords($keywords);
429
+ }
430
+
431
+ function get_meta_keywords() {
432
+ global $posts;
433
+
434
+ $keywords = array();
435
+ if (is_array($posts)) {
436
+ foreach ($posts as $post) {
437
+ if ($post) {
438
+ // custom field keywords
439
+ $keywords_a = $keywords_i = null;
440
+ $description_a = $description_i = null;
441
+ $id = $post->ID;
442
+ $keywords_i = stripslashes(get_post_meta($post->ID, "keywords", true));
443
+ $keywords_i = str_replace('"', '', $keywords_i);
444
+ if (isset($keywords_i) && !empty($keywords_i)) {
445
+ $keywords[] = $keywords_i;
446
+ }
447
+ }
448
+ }
449
+ }
450
+
451
+ return $this->get_unique_keywords($keywords);
452
+ }
453
+
454
+ function get_unique_keywords($keywords) {
455
+ $keywords_ar = array_unique($keywords);
456
+ return implode(',', $keywords_ar);
457
+ }
458
+
459
+ function post_meta_tags($id) {
460
+ $awmp_edit = $_POST["aiosp_edit"];
461
+ if (isset($awmp_edit) && !empty($awmp_edit)) {
462
+ $keywords = $_POST["aiosp_keywords"];
463
+ $description = $_POST["aiosp_description"];
464
+ $title = $_POST["aiosp_title"];
465
+
466
+ delete_post_meta($id, 'keywords');
467
+ delete_post_meta($id, 'description');
468
+ delete_post_meta($id, 'title');
469
+
470
+ if (isset($keywords) && !empty($keywords)) {
471
+ add_post_meta($id, 'keywords', $keywords);
472
+ }
473
+ if (isset($description) && !empty($description)) {
474
+ add_post_meta($id, 'description', $description);
475
+ }
476
+ if (isset($title) && !empty($title)) {
477
+ add_post_meta($id, 'title', $title);
478
+ }
479
+ }
480
+ }
481
+
482
+ function edit_category($id) {
483
+ global $wpdb;
484
+ $id = $wpdb->escape($id);
485
+ $awmp_edit = $_POST["aiosp_edit"];
486
+ if (isset($awmp_edit) && !empty($awmp_edit)) {
487
+ $keywords = $wpdb->escape($_POST["aiosp_keywords"]);
488
+ $title = $wpdb->escape($_POST["aiosp_title"]);
489
+ $old_category = $wpdb->get_row("select * from $this->table_categories where category_id=$id", OBJECT);
490
+ if ($old_category) {
491
+ $wpdb->query("update $this->table_categories
492
+ set meta_title='$title', meta_keywords='$keywords'
493
+ where category_id=$id");
494
+ } else {
495
+ $wpdb->query("insert into $this->table_categories(meta_title, meta_keywords, category_id)
496
+ values ('$title', '$keywords', $id");
497
+ }
498
+ //$wpdb->query("insert into $this->table_categories")
499
+ /*
500
+ delete_post_meta($id, 'keywords');
501
+ delete_post_meta($id, 'description');
502
+ delete_post_meta($id, 'title');
503
+
504
+ if (isset($keywords) && !empty($keywords)) {
505
+ add_post_meta($id, 'keywords', $keywords);
506
+ }
507
+ if (isset($description) && !empty($description)) {
508
+ add_post_meta($id, 'description', $description);
509
+ }
510
+ if (isset($title) && !empty($title)) {
511
+ add_post_meta($id, 'title', $title);
512
+ }
513
+ */
514
+ }
515
+ }
516
+
517
+ function edit_category_form() {
518
+ global $post;
519
+ $keywords = stripslashes(get_post_meta($post->ID, 'keywords', true));
520
+ $title = stripslashes(get_post_meta($post->ID, 'title', true));
521
+ $description = stripslashes(get_post_meta($post->ID, 'description', true));
522
+ ?>
523
+ <input value="aiosp_edit" type="hidden" name="aiosp_edit" />
524
+ <table class="editform" width="100%" cellspacing="2" cellpadding="5">
525
+ <tr>
526
+ <th width="33%" scope="row" valign="top">
527
+ <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>
528
+ </th>
529
+ </tr>
530
+ <tr>
531
+ <th width="33%" scope="row" valign="top"><label for="aiosp_title"><?php _e('Title:', 'all_in_one_seo_pack') ?></label></th>
532
+ <td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="70"/></td>
533
+ </tr>
534
+ <tr>
535
+ <th width="33%" scope="row" valign="top"><label for="aiosp_keywords"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></label></th>
536
+ <td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="70"/></td>
537
+ </tr>
538
+ </table>
539
+ <?php
540
+ }
541
+
542
+ function add_meta_tags_textinput() {
543
+ global $post;
544
+ $post_id = $post;
545
+ if (is_object($post_id)) {
546
+ $post_id = $post_id->ID;
547
+ }
548
+ $keywords = htmlspecialchars(stripslashes(get_post_meta($post_id, 'keywords', true)));
549
+ $title = htmlspecialchars(stripslashes(get_post_meta($post_id, 'title', true)));
550
+ $description = htmlspecialchars(stripslashes(get_post_meta($post_id, 'description', true)));
551
+ ?>
552
+ <input value="aiosp_edit" type="hidden" name="aiosp_edit" />
553
+ <table style="margin-bottom:40px; margin-top:30px;">
554
+ <tr>
555
+ <th style="text-align:left;" colspan="2">
556
+ <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>
557
+ </th>
558
+ </tr>
559
+ <tr>
560
+ <th scope="row" style="text-align:right;"><?php _e('Title:', 'all_in_one_seo_pack') ?></th>
561
+ <td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="80"/></td>
562
+ </tr>
563
+ <tr>
564
+ <th scope="row" style="text-align:right;"><?php _e('Description:', 'all_in_one_seo_pack') ?></th>
565
+ <td><textarea name="aiosp_description" rows="1" cols="78"><?php echo $description ?></textarea><br/>
566
+ <?php _e('Most search engines use a maximum of 160 chars for the description.', 'all_in_one_seo_pack') ?>
567
+ </td>
568
+ </tr>
569
+ <tr>
570
+ <th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
571
+ <td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80"/></td>
572
+ </tr>
573
+ </table>
574
+ <?php
575
+ }
576
+
577
+ function add_meta_tags_page_textinput() {
578
+ global $post;
579
+ $keywords = htmlspecialchars(stripslashes(get_post_meta($post->ID, 'keywords', true)));
580
+ $description = htmlspecialchars(stripslashes(get_post_meta($post->ID, 'description', true)));
581
+ $title = htmlspecialchars(stripslashes(get_post_meta($post->ID, 'title', true)));
582
+ ?>
583
+ <input value="aiosp_edit" type="hidden" name="aiosp_edit"/>
584
+ <table style="margin-bottom:40px; margin-top:30px;">
585
+ <tr>
586
+ <th style="text-align:left;" colspan="2">
587
+ <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>
588
+ </th>
589
+ </tr>
590
+ <tr>
591
+ <th scope="row" style="text-align:right;"><?php _e('Title:', 'all_in_one_seo_pack') ?></th>
592
+ <td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="80" tabindex="1000"/></td>
593
+ </tr>
594
+ <tr>
595
+ <th scope="row" style="text-align:right;"><?php _e('Description:', 'all_in_one_seo_pack') ?></th>
596
+ <td><textarea name="aiosp_description" rows="1" cols="78" tabindex="1001"><?php echo $description ?></textarea><br/>
597
+ <?php _e('Most search engines use a maximum of 160 chars for the description.', 'all_in_one_seo_pack')?></td>
598
+ </tr>
599
+ <tr>
600
+ <th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
601
+ <td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80" tabindex="1002"/></td>
602
+ </tr>
603
+ </table>
604
+ <?php
605
+ }
606
+
607
+ function admin_menu() {
608
+ $file = __FILE__;
609
+
610
+ // hack for 1.5
611
+ global $wp_version;
612
+ if (substr($wp_version, 0, 3) == '1.5') {
613
+ $file = 'all-in-one-seo-pack/all_in_one_seo_pack.php';
614
+ }
615
+ 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'));
616
+ }
617
+
618
+ function plugin_menu() {
619
+ $message = null;
620
+ $message_updated = __("All in One SEO Options Updated.");
621
+
622
+ // update options
623
+ if ($_POST['action'] && $_POST['action'] == 'aiosp_update') {
624
+ $message = $message_updated;
625
+ update_option('aiosp_home_title', $_POST['aiosp_home_title']);
626
+ update_option('aiosp_home_description', $_POST['aiosp_home_description']);
627
+ update_option('aiosp_home_keywords', $_POST['aiosp_home_keywords']);
628
+ update_option('aiosp_max_words_excerpt', $_POST['aiosp_max_words_excerpt']);
629
+ update_option('aiosp_rewrite_titles', $_POST['aiosp_rewrite_titles']);
630
+ update_option('aiosp_post_title_format', $_POST['aiosp_post_title_format']);
631
+ update_option('aiosp_page_title_format', $_POST['aiosp_page_title_format']);
632
+ update_option('aiosp_category_title_format', $_POST['aiosp_category_title_format']);
633
+ update_option('aiosp_archive_title_format', $_POST['aiosp_archive_title_format']);
634
+ update_option('aiosp_tag_title_format', $_POST['aiosp_tag_title_format']);
635
+ update_option('aiosp_search_title_format', $_POST['aiosp_search_title_format']);
636
+ update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
637
+ update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
638
+ update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
639
+ update_option('aiosp_tags_noindex', $_POST['aiosp_tags_noindex']);
640
+ update_option('aiosp_generate_descriptions', $_POST['aiosp_generate_descriptions']);
641
+ update_option('aiosp_debug_info', $_POST['aiosp_debug_info']);
642
+ if (function_exists('wp_cache_flush')) {
643
+ wp_cache_flush();
644
+ }
645
+ }
646
+
647
+ ?>
648
+ <?php if ($message) : ?>
649
+ <div id="message" class="updated fade"><p><?php echo $message; ?></p></div>
650
+ <?php endif; ?>
651
+ <div id="dropmessage" class="updated" style="display:none;"></div>
652
+ <div class="wrap">
653
+ <h2><?php _e('All in One SEO Plugin Options', 'all_in_one_seo_pack'); ?></h2>
654
+ <p>
655
+ <?php _e("This is version ", 'all_in_one_seo_pack') ?><?php _e("$this->version. ", 'all_in_one_seo_pack') ?>
656
+ <a target="_blank" title="<?php _e('All in One SEO Plugin Release History', 'all_in_one_seo_pack')?>"
657
+ 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')?>
658
+ </a>
659
+ </p>
660
+ <p>
661
+ <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/">
662
+ <?php _e('Help', 'all_in_one_seo_pack') ?></a>
663
+ | <a target="_blank" title="<?php _e('FAQ', 'all_in_one_seo_pack') ?>"
664
+ href="http://wp.uberdose.com/2007/07/11/all-in-one-seo-pack-faq/"><?php _e('FAQ', 'all_in_one_seo_pack') ?></a>
665
+ | <a target="_blank" title="<?php _e('All in One SEO Plugin Feedback', 'all_in_one_seo_pack') ?>"
666
+ href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond"><?php _e('Feedback', 'all_in_one_seo_pack') ?></a>
667
+ | <a target="_blank" title="<?php _e('All in One SEO Plugin Translations', 'all_in_one_seo_pack') ?>"
668
+ href="http://wp.uberdose.com/2007/10/02/translations-for-all-in-one-seo-pack/"><?php _e('Translations', 'all_in_one_seo_pack') ?></a>
669
+ </p>
670
+ <form name="dofollow" action="" method="post">
671
+ <table>
672
+ <tr>
673
+ <th scope="row" style="text-align:right; vertical-align:top;">
674
+ <a target="_blank" title="<?php _e('Help for Option Home Title', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#hometitle">
675
+ <?php _e('Home Title:', 'all_in_one_seo_pack')?>
676
+ </a>
677
+ </td>
678
+ <td>
679
+ <textarea cols="60" rows="2" name="aiosp_home_title"><?php echo stripcslashes(get_option('aiosp_home_title')); ?></textarea>
680
+ </td>
681
+ </tr>
682
+ <tr>
683
+ <th scope="row" style="text-align:right; vertical-align:top;">
684
+ <a target="_blank" title="<?php _e('Help for Option Home Description', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#homedescription">
685
+ <?php _e('Home Description:', 'all_in_one_seo_pack')?>
686
+ </a>
687
+ </td>
688
+ <td>
689
+ <textarea cols="60" rows="2" name="aiosp_home_description"><?php echo stripcslashes(get_option('aiosp_home_description')); ?></textarea>
690
+ </td>
691
+ </tr>
692
+ <tr>
693
+ <th scope="row" style="text-align:right; vertical-align:top;">
694
+ <a target="_blank" title="<?php _e('Help for Option Home Keywords', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#homekeywords">
695
+ <?php _e('Home Keywords (comma separated):', 'all_in_one_seo_pack')?>
696
+ </a>
697
+ </td>
698
+ <td>
699
+ <textarea cols="60" rows="2" name="aiosp_home_keywords"><?php echo stripcslashes(get_option('aiosp_home_keywords')); ?></textarea>
700
+ </td>
701
+ </tr>
702
+ <tr>
703
+ <th scope="row" style="text-align:right; vertical-align:top;">
704
+ <a target="_blank" title="<?php _e('Help for Option Rewrite Titles', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#rewritetitles">
705
+ <?php _e('Rewrite Titles:', 'all_in_one_seo_pack')?>
706
+ </a>
707
+ </td>
708
+ <td>
709
+ <input type="checkbox" name="aiosp_rewrite_titles" <?php if (get_option('aiosp_rewrite_titles')) echo "checked=\"1\""; ?>/>
710
+ </td>
711
+ </tr>
712
+ <tr>
713
+ <th scope="row" style="text-align:right; vertical-align:top;">
714
+ <a target="_blank" title="<?php _e('Help for Post Title Format', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#posttitleformat">
715
+ <?php _e('Post Title Format:', 'all_in_one_seo_pack')?>
716
+ </a>
717
+ </td>
718
+ <td>
719
+ <input size="59" name="aiosp_post_title_format" value="<?php echo stripcslashes(get_option('aiosp_post_title_format')); ?>"/>
720
+ </td>
721
+ </tr>
722
+ <tr>
723
+ <th scope="row" style="text-align:right; vertical-align:top;">
724
+ <a target="_blank" title="<?php _e('Help for Page Title Format', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#pagetitleformat">
725
+ <?php _e('Page Title Format:', 'all_in_one_seo_pack')?>
726
+ </a>
727
+ </td>
728
+ <td>
729
+ <input size="59" name="aiosp_page_title_format" value="<?php echo stripcslashes(get_option('aiosp_page_title_format')); ?>"/>
730
+ </td>
731
+ </tr>
732
+ <tr>
733
+ <th scope="row" style="text-align:right; vertical-align:top;">
734
+ <a target="_blank" title="<?php _e('Help for Category Title Format', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#categorytitleformat">
735
+ <?php _e('Category Title Format:', 'all_in_one_seo_pack')?>
736
+ </a>
737
+ </td>
738
+ <td>
739
+ <input size="59" name="aiosp_category_title_format" value="<?php echo stripcslashes(get_option('aiosp_category_title_format')); ?>"/>
740
+ </td>
741
+ </tr>
742
+
743
+ <tr>
744
+ <th scope="row" style="text-align:right; vertical-align:top;">
745
+ <a target="_blank" title="<?php _e('Help for Archive Title Format', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#archivetitleformat">
746
+ <?php _e('Archive Title Format:', 'all_in_one_seo_pack')?>
747
+ </a>
748
+ </td>
749
+ <td>
750
+ <input size="59" name="aiosp_archive_title_format" value="<?php echo stripcslashes(get_option('aiosp_archive_title_format')); ?>"/>
751
+ </td>
752
+ </tr>
753
+
754
+ <tr>
755
+ <th scope="row" style="text-align:right; vertical-align:top;">
756
+ <a target="_blank" title="<?php _e('Help for Tag Title Format', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#tagtitleformat">
757
+ <?php _e('Tag Title Format:', 'all_in_one_seo_pack')?>
758
+ </a>
759
+ </td>
760
+ <td>
761
+ <input size="59" name="aiosp_tag_title_format" value="<?php echo stripcslashes(get_option('aiosp_tag_title_format')); ?>"/>
762
+ </td>
763
+ </tr>
764
+
765
+ <tr>
766
+ <th scope="row" style="text-align:right; vertical-align:top;">
767
+ <a target="_blank" title="<?php _e('Help for Search Title Format', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#searchtitleformat">
768
+ <?php _e('Search Title Format:', 'all_in_one_seo_pack')?>
769
+ </a>
770
+ </td>
771
+ <td>
772
+ <input size="59" name="aiosp_search_title_format" value="<?php echo stripcslashes(get_option('aiosp_search_title_format')); ?>"/>
773
+ </td>
774
+ </tr>
775
+
776
+ <tr>
777
+ <th scope="row" style="text-align:right; vertical-align:top;">
778
+ <a target="_blank" title="<?php _e('Help for Option Categories for META keywords', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#categorymetakeywords">
779
+ <?php _e('Use Categories for META keywords:', 'all_in_one_seo_pack')?>
780
+ </td>
781
+ <td>
782
+ <input type="checkbox" name="aiosp_use_categories" <?php if (get_option('aiosp_use_categories')) echo "checked=\"1\""; ?>/>
783
+ </td>
784
+ </tr>
785
+ <tr>
786
+ <th scope="row" style="text-align:right; vertical-align:top;">
787
+ <a target="_blank" title="<?php _e('Help for Option noindex for Categories', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#usenoindexforcategories">
788
+ <?php _e('Use noindex for Categories:', 'all_in_one_seo_pack')?>
789
+ </a>
790
+ </td>
791
+ <td>
792
+ <input type="checkbox" name="aiosp_category_noindex" <?php if (get_option('aiosp_category_noindex')) echo "checked=\"1\""; ?>/>
793
+ </td>
794
+ </tr>
795
+ <tr>
796
+ <th scope="row" style="text-align:right; vertical-align:top;">
797
+ <a target="_blank" title="<?php _e('Help for Option noindex for Archives', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#usenoindexforarchives">
798
+ <?php _e('Use noindex for Archives:', 'all_in_one_seo_pack')?>
799
+ </a>
800
+ </td>
801
+ <td>
802
+ <input type="checkbox" name="aiosp_archive_noindex" <?php if (get_option('aiosp_archive_noindex')) echo "checked=\"1\""; ?>/>
803
+ </td>
804
+ </tr>
805
+ <tr>
806
+ <th scope="row" style="text-align:right; vertical-align:top;">
807
+ <a target="_blank" title="<?php _e('Help for Option noindex for Tag Archives', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#usenoindexfortagarchives">
808
+ <?php _e('Use noindex for Tag Archives:', 'all_in_one_seo_pack')?>
809
+ </a>
810
+ </td>
811
+ <td>
812
+ <input type="checkbox" name="aiosp_tags_noindex" <?php if (get_option('aiosp_tags_noindex')) echo "checked=\"1\""; ?>/>
813
+ </td>
814
+ </tr>
815
+ <tr>
816
+ <th scope="row" style="text-align:right; vertical-align:top;">
817
+ <a target="_blank" title="<?php _e('Help for Autogenerate Descriptions', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#autogeneratedescriptions">
818
+ <?php _e('Autogenerate Descriptions:', 'all_in_one_seo_pack')?>
819
+ </a>
820
+ </td>
821
+ <td>
822
+ <input type="checkbox" name="aiosp_generate_descriptions" <?php if (get_option('aiosp_generate_descriptions')) echo "checked=\"1\""; ?>/>
823
+ </td>
824
+ </tr>
825
+ </table>
826
+ <p class="submit">
827
+ <input type="hidden" name="action" value="aiosp_update" />
828
+ <input type="hidden" name="page_options" value="aiosp_home_description" />
829
+ <input type="submit" name="Submit" value="<?php _e('Update Options', 'all_in_one_seo_pack')?> &raquo;" />
830
+ </p>
831
+ </form>
832
+ </div>
833
+ <?php
834
+
835
+ } // plugin_menu
836
+
837
+ }
838
+
839
+ add_option("aiosp_home_description", null, 'All in One SEO Plugin Home Description', 'yes');
840
+ add_option("aiosp_home_title", null, 'All in One SEO Plugin Home Title', 'yes');
841
+ add_option("aiosp_rewrite_titles", 1, 'All in One SEO Plugin Rewrite Titles', 'yes');
842
+ add_option("aiosp_use_categories", 1, 'All in One SEO Plugin Use Categories', 'yes');
843
+ add_option("aiosp_category_noindex", 1, 'All in One SEO Plugin Noindex for Categories', 'yes');
844
+ add_option("aiosp_archive_noindex", 1, 'All in One SEO Plugin Noindex for Archives', 'yes');
845
+ add_option("aiosp_tags_noindex", 1, 'All in One SEO Plugin Noindex for Tag Archives', 'yes');
846
+ add_option("aiosp_generate_descriptions", 0, 'All in One SEO Plugin Autogenerate Descriptions', 'yes');
847
+ add_option("aiosp_post_title_format", '%post_title% | %blog_title%', 'All in One SEO Plugin Post Title Format', 'yes');
848
+ add_option("aiosp_page_title_format", '%page_title% | %blog_title%', 'All in One SEO Plugin Page Title Format', 'yes');
849
+ add_option("aiosp_category_title_format", '%category_title% | %blog_title%', 'All in One SEO Plugin Category Title Format', 'yes');
850
+ add_option("aiosp_archive_title_format", '%date% | %blog_title%', 'All in One SEO Plugin Archive Title Format', 'yes');
851
+ add_option("aiosp_tag_title_format", '%tag% | %blog_title%', 'All in One SEO Plugin Tag Title Format', 'yes');
852
+ add_option("aiosp_search_title_format", '%search% | %blog_title%', 'All in One SEO Plugin Search Title Format', 'yes');
853
+
854
+ $aiosp = new All_in_One_SEO_Pack();
855
+ add_action('wp_head', array($aiosp, 'wp_head'));
856
+ add_action('template_redirect', array($aiosp, 'template_redirect'));
857
+
858
+ add_action('init', array($aiosp, 'init'));
859
+
860
+ add_action('simple_edit_form', array($aiosp, 'add_meta_tags_textinput'));
861
+ add_action('edit_form_advanced', array($aiosp, 'add_meta_tags_textinput'));
862
+ add_action('edit_page_form', array($aiosp, 'add_meta_tags_page_textinput'));
863
+ //add_action('edit_category_form', array($aiosp, 'edit_category_form'));
864
+
865
+ add_action('edit_post', array($aiosp, 'post_meta_tags'));
866
+ add_action('publish_post', array($aiosp, 'post_meta_tags'));
867
+ add_action('save_post', array($aiosp, 'post_meta_tags'));
868
+ add_action('edit_page_form', array($aiosp, 'post_meta_tags'));
869
+ //add_action('edit_category', array($aiosp, 'edit_category'));
870
+
871
+ add_action('admin_menu', array($aiosp, 'admin_menu'));
872
+
873
+ ?>
trunk/readme.txt ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
7
+ Stable tag: trunk
8
+
9
+ 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**) by
14
+
15
+ * Automatically optimizing your **titles** for search engines and letting you tweak them further
16
+ * Generating **META tags** automatically *and* letting you define them
17
+ * Avoiding indexing of duplicate content.
18
+
19
+ **[Download now!](http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip)**
20
+
21
+ * [SEO Plugin](http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/)
22
+ * [Version History](http://wp.uberdose.com/2007/07/27/all-in-one-seo-pack-release-history/)
23
+ * [FAQ](http://wp.uberdose.com/2007/07/11/all-in-one-seo-pack-faq/)
24
+
25
+ == Installation ==
26
+
27
+ 1. Unzip into your `/wp-content/plugins/` directory. If you're uploading it make sure to upload
28
+ the top-level folder. Don't just upload all the php files and put them in `/wp-content/plugins/`.
29
+ 1. Activate the plugin through the 'Plugins' menu in WordPress
30
+ 1. Visit your SEO options (*Options - All in One SEO*)
31
+ 1. That's it! Don't forget to write good excerpts :)
32
+
33
+ == Frequently Asked Questions ==
34
+
35
+ Please read these [FAQs](http://wp.uberdose.com/2007/07/11/all-in-one-seo-pack-faq/)