PS Auto Sitemap - Version 1.1.0

Version Description

Download this release

Release Info

Developer jim912
Plugin Icon wp plugin PS Auto Sitemap
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.7 to 1.1.0

css/ps_auto_sitemap_under_score.css ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "utf-8";
2
+ /* CSS Document */
3
+
4
+ #sitemap_list, #sitemap_list ul, #sitemap_list li {
5
+ margin: 0;
6
+ padding: 0;
7
+ }
8
+ #sitemap_list li {
9
+ font-size: 108%;
10
+ font-weight: bold;
11
+ line-height: 1.8;
12
+ background: url(../images/under_score/line_solid_d_gray.png) repeat-x 0 1.7em;
13
+ list-style-type: none;
14
+ margin-bottom: 15px;
15
+ padding-left: 20px;
16
+ }
17
+ #sitemap_list li li {
18
+ font-size: small;
19
+ font-weight: normal;
20
+ line-height: 1.5;
21
+ background: url(../images/under_score/icon_list_level2.png) no-repeat 0 1.1em;
22
+ margin-bottom: 0;
23
+ padding-left: 18px;
24
+ }
25
+ #sitemap_list li li li {
26
+ background: url(../images/under_score/icon_list_level3.png) no-repeat 0 1.1em;
27
+ padding-left: 16px;
28
+ }
29
+ #sitemap_list li li li li {
30
+ background: url(../images/under_score/icon_list_level4.png) no-repeat 0 1.1em;
31
+ padding-left: 14px;
32
+ }
33
+ #sitemap_list li li li li li {
34
+ background: url(../images/under_score/icon_list_level5.png) no-repeat 0 1.1em;
35
+ padding-left: 12px;
36
+ }
37
+ #sitemap_list ul {
38
+ margin-top: 3px;
39
+ margin-bottom: 10px;
40
+ }
css/ps_auto_sitemap_urban.css ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "utf-8";
2
+ /* CSS Document */
3
+
4
+ #sitemap_list, #sitemap_list ul, #sitemap_list li {
5
+ margin: 0;
6
+ padding: 0;
7
+ }
8
+ #sitemap_list li {
9
+ font-size: 108%;
10
+ font-weight: bold;
11
+ line-height: 1.8;
12
+ background: url(../images/urban/bg_level1.png);
13
+ list-style-type: none;
14
+ margin-bottom: 15px;
15
+ padding: 8px 0 8px 20px;
16
+ }
17
+ #sitemap_list li li {
18
+ font-size: small;
19
+ font-weight: normal;
20
+ background: url(../images/urban/icon_large.png) no-repeat 0 0.5em;
21
+ line-height: 1.5;
22
+ margin-bottom: 0;
23
+ padding: 0 0 0 18px;
24
+ }
25
+ #sitemap_list li li li {
26
+ padding-left: 16px;
27
+ }
28
+ #sitemap_list li li li li {
29
+ font-size: 0.85em;
30
+ background: url(../images/urban/icon_small.png) no-repeat 0 0.45em;
31
+ padding-left: 14px;
32
+ }
33
+ #sitemap_list li li li li li {
34
+ font-size: 1em;
35
+ padding-left: 12px;
36
+ }
37
+ #sitemap_list ul {
38
+ margin-top: 3px;
39
+ margin-bottom: 5px;
40
+ }
images/under_score/icon_list_level2.png ADDED
Binary file
images/under_score/icon_list_level3.png ADDED
Binary file
images/under_score/icon_list_level4.png ADDED
Binary file
images/under_score/icon_list_level5.png ADDED
Binary file
images/under_score/line_solid_d_gray.png ADDED
Binary file
images/urban/bg_level1.png ADDED
Binary file
images/urban/icon_large.png ADDED
Binary file
images/urban/icon_small.png ADDED
Binary file
language/ps_auto_sitemap-ja.mo CHANGED
Binary file
language/ps_auto_sitemap-ja.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: PS Auto Sitemap\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2008-12-26 14:24+0900\n"
6
- "PO-Revision-Date: \n"
7
  "Last-Translator: hitoshi omagari\n"
8
  "Language-Team: Prime Strategy Co.,Ltd. <system@prime-strategy.co.jp>\n"
9
  "MIME-Version: 1.0\n"
@@ -13,7 +13,6 @@ msgstr ""
13
  "X-Poedit-Country: JAPAN\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
- "X-Poedit-Basepath: R:\\wp_test\\DocumentRoot\\wp-content\\plugins\\\n"
17
  "X-Poedit-SearchPath-0: ps_auto_sitemap\n"
18
 
19
  #: ps_auto_sitemap.php:16
@@ -56,144 +55,165 @@ msgstr "ビジネス"
56
  msgid "Index"
57
  msgstr "索引"
58
 
59
- #: ps_auto_sitemap/ps_auto_sitemap.php:259
 
 
 
 
 
 
 
 
60
  msgid "The settings of PS Auto Sitemap has changed successfully."
61
  msgstr "PS Auto Sitemap の設定を変更いたしました。"
62
 
63
- #: ps_auto_sitemap/ps_auto_sitemap.php:263
64
  msgid "The settings has not been changed. There were no changes or failed to update the data base."
65
  msgstr "設定は変更されていません。変更がなかったか、データベースのアップデートに失敗いたしました。"
66
 
67
- #: ps_auto_sitemap/ps_auto_sitemap.php:270
68
- msgid "Display post tree"
69
- msgstr "投稿リストの出力"
 
 
 
 
70
 
71
- #: ps_auto_sitemap/ps_auto_sitemap.php:271
72
- #: ps_auto_sitemap/ps_auto_sitemap.php:275
 
73
  msgid "Display"
74
  msgstr "出力する"
75
 
76
- #: ps_auto_sitemap/ps_auto_sitemap.php:274
 
 
 
 
77
  msgid "Display page tree"
78
  msgstr "ページリストの出力"
79
 
80
- #: ps_auto_sitemap/ps_auto_sitemap.php:278
81
  msgid "PostID of the sitemap"
82
  msgstr "サイトマップを表示する記事"
83
 
84
- #: ps_auto_sitemap/ps_auto_sitemap.php:280
85
  msgid "* Please input display sitemap post's ID."
86
  msgstr "* サイトマップを表示する記事のIDを入力してください。"
87
 
88
- #: ps_auto_sitemap/ps_auto_sitemap.php:284
89
  msgid "Depth level"
90
  msgstr "出力階層制限"
91
 
92
- #: ps_auto_sitemap/ps_auto_sitemap.php:287
93
  msgid "no limit"
94
  msgstr "制限なし"
95
 
96
- #: ps_auto_sitemap/ps_auto_sitemap.php:288
97
  msgid "level 1"
98
  msgstr "第1階層"
99
 
100
- #: ps_auto_sitemap/ps_auto_sitemap.php:289
101
  msgid "level 2"
102
  msgstr "第2階層"
103
 
104
- #: ps_auto_sitemap/ps_auto_sitemap.php:290
105
  msgid "level 3"
106
  msgstr "第3階層"
107
 
108
- #: ps_auto_sitemap/ps_auto_sitemap.php:291
109
  msgid "level 4"
110
  msgstr "第4階層"
111
 
112
- #: ps_auto_sitemap/ps_auto_sitemap.php:292
113
  msgid "level 5"
114
  msgstr "第5階層"
115
 
116
- #: ps_auto_sitemap/ps_auto_sitemap.php:293
117
  msgid "level 6"
118
  msgstr "第6階層"
119
 
120
- #: ps_auto_sitemap/ps_auto_sitemap.php:294
121
  msgid "level 7"
122
  msgstr "第7階層"
123
 
124
- #: ps_auto_sitemap/ps_auto_sitemap.php:295
125
  msgid "level 8"
126
  msgstr "第8階層"
127
 
128
- #: ps_auto_sitemap/ps_auto_sitemap.php:296
129
  msgid "level 9"
130
  msgstr "第9階層"
131
 
132
- #: ps_auto_sitemap/ps_auto_sitemap.php:297
133
  msgid "level 10"
134
  msgstr "第10階層"
135
 
136
- #: ps_auto_sitemap/ps_auto_sitemap.php:302
137
  msgid "Display first"
138
  msgstr "先に出力するリスト"
139
 
140
- #: ps_auto_sitemap/ps_auto_sitemap.php:305
141
  msgid "Post"
142
  msgstr "投稿"
143
 
144
- #: ps_auto_sitemap/ps_auto_sitemap.php:307
145
  msgid "Page"
146
  msgstr "ページ"
147
 
148
- #: ps_auto_sitemap/ps_auto_sitemap.php:311
149
  msgid "Excluded categories"
150
  msgstr "除外カテゴリ"
151
 
