WP Realtime Sitemap - Version 1.0

Version Description

  • First version.
Download this release

Release Info

Developer Rincewind
Plugin Icon wp plugin WP Realtime Sitemap
Version 1.0
Comparing to
See all releases

Version 1.0

Files changed (3) hide show
  1. readme.txt +40 -0
  2. uninstall.php +14 -0
  3. wp-realtime-sitemap.php +883 -0
readme.txt ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Plugin Name ===
2
+ Contributors: rincewind
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=H6RW44JXTKANG
4
+ Tags: sitemap
5
+ Requires at least: 2.0.2
6
+ Tested up to: 3.0
7
+ Stable tag: trunk
8
+
9
+ A sitemap plugin to make it easier for your site to show all your pages, posts, archives, categories and tags in an easy to read format.
10
+
11
+ == Description ==
12
+
13
+ A sitemap plugin to make it easier for your site to show all your pages, posts, archives, categories and tags in an easy to read format without any need for template modification or html/php knowledge.
14
+
15
+ 1. You can show/hide hidden posts and pages.
16
+ 1. You can show/hide Posts, Pages, Archives, Categories and Tags.
17
+ 1. All of the above can be ordered in anyway order you want.
18
+ 1. It comes with an uninstaller, if you dont want it anymore just deactivate the plugin and delete it from within wordpress and it will delete all of its settings itself.
19
+
20
+ == Installation ==
21
+
22
+ 1. Upload the files to `/wp-content/plugins/wp-realtime-sitemap` directory
23
+ 2. Activate the plugin through the 'Plugins' menu in WordPress.
24
+ 3. Create a page to be your sitemap.
25
+ 4. Click the HTML tab in the WYSIWYG editor and paste into the page you created above or an already existing page the following comment <!--wp-realtime-sitemap-->
26
+
27
+ == Frequently Asked Questions ==
28
+
29
+ = Do I need to add the `<!--wp-realtime-sitemap-->` to a Post or a Page? =
30
+
31
+ You can add it to either. The text will be substituted with the sitemap links.
32
+
33
+ = What should I call the page that I add the sitemap to? =
34
+
35
+ You can call it whatever you like. I would suggest you call it Site Map.
36
+
37
+ == Changelog ==
38
+
39
+ = 1.0 =
40
+ * First version.
uninstall.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if (!defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN'))
4
+ exit();
5
+
6
+ delete_option('wp_realtime_sitemap_orderby');
7
+ delete_option('wp_realtime_sitemap_private');
8
+ delete_option('wp_realtime_sitemap_pages');
9
+ delete_option('wp_realtime_sitemap_posts');
10
+ delete_option('wp_realtime_sitemap_tags');
11
+ delete_option('wp_realtime_sitemap_archives');
12
+ delete_option('wp_realtime_sitemap_displayorder');
13
+
14
+ ?>
wp-realtime-sitemap.php ADDED
@@ -0,0 +1,883 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: WP Realtime Sitemap
4
+ Plugin URI: http://www.daniel-tweedy.co.uk/article/wp-realtime-sitemap-plugin/
5
+ Description: Adds a sitemap to your Wordpress blog that is always up-to-date. Add <!--wp-realtime-sitemap--> to any page or post and the site map will be added there. Use Options->WP Realtime Sitemap to set options.
6
+ Author: Daniel Tweedy
7
+ Version: 1.0
8
+ Author URI: http://www.daniel-tweedy.co.uk/
9
+ */
10
+
11
+ /*
12
+ WP Realtime Sitemap is a Wordpress Plugin that will create a list of posts, pages, tags, archives from your Wordpress Blog.
13
+ Copyright (C) 2010 Daniel Tweedy
14
+
15
+ This program is free software; you can redistribute it and/or
16
+ modify it under the terms of the GNU General Public License
17
+ as published by the Free Software Foundation; either version 2
18
+ of the License, or (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, write to the Free Software
27
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28
+ */
29
+
30
+ // To replace the <!--wp-realtime-sitemap--> with the actual sitemap
31
+ function wp_realtime_sitemap($text) {
32
+ global $wpdb, $table_prefix;
33
+
34
+ // Only perform plugin functionality if post/page text has <!--wp-realtime-sitemap-->|
35
+ if (preg_match('|<!--wp-realtime-sitemap-->|', $text)) {
36
+
37
+ // Get option values
38
+ $orderby = get_option('wp_realtime_sitemap_orderby');
39
+ $showprivate = get_option('wp_realtime_sitemap_private');;
40
+ $showpages = get_option('wp_realtime_sitemap_pages');
41
+ $showposts = get_option('wp_realtime_sitemap_posts');
42
+ $showtags = get_option('wp_realtime_sitemap_tags');
43
+ $showarchives = get_option('wp_realtime_sitemap_archives');
44
+ $displayorder = get_option('wp_realtime_sitemap_displayorder');
45
+
46
+ // Do order by
47
+ switch ($orderby) {
48
+ case 'datedesc':
49
+ $sqlorder = 'ORDER BY `post_date` DESC';
50
+ break;
51
+ case 'dateasc':
52
+ $sqlorder = 'ORDER BY `post_date`';
53
+ break;
54
+ case 'alphadesc':
55
+ $sqlorder = 'ORDER BY `post_title` DESC';
56
+ break;
57
+ case 'alphaasc':
58
+ $sqlorder = 'ORDER BY `post_title`';
59
+ break;
60
+ }
61
+
62
+ // Pages: Yes/No?
63
+ if ($showpages != 'no') {
64
+ // Show private: Yes/No?
65
+ if ($showprivate == 'yes') {
66
+ $sqlwhere = 'WHERE `post_type`="page" ';
67
+ } else {
68
+ $sqlwhere = 'WHERE `post_type`="page" AND `post_status`="publish" ';
69
+ }
70
+
71
+ $sqlpages = 'SELECT * FROM `' . $table_prefix . 'posts` ' . $sqlwhere . $sqlorder;
72
+ $allpages = $wpdb->get_results($sqlpages);
73
+
74
+ if (count($allpages) == 0) {
75
+ $pages = '';
76
+ } else {
77
+ $pages = '<h3>Pages</h3><ul>';
78
+
79
+ foreach($allpages as $thepage) {
80
+ $permalink = get_permalink($thepage->ID);
81
+ $pages .= '<li><a href="' . $permalink . '">' . $thepage->post_title . '</a></li>';
82
+ }
83
+
84
+ $pages .= '</ul>';
85
+ }
86
+ }
87
+
88
+ // Posts: Yes/No?
89
+ if ($showposts != 'no') {
90
+ // Show private: Yes/No?
91
+ if ($showprivate == 'yes') {
92
+ $sqlwhere = 'WHERE `post_type`="post" ';
93
+ } else {
94
+ $sqlwhere = 'WHERE `post_type`="post" AND `post_status`="publish" ';
95
+ }
96
+
97
+ $sqlposts = 'SELECT * FROM `' . $table_prefix . 'posts` ' . $sqlwhere . $sqlorder;
98
+ $allposts = $wpdb->get_results($sqlposts);
99
+
100
+ if (count($allposts) == 0) {
101
+ $posts = '';
102
+ } else {
103
+ $posts = '<h3>Posts</h3><ul>';
104
+
105
+ foreach($allposts as $thepost) {
106
+ $permalink = get_permalink($thepost->ID);
107
+ $posts .= '<li><a href="' . $permalink . '">' . $thepost->post_title . '</a></li>';
108
+ }
109
+
110
+ $posts .= '</ul>';
111
+ }
112
+ }
113
+
114
+ if ($showarchives != 'no') {
115
+ $archives = '<h3>Archives</h3><ul>' . wp_get_archives('type=monthly&echo=0') . '</ul>';
116
+ }
117
+
118
+ if ($showcategories != 'no') {
119
+ $allcategories = wp_tag_cloud('format=array&taxonomy=category');
120
+
121
+ if (count($allcategories) == 0) {
122
+ $categories = '';
123
+ } else {
124
+ $categories = '<h3>Categories</h3><p>';
125
+
126
+ foreach($allcategories as $thecategory) {
127
+ $categories .= $thecategory . ' ';
128
+ }
129
+
130
+ $categories = trim($categories) . '</ul>';
131
+ }
132
+ }
133
+
134
+ if ($showtags != 'no') {
135
+ $alltags = wp_tag_cloud('format=array');
136
+
137
+ if (count($alltags) == 0) {
138
+ $tags = '';
139
+ } else {
140
+ $tags = '<h3>Tags</h3><p>';
141
+
142
+ foreach($alltags as $thetag) {
143
+ $tags .= $thetag . ' ';
144
+ }
145
+
146
+ $tags = trim($tags) . '</ul>';
147
+ }
148
+ }
149
+
150
+ // 1: Pages, Posts, Archives, Categories, Tags
151
+ if ($displayorder == 1)
152
+ $data = $pages . $posts . $archives . $categories . $tags;
153
+
154
+ // 2: Pages, Posts, Archives, Tags, Categories
155
+ if ($displayorder == 2)
156
+ $data = $pages . $posts . $archives . $tags . $categories;
157
+
158
+ // 3: Pages, Posts, Categories, Archives, Tags
159
+ if ($displayorder == 3)
160
+ $data = $pages . $posts . $categories . $archives . $tags;
161
+
162
+ // 4: Pages, Posts, Categories, Tags, Archives
163
+ if ($displayorder == 4)
164
+ $data = $pages . $posts . $categories . $tags . $archives;
165
+
166
+ // 5: Pages, Posts, Tags, Archives, Categories
167
+ if ($displayorder == 5)
168
+ $data = $pages . $posts . $tags . $archives . $categories;
169
+
170
+ // 6: Pages, Posts, Tags, Categories, Archives
171
+ if ($displayorder == 6)
172
+ $data = $pages . $posts . $tags . $categories . $archives;
173
+
174
+ // 7: Pages, Archives, Posts, Categories, Tags
175
+ if ($displayorder == 7)
176
+ $data = $pages . $archives . $posts . $categories . $tags;
177
+
178
+ // 8: Pages, Archives, Posts, Tags, Categories
179
+ if ($displayorder == 8)
180
+ $data = $pages . $archives . $posts . $tags . $categories;
181
+
182
+ // 9: Pages, Archives, Categories, Posts, Tags
183
+ if ($displayorder == 9)
184
+ $data = $pages . $archives . $categories . $posts . $tags;
185
+
186
+ // 10: Pages, Archives, Categories, Tags, Posts
187
+ if ($displayorder == 10)
188
+ $data = $pages . $archives . $categories . $tags . $posts;
189
+
190
+ // 11: Pages, Archives, Tags, Posts, Categories
191
+ if ($displayorder == 11)
192
+ $data = $pages . $archives . $tags . $posts . $categories;
193
+
194
+ // 12: Pages, Archives, Tags, Categories, Posts
195
+ if ($displayorder == 12)
196
+ $data = $pages . $archives . $tags . $categories . $posts;
197
+
198
+ // 13: Pages, Categories, Posts, Archives, Tags
199
+ if ($displayorder == 13)
200
+ $data = $pages . $categories . $posts . $archives . $tags;
201
+
202
+ // 14: Pages, Categories, Posts, Tags, Archives
203
+ if ($displayorder == 14)
204
+ $data = $pages . $categories . $posts . $tags . $archives;
205
+
206
+ // 15: Pages, Categories, Archives, Posts, Tags
207
+ if ($displayorder == 15)
208
+ $data = $pages . $categories . $archives . $posts . $tags;
209
+
210
+ // 16: Pages, Categories, Archives, Tags, Posts
211
+ if ($displayorder == 16)
212
+ $data = $pages . $categories . $archives . $tags . $posts;
213
+
214
+ // 17: Pages, Categories, Tags, Posts, Archives
215
+ if ($displayorder == 17)
216
+ $data = $pages . $categories . $tags . $posts . $archives;
217
+
218
+ // 18: Pages, Categories, Tags, Archives, Posts
219
+ if ($displayorder == 18)
220
+ $data = $pages . $categories . $tags . $archives . $posts;
221
+
222
+ // 19: Pages, Tags, Posts, Archives, Categories
223
+ if ($displayorder == 19)
224
+ $data = $pages . $tags . $posts . $archives . $categories;
225
+
226
+ // 20: Pages, Tags, Posts, Categories, Archives
227
+ if ($displayorder == 20)
228
+ $data = $pages . $tags . $posts . $categories . $archives;
229
+
230
+ // 21: Pages, Tags, Archives, Posts, Categories
231
+ if ($displayorder == 21)
232
+ $data = $pages . $tags . $archives . $posts . $categories;
233
+
234
+ // 22: Pages, Tags, Archives, Categories, Posts
235
+ if ($displayorder == 22)
236
+ $data = $pages . $tags . $archives . $categories . $posts;
237
+
238
+ // 23: Pages, Tags, Categories, Posts, Archives
239
+ if ($displayorder == 23)
240
+ $data = $pages . $tags . $categories . $posts . $archives;
241
+
242
+ // 24: Pages, Tags, Categories, Archives, Posts
243
+ if ($displayorder == 24)
244
+ $data = $pages . $tags . $categories . $archives . $posts;
245
+
246
+ // 25: Posts, Pages, Archives, Categories, Tags
247
+ if ($displayorder == 25)
248
+ $data = $posts . $pages . $archives . $categories . $tags;
249
+
250
+ // 26: Posts, Pages, Archives, Tags, Categories
251
+ if ($displayorder == 26)
252
+ $data = $posts . $pages . $archives . $tags . $categories;
253
+
254
+ // 27: Posts, Pages, Categories, Archives, Tags
255
+ if ($displayorder == 27)
256
+ $data = $posts . $pages . $categories . $archives . $tags;
257
+
258
+ // 28: Posts, Pages, Categories, Tags, Archives
259
+ if ($displayorder == 28)
260
+ $data = $posts . $pages . $categories . $tags . $archives;
261
+
262
+ // 29: Posts, Pages, Tags, Archives, Categories
263
+ if ($displayorder == 29)
264
+ $data = $posts . $pages . $tags . $archives . $categories;
265
+
266
+ // 30: Posts, Pages, Tags, Categories, Archives
267
+ if ($displayorder == 30)
268
+ $data = $posts . $pages . $tags . $categories . $archives;
269
+
270
+ // 31: Posts, Archives, Pages, Categories, Tags
271
+ if ($displayorder == 31)
272
+ $data = $posts . $archives . $pages . $categories . $tags;
273
+
274
+ // 32: Posts, Archives, Pages, Tags, Categories
275
+ if ($displayorder == 32)
276
+ $data = $posts . $archives . $pages . $tags . $categories;
277
+
278
+ // 33: Posts, Archives, Categories, Pages, Tags
279
+ if ($displayorder == 33)
280
+ $data = $posts . $archives . $categories . $pages . $tags;
281
+
282
+ // 34: Posts, Archives, Categories, Tags, Pages
283
+ if ($displayorder == 34)
284
+ $data = $posts . $archives . $categories . $tags . $pages;
285
+
286
+ // 35: Posts, Archives, Tags, Pages, Categories
287
+ if ($displayorder == 35)
288
+ $data = $posts . $archives . $tags . $pages . $categories;
289
+
290
+ // 36: Posts, Archives, Tags, Categories, Pages
291
+ if ($displayorder == 36)
292
+ $data = $posts . $archives . $tags . $categories . $pages;
293
+
294
+ // 37: Posts, Categories, Pages, Archives, Tags
295
+ if ($displayorder == 37)
296
+ $data = $posts . $categories . $pages . $archives . $tags;
297
+
298
+ // 38: Posts, Categories, Pages, Tags, Archives
299
+ if ($displayorder == 38)
300
+ $data = $posts . $categories . $pages . $tags . $archives;
301
+
302
+ // 39: Posts, Categories, Archives, Pages, Tags
303
+ if ($displayorder == 39)
304
+ $data = $posts . $categories . $archives . $pages . $tags;
305
+
306
+ // 40: Posts, Categories, Archives, Tags, Pages
307
+ if ($displayorder == 40)
308
+ $data = $posts . $categories . $archives . $tags . $pages;
309
+
310
+ // 41: Posts, Categories, Tags, Pages, Archives
311
+ if ($displayorder == 41)
312
+ $data = $posts . $categories . $tags . $pages . $archives;
313
+
314
+ // 42: Posts, Categories, Tags, Archives, Pages
315
+ if ($displayorder == 42)
316
+ $data = $posts . $categories . $tags . $archives . $pages;
317
+
318
+ // 43: Posts, Tags, Pages, Archives, Categories
319
+ if ($displayorder == 43)
320
+ $data = $posts . $tags . $pages . $archives . $categories;
321
+
322
+ // 44: Posts, Tags, Pages, Categories, Archives
323
+ if ($displayorder == 44)
324
+ $data = $posts . $tags . $pages . $categories . $archives;
325
+
326
+ // 45: Posts, Tags, Archives, Pages, Categories
327
+ if ($displayorder == 45)
328
+ $data = $posts . $tags . $archives . $pages . $categories;
329
+
330
+ // 46: Posts, Tags, Archives, Categories, Pages
331
+ if ($displayorder == 46)
332
+ $data = $posts . $tags . $archives . $categories . $pages;
333
+
334
+ // 47: Posts, Tags, Categories, Pages, Archives
335
+ if ($displayorder == 47)
336
+ $data = $posts . $tags . $categories . $pages . $archives;
337
+
338
+ // 48: Posts, Tags, Categories, Archives, Pages
339
+ if ($displayorder == 48)
340
+ $data = $posts . $tags . $categories . $archives . $pages;
341
+
342
+ // 49: Archives, Pages, Posts, Categories, Tags
343
+ if ($displayorder == 49)
344
+ $data = $archives . $pages . $posts . $categories . $tags;
345
+
346
+ // 50: Archives, Pages, Posts, Tags, Categories
347
+ if ($displayorder == 50)
348
+ $data = $archives . $pages . $posts . $tags . $categories;
349
+
350
+ // 51: Archives, Pages, Categories, Posts, Tags
351
+ if ($displayorder == 51)
352
+ $data = $archives . $pages . $categories . $posts . $tags;
353
+
354
+ // 52: Archives, Pages, Categories, Tags, Posts
355
+ if ($displayorder == 52)
356
+ $data = $archives . $pages . $categories . $tags . $posts;
357
+
358
+ // 53: Archives, Pages, Tags, Posts, Categories
359
+ if ($displayorder == 53)
360
+ $data = $archives . $pages . $tags . $posts . $categories;
361
+
362
+ // 54: Archives, Pages, Tags, Categories, Posts
363
+ if ($displayorder == 54)
364
+ $data = $archives . $pages . $tags . $categories . $posts;
365
+
366
+ // 55: Archives, Posts, Pages, Categories, Tags
367
+ if ($displayorder == 55)
368
+ $data = $archives . $posts . $pages . $categories . $tags;
369
+
370
+ // 56: Archives, Posts, Pages, Tags, Categories
371
+ if ($displayorder == 56)
372
+ $data = $archives . $posts . $pages . $tags . $categories;
373
+
374
+ // 57: Archives, Posts, Categories, Pages, Tags
375
+ if ($displayorder == 57)
376
+ $data = $archives . $posts . $categories . $pages . $tags;
377
+
378
+ // 58: Archives, Posts, Categories, Tags, Pages
379
+ if ($displayorder == 58)
380
+ $data = $archives . $posts . $categories . $tags . $pages;
381
+
382
+ // 59: Archives, Posts, Tags, Pages, Categories
383
+ if ($displayorder == 59)
384
+ $data = $archives . $posts . $tags . $pages . $categories;
385
+
386
+ // 60: Archives, Posts, Tags, Categories, Pages
387
+ if ($displayorder == 60)
388
+ $data = $archives . $posts . $tags . $categories . $pages;
389
+
390
+ // 61: Archives, Categories, Pages, Posts, Tags
391
+ if ($displayorder == 61)
392
+ $data = $archives . $categories . $pages . $posts . $tags;
393
+
394
+ // 62: Archives, Categories, Pages, Tags, Posts
395
+ if ($displayorder == 62)
396
+ $data = $archives . $categories . $pages . $tags . $posts;
397
+
398
+ // 63: Archives, Categories, Posts, Pages, Tags
399
+ if ($displayorder == 63)
400
+ $data = $archives . $categories . $posts . $pages . $tags;
401
+
402
+ // 64: Archives, Categories, Posts, Tags, Pages
403
+ if ($displayorder == 64)
404
+ $data = $archives . $categories . $posts . $tags . $pages;
405
+
406
+ // 65: Archives, Categories, Tags, Pages, Posts
407
+ if ($displayorder == 65)
408
+ $data = $archives . $categories . $tags . $pages . $posts;
409
+
410
+ // 66: Archives, Categories, Tags, Posts, Pages
411
+ if ($displayorder == 66)
412
+ $data = $archives . $categories . $tags . $posts . $pages;
413
+
414
+ // 67: Archives, Tags, Pages, Posts, Categories
415
+ if ($displayorder == 67)
416
+ $data = $archives . $tags . $pages . $posts . $categories;
417
+
418
+ // 68: Archives, Tags, Pages, Categories, Posts
419
+ if ($displayorder == 68)
420
+ $data = $archives . $tags . $pages . $categories . $posts;
421
+
422
+ // 69: Archives, Tags, Posts, Pages, Categories
423
+ if ($displayorder == 69)
424
+ $data = $archives . $tags . $posts . $pages . $categories;
425
+
426
+ // 70: Archives, Tags, Posts, Categories, Pages
427
+ if ($displayorder == 70)
428
+ $data = $archives . $tags . $posts . $categories . $pages;
429
+
430
+ // 71: Archives, Tags, Categories, Pages, Posts
431
+ if ($displayorder == 71)
432
+ $data = $archives . $tags . $categories . $pages . $posts;
433
+
434
+ // 72: Archives, Tags, Categories, Posts, Pages
435
+ if ($displayorder == 72)
436
+ $data = $archives . $tags . $categories . $posts . $pages;
437
+
438
+ // 73: Categories, Pages, Posts, Archives, Tags
439
+ if ($displayorder == 73)
440
+ $data = $categories . $pages . $posts . $archives . $tags;
441
+
442
+ // 74: Categories, Pages, Posts, Tags, Archives
443
+ if ($displayorder == 74)
444
+ $data = $categories . $pages . $posts . $tags . $archives;
445
+
446
+ // 75: Categories, Pages, Archives, Posts, Tags
447
+ if ($displayorder == 75)
448
+ $data = $categories . $pages . $archives . $posts . $tags;
449
+
450
+ // 76: Categories, Pages, Archives, Tags, Posts
451
+ if ($displayorder == 76)
452
+ $data = $categories . $pages . $archives . $tags . $posts;
453
+
454
+ // 77: Categories, Pages, Tags, Posts, Archives
455
+ if ($displayorder == 77)
456
+ $data = $categories . $pages . $tags . $posts . $archives;
457
+
458
+ // 78: Categories, Pages, Tags, Archives, Posts
459
+ if ($displayorder == 78)
460
+ $data = $categories . $pages . $tags . $archives . $posts;
461
+
462
+ // 79: Categories, Posts, Pages, Archives, Tags
463
+ if ($displayorder == 79)
464
+ $data = $categories . $posts . $pages . $archives . $tags;
465
+
466
+ // 80: Categories, Posts, Pages, Tags, Archives
467
+ if ($displayorder == 80)
468
+ $data = $categories . $posts . $pages . $tags . $archives;
469
+
470
+ // 81: Categories, Posts, Archives, Pages, Tags
471
+ if ($displayorder == 81)
472
+ $data = $categories . $posts . $archives . $pages . $tags;
473
+
474
+ // 82: Categories, Posts, Archives, Tags, Pages
475
+ if ($displayorder == 82)
476
+ $data = $categories . $posts . $archives . $tags . $pages;
477
+
478
+ // 83: Categories, Posts, Tags, Pages, Archives
479
+ if ($displayorder == 83)
480
+ $data = $categories . $posts . $tags . $pages . $archives;
481
+
482
+ // 84: Categories, Posts, Tags, Archives, Pages
483
+ if ($displayorder == 84)
484
+ $data = $categories . $posts . $tags . $archives . $pages;
485
+
486
+ // 85: Categories, Archives, Pages, Posts, Tags
487
+ if ($displayorder == 85)
488
+ $data = $categories . $archives . $pages . $posts . $tags;
489
+
490
+ // 86: Categories, Archives, Pages, Tags, Posts
491
+ if ($displayorder == 86)
492
+ $data = $categories . $archives . $pages . $tags . $posts;
493
+
494
+ // 87: Categories, Archives, Posts, Pages, Tags
495
+ if ($displayorder == 87)
496
+ $data = $categories . $archives . $posts . $pages . $tags;
497
+
498
+ // 88: Categories, Archives, Posts, Tags, Pages
499
+ if ($displayorder == 88)
500
+ $data = $categories . $archives . $posts . $tags . $pages;
501
+
502
+ // 89: Categories, Archives, Tags, Pages, Posts
503
+ if ($displayorder == 89)
504
+ $data = $categories . $archives . $tags . $pages . $posts;
505
+
506
+ // 90: Categories, Archives, Tags, Posts, Pages
507
+ if ($displayorder == 90)
508
+ $data = $categories . $archives . $tags . $posts . $pages;
509
+
510
+ // 91: Categories, Tags, Pages, Posts, Archives
511
+ if ($displayorder == 91)
512
+ $data = $categories . $tags . $pages . $posts . $archives;
513
+
514
+ // 92: Categories, Tags, Pages, Archives, Posts
515
+ if ($displayorder == 92)
516
+ $data = $categories . $tags . $pages . $archives . $posts;
517
+
518
+ // 93: Categories, Tags, Posts, Pages, Archives
519
+ if ($displayorder == 93)
520
+ $data = $categories . $tags . $posts . $pages . $archives;
521
+
522
+ // 94: Categories, Tags, Posts, Archives, Pages
523
+ if ($displayorder == 94)
524
+ $data = $categories . $tags . $posts . $archives . $pages;
525
+
526
+ // 95: Categories, Tags, Archives, Pages, Posts
527
+ if ($displayorder == 95)
528
+ $data = $categories . $tags . $archives . $pages . $posts;
529
+
530
+ // 96: Categories, Tags, Archives, Posts, Pages
531
+ if ($displayorder == 96)
532
+ $data = $categories . $tags . $archives . $posts . $pages;
533
+
534
+ // 97: Tags, Pages, Posts, Archives, Categories
535
+ if ($displayorder == 97)
536
+ $data = $tags . $pages . $posts . $archives . $categories;
537
+
538
+ // 98: Tags, Pages, Posts, Categories, Archives
539
+ if ($displayorder == 98)
540
+ $data = $tags . $pages . $posts . $categories . $archives;
541
+
542
+ // 99: Tags, Pages, Archives, Posts, Categories
543
+ if ($displayorder == 99)
544
+ $data = $tags . $pages . $archives . $posts . $categories;
545
+
546
+ // 100: Tags, Pages, Archives, Categories, Posts
547
+ if ($displayorder == 100)
548
+ $data = $tags . $pages . $archives . $categories . $posts;
549
+
550
+ // 101: Tags, Pages, Categories, Posts, Archives
551
+ if ($displayorder == 101)
552
+ $data = $tags . $pages . $categories . $posts . $archives;
553
+
554
+ // 102: Tags, Pages, Categories, Archives, Posts
555
+ if ($displayorder == 102)
556
+ $data = $tags . $pages . $categories . $archives . $posts;
557
+
558
+ // 103: Tags, Posts, Pages, Archives, Categories
559
+ if ($displayorder == 103)
560
+ $data = $tags . $posts . $pages . $archives . $categories;
561
+
562
+ // 104: Tags, Posts, Pages, Categories, Archives
563
+ if ($displayorder == 104)
564
+ $data = $tags . $posts . $pages . $categories . $archives;
565
+
566
+ // 105: Tags, Posts, Archives, Pages, Categories
567
+ if ($displayorder == 105)
568
+ $data = $tags . $posts . $archives . $pages . $categories;
569
+
570
+ // 106: Tags, Posts, Archives, Categories, Pages
571
+ if ($displayorder == 106)
572
+ $data = $tags . $posts . $archives . $categories . $pages;
573
+
574
+ // 107: Tags, Posts, Categories, Pages, Archives
575
+ if ($displayorder == 107)
576
+ $data = $tags . $posts . $categories . $pages . $archives;
577
+
578
+ // 108: Tags, Posts, Categories, Archives, Pages
579
+ if ($displayorder == 108)
580
+ $data = $tags . $posts . $categories . $archives . $pages;
581
+
582
+ // 109: Tags, Archives, Pages, Posts, Categories
583
+ if ($displayorder == 109)
584
+ $data = $tags . $archives . $pages . $posts . $categories;
585
+
586
+ // 110: Tags, Archives, Pages, Categories, Posts
587
+ if ($displayorder == 110)
588
+ $data = $tags . $archives . $pages . $categories . $posts;
589
+
590
+ // 111: Tags, Archives, Posts, Pages, Categories
591
+ if ($displayorder == 111)
592
+ $data = $tags . $archives . $posts . $pages . $categories;
593
+
594
+ // 112: Tags, Archives, Posts, Categories, Pages
595
+ if ($displayorder == 112)
596
+ $data = $tags . $archives . $posts . $categories . $pages;
597
+
598
+ // 113: Tags, Archives, Categories, Pages, Posts
599
+ if ($displayorder == 113)
600
+ $data = $tags . $archives . $categories . $pages . $posts;
601
+
602
+ // 114: Tags, Archives, Categories, Posts, Pages
603
+ if ($displayorder == 114)
604
+ $data = $tags . $archives . $categories . $posts . $pages;
605
+
606
+ // 115: Tags, Categories, Pages, Posts, Archives
607
+ if ($displayorder == 115)
608
+ $data = $tags . $categories . $pages . $posts . $archives;
609
+
610
+ // 116: Tags, Categories, Pages, Archives, Posts
611
+ if ($displayorder == 116)
612
+ $data = $tags . $categories . $pages . $archives . $posts;
613
+
614
+ // 117: Tags, Categories, Posts, Pages, Archives
615
+ if ($displayorder == 117)
616
+ $data = $tags . $categories . $posts . $pages . $archives;
617
+
618
+ // 118: Tags, Categories, Posts, Archives, Pages
619
+ if ($displayorder == 118)
620
+ $data = $tags . $categories . $posts . $archives . $pages;
621
+
622
+ // 119: Tags, Categories, Archives, Pages, Posts
623
+ if ($displayorder == 119)
624
+ $data = $tags . $categories . $archives . $pages . $posts;
625
+
626
+ // 120: Tags, Categories, Archives, Posts, Pages
627
+ if ($displayorder == 120)
628
+ $data = $tags . $categories . $archives . $posts . $pages;
629
+
630
+ $text = preg_replace("|<!--wp-realtime-sitemap-->|", $data, $text);
631
+ }
632
+
633
+ return $text;
634
+
635
+ } // End wp_realtime_sitemap()
636
+
637
+ // Admin menu
638
+ function wp_realtime_sitemap_admin() {
639
+ if (function_exists('add_options_page')) {
640
+ add_options_page('wp-realtime-sitemap', 'WP Realtime Sitemap', 1, basename(__FILE__), 'wp_realtime_sitemap_admin_panel');
641
+ }
642
+ }
643
+
644
+ function wp_realtime_sitemap_admin_panel() {
645
+
646
+ $orderby = get_option('wp_realtime_sitemap_orderby');
647
+ $showprivate = get_option('wp_realtime_sitemap_private');;
648
+ $showpages = get_option('wp_realtime_sitemap_pages');
649
+ $showposts = get_option('wp_realtime_sitemap_posts');
650
+ $showtags = get_option('wp_realtime_sitemap_tags');
651
+ $showarchives = get_option('wp_realtime_sitemap_archives');
652
+ $displayorder = get_option('wp_realtime_sitemap_displayorder');
653
+
654
+ // Add options if first time running
655
+ add_option('wp_realtime_sitemap_orderby', 'datedesc', 'WP Realtime Sitemap Plugin');
656
+ add_option('wp_realtime_sitemap_private', 'no', 'WP Realtime Sitemap Plugin');
657
+ add_option('wp_realtime_sitemap_pages', 'yes', 'WP Realtime Sitemap Plugin');
658
+ add_option('wp_realtime_sitemap_posts', 'yes', 'WP Realtime Sitemap Plugin');
659
+ add_option('wp_realtime_sitemap_tags', 'yes', 'WP Realtime Sitemap Plugin');
660
+ add_option('wp_realtime_sitemap_archives', 'yes', 'WP Realtime Sitemap Plugin');
661
+ add_option('wp_realtime_sitemap_displayorder', '1', 'WP Realtime Sitemap Plugin');
662
+
663
+ // Get posted options
664
+ $orderby = $_POST['orderby'];
665
+
666
+ if (isset($_POST['info_update'])) {
667
+ // Update settings
668
+ $orderby = $_POST['orderby'];
669
+ $showprivate = $_POST['showprivate'];
670
+ $showpages = $_POST['showpages'];
671
+ $showposts = $_POST['showposts'];
672
+ $showtags = $_POST['showtags'];
673
+ $showarchives = $_POST['showarchives'];
674
+ $displayorder = $_POST['displayorder'];
675
+
676
+ update_option('wp_realtime_sitemap_orderby', $orderby);
677
+ update_option('wp_realtime_sitemap_private', $showprivate);
678
+ update_option('wp_realtime_sitemap_pages', $showpages);
679
+ update_option('wp_realtime_sitemap_posts', $showposts);
680
+ update_option('wp_realtime_sitemap_tags', $showtags);
681
+ update_option('wp_realtime_sitemap_archives', $showarchives);
682
+ update_option('wp_realtime_sitemap_displayorder', $displayorder);
683
+ } else {
684
+ // Load settings from database
685
+ $orderby = get_option('wp_realtime_sitemap_orderby');
686
+ $showprivate = get_option('wp_realtime_sitemap_private');
687
+ $showpages = get_option('wp_realtime_sitemap_pages');
688
+ $showposts = get_option('wp_realtime_sitemap_posts');
689
+ $showtags = get_option('wp_realtime_sitemap_tags');
690
+ $showarchives = get_option('wp_realtime_sitemap_archives');
691
+ $displayorder = get_option('wp_realtime_sitemap_displayorder');
692
+ }
693
+
694
+ ?>
695
+
696
+ <div class="wrap">
697
+ <h2>WP Realtime Sitemap Options</h2>
698
+
699
+ <form method="post">
700
+ <table class="form-table">
701
+ <tr valign="top">
702
+ <th scope="row"><label for="orderby">Order Sitemap Pages By</label></th>
703
+ <td><select name="orderby">
704
+ <option <?php selected('datedesc', $orderby); ?> value="datedesc">Date descending (Default)</option>
705
+ <option <?php selected('dateasc', $orderby); ?> value="dateasc">Date ascending</option>
706
+ <option <?php selected('alphadesc', $orderby); ?> value="alphadesc">Alphabetical descending</option>
707
+ <option <?php selected('alphaasc', $orderby); ?> value="alphaasc">Alphabetical ascending</option>
708
+ </select></td>
709
+ </tr>
710
+ <tr valign="top">
711
+ <th scope="row"><label for="showprivate">Show Private Pages/Posts</label></th>
712
+ <td><select name="showprivate">
713
+ <option value="no" <?php selected('no', $showprivate); ?>>No, leave hidden (Default)</option>
714
+ <option value="yes" <?php selected('yes', $showprivate); ?>>Yes, show hidden</option>
715
+ </select></td>
716
+ </tr>
717
+ <tr valign="top">
718
+ <th scope="row"><label for="showpages">Show Pages</label></th>
719
+ <td><select name="showpages">
720
+ <option value="yes" <?php selected('yes', $showpages); ?>>Yes (Default)</option>
721
+ <option value="no" <?php selected('no', $showpages); ?>>No</option>
722
+ </select></td>
723
+ </tr>
724
+ <tr valign="top">
725
+ <th scope="row"><label for="showposts">Show Posts</label></th>
726
+ <td><select name="showposts">
727
+ <option value="yes" <?php selected('yes', $showposts); ?>>Yes (Default)</option>
728
+ <option value="no" <?php selected('no', $showposts); ?>>No</option>
729
+ </select></td>
730
+ </tr>
731
+ <tr valign="top">
732
+ <th scope="row"><label for="showtags">Show Tags</label></th>
733
+ <td><select name="showtags">
734
+ <option value="yes" <?php selected('yes', $showtags); ?>>Yes (Default)</option>
735
+ <option value="no" <?php selected('no', $showtags); ?>>No</option>
736
+ </select></td>
737
+ </tr>
738
+ <tr valign="top">
739
+ <th scope="row"><label for="showarchives">Show Archives</label></th>
740
+ <td><select name="showarchives">
741
+ <option value="yes" <?php selected('yes', $showarchives); ?>>Yes (Default)</option>
742
+ <option value="no" <?php selected('no', $showarchives); ?>>No</option>
743
+ </select></td>
744
+ </tr>
745
+ <tr>
746
+ <th scope="row">Display Order</th>
747
+ <td><select name="displayorder">
748
+ <option <?php selected('1', $displayorder); ?> value='1' /> 1: Pages, Posts, Archives, Categories, Tags</option>
749
+ <option <?php selected('2', $displayorder); ?> value='2' /> 2: Pages, Posts, Archives, Tags, Categories</option>
750
+ <option <?php selected('3', $displayorder); ?> value='3' /> 3: Pages, Posts, Categories, Archives, Tags</option>
751
+ <option <?php selected('4', $displayorder); ?> value='4' /> 4: Pages, Posts, Categories, Tags, Archives</option>
752
+ <option <?php selected('5', $displayorder); ?> value='5' /> 5: Pages, Posts, Tags, Archives, Categories</option>
753
+ <option <?php selected('6', $displayorder); ?> value='6' /> 6: Pages, Posts, Tags, Categories, Archives</option>
754
+ <option <?php selected('7', $displayorder); ?> value='7' /> 7: Pages, Archives, Posts, Categories, Tags</option>
755
+ <option <?php selected('8', $displayorder); ?> value='8' /> 8: Pages, Archives, Posts, Tags, Categories</option>
756
+ <option <?php selected('9', $displayorder); ?> value='9' /> 9: Pages, Archives, Categories, Posts, Tags</option>
757
+ <option <?php selected('10', $displayorder); ?> value='10' /> 10: Pages, Archives, Categories, Tags, Posts</option>
758
+ <option <?php selected('11', $displayorder); ?> value='11' /> 11: Pages, Archives, Tags, Posts, Categories</option>
759
+ <option <?php selected('12', $displayorder); ?> value='12' /> 12: Pages, Archives, Tags, Categories, Posts</option>
760
+ <option <?php selected('13', $displayorder); ?> value='13' /> 13: Pages, Categories, Posts, Archives, Tags</option>
761
+ <option <?php selected('14', $displayorder); ?> value='14' /> 14: Pages, Categories, Posts, Tags, Archives</option>
762
+ <option <?php selected('15', $displayorder); ?> value='15' /> 15: Pages, Categories, Archives, Posts, Tags</option>
763
+ <option <?php selected('16', $displayorder); ?> value='16' /> 16: Pages, Categories, Archives, Tags, Posts</option>
764
+ <option <?php selected('17', $displayorder); ?> value='17' /> 17: Pages, Categories, Tags, Posts, Archives</option>
765
+ <option <?php selected('18', $displayorder); ?> value='18' /> 18: Pages, Categories, Tags, Archives, Posts</option>
766
+ <option <?php selected('19', $displayorder); ?> value='19' /> 19: Pages, Tags, Posts, Archives, Categories</option>
767
+ <option <?php selected('20', $displayorder); ?> value='20' /> 20: Pages, Tags, Posts, Categories, Archives</option>
768
+ <option <?php selected('21', $displayorder); ?> value='21' /> 21: Pages, Tags, Archives, Posts, Categories</option>
769
+ <option <?php selected('22', $displayorder); ?> value='22' /> 22: Pages, Tags, Archives, Categories, Posts</option>
770
+ <option <?php selected('23', $displayorder); ?> value='23' /> 23: Pages, Tags, Categories, Posts, Archives</option>
771
+ <option <?php selected('24', $displayorder); ?> value='24' /> 24: Pages, Tags, Categories, Archives, Posts</option>
772
+ <option <?php selected('25', $displayorder); ?> value='25' /> 25: Posts, Pages, Archives, Categories, Tags</option>
773
+ <option <?php selected('26', $displayorder); ?> value='26' /> 26: Posts, Pages, Archives, Tags, Categories</option>
774
+ <option <?php selected('27', $displayorder); ?> value='27' /> 27: Posts, Pages, Categories, Archives, Tags</option>
775
+ <option <?php selected('28', $displayorder); ?> value='28' /> 28: Posts, Pages, Categories, Tags, Archives</option>
776
+ <option <?php selected('29', $displayorder); ?> value='29' /> 29: Posts, Pages, Tags, Archives, Categories</option>
777
+ <option <?php selected('30', $displayorder); ?> value='30' /> 30: Posts, Pages, Tags, Categories, Archives</option>
778
+ <option <?php selected('31', $displayorder); ?> value='31' /> 31: Posts, Archives, Pages, Categories, Tags</option>
779
+ <option <?php selected('32', $displayorder); ?> value='32' /> 32: Posts, Archives, Pages, Tags, Categories</option>
780
+ <option <?php selected('33', $displayorder); ?> value='33' /> 33: Posts, Archives, Categories, Pages, Tags</option>
781
+ <option <?php selected('34', $displayorder); ?> value='34' /> 34: Posts, Archives, Categories, Tags, Pages</option>
782
+ <option <?php selected('35', $displayorder); ?> value='35' /> 35: Posts, Archives, Tags, Pages, Categories</option>
783
+ <option <?php selected('36', $displayorder); ?> value='36' /> 36: Posts, Archives, Tags, Categories, Pages</option>
784
+ <option <?php selected('37', $displayorder); ?> value='37' /> 37: Posts, Categories, Pages, Archives, Tags</option>
785
+ <option <?php selected('38', $displayorder); ?> value='38' /> 38: Posts, Categories, Pages, Tags, Archives</option>
786
+ <option <?php selected('39', $displayorder); ?> value='39' /> 39: Posts, Categories, Archives, Pages, Tags</option>
787
+ <option <?php selected('40', $displayorder); ?> value='40' /> 40: Posts, Categories, Archives, Tags, Pages</option>
788
+ <option <?php selected('41', $displayorder); ?> value='41' /> 41: Posts, Categories, Tags, Pages, Archives</option>
789
+ <option <?php selected('42', $displayorder); ?> value='42' /> 42: Posts, Categories, Tags, Archives, Pages</option>
790
+ <option <?php selected('43', $displayorder); ?> value='43' /> 43: Posts, Tags, Pages, Archives, Categories</option>
791
+ <option <?php selected('44', $displayorder); ?> value='44' /> 44: Posts, Tags, Pages, Categories, Archives</option>
792
+ <option <?php selected('45', $displayorder); ?> value='45' /> 45: Posts, Tags, Archives, Pages, Categories</option>
793
+ <option <?php selected('46', $displayorder); ?> value='46' /> 46: Posts, Tags, Archives, Categories, Pages</option>
794
+ <option <?php selected('47', $displayorder); ?> value='47' /> 47: Posts, Tags, Categories, Pages, Archives</option>
795
+ <option <?php selected('48', $displayorder); ?> value='48' /> 48: Posts, Tags, Categories, Archives, Pages</option>
796
+ <option <?php selected('49', $displayorder); ?> value='49' /> 49: Archives, Pages, Posts, Categories, Tags</option>
797
+ <option <?php selected('50', $displayorder); ?> value='50' /> 50: Archives, Pages, Posts, Tags, Categories</option>
798
+ <option <?php selected('51', $displayorder); ?> value='51' /> 51: Archives, Pages, Categories, Posts, Tags</option>
799
+ <option <?php selected('52', $displayorder); ?> value='52' /> 52: Archives, Pages, Categories, Tags, Posts</option>
800
+ <option <?php selected('53', $displayorder); ?> value='53' /> 53: Archives, Pages, Tags, Posts, Categories</option>
801
+ <option <?php selected('54', $displayorder); ?> value='54' /> 54: Archives, Pages, Tags, Categories, Posts</option>
802
+ <option <?php selected('55', $displayorder); ?> value='55' /> 55: Archives, Posts, Pages, Categories, Tags</option>
803
+ <option <?php selected('56', $displayorder); ?> value='56' /> 56: Archives, Posts, Pages, Tags, Categories</option>
804
+ <option <?php selected('57', $displayorder); ?> value='57' /> 57: Archives, Posts, Categories, Pages, Tags</option>
805
+ <option <?php selected('58', $displayorder); ?> value='58' /> 58: Archives, Posts, Categories, Tags, Pages</option>
806
+ <option <?php selected('59', $displayorder); ?> value='59' /> 59: Archives, Posts, Tags, Pages, Categories</option>
807
+ <option <?php selected('60', $displayorder); ?> value='60' /> 60: Archives, Posts, Tags, Categories, Pages</option>
808
+ <option <?php selected('61', $displayorder); ?> value='61' /> 61: Archives, Categories, Pages, Posts, Tags</option>
809
+ <option <?php selected('62', $displayorder); ?> value='62' /> 62: Archives, Categories, Pages, Tags, Posts</option>
810
+ <option <?php selected('63', $displayorder); ?> value='63' /> 63: Archives, Categories, Posts, Pages, Tags</option>
811
+ <option <?php selected('64', $displayorder); ?> value='64' /> 64: Archives, Categories, Posts, Tags, Pages</option>
812
+ <option <?php selected('65', $displayorder); ?> value='65' /> 65: Archives, Categories, Tags, Pages, Posts</option>
813
+ <option <?php selected('66', $displayorder); ?> value='66' /> 66: Archives, Categories, Tags, Posts, Pages</option>
814
+ <option <?php selected('67', $displayorder); ?> value='67' /> 67: Archives, Tags, Pages, Posts, Categories</option>
815
+ <option <?php selected('68', $displayorder); ?> value='68' /> 68: Archives, Tags, Pages, Categories, Posts</option>
816
+ <option <?php selected('69', $displayorder); ?> value='69' /> 69: Archives, Tags, Posts, Pages, Categories</option>
817
+ <option <?php selected('70', $displayorder); ?> value='70' /> 70: Archives, Tags, Posts, Categories, Pages</option>
818
+ <option <?php selected('71', $displayorder); ?> value='71' /> 71: Archives, Tags, Categories, Pages, Posts</option>
819
+ <option <?php selected('72', $displayorder); ?> value='72' /> 72: Archives, Tags, Categories, Posts, Pages</option>
820
+ <option <?php selected('73', $displayorder); ?> value='73' /> 73: Categories, Pages, Posts, Archives, Tags</option>
821
+ <option <?php selected('74', $displayorder); ?> value='74' /> 74: Categories, Pages, Posts, Tags, Archives</option>
822
+ <option <?php selected('75', $displayorder); ?> value='75' /> 75: Categories, Pages, Archives, Posts, Tags</option>
823
+ <option <?php selected('76', $displayorder); ?> value='76' /> 76: Categories, Pages, Archives, Tags, Posts</option>
824
+ <option <?php selected('77', $displayorder); ?> value='77' /> 77: Categories, Pages, Tags, Posts, Archives</option>
825
+ <option <?php selected('78', $displayorder); ?> value='78' /> 78: Categories, Pages, Tags, Archives, Posts</option>
826
+ <option <?php selected('79', $displayorder); ?> value='79' /> 79: Categories, Posts, Pages, Archives, Tags</option>
827
+ <option <?php selected('80', $displayorder); ?> value='80' /> 80: Categories, Posts, Pages, Tags, Archives</option>
828
+ <option <?php selected('81', $displayorder); ?> value='81' /> 81: Categories, Posts, Archives, Pages, Tags</option>
829
+ <option <?php selected('82', $displayorder); ?> value='82' /> 82: Categories, Posts, Archives, Tags, Pages</option>
830
+ <option <?php selected('83', $displayorder); ?> value='83' /> 83: Categories, Posts, Tags, Pages, Archives</option>
831
+ <option <?php selected('84', $displayorder); ?> value='84' /> 84: Categories, Posts, Tags, Archives, Pages</option>
832
+ <option <?php selected('85', $displayorder); ?> value='85' /> 85: Categories, Archives, Pages, Posts, Tags</option>
833
+ <option <?php selected('86', $displayorder); ?> value='86' /> 86: Categories, Archives, Pages, Tags, Posts</option>
834
+ <option <?php selected('87', $displayorder); ?> value='87' /> 87: Categories, Archives, Posts, Pages, Tags</option>
835
+ <option <?php selected('88', $displayorder); ?> value='88' /> 88: Categories, Archives, Posts, Tags, Pages</option>
836
+ <option <?php selected('89', $displayorder); ?> value='89' /> 89: Categories, Archives, Tags, Pages, Posts</option>
837
+ <option <?php selected('90', $displayorder); ?> value='90' /> 90: Categories, Archives, Tags, Posts, Pages</option>
838
+ <option <?php selected('91', $displayorder); ?> value='91' /> 91: Categories, Tags, Pages, Posts, Archives</option>
839
+ <option <?php selected('92', $displayorder); ?> value='92' /> 92: Categories, Tags, Pages, Archives, Posts</option>
840
+ <option <?php selected('93', $displayorder); ?> value='93' /> 93: Categories, Tags, Posts, Pages, Archives</option>
841
+ <option <?php selected('94', $displayorder); ?> value='94' /> 94: Categories, Tags, Posts, Archives, Pages</option>
842
+ <option <?php selected('95', $displayorder); ?> value='95' /> 95: Categories, Tags, Archives, Pages, Posts</option>
843
+ <option <?php selected('96', $displayorder); ?> value='96' /> 96: Categories, Tags, Archives, Posts, Pages</option>
844
+ <option <?php selected('97', $displayorder); ?> value='97' /> 97: Tags, Pages, Posts, Archives, Categories</option>
845
+ <option <?php selected('98', $displayorder); ?> value='98' /> 98: Tags, Pages, Posts, Categories, Archives</option>
846
+ <option <?php selected('99', $displayorder); ?> value='99' /> 99: Tags, Pages, Archives, Posts, Categories</option>
847
+ <option <?php selected('100', $displayorder); ?> value='100' /> 100: Tags, Pages, Archives, Categories, Posts</option>
848
+ <option <?php selected('101', $displayorder); ?> value='101' /> 101: Tags, Pages, Categories, Posts, Archives</option>
849
+ <option <?php selected('102', $displayorder); ?> value='102' /> 102: Tags, Pages, Categories, Archives, Posts</option>
850
+ <option <?php selected('103', $displayorder); ?> value='103' /> 103: Tags, Posts, Pages, Archives, Categories</option>
851
+ <option <?php selected('104', $displayorder); ?> value='104' /> 104: Tags, Posts, Pages, Categories, Archives</option>
852
+ <option <?php selected('105', $displayorder); ?> value='105' /> 105: Tags, Posts, Archives, Pages, Categories</option>
853
+ <option <?php selected('106', $displayorder); ?> value='106' /> 106: Tags, Posts, Archives, Categories, Pages</option>
854
+ <option <?php selected('107', $displayorder); ?> value='107' /> 107: Tags, Posts, Categories, Pages, Archives</option>
855
+ <option <?php selected('108', $displayorder); ?> value='108' /> 108: Tags, Posts, Categories, Archives, Pages</option>
856
+ <option <?php selected('109', $displayorder); ?> value='109' /> 109: Tags, Archives, Pages, Posts, Categories</option>
857
+ <option <?php selected('110', $displayorder); ?> value='110' /> 110: Tags, Archives, Pages, Categories, Posts</option>
858
+ <option <?php selected('111', $displayorder); ?> value='111' /> 111: Tags, Archives, Posts, Pages, Categories</option>
859
+ <option <?php selected('112', $displayorder); ?> value='112' /> 112: Tags, Archives, Posts, Categories, Pages</option>
860
+ <option <?php selected('113', $displayorder); ?> value='113' /> 113: Tags, Archives, Categories, Pages, Posts</option>
861
+ <option <?php selected('114', $displayorder); ?> value='114' /> 114: Tags, Archives, Categories, Posts, Pages</option>
862
+ <option <?php selected('115', $displayorder); ?> value='115' /> 115: Tags, Categories, Pages, Posts, Archives</option>
863
+ <option <?php selected('116', $displayorder); ?> value='116' /> 116: Tags, Categories, Pages, Archives, Posts</option>
864
+ <option <?php selected('117', $displayorder); ?> value='117' /> 117: Tags, Categories, Posts, Pages, Archives</option>
865
+ <option <?php selected('118', $displayorder); ?> value='118' /> 118: Tags, Categories, Posts, Archives, Pages</option>
866
+ <option <?php selected('119', $displayorder); ?> value='119' /> 119: Tags, Categories, Archives, Pages, Posts</option>
867
+ <option <?php selected('120', $displayorder); ?> value='120' /> 120: Tags, Categories, Archives, Posts, Pages</option>
868
+ </select></td>
869
+ </tr>
870
+ </table>
871
+
872
+ <div class="submit">
873
+ <input type="submit" name="info_update" value="Update Options" />
874
+ </div>
875
+ </form>
876
+ </div><?php
877
+ }
878
+
879
+ // Hooks
880
+ add_filter('the_content', 'wp_realtime_sitemap', 2);
881
+ add_action('admin_menu', 'wp_realtime_sitemap_admin');
882
+
883
+ ?>