Version Description
Download this release
Release Info
| Developer | uberdose |
| Plugin | |
| Version | 0.6.2.6 |
| Comparing to | |
| See all releases | |
Version 0.6.2.6
- all_in_one_seo_pack-zh_CN.mo +0 -0
- all_in_one_seo_pack-zh_CN.po +193 -0
- all_in_one_seo_pack.php +463 -0
- readme.txt +37 -0
all_in_one_seo_pack-zh_CN.mo
ADDED
|
Binary file
|
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 |
+
|
all_in_one_seo_pack.php
ADDED
|
@@ -0,0 +1,463 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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: 0.6.2.6
|
| 8 |
+
Author: uberdose
|
| 9 |
+
Author URI: http://wp.uberdose.com/
|
| 10 |
+
*/
|
| 11 |
+
|
| 12 |
+
/* Copyright (C) 2007 Dirk Zimmermann (allinoneseopack AT uberdose DOT com)
|
| 13 |
+
|
| 14 |
+
This program is free software; you can redistribute it and/or modify
|
| 15 |
+
it under the terms of the GNU General Public License as published by
|
| 16 |
+
the Free Software Foundation; either version 2 of the License, or
|
| 17 |
+
(at your option) any later version.
|
| 18 |
+
|
| 19 |
+
This program is distributed in the hope that it will be useful,
|
| 20 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 21 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 22 |
+
GNU General Public License for more details.
|
| 23 |
+
|
| 24 |
+
You should have received a copy of the GNU General Public License
|
| 25 |
+
along with this program; if not, write to the Free Software
|
| 26 |
+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
| 27 |
+
|
| 28 |
+
class All_in_One_SEO_Pack {
|
| 29 |
+
|
| 30 |
+
var $version = "0.6.2.6";
|
| 31 |
+
|
| 32 |
+
/**
|
| 33 |
+
* Number of words to be used (max) for generating an excerpt.
|
| 34 |
+
*/
|
| 35 |
+
var $maximum_excerpt_length = 25;
|
| 36 |
+
|
| 37 |
+
/**
|
| 38 |
+
* Minimum number of chars an excerpt should be so that it can be used
|
| 39 |
+
* as description. Touch only if you know what you're doing.
|
| 40 |
+
*/
|
| 41 |
+
var $minimum_excerpt_length = 1;
|
| 42 |
+
|
| 43 |
+
function plugins_loaded() {
|
| 44 |
+
if (get_option('aiosp_max_words_excerpt') && is_numeric(get_option('aiosp_max_words_excerpt'))) {
|
| 45 |
+
$this->maximum_excerpt_length = get_option('aiosp_max_words_excerpt');
|
| 46 |
+
}
|
| 47 |
+
ob_start();
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
function init_textdomain() {
|
| 51 |
+
if(function_exists('load_plugin_textdomain')) {
|
| 52 |
+
load_plugin_textdomain('all_in_one_seo_pack', 'wp-content/plugins/all-in-one-seo-pack');
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
function wp_head() {
|
| 57 |
+
if (is_feed()) {
|
| 58 |
+
return;
|
| 59 |
+
}
|
| 60 |
+
global $post;
|
| 61 |
+
$meta_string = null;
|
| 62 |
+
|
| 63 |
+
$this->rewrite_title();
|
| 64 |
+
|
| 65 |
+
echo "<!-- all in one seo pack $this->version -->\n";
|
| 66 |
+
|
| 67 |
+
if (is_home() && get_option('aiosp_home_keywords')) {
|
| 68 |
+
$keywords = trim(get_option('aiosp_home_keywords'));
|
| 69 |
+
} else {
|
| 70 |
+
$keywords = $this->get_all_keywords();
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
if (is_single() || is_page()) {
|
| 74 |
+
$description = trim(stripslashes(get_post_meta($post->ID, "description", true)));
|
| 75 |
+
if (!$description) {
|
| 76 |
+
$description = $this->trim_excerpt_without_filters_full_length($post->post_excerpt);
|
| 77 |
+
if (!$description && get_option("aiosp_generate_descriptions")) {
|
| 78 |
+
$description = $this->trim_excerpt_without_filters($post->post_content);
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
} else if (is_home()) {
|
| 82 |
+
$description = trim(stripslashes(get_option('aiosp_home_description')));
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
if (isset($description) && strlen($description) > $this->minimum_excerpt_length) {
|
| 86 |
+
if (isset($meta_string)) {
|
| 87 |
+
$meta_string .= "\n";
|
| 88 |
+
}
|
| 89 |
+
$meta_string .= sprintf("<meta name=\"description\" content=\"%s\"/>", $description);
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
if (isset ($keywords) && !empty($keywords)) {
|
| 93 |
+
if (isset($meta_string)) {
|
| 94 |
+
$meta_string .= "\n";
|
| 95 |
+
}
|
| 96 |
+
$meta_string .= sprintf("<meta name=\"keywords\" content=\"%s\"/>\n", $keywords);
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
if((is_category() && get_option('aiosp_category_noindex')) ||
|
| 100 |
+
(!is_category() && is_archive() && get_option('aiosp_archive_noindex'))) {
|
| 101 |
+
if (isset($meta_string)) {
|
| 102 |
+
$meta_string .= "\n";
|
| 103 |
+
}
|
| 104 |
+
$meta_string = '<meta name="robots" content="noindex,follow" />';
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
if ($meta_string != null) {
|
| 108 |
+
echo $meta_string;
|
| 109 |
+
}
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
function rewrite_title() {
|
| 113 |
+
global $post;
|
| 114 |
+
|
| 115 |
+
if (is_home()) {
|
| 116 |
+
$title = trim(stripslashes(get_option('aiosp_home_title')));
|
| 117 |
+
} else if (is_single() || is_page()) {
|
| 118 |
+
$title = stripslashes(get_post_meta($post->ID, "title", true));
|
| 119 |
+
} else if (is_category() && get_option('aiosp_use_category_description_as_title')) {
|
| 120 |
+
$title = category_description();
|
| 121 |
+
}
|
| 122 |
+
$header = ob_get_contents();
|
| 123 |
+
ob_end_clean();
|
| 124 |
+
|
| 125 |
+
if ($title) {
|
| 126 |
+
$header = preg_replace("/<title>.*<\/title>/", "<title>$title</title>", $header);
|
| 127 |
+
} else if (get_option('aiosp_rewrite_titles')) {
|
| 128 |
+
global $s;
|
| 129 |
+
if (is_search() && isset($s) && !empty($s)) {
|
| 130 |
+
if (function_exists('attribute_escape')) {
|
| 131 |
+
$title = attribute_escape(stripslashes($s));
|
| 132 |
+
} else {
|
| 133 |
+
$title = wp_specialchars(stripslashes($s), true);
|
| 134 |
+
}
|
| 135 |
+
} else if (is_single() || is_page()) {
|
| 136 |
+
$title = stripslashes(get_post_meta($post->ID, "title", true));
|
| 137 |
+
}
|
| 138 |
+
if (!$title) {
|
| 139 |
+
$title = wp_title('', false);
|
| 140 |
+
}
|
| 141 |
+
if ($title) {
|
| 142 |
+
$title .= ' | ' . get_bloginfo('name');
|
| 143 |
+
$title = trim($title);
|
| 144 |
+
$header = preg_replace("/<title>.*<\/title>/", "<title>$title</title>", $header);
|
| 145 |
+
}
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
gzip_compression();
|
| 149 |
+
print($header);
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
function trim_excerpt_without_filters($text) {
|
| 153 |
+
$text = str_replace(']]>', ']]>', $text);
|
| 154 |
+
$text = strip_tags($text);
|
| 155 |
+
$excerpt_length = $this->maximum_excerpt_length;
|
| 156 |
+
$words = explode(' ', $text, $excerpt_length + 1);
|
| 157 |
+
if (count($words) > $excerpt_length) {
|
| 158 |
+
array_pop($words);
|
| 159 |
+
array_push($words, '...');
|
| 160 |
+
$text = implode(' ', $words);
|
| 161 |
+
}
|
| 162 |
+
return trim(stripslashes($text));
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
function trim_excerpt_without_filters_full_length($text) {
|
| 166 |
+
$text = str_replace(']]>', ']]>', $text);
|
| 167 |
+
$text = strip_tags($text);
|
| 168 |
+
$excerpt_length = $this->maximum_excerpt_length;
|
| 169 |
+
$words = explode(' ', $text, $excerpt_length + 1);
|
| 170 |
+
return trim(stripslashes($text));
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
function get_all_keywords() {
|
| 174 |
+
global $posts;
|
| 175 |
+
|
| 176 |
+
if (is_array($posts)) {
|
| 177 |
+
foreach ($posts as $post) {
|
| 178 |
+
if ($post) {
|
| 179 |
+
if (get_option('aiosp_use_categories') && !is_page()) {
|
| 180 |
+
$categories = get_the_category($post->ID);
|
| 181 |
+
foreach ($categories as $category) {
|
| 182 |
+
if (isset($keywords) && !empty($keywords)) {
|
| 183 |
+
$keywords .= ',';
|
| 184 |
+
}
|
| 185 |
+
$keywords .= $category->cat_name;
|
| 186 |
+
}
|
| 187 |
+
}
|
| 188 |
+
$keywords_a = $keywords_i = null;
|
| 189 |
+
$description_a = $description_i = null;
|
| 190 |
+
$id = $post->ID;
|
| 191 |
+
$keywords_i = stripslashes(get_post_meta($post->ID, "keywords", true));
|
| 192 |
+
if (isset($keywords_i) && !empty($keywords_i)) {
|
| 193 |
+
if (isset($keywords) && !empty($keywords)) {
|
| 194 |
+
$keywords .= ',';
|
| 195 |
+
}
|
| 196 |
+
$keywords .= $keywords_i;
|
| 197 |
+
}
|
| 198 |
+
}
|
| 199 |
+
}
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
return $this->get_unique_keywords($keywords);
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
function get_unique_keywords($keywords) {
|
| 206 |
+
$keywords_ar = array_unique(explode(',', $keywords));
|
| 207 |
+
return implode(',', $keywords_ar);
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
function post_meta_tags($id) {
|
| 211 |
+
$awmp_edit = $_POST["aiosp_edit"];
|
| 212 |
+
if (isset($awmp_edit) && !empty($awmp_edit)) {
|
| 213 |
+
$keywords = $_POST["aiosp_keywords"];
|
| 214 |
+
$description = $_POST["aiosp_description"];
|
| 215 |
+
$title = $_POST["aiosp_title"];
|
| 216 |
+
|
| 217 |
+
delete_post_meta($id, 'keywords');
|
| 218 |
+
delete_post_meta($id, 'description');
|
| 219 |
+
delete_post_meta($id, 'title');
|
| 220 |
+
|
| 221 |
+
if (isset($keywords) && !empty($keywords)) {
|
| 222 |
+
add_post_meta($id, 'keywords', $keywords);
|
| 223 |
+
}
|
| 224 |
+
if (isset($description) && !empty($description)) {
|
| 225 |
+
add_post_meta($id, 'description', $description);
|
| 226 |
+
}
|
| 227 |
+
if (isset($title) && !empty($title)) {
|
| 228 |
+
add_post_meta($id, 'title', $title);
|
| 229 |
+
}
|
| 230 |
+
}
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
function add_meta_tags_textinput() {
|
| 234 |
+
global $post;
|
| 235 |
+
$keywords = stripslashes(get_post_meta($post->ID, 'keywords', true));
|
| 236 |
+
$title = stripslashes(get_post_meta($post->ID, 'title', true));
|
| 237 |
+
?>
|
| 238 |
+
<input value="aiosp_edit" type="hidden" name="aiosp_edit" />
|
| 239 |
+
<table style="margin-bottom:40px; margin-top:30px;">
|
| 240 |
+
<tr>
|
| 241 |
+
<th style="text-align:left;" colspan="2">
|
| 242 |
+
<a href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/">All in One SEO Pack</a>
|
| 243 |
+
</th>
|
| 244 |
+
</tr>
|
| 245 |
+
<tr>
|
| 246 |
+
<th scope="row" style="text-align:right;"><?php _e('Title:', 'all_in_one_seo_pack') ?></th>
|
| 247 |
+
<td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="80"/></td>
|
| 248 |
+
</tr>
|
| 249 |
+
<tr>
|
| 250 |
+
<th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
|
| 251 |
+
<td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80"/></td>
|
| 252 |
+
</tr>
|
| 253 |
+
</table>
|
| 254 |
+
<?php
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
function add_meta_tags_page_textinput() {
|
| 258 |
+
global $post;
|
| 259 |
+
$keywords = stripslashes(get_post_meta($post->ID, 'keywords', true));
|
| 260 |
+
$description = stripslashes(get_post_meta($post->ID, 'description', true));
|
| 261 |
+
$title = stripslashes(get_post_meta($post->ID, 'title', true));
|
| 262 |
+
?>
|
| 263 |
+
<input value="aiosp_edit" type="hidden" name="aiosp_edit" />
|
| 264 |
+
<table style="margin-bottom:40px; margin-top:30px;">
|
| 265 |
+
<tr>
|
| 266 |
+
<th style="text-align:left;" colspan="2">
|
| 267 |
+
<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>
|
| 268 |
+
</th>
|
| 269 |
+
</tr>
|
| 270 |
+
<tr>
|
| 271 |
+
<th scope="row" style="text-align:right;"><?php _e('Title:', 'all_in_one_seo_pack') ?></th>
|
| 272 |
+
<td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="80"/></td>
|
| 273 |
+
</tr>
|
| 274 |
+
<tr>
|
| 275 |
+
<th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
|
| 276 |
+
<td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80"/></td>
|
| 277 |
+
</tr>
|
| 278 |
+
<tr>
|
| 279 |
+
<th scope="row" style="text-align:right;"><?php _e('Description:', 'all_in_one_seo_pack') ?></th>
|
| 280 |
+
<td><input value="<?php echo $description ?>" type="text" name="aiosp_description" size="80"/></td>
|
| 281 |
+
</tr>
|
| 282 |
+
</table>
|
| 283 |
+
<?php
|
| 284 |
+
}
|
| 285 |
+
|
| 286 |
+
function admin_menu() {
|
| 287 |
+
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'));
|
| 288 |
+
}
|
| 289 |
+
|
| 290 |
+
function plugin_menu() {
|
| 291 |
+
$message = null;
|
| 292 |
+
$message_updated = __("All in One SEO Options Updated.");
|
| 293 |
+
|
| 294 |
+
// update options
|
| 295 |
+
if ($_POST['action'] && $_POST['action'] == 'aiosp_update') {
|
| 296 |
+
$message = $message_updated;
|
| 297 |
+
update_option('aiosp_home_title', $_POST['aiosp_home_title']);
|
| 298 |
+
update_option('aiosp_home_description', $_POST['aiosp_home_description']);
|
| 299 |
+
update_option('aiosp_home_keywords', $_POST['aiosp_home_keywords']);
|
| 300 |
+
update_option('aiosp_max_words_excerpt', $_POST['aiosp_max_words_excerpt']);
|
| 301 |
+
update_option('aiosp_rewrite_titles', $_POST['aiosp_rewrite_titles']);
|
| 302 |
+
update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
|
| 303 |
+
update_option('aiosp_use_category_description_as_title', $_POST['aiosp_use_category_description_as_title']);
|
| 304 |
+
update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
|
| 305 |
+
update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
|
| 306 |
+
update_option('aiosp_generate_descriptions', $_POST['aiosp_generate_descriptions']);
|
| 307 |
+
wp_cache_flush();
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
?>
|
| 311 |
+
<?php if ($message) : ?>
|
| 312 |
+
<div id="message" class="updated fade"><p><?php echo $message; ?></p></div>
|
| 313 |
+
<?php endif; ?>
|
| 314 |
+
<div id="dropmessage" class="updated" style="display:none;"></div>
|
| 315 |
+
<div class="wrap">
|
| 316 |
+
<h2><?php _e('All in One SEO Plugin Options', 'all_in_one_seo_pack'); ?></h2>
|
| 317 |
+
<p>
|
| 318 |
+
<?php _e('<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>', 'all_in_one_seo_pack') ?>
|
| 319 |
+
| <?php _e('<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>', 'all_in_one_seo_pack') ?>
|
| 320 |
+
</p>
|
| 321 |
+
<form name="dofollow" action="" method="post">
|
| 322 |
+
<table>
|
| 323 |
+
<tr>
|
| 324 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 325 |
+
<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">
|
| 326 |
+
<?php _e('Home Title:', 'all_in_one_seo_pack')?>
|
| 327 |
+
</a>
|
| 328 |
+
</td>
|
| 329 |
+
<td>
|
| 330 |
+
<textarea cols="60" rows="2" name="aiosp_home_title"><?php echo stripcslashes(get_option('aiosp_home_title')); ?></textarea>
|
| 331 |
+
</td>
|
| 332 |
+
</tr>
|
| 333 |
+
<tr>
|
| 334 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 335 |
+
<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">
|
| 336 |
+
<?php _e('Home Description:', 'all_in_one_seo_pack')?>
|
| 337 |
+
</a>
|
| 338 |
+
</td>
|
| 339 |
+
<td>
|
| 340 |
+
<textarea cols="60" rows="2" name="aiosp_home_description"><?php echo stripcslashes(get_option('aiosp_home_description')); ?></textarea>
|
| 341 |
+
</td>
|
| 342 |
+
</tr>
|
| 343 |
+
<tr>
|
| 344 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 345 |
+
<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">
|
| 346 |
+
<?php _e('Home Keywords (comma separated):', 'all_in_one_seo_pack')?>
|
| 347 |
+
</a>
|
| 348 |
+
</td>
|
| 349 |
+
<td>
|
| 350 |
+
<textarea cols="60" rows="2" name="aiosp_home_keywords"><?php echo stripcslashes(get_option('aiosp_home_keywords')); ?></textarea>
|
| 351 |
+
</td>
|
| 352 |
+
</tr>
|
| 353 |
+
<tr>
|
| 354 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 355 |
+
<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">
|
| 356 |
+
<?php _e('Rewrite Titles:', 'all_in_one_seo_pack')?>
|
| 357 |
+
</a>
|
| 358 |
+
</td>
|
| 359 |
+
<td>
|
| 360 |
+
<input type="checkbox" name="aiosp_rewrite_titles" <?php if (get_option('aiosp_rewrite_titles')) echo "checked=\"1\""; ?>/>
|
| 361 |
+
</td>
|
| 362 |
+
</tr>
|
| 363 |
+
<tr>
|
| 364 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 365 |
+
<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">
|
| 366 |
+
<?php _e('Use Categories for META keywords:', 'all_in_one_seo_pack')?>
|
| 367 |
+
</td>
|
| 368 |
+
<td>
|
| 369 |
+
<input type="checkbox" name="aiosp_use_categories" <?php if (get_option('aiosp_use_categories')) echo "checked=\"1\""; ?>/>
|
| 370 |
+
</td>
|
| 371 |
+
</tr>
|
| 372 |
+
<tr>
|
| 373 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 374 |
+
<a target="_blank" title="<?php _e('Help for Option Category Description as Title', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#usecategorydescriptionastitle">
|
| 375 |
+
<?php _e('Use Category Description as Title:', 'all_in_one_seo_pack')?>
|
| 376 |
+
</a>
|
| 377 |
+
</td>
|
| 378 |
+
<td>
|
| 379 |
+
<input type="checkbox" name="aiosp_use_category_description_as_title" <?php if (get_option('aiosp_use_category_description_as_title')) echo "checked=\"1\""; ?>/>
|
| 380 |
+
</td>
|
| 381 |
+
</tr>
|
| 382 |
+
<tr>
|
| 383 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 384 |
+
<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">
|
| 385 |
+
<?php _e('Use noindex for Categories:', 'all_in_one_seo_pack')?>
|
| 386 |
+
</a>
|
| 387 |
+
</td>
|
| 388 |
+
<td>
|
| 389 |
+
<input type="checkbox" name="aiosp_category_noindex" <?php if (get_option('aiosp_category_noindex')) echo "checked=\"1\""; ?>/>
|
| 390 |
+
</td>
|
| 391 |
+
</tr>
|
| 392 |
+
<tr>
|
| 393 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 394 |
+
<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">
|
| 395 |
+
<?php _e('Use noindex for Archives:', 'all_in_one_seo_pack')?>
|
| 396 |
+
</a>
|
| 397 |
+
</td>
|
| 398 |
+
<td>
|
| 399 |
+
<input type="checkbox" name="aiosp_archive_noindex" <?php if (get_option('aiosp_archive_noindex')) echo "checked=\"1\""; ?>/>
|
| 400 |
+
</td>
|
| 401 |
+
</tr>
|
| 402 |
+
<tr>
|
| 403 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 404 |
+
<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">
|
| 405 |
+
<?php _e('Autogenerate Descriptions:', 'all_in_one_seo_pack')?>
|
| 406 |
+
</a>
|
| 407 |
+
</td>
|
| 408 |
+
<td>
|
| 409 |
+
<input type="checkbox" name="aiosp_generate_descriptions" <?php if (get_option('aiosp_generate_descriptions')) echo "checked=\"1\""; ?>/>
|
| 410 |
+
</td>
|
| 411 |
+
</tr>
|
| 412 |
+
<tr>
|
| 413 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
| 414 |
+
<a target="_blank" title="<?php _e('Help for Option Max Number of Words in Auto-Generated Descriptions', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#maxwordsdescription">
|
| 415 |
+
<?php _e('Max Number of Words in Auto-Generated Descriptions:', 'all_in_one_seo_pack')?>
|
| 416 |
+
</a>
|
| 417 |
+
</td>
|
| 418 |
+
<td>
|
| 419 |
+
<input size="5" name="aiosp_max_words_excerpt" value="<?php echo stripcslashes(get_option('aiosp_max_words_excerpt')); ?>"/>
|
| 420 |
+
</td>
|
| 421 |
+
</tr>
|
| 422 |
+
</table>
|
| 423 |
+
<p class="submit">
|
| 424 |
+
<input type="hidden" name="action" value="aiosp_update" />
|
| 425 |
+
<input type="hidden" name="page_options" value="aiosp_home_description" />
|
| 426 |
+
<input type="submit" name="Submit" value="<?php _e('Update Options')?> »" />
|
| 427 |
+
</p>
|
| 428 |
+
</form>
|
| 429 |
+
</div>
|
| 430 |
+
<?php
|
| 431 |
+
|
| 432 |
+
} // plugin_menu
|
| 433 |
+
|
| 434 |
+
}
|
| 435 |
+
|
| 436 |
+
add_option("aiosp_home_description", null, __('All in One SEO Plugin Home Description', 'all_in_one_seo_pack'), 'yes');
|
| 437 |
+
add_option("aiosp_home_title", null, __('All in One SEO Plugin Home Title', 'all_in_one_seo_pack'), 'yes');
|
| 438 |
+
add_option("aiosp_rewrite_titles", 1, __('All in One SEO Plugin Rewrite Titles', 'all_in_one_seo_pack'), 'yes');
|
| 439 |
+
add_option("aiosp_use_categories", 1, __('All in One SEO Plugin Use Categories', 'all_in_one_seo_pack'), 'yes');
|
| 440 |
+
add_option("aiosp_max_words_excerpt", 25, __('All in One SEO Plugin Maximum Number of Words in Auto-Generated Descriptions', 'all_in_one_seo_pack'), 'yes');
|
| 441 |
+
add_option("aiosp_use_category_description_as_title", 0, __('Use Category Description for Title', 'all_in_one_seo_pack'), 'yes');
|
| 442 |
+
add_option("aiosp_category_noindex", 1, __('All in One SEO Plugin Noindex for Categories', 'all_in_one_seo_pack'), 'yes');
|
| 443 |
+
add_option("aiosp_archive_noindex", 1, __('All in One SEO Plugin Noindex for Archives', 'all_in_one_seo_pack'), 'yes');
|
| 444 |
+
add_option("aiosp_generate_descriptions", 0, __('All in One SEO Plugin Autogenerate Descriptions', 'all_in_one_seo_pack'), 'yes');
|
| 445 |
+
|
| 446 |
+
$aiosp = new All_in_One_SEO_Pack();
|
| 447 |
+
add_action('wp_head', array($aiosp, 'wp_head'));
|
| 448 |
+
add_action('plugins_loaded', array($aiosp, 'plugins_loaded'));
|
| 449 |
+
|
| 450 |
+
add_action('init', array($aiosp, 'init_textdomain'));
|
| 451 |
+
|
| 452 |
+
add_action('simple_edit_form', array($aiosp, 'add_meta_tags_textinput'));
|
| 453 |
+
add_action('edit_form_advanced', array($aiosp, 'add_meta_tags_textinput'));
|
| 454 |
+
add_action('edit_page_form', array($aiosp, 'add_meta_tags_page_textinput'));
|
| 455 |
+
|
| 456 |
+
add_action('edit_post', array($aiosp, 'post_meta_tags'));
|
| 457 |
+
add_action('publish_post', array($aiosp, 'post_meta_tags'));
|
| 458 |
+
add_action('save_post', array($aiosp, 'post_meta_tags'));
|
| 459 |
+
add_action('edit_page_form', array($aiosp, 'post_meta_tags'));
|
| 460 |
+
|
| 461 |
+
add_action('admin_menu', array($aiosp, 'admin_menu'));
|
| 462 |
+
|
| 463 |
+
?>
|
readme.txt
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
=== All in One SEO Pack ===
|
| 2 |
+
Contributors: uberdose
|
| 3 |
+
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal%40uberdose%2ecom&item_name=Donation%20to%20wp%2euberdose%2ecom&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
|
| 4 |
+
Tags: post,google,seo,meta,meta keywords,meta description,title
|
| 5 |
+
Requires at least: 2.0.2
|
| 6 |
+
Tested up to: 2.2
|
| 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 |
+
* Generating **META tags** and letting you define them
|
| 16 |
+
* Automatically optimizing your **titles** and letting you specify your own ones
|
| 17 |
+
* Avoiding indexing of duplicate content.
|
| 18 |
+
|
| 19 |
+
**[Download now!](http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip)**
|
| 20 |
+
|
| 21 |
+
* [See what users are saying](http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#comments)
|
| 22 |
+
* [SEO Manual](http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/)
|
| 23 |
+
* [Get Help](http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond)
|
| 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 |
+
= Where can I leave feedback? =
|
| 36 |
+
|
| 37 |
+
http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond
|