152
- #: ps_auto_sitemap/ps_auto_sitemap.php:313
153
  msgid "* Please input category ID of exclude categories. (Separated by comma)"
154
  msgstr "* 出力しないカテゴリのIDを入力してください。(複数の場合はカンマ区切り)"
155
 
156
- #: ps_auto_sitemap/ps_auto_sitemap.php:317
157
  msgid "Exclude posts"
158
  msgstr "除外記事"
159
 
160
- #: ps_auto_sitemap/ps_auto_sitemap.php:319
161
  msgid "* Please input post ID of exclude posts. (Separated by comma)"
162
  msgstr "* 出力しない記事のIDを入力してください。(複数の場合はカンマ区切り)"
163
 
164
- #: ps_auto_sitemap/ps_auto_sitemap.php:323
165
  msgid "Select style"
166
  msgstr "スタイルの変更"
167
 
168
- #: ps_auto_sitemap/ps_auto_sitemap.php:326
169
  msgid "no style"
170
  msgstr "スタイルなし"
171
 
172
- #: ps_auto_sitemap/ps_auto_sitemap.php:334
 
 
 
 
 
 
 
 
173
  msgid "Hide developper link"
174
  msgstr "制作者リンクの表示"
175
 
176
- #: ps_auto_sitemap/ps_auto_sitemap.php:335
177
  msgid "Hide"
178
  msgstr "非表示"
179
 
180
- #: ps_auto_sitemap/ps_auto_sitemap.php:339
181
- msgid "Save Changes"
182
- msgstr "変更の保存"
183
-
184
- #: ps_auto_sitemap/ps_auto_sitemap.php:343
185
  msgid "Usage"
186
  msgstr "ご利用方法"
187
 
188
- #: ps_auto_sitemap/ps_auto_sitemap.php:345
189
  msgid "Post a page that will use as the sitemap page."
190
  msgstr "サイトマップを表示させたい記事を作成します。"
191
 
192
- #: ps_auto_sitemap/ps_auto_sitemap.php:346
193
  msgid "Insert following code in the content area. (<strong>Use HTML mode</strong>)"
194
  msgstr "作成した記事のcontent部分に、<strong>HTMLモードで</strong>以下のコードを入力します。"
195
 
196
- #: ps_auto_sitemap/ps_auto_sitemap.php:348
197
  msgid "Define the sitemap's ID at \"<strong>PostID of the sitemap</strong>\" field of the setings."
198
  msgstr "記事編集画面で記事ID(アドレスバーの &amp;post=nn )を確認し、『サイトマップを表示する記事』欄に指定します。"
199
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: PS Auto Sitemap 1.1.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2008-12-26 14:24+0900\n"
6
+ "PO-Revision-Date: 2009-01-19 15:45+0900\n"
7
  "Last-Translator: hitoshi omagari\n"
8
  "Language-Team: Prime Strategy Co.,Ltd. <system@prime-strategy.co.jp>\n"
9
  "MIME-Version: 1.0\n"
13
  "X-Poedit-Country: JAPAN\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
 
16
  "X-Poedit-SearchPath-0: ps_auto_sitemap\n"
17
 
18
  #: ps_auto_sitemap.php:16
55
  msgid "Index"
56
  msgstr "索引"
57
 
58
+ #: ps_auto_sitemap.php:26
59
+ msgid "Urban"
60
+ msgstr "アーバン"
61
+
62
+ #: ps_auto_sitemap.php:27
63
+ msgid "Under score"
64
+ msgstr "アンダースコア"
65
+
66
+ #: ps-auto-sitemap/ps_auto_sitemap.php:312
67
  msgid "The settings of PS Auto Sitemap has changed successfully."
68
  msgstr "PS Auto Sitemap の設定を変更いたしました。"
69
 
70
+ #: ps-auto-sitemap/ps_auto_sitemap.php:316
71
  msgid "The settings has not been changed. There were no changes or failed to update the data base."
72
  msgstr "設定は変更されていません。変更がなかったか、データベースのアップデートに失敗いたしました。"
73
 
74
+ #: ps-auto-sitemap/ps_auto_sitemap.php:321
75
+ msgid "PS Auto Sitemap isn't using cache system currently, because cache or parent directorty isn't writable. Please check owner and permission of upload directory."
76
+ msgstr "ファイルの書き込みが出来ないため、キャッシュシステムを使用していません。キャッシュもしくはアップロードディレクトリの所有者と権限を確認してください。"
77
+
78
+ #: ps-auto-sitemap/ps_auto_sitemap.php:329
79
+ msgid "Display home list"
80
+ msgstr "ホームページの出力"
81
 
82
+ #: ps-auto-sitemap/ps_auto_sitemap.php:330
83
+ #: ps-auto-sitemap/ps_auto_sitemap.php:334
84
+ #: ps-auto-sitemap/ps_auto_sitemap.php:338
85
  msgid "Display"
86
  msgstr "出力する"
87
 
88
+ #: ps-auto-sitemap/ps_auto_sitemap.php:333
89
+ msgid "Display post tree"
90
+ msgstr "投稿リストの出力"
91
+
92
+ #: ps-auto-sitemap/ps_auto_sitemap.php:337
93
  msgid "Display page tree"
94
  msgstr "ページリストの出力"
95
 
96
+ #: ps-auto-sitemap/ps_auto_sitemap.php:341
97
  msgid "PostID of the sitemap"
98
  msgstr "サイトマップを表示する記事"
99
 
100
+ #: ps-auto-sitemap/ps_auto_sitemap.php:343
101
  msgid "* Please input display sitemap post's ID."
102
  msgstr "* サイトマップを表示する記事のIDを入力してください。"
103
 
104
+ #: ps-auto-sitemap/ps_auto_sitemap.php:347
105
  msgid "Depth level"
106
  msgstr "出力階層制限"
107
 
108
+ #: ps-auto-sitemap/ps_auto_sitemap.php:350
109
  msgid "no limit"
110
  msgstr "制限なし"
111
 
112
+ #: ps_auto_sitemap/ps_auto_sitemap.php:351
113
  msgid "level 1"
114
  msgstr "第1階層"
115
 
116
+ #: ps_auto_sitemap/ps_auto_sitemap.php:352
117
  msgid "level 2"
118
  msgstr "第2階層"
119
 
120
+ #: ps_auto_sitemap/ps_auto_sitemap.php:353
121
  msgid "level 3"
122
  msgstr "第3階層"
123
 
124
+ #: ps_auto_sitemap/ps_auto_sitemap.php:354
125
  msgid "level 4"
126
  msgstr "第4階層"
127
 
128
+ #: ps_auto_sitemap/ps_auto_sitemap.php:355
129
  msgid "level 5"
130
  msgstr "第5階層"
131
 
132
+ #: ps_auto_sitemap/ps_auto_sitemap.php:356
133
  msgid "level 6"
134
  msgstr "第6階層"
135
 
136
+ #: ps_auto_sitemap/ps_auto_sitemap.php:357
137
  msgid "level 7"
138
  msgstr "第7階層"
139
 
140
+ #: ps_auto_sitemap/ps_auto_sitemap.php:358
141
  msgid "level 8"
142
  msgstr "第8階層"
143
 
144
+ #: ps_auto_sitemap/ps_auto_sitemap.php:359
145
  msgid "level 9"
146
  msgstr "第9階層"
147
 
148
+ #: ps_auto_sitemap/ps_auto_sitemap.php:360
149
  msgid "level 10"
150
  msgstr "第10階層"
151
 
152
+ #: ps-auto-sitemap/ps_auto_sitemap.php:365
153
  msgid "Display first"
154
  msgstr "先に出力するリスト"
155
 
156
+ #: ps-auto-sitemap/ps_auto_sitemap.php:368
157
  msgid "Post"
158
  msgstr "投稿"
159
 
160
+ #: ps-auto-sitemap/ps_auto_sitemap.php:370
161
  msgid "Page"
162
  msgstr "ページ"
163
 
164
+ #: ps-auto-sitemap/ps_auto_sitemap.php:374
165
  msgid "Excluded categories"
166
  msgstr "除外カテゴリ"
167
 
168
+ #: ps-auto-sitemap/ps_auto_sitemap.php:376
169
  msgid "* Please input category ID of exclude categories. (Separated by comma)"
170
  msgstr "* 出力しないカテゴリのIDを入力してください。(複数の場合はカンマ区切り)"
171
 
172
+ #: ps-auto-sitemap/ps_auto_sitemap.php:380
173
  msgid "Exclude posts"
174
  msgstr "除外記事"
175
 
176
+ #: ps-auto-sitemap/ps_auto_sitemap.php:382
177
  msgid "* Please input post ID of exclude posts. (Separated by comma)"
178
  msgstr "* 出力しない記事のIDを入力してください。(複数の場合はカンマ区切り)"
179
 
180
+ #: ps-auto-sitemap/ps_auto_sitemap.php:386
181
  msgid "Select style"
182
  msgstr "スタイルの変更"
183
 
184
+ #: ps-auto-sitemap/ps_auto_sitemap.php:389
185
  msgid "no style"
186
  msgstr "スタイルなし"
187
 
188
+ #: ps-auto-sitemap/ps_auto_sitemap.php:397
189
+ msgid "Using cache"
190
+ msgstr "キャッシュの使用"
191
+
192
+ #: ps-auto-sitemap/ps_auto_sitemap.php:398
193
+ msgid "use"
194
+ msgstr "使用する"
195
+
196
+ #: ps-auto-sitemap/ps_auto_sitemap.php:401
197
  msgid "Hide developper link"
198
  msgstr "制作者リンクの表示"
199
 
200
+ #: ps-auto-sitemap/ps_auto_sitemap.php:402
201
  msgid "Hide"
202
  msgstr "非表示"
203
 
204
+ #: ps-auto-sitemap/ps_auto_sitemap.php:410
 
 
 
 
205
  msgid "Usage"
206
  msgstr "ご利用方法"
207
 
208
+ #: ps-auto-sitemap/ps_auto_sitemap.php:412
209
  msgid "Post a page that will use as the sitemap page."
210
  msgstr "サイトマップを表示させたい記事を作成します。"
211
 
212
+ #: ps-auto-sitemap/ps_auto_sitemap.php:413
213
  msgid "Insert following code in the content area. (<strong>Use HTML mode</strong>)"
214
  msgstr "作成した記事のcontent部分に、<strong>HTMLモードで</strong>以下のコードを入力します。"
215
 
216
+ #: ps-auto-sitemap/ps_auto_sitemap.php:415
217
  msgid "Define the sitemap's ID at \"<strong>PostID of the sitemap</strong>\" field of the setings."
218
  msgstr "記事編集画面で記事ID(アドレスバーの &amp;post=nn )を確認し、『サイトマップを表示する記事』欄に指定します。"
219
 
language/ps_auto_sitemap.pot CHANGED
@@ -1,20 +1,19 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: PS Auto Sitemap\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: \n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=\n"
11
- "Content-Transfer-Encoding: \n"
12
  "X-Poedit-Language: \n"
13
  "X-Poedit-Country: \n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
- "X-Poedit-Basepath: \n"
17
- "X-Poedit-SearchPath-0: \n"
18
 
19
  #: ps_auto_sitemap.php:16
20
  msgid "Simple"
@@ -56,144 +55,165 @@ msgstr ""
56
  msgid "Index"
57
  msgstr ""
58
 
59
- #: ps_auto_sitemap/ps_auto_sitemap.php:259
 
 
 
 
 
 
 
 
60
  msgid "The settings of PS Auto Sitemap has changed successfully."
61
  msgstr ""
62
 
63
- #: ps_auto_sitemap/ps_auto_sitemap.php:263
64
  msgid "The settings has not been changed. There were no changes or failed to update the data base."
65
  msgstr ""
66
 
67
- #: ps_auto_sitemap/ps_auto_sitemap.php:270
68
- msgid "Display post tree"
 
 
 
 
69
  msgstr ""
70
 
71
- #: ps_auto_sitemap/ps_auto_sitemap.php:271
72
- #: ps_auto_sitemap/ps_auto_sitemap.php:275
 
73
  msgid "Display"
74
  msgstr ""
75
 
76
- #: ps_auto_sitemap/ps_auto_sitemap.php:274
 
 
 
 
77
  msgid "Display page tree"
78
  msgstr ""
79
 
80
- #: ps_auto_sitemap/ps_auto_sitemap.php:278
81
  msgid "PostID of the sitemap"
82
  msgstr ""
83
 
84
- #: ps_auto_sitemap/ps_auto_sitemap.php:280
85
  msgid "* Please input display sitemap post's ID."
86
  msgstr ""
87
 
88
- #: ps_auto_sitemap/ps_auto_sitemap.php:284
89
  msgid "Depth level"
90
  msgstr ""
91
 
92
- #: ps_auto_sitemap/ps_auto_sitemap.php:287
93
  msgid "no limit"
94
  msgstr ""
95
 
96
- #: ps_auto_sitemap/ps_auto_sitemap.php:288
97
  msgid "level 1"
98
  msgstr ""
99
 
100
- #: ps_auto_sitemap/ps_auto_sitemap.php:289
101
  msgid "level 2"
102
  msgstr ""
103
 
104
- #: ps_auto_sitemap/ps_auto_sitemap.php:290
105
  msgid "level 3"
106
  msgstr ""
107
 
108
- #: ps_auto_sitemap/ps_auto_sitemap.php:291
109
  msgid "level 4"
110
  msgstr ""
111
 
112
- #: ps_auto_sitemap/ps_auto_sitemap.php:292
113
  msgid "level 5"
114
  msgstr ""
115
 
116
- #: ps_auto_sitemap/ps_auto_sitemap.php:293
117
  msgid "level 6"
118
  msgstr ""
119
 
120
- #: ps_auto_sitemap/ps_auto_sitemap.php:294
121
  msgid "level 7"
122
  msgstr ""
123
 
124
- #: ps_auto_sitemap/ps_auto_sitemap.php:295
125
  msgid "level 8"
126
  msgstr ""
127
 
128
- #: ps_auto_sitemap/ps_auto_sitemap.php:296
129
  msgid "level 9"
130
  msgstr ""
131
 
132
- #: ps_auto_sitemap/ps_auto_sitemap.php:297
133
  msgid "level 10"
134
  msgstr ""
135
 
136
- #: ps_auto_sitemap/ps_auto_sitemap.php:302
137
  msgid "Display first"
138
  msgstr ""
139
 
140
- #: ps_auto_sitemap/ps_auto_sitemap.php:305
141
  msgid "Post"
142
  msgstr ""
143
 
144
- #: ps_auto_sitemap/ps_auto_sitemap.php:307
145
  msgid "Page"
146
  msgstr ""
147
 
148
- #: ps_auto_sitemap/ps_auto_sitemap.php:311
149
  msgid "Excluded categories"
150
  msgstr ""
151
 
152
- #: ps_auto_sitemap/ps_auto_sitemap.php:313
153
  msgid "* Please input category ID of exclude categories. (Separated by comma)"
154
  msgstr ""
155
 
156
- #: ps_auto_sitemap/ps_auto_sitemap.php:317
157
  msgid "Exclude posts"
158
  msgstr ""
159
 
160
- #: ps_auto_sitemap/ps_auto_sitemap.php:319
161
  msgid "* Please input post ID of exclude posts. (Separated by comma)"
162
  msgstr ""
163
 
164
- #: ps_auto_sitemap/ps_auto_sitemap.php:323
165
  msgid "Select style"
166
  msgstr ""
167
 
168
- #: ps_auto_sitemap/ps_auto_sitemap.php:326
169
  msgid "no style"
170
  msgstr ""
171
 
172
- #: ps_auto_sitemap/ps_auto_sitemap.php:334
173
- msgid "Hide developper link"
174
  msgstr ""
175
 
176
- #: ps_auto_sitemap/ps_auto_sitemap.php:335
177
- msgid "Hide"
178
  msgstr ""
179
 
180
- #: ps_auto_sitemap/ps_auto_sitemap.php:339
181
- msgid "Save Changes"
 
 
 
 
182
  msgstr ""
183
 
184
- #: ps_auto_sitemap/ps_auto_sitemap.php:343
185
  msgid "Usage"
186
  msgstr ""
187
 
188
- #: ps_auto_sitemap/ps_auto_sitemap.php:345
189
  msgid "Post a page that will use as the sitemap page."
190
  msgstr ""
191
 
192
- #: ps_auto_sitemap/ps_auto_sitemap.php:346
193
  msgid "Insert following code in the content area. (<strong>Use HTML mode</strong>)"
194
  msgstr ""
195
 
196
- #: ps_auto_sitemap/ps_auto_sitemap.php:348
197
  msgid "Define the sitemap's ID at \"<strong>PostID of the sitemap</strong>\" field of the setings."
198
  msgstr ""
199
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: PS Auto Sitemap 1.1.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-01-19 15:45+0900\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-Language: \n"
13
  "X-Poedit-Country: \n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
  "X-Poedit-KeywordsList: __;_e\n"
16
+ "X-Poedit-SearchPath-0: ps_auto_sitemap\n"
 
17
 
18
  #: ps_auto_sitemap.php:16
19
  msgid "Simple"
55
  msgid "Index"
56
  msgstr ""
57
 
58
+ #: ps_auto_sitemap.php:26
59
+ msgid "Urban"
60
+ msgstr ""
61
+
62
+ #: ps_auto_sitemap.php:27
63
+ msgid "Under score"
64
+ msgstr ""
65
+
66
+ #: ps-auto-sitemap/ps_auto_sitemap.php:312
67
  msgid "The settings of PS Auto Sitemap has changed successfully."
68
  msgstr ""
69
 
70
+ #: ps-auto-sitemap/ps_auto_sitemap.php:316
71
  msgid "The settings has not been changed. There were no changes or failed to update the data base."
72
  msgstr ""
73
 
74
+ #: ps-auto-sitemap/ps_auto_sitemap.php:321
75
+ msgid "PS Auto Sitemap isn't using cache system currently, because cache or parent directorty isn't writable. Please check owner and permission of upload directory."
76
+ msgstr ""
77
+
78
+ #: ps-auto-sitemap/ps_auto_sitemap.php:329
79
+ msgid "Display home list"
80
  msgstr ""
81
 
82
+ #: ps-auto-sitemap/ps_auto_sitemap.php:330
83
+ #: ps-auto-sitemap/ps_auto_sitemap.php:334
84
+ #: ps-auto-sitemap/ps_auto_sitemap.php:338
85
  msgid "Display"
86
  msgstr ""
87
 
88
+ #: ps-auto-sitemap/ps_auto_sitemap.php:333
89
+ msgid "Display post tree"
90
+ msgstr ""
91
+
92
+ #: ps-auto-sitemap/ps_auto_sitemap.php:337
93
  msgid "Display page tree"
94
  msgstr ""
95
 
96
+ #: ps-auto-sitemap/ps_auto_sitemap.php:341
97
  msgid "PostID of the sitemap"
98
  msgstr ""
99
 
100
+ #: ps-auto-sitemap/ps_auto_sitemap.php:343
101
  msgid "* Please input display sitemap post's ID."
102
  msgstr ""
103
 
104
+ #: ps-auto-sitemap/ps_auto_sitemap.php:347
105
  msgid "Depth level"
106
  msgstr ""
107
 
108
+ #: ps-auto-sitemap/ps_auto_sitemap.php:350
109
  msgid "no limit"
110
  msgstr ""
111
 
112
+ #: ps_auto_sitemap/ps_auto_sitemap.php:351
113
  msgid "level 1"
114
  msgstr ""
115
 
116
+ #: ps_auto_sitemap/ps_auto_sitemap.php:352
117
  msgid "level 2"
118
  msgstr ""
119
 
120
+ #: ps_auto_sitemap/ps_auto_sitemap.php:353
121
  msgid "level 3"
122
  msgstr ""
123
 
124
+ #: ps_auto_sitemap/ps_auto_sitemap.php:354
125
  msgid "level 4"
126
  msgstr ""
127
 
128
+ #: ps_auto_sitemap/ps_auto_sitemap.php:355
129
  msgid "level 5"
130
  msgstr ""
131
 
132
+ #: ps_auto_sitemap/ps_auto_sitemap.php:356
133
  msgid "level 6"
134
  msgstr ""
135
 
136
+ #: ps_auto_sitemap/ps_auto_sitemap.php:357
137
  msgid "level 7"
138
  msgstr ""
139
 
140
+ #: ps_auto_sitemap/ps_auto_sitemap.php:358
141
  msgid "level 8"
142
  msgstr ""
143
 
144
+ #: ps_auto_sitemap/ps_auto_sitemap.php:359
145
  msgid "level 9"
146
  msgstr ""
147
 
148
+ #: ps_auto_sitemap/ps_auto_sitemap.php:360
149
  msgid "level 10"
150
  msgstr ""
151
 
152
+ #: ps-auto-sitemap/ps_auto_sitemap.php:365
153
  msgid "Display first"
154
  msgstr ""
155
 
156
+ #: ps-auto-sitemap/ps_auto_sitemap.php:368
157
  msgid "Post"
158
  msgstr ""
159
 
160
+ #: ps-auto-sitemap/ps_auto_sitemap.php:370
161
  msgid "Page"
162
  msgstr ""
163
 
164
+ #: ps-auto-sitemap/ps_auto_sitemap.php:374
165
  msgid "Excluded categories"
166
  msgstr ""
167
 
168
+ #: ps-auto-sitemap/ps_auto_sitemap.php:376
169
  msgid "* Please input category ID of exclude categories. (Separated by comma)"
170
  msgstr ""
171
 
172
+ #: ps-auto-sitemap/ps_auto_sitemap.php:380
173
  msgid "Exclude posts"
174
  msgstr ""
175
 
176
+ #: ps-auto-sitemap/ps_auto_sitemap.php:382
177
  msgid "* Please input post ID of exclude posts. (Separated by comma)"
178
  msgstr ""
179
 
180
+ #: ps-auto-sitemap/ps_auto_sitemap.php:386
181
  msgid "Select style"
182
  msgstr ""
183
 
184
+ #: ps-auto-sitemap/ps_auto_sitemap.php:389
185
  msgid "no style"
186
  msgstr ""
187
 
188
+ #: ps-auto-sitemap/ps_auto_sitemap.php:397
189
+ msgid "Using cache"
190
  msgstr ""
191
 
192
+ #: ps-auto-sitemap/ps_auto_sitemap.php:398
193
+ msgid "use"
194
  msgstr ""
195
 
196
+ #: ps-auto-sitemap/ps_auto_sitemap.php:401
197
+ msgid "Hide developper link"
198
+ msgstr ""
199
+
200
+ #: ps-auto-sitemap/ps_auto_sitemap.php:402
201
+ msgid "Hide"
202
  msgstr ""
203
 
204
+ #: ps-auto-sitemap/ps_auto_sitemap.php:410
205
  msgid "Usage"
206
  msgstr ""
207
 
208
+ #: ps-auto-sitemap/ps_auto_sitemap.php:412
209
  msgid "Post a page that will use as the sitemap page."
210
  msgstr ""
211
 
212
+ #: ps-auto-sitemap/ps_auto_sitemap.php:413
213
  msgid "Insert following code in the content area. (<strong>Use HTML mode</strong>)"
214
  msgstr ""
215
 
216
+ #: ps-auto-sitemap/ps_auto_sitemap.php:415
217
  msgid "Define the sitemap's ID at \"<strong>PostID of the sitemap</strong>\" field of the setings."
218
  msgstr ""
219
 
ps_auto_sitemap.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: PS Auto Sitemap
4
  Plugin URI: http://www.web-strategy.jp/wp_plugin/ps_auto_sitemap/
5
  Description: Auto generator of a customizable and designed sitemap page.
6
  Author: Hitoshi Omagari
7
- Version: 1.0.7
8
  Author URI: http://www.web-strategy.jp/
9
  */
10
 
@@ -22,8 +22,12 @@ class ps_auto_sitemap {
22
  'music' => 'Music',
23
  'arrows' => 'Arrows',
24
  'business' => 'Business',
25
- 'index' => 'Index'
 
 
26
  );
 
 
27
 
28
 
29
  function ps_auto_sitemap() {
@@ -34,6 +38,10 @@ class ps_auto_sitemap {
34
  function __construct() {
35
  global $wp_version;
36
  $this->wp_version = $wp_version;
 
 
 
 
37
  add_filter( 'the_content', array( &$this, 'replace_sitemap_content') );
38
  add_action( 'admin_menu', array( &$this, 'add_sitemap_setting_menu') );
39
  add_action( 'wp_head', array( &$this, 'print_sitemap_prepare_css' ) );
@@ -43,56 +51,82 @@ class ps_auto_sitemap {
43
  add_action( 'admin_head', array( &$this, 'print_sitemap_admin_css' ) );
44
  }
45
  }
 
 
 
 
 
 
 
 
 
46
 
47
 
48
  function replace_sitemap_content( $content ) {
49
  global $post;
50
 
51
- $branches = array();
52
- $sitemap_option_data = get_option( 'ps_sitemap' );
 
 
 
 
 
 
 
 
53
 
54
- if ( $sitemap_option_data['post_tree'] == '1' ) {
55
- $category_tree = $this->make_category_tree( $sitemap_option_data['ex_cat_ids'] );
56
- $post_list = $this->make_post_list( $sitemap_option_data['ex_post_ids'], $category_tree, $sitemap_option_data['disp_level'], 1, false );
 
 
 
57
  } else {
58
  $post_list = '';
59
  }
60
 
61
- if ( $sitemap_option_data['post_id'] && $post->ID == $sitemap_option_data['post_id'] ) {
62
- $page_on_front = get_option( 'page_on_front' );
63
- $ex_pages = $sitemap_option_data['ex_post_ids'];
64
- if ( get_option( 'show_on_front') == 'page' && $page_on_front ) {
65
- if ( $ex_pages ) {
66
- $ex_pages .= ',' . $page_on_front;
67
- } else {
68
- $ex_pages = $page_on_front;
69
- }
70
  }
71
- $sitemap_content = "<ul id=\"sitemap_list\" class=\"sitemap_disp_level_" . $sitemap_option_data['disp_level'] . "\">\n";
 
 
72
  $sitemap_content .= '<li class="home-item"><a href="' . get_bloginfo( 'url' ) . '" title="' . get_bloginfo( 'name' ) . '">' . wp_specialchars( get_bloginfo( 'name' ) ) . "</a></li>\n";
73
- if ( $sitemap_option_data['disp_first'] == 'post' ) {
74
- $sitemap_content .= $post_list;
75
- if ( $sitemap_option_data['page_tree'] == '1' ) {
76
- $sitemap_content .= wp_list_pages( 'title_li=&echo=0&exclude=' . $ex_pages . '&depth=' . $sitemap_option_data['disp_level'] );
77
- }
78
- } else {
79
- if ( $sitemap_option_data['page_tree'] == '1' ) {
80
- $sitemap_content .= wp_list_pages( 'title_li=&echo=0&exclude=' . $ex_pages . '&depth=' . $sitemap_option_data['disp_level'] );
81
- }
82
- $sitemap_content .= $post_list;
83
  }
84
-
85
- $sitemap_content .= "</ul>\n";
86
- if ( ! $sitemap_option_data['suppress_link'] ) {
87
- $sitemap_content .= '<address style="text-align: right; font-size: x-small;">Powered by <a href="http://www.web-strategy.jp/" target="_blank">Prime Strategy Co.,LTD.</a></address>' . "\n";
88
  }
89
- $content = preg_replace( '/(<p><!-- SITEMAP CONTENT REPLACE POINT --><\/p>|<!-- SITEMAP CONTENT REPLACE POINT -->)/', $sitemap_content, $content, 1 );
90
  }
91
- return $content;
 
 
 
 
 
 
 
 
 
 
92
  }
93
 
94
 
95
  function make_category_tree( $ex_cat_ids ) {
 
 
96
  $categories = get_categories( 'exclude=' . $ex_cat_ids );
97
 
98
  foreach( $categories as $cat ) {
@@ -157,8 +191,8 @@ WHERE `posts`.`post_status` = 'publish'
157
  AND `posts`.`post_type` = 'post'
158
  AND `posts`.`ID` NOT IN ( $ex_post_ids )
159
  AND `terms`.`term_id` = '$cat_id'
160
- ORDER BY `posts`.`post_date`
161
- DESC";
162
  $category_posts = $wpdb->get_results( $query, ARRAY_A );
163
  if ( $category_posts ) {
164
  $post_list .= "\n<ul>\n";
@@ -205,20 +239,17 @@ DESC";
205
  if ( file_exists( $lang_file ) ) {
206
  load_textdomain( 'ps_auto_sitemap', $lang_file );
207
  }
208
- $sitemap_option_data = get_option( 'ps_sitemap' );
209
- if ( ! $sitemap_option_data ) {
210
- $this->set_default_options();
211
- $sitemap_option_data = get_option( 'ps_sitemap' );
212
- }
213
 
214
  if( $_POST['_wpnonce'] ) {
215
  check_admin_referer();
216
- $sitemap_option_keys = array( 'post_tree', 'page_tree', 'post_id', 'disp_level', 'disp_first', 'ex_cat_ids', 'ex_post_ids', 'prepared_style', 'suppress_link' );
217
 
218
  foreach ( $sitemap_option_keys as $key ) {
219
  switch ( $key ) {
 
220
  case 'post_tree' :
221
  case 'page_tree' :
 
222
  case 'suppress_link' :
223
  if ( ! $_POST['ps_sitemap_' . $key] ) {
224
  $_POST['ps_sitemap_' . $key] = '';
@@ -265,9 +296,12 @@ DESC";
265
  break;
266
  default :
267
  }
268
- $sitemap_option_data[$key] = $_POST['ps_sitemap_' . $key];
 
 
 
 
269
  }
270
- $ret = update_option( 'ps_sitemap', $sitemap_option_data );
271
  }
272
  ?>
273
  <div class=wrap>
@@ -281,21 +315,31 @@ DESC";
281
  <div id="notice" class="error">
282
  <p><?php _e('The settings has not been changed. There were no changes or failed to update the data base.', 'ps_auto_sitemap' );?></p>
283
  </div>
 
 
 
 
 
 
284
  <?php } ?>
285
  <form method="post" action="">
286
  <?php wp_nonce_field(); ?>
287
  <table class="form-table">
 
 
 
 
288
  <tr>
289
  <th><?php _e( 'Display post tree', 'ps_auto_sitemap' ); ?></th>
290
- <td><input type="checkbox" name="ps_sitemap_post_tree" id="ps_sitemap_post_tree" value="1"<?php if ( $sitemap_option_data['post_tree'] == '1' ) : ?> checked="checked"<?php endif; ?> /> <label for="ps_sitemap_post_tree"><?php _e( 'Display', 'ps_auto_sitemap' ); ?></label></td>
291
  </tr>
292
  <tr>
293
  <th><?php _e( 'Display page tree', 'ps_auto_sitemap' ); ?></th>
294
- <td><input type="checkbox" name="ps_sitemap_page_tree" id="ps_sitemap_page_tree" value="1"<?php if ( $sitemap_option_data['page_tree'] == '1' ) : ?> checked="checked"<?php endif; ?> /> <label for="ps_sitemap_page_tree"><?php _e( 'Display', 'ps_auto_sitemap' ); ?></label></td>
295
  </tr>
296
  <tr>
297
  <th><?php _e( 'PostID of the sitemap', 'ps_auto_sitemap' ); ?></th>
298
- <td><input type="text" name="ps_sitemap_post_id" id="ps_sitemap_post_id" value="<?php echo $sitemap_option_data['post_id']; ?>" ><br />
299
  <?php _e( '* Please input display sitemap post\'s ID.', 'ps_auto_sitemap' ); ?>
300
  </td>
301
  </tr>
@@ -303,38 +347,38 @@ DESC";
303
  <th><?php _e( 'Depth level', 'ps_auto_sitemap' ); ?></th>
304
  <td>
305
  <select name="ps_sitemap_disp_level" id="ps_sitemap_disp_level">
306
- <option value="0"<?php if ( $sitemap_option_data['disp_level'] == '0' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'no limit', 'ps_auto_sitemap' ); ?></option>
307
- <option value="1"<?php if ( $sitemap_option_data['disp_level'] == '1' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 1', 'ps_auto_sitemap' ); ?></option>
308
- <option value="2"<?php if ( $sitemap_option_data['disp_level'] == '2' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 2', 'ps_auto_sitemap' ); ?></option>
309
- <option value="3"<?php if ( $sitemap_option_data['disp_level'] == '3' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 3', 'ps_auto_sitemap' ); ?></option>
310
- <option value="4"<?php if ( $sitemap_option_data['disp_level'] == '4' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 4', 'ps_auto_sitemap' ); ?></option>
311
- <option value="5"<?php if ( $sitemap_option_data['disp_level'] == '5' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 5', 'ps_auto_sitemap' ); ?></option>
312
- <option value="6"<?php if ( $sitemap_option_data['disp_level'] == '6' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 6', 'ps_auto_sitemap' ); ?></option>
313
- <option value="7"<?php if ( $sitemap_option_data['disp_level'] == '7' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 7', 'ps_auto_sitemap' ); ?></option>
314
- <option value="8"<?php if ( $sitemap_option_data['disp_level'] == '8' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 8', 'ps_auto_sitemap' ); ?></option>
315
- <option value="9"<?php if ( $sitemap_option_data['disp_level'] == '9' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 9', 'ps_auto_sitemap' ); ?></option>
316
- <option value="10"<?php if ( $sitemap_option_data['disp_level'] == '10' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 10', 'ps_auto_sitemap' ); ?></option>
317
  </select>
318
  </td>
319
  </tr>
320
  <tr>
321
  <th><?php _e( 'Display first', 'ps_auto_sitemap' ); ?></th>
322
  <td>
323
- <input type="radio" name="ps_sitemap_disp_first" id="ps_sitemap_disp_first_post" value="post"<?php if ( $sitemap_option_data['disp_first'] == 'post' ) : ?> checked="checked"<?php endif; ?> />
324
  <label for="ps_sitemap_disp_first_post"><?php _e( 'Post', 'ps_auto_sitemap' ); ?></label>
325
- <input type="radio" name="ps_sitemap_disp_first" id="ps_sitemap_disp_first_page" value="page"<?php if ( $sitemap_option_data['disp_first'] == 'page' ) : ?> checked="checked"<?php endif; ?> />
326
  <label for="ps_sitemap_disp_first_page"><?php _e( 'Page', 'ps_auto_sitemap' ); ?></label>
327
  </td>
328
  </tr>
329
  <tr>
330
  <th><?php _e( 'Excluded categories', 'ps_auto_sitemap' ); ?></th>
331
- <td><input type="text" name="ps_sitemap_ex_cat_ids" id="ps_sitemap_ex_cat_ids" value="<?php echo $sitemap_option_data['ex_cat_ids']; ?>" ><br />
332
  <?php _e( '* Please input category ID of exclude categories. (Separated by comma)', 'ps_auto_sitemap' ); ?>
333
  </td>
334
  </tr>
335
  <tr>
336
  <th><?php _e( 'Exclude posts', 'ps_auto_sitemap' ); ?></th>
337
- <td><input type="text" name="ps_sitemap_ex_post_ids" id="ps_sitemap_ex_post_ids" value="<?php echo $sitemap_option_data['ex_post_ids']; ?>" ><br />
338
  <?php _e( '* Please input post ID of exclude posts. (Separated by comma)', 'ps_auto_sitemap' ); ?>
339
  </td>
340
  </tr>
@@ -342,20 +386,24 @@ DESC";
342
  <th><?php _e( 'Select style', 'ps_auto_sitemap' ); ?></th>
343
  <td>
344
  <select name="ps_sitemap_prepared_style" id="ps_sitemap_prepared_style">
345
- <option value=""<?php if ( $sitemap_option_data['prepared_style'] == '' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'no style', 'ps_auto_sitemap' ); ?></option>
346
  <?php foreach ( $this->sitemap_prepared_styles as $style_code => $style_name ) : ?>
347
- <option value="<?php echo $style_code ?>"<?php if ( $sitemap_option_data['prepared_style'] == $style_code ) : ?> selected="selected"<?php endif; ?>><?php _e( $style_name, 'ps_auto_sitemap' ); ?></option>
348
  <?php endforeach; ?>
349
  </select>
350
  </td>
351
  </tr>
 
 
 
 
352
  <tr>
353
  <th><?php _e( 'Hide developper link', 'ps_auto_sitemap' ); ?></th>
354
- <td><input type="checkbox" name="ps_sitemap_suppress_link" id="ps_sitemap_suppress_link" value="1"<?php if ( $sitemap_option_data['suppress_link'] == '1' ) : ?> checked="checked"<?php endif; ?> /> <label for="ps_sitemap_suppress_link"><?php _e( 'Hide', 'ps_auto_sitemap' ); ?></label></td>
355
  </tr>
356
  </table>
357
  <div class="ps_sitemap_submit_buttons">
358
- <input type="submit" name="ps_sitemap_submit" class="button-primary" value="<?php _e( 'Save Changes', 'ps_auto_sitemap' ); ?>" />
359
  </div>
360
  </form>
361
  <div class="ps_sitemap_installation">
@@ -387,12 +435,12 @@ DESC";
387
  function print_sitemap_prepare_css() {
388
  if ( is_singular() ) {
389
  global $post;
390
- $sitemap_option_data = get_option( 'ps_sitemap' );
391
- if( $post->ID == $sitemap_option_data['post_id'] && $sitemap_option_data['prepared_style'] != '' ) {
392
  if ( defined( 'WP_PLUGIN_URL' ) ) {
393
- echo '<link rel="stylesheet" href="' . WP_PLUGIN_URL . str_replace( str_replace( '\\', '/', WP_PLUGIN_DIR ), '', str_replace( '\\', '/', dirname( __file__ ) ) ) . '/css/ps_auto_sitemap_' . $sitemap_option_data['prepared_style'] . '.css" type="text/css" media="all" />' . "\n";
394
  } else {
395
- echo '<link rel="stylesheet" href="' . get_option('siteurl') . '/' . str_replace( ABSPATH, '', dirname( __file__ ) ) . '/css/ps_auto_sitemap_' . $sitemap_option_data['prepared_style'] . '.css" type="text/css" media="all" />' . "\n";
396
  }
397
  }
398
  }
@@ -421,15 +469,59 @@ DESC";
421
 
422
 
423
  function set_default_options() {
424
- $sitemap_option_data['post_tree'] = '1';
425
- $sitemap_option_data['page_tree'] = '1';
426
- $sitemap_option_data['post_id'] = '';
427
- $sitemap_option_data['disp_level'] = '0';
428
- $sitemap_option_data['disp_first'] = 'post';
429
- $sitemap_option_data['ex_cat_ids'] = '';
430
- $sitemap_option_data['ex_post_id'] = '';
431
- $sitemap_option_data['prepared_style'] = '';
432
- $sitemap_option_data['suppress_link'] = '0';
433
- update_option( 'ps_sitemap', $sitemap_option_data );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
434
  }
 
 
435
  }
4
  Plugin URI: http://www.web-strategy.jp/wp_plugin/ps_auto_sitemap/
5
  Description: Auto generator of a customizable and designed sitemap page.
6
  Author: Hitoshi Omagari
7
+ Version: 1.1.0
8
  Author URI: http://www.web-strategy.jp/
9
  */
10
 
22
  'music' => 'Music',
23
  'arrows' => 'Arrows',
24
  'business' => 'Business',
25
+ 'index' => 'Index',
26
+ 'urban' => 'Urban',
27
+ 'under_score' => 'Under score'
28
  );
29
+
30
+ var $option;
31
 
32
 
33
  function ps_auto_sitemap() {
38
  function __construct() {
39
  global $wp_version;
40
  $this->wp_version = $wp_version;
41
+
42
+ add_action( 'init', array( &$this, 'ps_auto_sitemap_init') );
43
+ add_action( 'publish_post', array( &$this, 'delete_sitemap_cache') );
44
+ add_action( 'publish_page', array( &$this, 'delete_sitemap_cache') );
45
  add_filter( 'the_content', array( &$this, 'replace_sitemap_content') );
46
  add_action( 'admin_menu', array( &$this, 'add_sitemap_setting_menu') );
47
  add_action( 'wp_head', array( &$this, 'print_sitemap_prepare_css' ) );
51
  add_action( 'admin_head', array( &$this, 'print_sitemap_admin_css' ) );
52
  }
53
  }
54
+
55
+
56
+ function ps_auto_sitemap_init() {
57
+ $this->option = get_option( 'ps_sitemap' );
58
+ if ( ! $this->option ) {
59
+ $this->set_default_options();
60
+ $this->option = get_option( 'ps_sitemap' );
61
+ }
62
+ }
63
 
64
 
65
  function replace_sitemap_content( $content ) {
66
  global $post;
67
 
68
+ if ( $this->option['post_id'] && $post->ID == $this->option['post_id'] ) {
69
+ if ( $cache_dir = $this->check_cache_dir() && file_exists( $cache_dir . '/site_map_cache.html' ) && $this->option['use_cache'] ) {
70
+ $sitemap_content = file_get_contents( $cache_dir . '/site_map_cache.html' );
71
+ } else {
72
+ $sitemap_content = $this->create_sitemap_content();
73
+ }
74
+ $content = preg_replace( '/(<p><!-- SITEMAP CONTENT REPLACE POINT --><\/p>|<!-- SITEMAP CONTENT REPLACE POINT -->)/', $sitemap_content, $content, 1 );
75
+ }
76
+ return $content;
77
+ }
78
 
79
+
80
+ function create_sitemap_content() {
81
+
82
+ if ( $this->option['post_tree'] == '1' ) {
83
+ $category_tree = $this->make_category_tree( $this->option['ex_cat_ids'] );
84
+ $post_list = $this->make_post_list( $this->option['ex_post_ids'], $category_tree, $this->option['disp_level'], 1, false );
85
  } else {
86
  $post_list = '';
87
  }
88
 
89
+ $page_on_front = get_option( 'page_on_front' );
90
+ $ex_pages = $this->option['ex_post_ids'];
91
+ if ( get_option( 'show_on_front') == 'page' && $page_on_front ) {
92
+ if ( $ex_pages ) {
93
+ $ex_pages .= ',' . $page_on_front;
94
+ } else {
95
+ $ex_pages = $page_on_front;
 
 
96
  }
97
+ }
98
+ $sitemap_content = "<ul id=\"sitemap_list\" class=\"sitemap_disp_level_" . $this->option['disp_level'] . "\">\n";
99
+ if ($this->option['home_list'] ) {
100
  $sitemap_content .= '<li class="home-item"><a href="' . get_bloginfo( 'url' ) . '" title="' . get_bloginfo( 'name' ) . '">' . wp_specialchars( get_bloginfo( 'name' ) ) . "</a></li>\n";
101
+ }
102
+ if ( $this->option['disp_first'] == 'post' ) {
103
+ $sitemap_content .= $post_list;
104
+ if ( $this->option['page_tree'] == '1' ) {
105
+ $sitemap_content .= wp_list_pages( 'title_li=&echo=0&exclude=' . $ex_pages . '&depth=' . $this->option['disp_level'] );
 
 
 
 
 
106
  }
107
+ } else {
108
+ if ( $this->option['page_tree'] == '1' ) {
109
+ $sitemap_content .= wp_list_pages( 'title_li=&echo=0&exclude=' . $ex_pages . '&depth=' . $this->option['disp_level'] );
 
110
  }
111
+ $sitemap_content .= $post_list;
112
  }
113
+
114
+ $sitemap_content .= "</ul>\n";
115
+ if ( ! $this->option['suppress_link'] ) {
116
+ $sitemap_content .= '<address style="text-align: right; font-size: x-small;">Powered by <a href="http://www.web-strategy.jp/" target="_blank">Prime Strategy Co.,LTD.</a></address>' . "\n";
117
+ }
118
+
119
+ if ( ( $cache_dir = $this->check_cache_dir() ) && $this->option['use_cache'] ) {
120
+ $this->check_htaccess( $cache_dir );
121
+ file_put_contents( $cache_dir . '/site_map_cache.html', $sitemap_content );
122
+ }
123
+ return $sitemap_content;
124
  }
125
 
126
 
127
  function make_category_tree( $ex_cat_ids ) {
128
+
129
+ $branches = array();
130
  $categories = get_categories( 'exclude=' . $ex_cat_ids );
131
 
132
  foreach( $categories as $cat ) {
191
  AND `posts`.`post_type` = 'post'
192
  AND `posts`.`ID` NOT IN ( $ex_post_ids )
193
  AND `terms`.`term_id` = '$cat_id'
194
+ GROUP BY `posts`.`ID`
195
+ ORDER BY `posts`.`post_date` DESC";
196
  $category_posts = $wpdb->get_results( $query, ARRAY_A );
197
  if ( $category_posts ) {
198
  $post_list .= "\n<ul>\n";
239
  if ( file_exists( $lang_file ) ) {
240
  load_textdomain( 'ps_auto_sitemap', $lang_file );
241
  }
 
 
 
 
 
242
 
243
  if( $_POST['_wpnonce'] ) {
244
  check_admin_referer();
245
+ $sitemap_option_keys = array( 'home_list', 'post_tree', 'page_tree', 'post_id', 'disp_level', 'disp_first', 'ex_cat_ids', 'ex_post_ids', 'prepared_style', 'use_cache', 'suppress_link' );
246
 
247
  foreach ( $sitemap_option_keys as $key ) {
248
  switch ( $key ) {
249
+ case 'home_list' :
250
  case 'post_tree' :
251
  case 'page_tree' :
252
+ case 'use_cache' :
253
  case 'suppress_link' :
254
  if ( ! $_POST['ps_sitemap_' . $key] ) {
255
  $_POST['ps_sitemap_' . $key] = '';
296
  break;
297
  default :
298
  }
299
+ $this->option[$key] = $_POST['ps_sitemap_' . $key];
300
+ }
301
+ $ret = update_option( 'ps_sitemap', $this->option );
302
+ if ( $ret ) {
303
+ $this->delete_sitemap_cache();
304
  }
 
305
  }
306
  ?>
307
  <div class=wrap>
315
  <div id="notice" class="error">
316
  <p><?php _e('The settings has not been changed. There were no changes or failed to update the data base.', 'ps_auto_sitemap' );?></p>
317
  </div>
318
+ <?php }
319
+ if ( ( ! $this->check_cache_dir() ) && $this->option['use_cache'] ) { ?>
320
+ <div id="notice" class="error">
321
+ <p><?php _e('PS Auto Sitemap isn\'t using cache system currently, because cache or parent directorty isn\'t writable. Please check owner and permission of upload directory.', 'ps_auto_sitemap' );?></p>
322
+ </div>
323
+
324
  <?php } ?>
325
  <form method="post" action="">
326
  <?php wp_nonce_field(); ?>
327
  <table class="form-table">
328
+ <tr>
329
+ <th><?php _e( 'Display home list', 'ps_auto_sitemap' ); ?></th>
330
+ <td><input type="checkbox" name="ps_sitemap_home_list" id="ps_sitemap_home_list" value="1"<?php if ( $this->option['home_list'] == '1' ) : ?> checked="checked"<?php endif; ?> /> <label for="ps_sitemap_home_list"><?php _e( 'Display', 'ps_auto_sitemap' ); ?></label></td>
331
+ </tr>
332
  <tr>
333
  <th><?php _e( 'Display post tree', 'ps_auto_sitemap' ); ?></th>
334
+ <td><input type="checkbox" name="ps_sitemap_post_tree" id="ps_sitemap_post_tree" value="1"<?php if ( $this->option['post_tree'] == '1' ) : ?> checked="checked"<?php endif; ?> /> <label for="ps_sitemap_post_tree"><?php _e( 'Display', 'ps_auto_sitemap' ); ?></label></td>
335
  </tr>
336
  <tr>
337
  <th><?php _e( 'Display page tree', 'ps_auto_sitemap' ); ?></th>
338
+ <td><input type="checkbox" name="ps_sitemap_page_tree" id="ps_sitemap_page_tree" value="1"<?php if ( $this->option['page_tree'] == '1' ) : ?> checked="checked"<?php endif; ?> /> <label for="ps_sitemap_page_tree"><?php _e( 'Display', 'ps_auto_sitemap' ); ?></label></td>
339
  </tr>
340
  <tr>
341
  <th><?php _e( 'PostID of the sitemap', 'ps_auto_sitemap' ); ?></th>
342
+ <td><input type="text" name="ps_sitemap_post_id" id="ps_sitemap_post_id" value="<?php echo $this->option['post_id']; ?>" ><br />
343
  <?php _e( '* Please input display sitemap post\'s ID.', 'ps_auto_sitemap' ); ?>
344
  </td>
345
  </tr>
347
  <th><?php _e( 'Depth level', 'ps_auto_sitemap' ); ?></th>
348
  <td>
349
  <select name="ps_sitemap_disp_level" id="ps_sitemap_disp_level">
350
+ <option value="0"<?php if ( $this->option['disp_level'] == '0' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'no limit', 'ps_auto_sitemap' ); ?></option>
351
+ <option value="1"<?php if ( $this->option['disp_level'] == '1' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 1', 'ps_auto_sitemap' ); ?></option>
352
+ <option value="2"<?php if ( $this->option['disp_level'] == '2' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 2', 'ps_auto_sitemap' ); ?></option>
353
+ <option value="3"<?php if ( $this->option['disp_level'] == '3' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 3', 'ps_auto_sitemap' ); ?></option>
354
+ <option value="4"<?php if ( $this->option['disp_level'] == '4' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 4', 'ps_auto_sitemap' ); ?></option>
355
+ <option value="5"<?php if ( $this->option['disp_level'] == '5' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 5', 'ps_auto_sitemap' ); ?></option>
356
+ <option value="6"<?php if ( $this->option['disp_level'] == '6' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 6', 'ps_auto_sitemap' ); ?></option>
357
+ <option value="7"<?php if ( $this->option['disp_level'] == '7' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 7', 'ps_auto_sitemap' ); ?></option>
358
+ <option value="8"<?php if ( $this->option['disp_level'] == '8' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 8', 'ps_auto_sitemap' ); ?></option>
359
+ <option value="9"<?php if ( $this->option['disp_level'] == '9' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 9', 'ps_auto_sitemap' ); ?></option>
360
+ <option value="10"<?php if ( $this->option['disp_level'] == '10' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'level 10', 'ps_auto_sitemap' ); ?></option>
361
  </select>
362
  </td>
363
  </tr>
364
  <tr>
365
  <th><?php _e( 'Display first', 'ps_auto_sitemap' ); ?></th>
366
  <td>
367
+ <input type="radio" name="ps_sitemap_disp_first" id="ps_sitemap_disp_first_post" value="post"<?php if ( $this->option['disp_first'] == 'post' ) : ?> checked="checked"<?php endif; ?> />
368
  <label for="ps_sitemap_disp_first_post"><?php _e( 'Post', 'ps_auto_sitemap' ); ?></label>
369
+ <input type="radio" name="ps_sitemap_disp_first" id="ps_sitemap_disp_first_page" value="page"<?php if ( $this->option['disp_first'] == 'page' ) : ?> checked="checked"<?php endif; ?> />
370
  <label for="ps_sitemap_disp_first_page"><?php _e( 'Page', 'ps_auto_sitemap' ); ?></label>
371
  </td>
372
  </tr>
373
  <tr>
374
  <th><?php _e( 'Excluded categories', 'ps_auto_sitemap' ); ?></th>
375
+ <td><input type="text" name="ps_sitemap_ex_cat_ids" id="ps_sitemap_ex_cat_ids" value="<?php echo $this->option['ex_cat_ids']; ?>" ><br />
376
  <?php _e( '* Please input category ID of exclude categories. (Separated by comma)', 'ps_auto_sitemap' ); ?>
377
  </td>
378
  </tr>
379
  <tr>
380
  <th><?php _e( 'Exclude posts', 'ps_auto_sitemap' ); ?></th>
381
+ <td><input type="text" name="ps_sitemap_ex_post_ids" id="ps_sitemap_ex_post_ids" value="<?php echo $this->option['ex_post_ids']; ?>" ><br />
382
  <?php _e( '* Please input post ID of exclude posts. (Separated by comma)', 'ps_auto_sitemap' ); ?>
383
  </td>
384
  </tr>
386
  <th><?php _e( 'Select style', 'ps_auto_sitemap' ); ?></th>
387
  <td>
388
  <select name="ps_sitemap_prepared_style" id="ps_sitemap_prepared_style">
389
+ <option value=""<?php if ( $this->option['prepared_style'] == '' ) : ?> selected="selected"<?php endif; ?>><?php _e( 'no style', 'ps_auto_sitemap' ); ?></option>
390
  <?php foreach ( $this->sitemap_prepared_styles as $style_code => $style_name ) : ?>
391
+ <option value="<?php echo $style_code ?>"<?php if ( $this->option['prepared_style'] == $style_code ) : ?> selected="selected"<?php endif; ?>><?php _e( $style_name, 'ps_auto_sitemap' ); ?></option>
392
  <?php endforeach; ?>
393
  </select>
394
  </td>
395
  </tr>
396
+ <tr>
397
+ <th><?php _e( 'Using cache', 'ps_auto_sitemap' ); ?></th>
398
+ <td><input type="checkbox" name="ps_sitemap_use_cache" id="ps_sitemap_use_cache" value="1"<?php if ( $this->option['use_cache'] == '1' ) : ?> checked="checked"<?php endif; ?> /> <label for="ps_sitemap_use_cache"><?php _e( 'use', 'ps_auto_sitemap' ); ?></label></td>
399
+ </tr>
400
  <tr>
401
  <th><?php _e( 'Hide developper link', 'ps_auto_sitemap' ); ?></th>
402
+ <td><input type="checkbox" name="ps_sitemap_suppress_link" id="ps_sitemap_suppress_link" value="1"<?php if ( $this->option['suppress_link'] == '1' ) : ?> checked="checked"<?php endif; ?> /> <label for="ps_sitemap_suppress_link"><?php _e( 'Hide', 'ps_auto_sitemap' ); ?></label></td>
403
  </tr>
404
  </table>
405
  <div class="ps_sitemap_submit_buttons">
406
+ <input type="submit" name="ps_sitemap_submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
407
  </div>
408
  </form>
409
  <div class="ps_sitemap_installation">
435
  function print_sitemap_prepare_css() {
436
  if ( is_singular() ) {
437
  global $post;
438
+ $option = get_option( 'ps_sitemap' );
439
+ if( $post->ID == $this->option['post_id'] && $this->option['prepared_style'] != '' ) {
440
  if ( defined( 'WP_PLUGIN_URL' ) ) {
441
+ echo '<link rel="stylesheet" href="' . WP_PLUGIN_URL . str_replace( str_replace( '\\', '/', WP_PLUGIN_DIR ), '', str_replace( '\\', '/', dirname( __file__ ) ) ) . '/css/ps_auto_sitemap_' . $this->option['prepared_style'] . '.css" type="text/css" media="all" />' . "\n";
442
  } else {
443
+ echo '<link rel="stylesheet" href="' . get_option('siteurl') . '/' . str_replace( ABSPATH, '', dirname( __file__ ) ) . '/css/ps_auto_sitemap_' . $this->option['prepared_style'] . '.css" type="text/css" media="all" />' . "\n";
444
  }
445
  }
446
  }
469
 
470
 
471
  function set_default_options() {
472
+ $option = array(
473
+ 'home_list' => '1',
474
+ 'post_tree' => '1',
475
+ 'page_tree' => '1',
476
+ 'post_id' => '',
477
+ 'disp_level' => '0',
478
+ 'disp_first' => 'post',
479
+ 'ex_cat_ids' => '',
480
+ 'ex_post_id' => '',
481
+ 'prepared_style' => '',
482
+ 'use_cache' => '1',
483
+ 'suppress_link' => '' );
484
+
485
+ update_option( 'ps_sitemap', $option );
486
+ }
487
+
488
+
489
+ function check_cache_dir() {
490
+ $uploads = wp_upload_dir();
491
+
492
+ if ( $uploads['error'] !== false ) { return false; }
493
+
494
+ $cache_dir = $uploads['basedir'] . '/ps_auto_sitemap';
495
+ if ( is_writable( $uploads['basedir'] ) ) {
496
+ if ( file_exists( $cache_dir ) ) {
497
+ if ( is_writable( $cache_dir ) ) {
498
+ return $cache_dir;
499
+ }
500
+ } else {
501
+ if( mkdir( $cache_dir ) ) {
502
+ return $cache_dir;
503
+ }
504
+ }
505
+ }
506
+ return false;
507
+ }
508
+
509
+
510
+ function delete_sitemap_cache() {
511
+ $uploads = wp_upload_dir();
512
+ if ( $uploads['error'] !== false ) { return false; }
513
+
514
+ $cache_file = $uploads['basedir'] . '/ps_auto_sitemap/site_map_cache.html';
515
+ if ( file_exists( $cache_file ) ) {
516
+ unlink( $cache_file );
517
+ }
518
+ }
519
+
520
+
521
+ function check_htaccess( $cache_dir ) {
522
+ if ( file_exists( $cache_dir . '/.htaccess' ) ) { return; }
523
+ file_put_contents( $cache_dir . '/.htaccess', "order deny,allow\ndeny from all" );
524
  }
525
+
526
+
527
  }
readme.txt CHANGED
@@ -17,15 +17,22 @@ It can change the settings of the display of the lists from administration page,
17
  When you use WordPress as CMS of the Web site, you can expect the **effect of SEO**, **improvement of the usability**, and so on.
18
 
19
  = Functions of "PS Auto Sitemap": =
 
20
  * Display/hide of particular categories and posts.
21
  * Display/hide of pages.
22
  * Limitation of the depth of the list.
23
  * Set the display order of the page list and the post list.
24
- * Set the excluded category from the list.
25
- * Set the excluded posts or pages from the list.
26
- * Select the display style of the site map from five prepared designs (or no style).
 
27
 
28
  = Version history =
 
 
 
 
 
29
  * **1.0.7**
30
  * reduce using memory.
31
  * **1.0.6**
@@ -61,4 +68,12 @@ Or, if you tell us the theme and your selected style, we might help you.
61
 
62
  == Screenshots ==
63
  1. Administration interface of PS Auto Sitemap
64
- 2. Preset sitemap styles.
 
 
 
 
 
 
 
 
17
  When you use WordPress as CMS of the Web site, you can expect the **effect of SEO**, **improvement of the usability**, and so on.
18
 
19
  = Functions of "PS Auto Sitemap": =
20
+ * Display/hide of particular home.
21
  * Display/hide of particular categories and posts.
22
  * Display/hide of pages.
23
  * Limitation of the depth of the list.
24
  * Set the display order of the page list and the post list.
25
+ * Set the excluded categories from the list.
26
+ * Set the excluded posts and pages from the list.
27
+ * Select the display style of the site map from 12 prepared designs (or no style).
28
+ * Use or not caching sitemap content.
29
 
30
  = Version history =
31
+ * **1.1.0**
32
+ * bug fix : post lists are displayed double in case of setting tags.
33
+ * new function : Display/Hide home list
34
+ * new function : caching sitemap content
35
+ * add 2 sitemap styles.(optimised for dark backgroud color)
36
  * **1.0.7**
37
  * reduce using memory.
38
  * **1.0.6**
68
 
69
  == Screenshots ==
70
  1. Administration interface of PS Auto Sitemap
71
+ 2. Preset sitemap styles.
72
+
73
+ == Links ==
74
+ "[PS Disable Auto Formatting](http://wordpress.org/extend/plugins/ps-disable-auto-formatting/ "WordPress editting support plugin")"Stops the automatic forming and the HTML tag removal in the html mode of WordPress, and generates a natural paragraph and changing line.
75
+
76
+ "[CMS service with WordPress](http://www.web-strategy.jp/ "CMS service with WordPress")" provides you service that uses WordPress as a CMS.
77
+
78
+ == Special Thanks ==
79
+ Translation:[dacelo](http://www.dacelo.info/blog/ "Translation")