WP Realtime Sitemap - Version 1.4.4

Version Description

  • Added option to reset database settings back to defaults.
  • Fixed code when using [wp-realtime-sitemap show="all"] and not correctly showing tags and/or categories as tag clouds or not.
  • Changed activation code to better upgrade database settings, and clean up old data from the database that is now no longer needed.
  • Added Brazilian Portuguese translation files courtesy of gervasioantonio.
  • Admin interface now fully translatable.
Download this release

Release Info

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

Code changes from version 1.4.3 to 1.4.4

language/wp-realtime-sitemap-pt_BR.mo ADDED
Binary file
language/wp-realtime-sitemap-pt_BR.po ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of the WordPress plugin WP Realtime Sitemap 1.4.3 by Daniel Tweedy.
2
+ # Copyright (C) 2010 Daniel Tweedy
3
+ # This file is distributed under the same license as the WP Realtime Sitemap package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: WP Realtime Sitemap 1.4.3\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-realtime-sitemap\n"
10
+ "POT-Creation-Date: 2010-07-06 19:49+0000\n"
11
+ "PO-Revision-Date: 2010-07-24 17:43-0300\n"
12
+ "Last-Translator: Gervásio Antônio <gdsa32-translation@yahoo.com.br>\n"
13
+ "Language-Team: Gervásio Antônio <gdsa32-translations@yahoo.com.br>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=utf-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Poedit-Language: Portuguese\n"
18
+ "X-Poedit-Country: BRAZIL\n"
19
+
20
+ #: wp-realtime-sitemap.php:33
21
+ msgid "You do not have sufficient permissions to access this page."
22
+ msgstr "Você não possui permissão para acessar esta página."
23
+
24
+ #: wp-realtime-sitemap.php:357
25
+ msgid "Pages"
26
+ msgstr "Páginas"
27
+
28
+ #: wp-realtime-sitemap.php:376
29
+ msgid "Posts"
30
+ msgstr "Posts"
31
+
32
+ #: wp-realtime-sitemap.php:379
33
+ #, php-format
34
+ msgid "Permalink to %s"
35
+ msgstr "Link permanente para %s"
36
+
37
+ #: wp-realtime-sitemap.php:387
38
+ msgid "Archives"
39
+ msgstr "Arquivos"
40
+
41
+ #: wp-realtime-sitemap.php:392
42
+ msgid "Categories"
43
+ msgstr "Cetegorias"
44
+
45
+ #: wp-realtime-sitemap.php:402
46
+ msgid "Tags"
47
+ msgstr "Tags"
48
+
49
+ #: wp-realtime-sitemap.php:903
50
+ #: wp-realtime-sitemap.php:917
51
+ msgid "Settings"
52
+ msgstr "Configurações"
53
+
54
+ #: wp-realtime-sitemap.php:913
55
+ msgid "FAQ"
56
+ msgstr "FAQ"
57
+
58
+ #: wp-realtime-sitemap.php:915
59
+ msgid "Support"
60
+ msgstr "Suporte"
61
+
62
+ #: wp-realtime-sitemap.php:919
63
+ msgid "Donate"
64
+ msgstr "Doe"
65
+
66
+ #: wp-realtime-sitemap.php:929
67
+ msgid "WP Realtime Sitemap Options"
68
+ msgstr "Opções do WP Realtime Sitemap"
69
+
70
+ #. #-#-#-#-# plugin.pot (WP Realtime Sitemap 1.3) #-#-#-#-#
71
+ #. Plugin Name of the plugin/theme
72
+ #: wp-realtime-sitemap.php:930
73
+ msgid "WP Realtime Sitemap"
74
+ msgstr "WP Realtime Sitemap"
75
+
76
+ #: wp-realtime-sitemap.php:944
77
+ msgid "WP Realtime Sitemap Help"
78
+ msgstr "Ajuda do WP Realtime Sitemap"
79
+
80
+ #: wp-realtime-sitemap.php:945
81
+ msgid "WP Realtime Sitemap Home Page"
82
+ msgstr "Página do WP Realtime Sitemap na Internet"
83
+
84
+ #: wp-realtime-sitemap.php:946
85
+ msgid "WP Realtime Sitemap FAQ"
86
+ msgstr "Perguntas Frequentes sobre o WP Realtime Sitemap"
87
+
88
+ #: wp-realtime-sitemap.php:947
89
+ msgid "WP Realtime Sitemap Support"
90
+ msgstr "Suporte do WP Realtime Sitemap"
91
+
92
+ #: wp-realtime-sitemap.php:948
93
+ msgid "WP Realtime Sitemap Donate"
94
+ msgstr "Doe para o WP Realtime Sitemap"
95
+
96
+ #: wp-realtime-sitemap.php:949
97
+ msgid "Please read the plugin information and FAQ, before asking a question."
98
+ msgstr "Por favor, leia as informações e a FAQ do plugin, antes de enviar uma pergunta."
99
+
100
+ #. Plugin URI of the plugin/theme
101
+ msgid "http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-home/"
102
+ msgstr "http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-home/"
103
+
104
+ #. Description of the plugin/theme
105
+ msgid "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 Settings->WP Realtime Sitemap to set options."
106
+ msgstr "Adiciona um mapa do site sempre atualizado ao seu blog Wordpress. Insira o trecho `<!--wp-realtime-sitemap-->` em qualquer página ou post e o mapa do seu site será criado lá. Vá em Configurações->WP Realtime Sitemap para ajustar as configurações."
107
+
108
+ #. Author of the plugin/theme
109
+ msgid "Daniel Tweedy"
110
+ msgstr "Daniel Tweedy"
111
+
112
+ #. Author URI of the plugin/theme
113
+ msgid "http://www.daniel-tweedy.co.uk/"
114
+ msgstr "http://www.daniel-tweedy.co.uk/"
115
+
language/wp-realtime-sitemap.pot CHANGED
@@ -1,4 +1,4 @@
1
- # Translation of the WordPress plugin WP Realtime Sitemap 1.3 by Daniel Tweedy.
2
  # Copyright (C) 2010 Daniel Tweedy
3
  # This file is distributed under the same license as the WP Realtime Sitemap package.
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
@@ -6,9 +6,9 @@
6
  #, fuzzy
7
  msgid ""
8
  msgstr ""
9
- "Project-Id-Version: WP Realtime Sitemap 1.3\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-realtime-sitemap\n"
11
- "POT-Creation-Date: 2010-07-06 19:49+0000\n"
12
  "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -16,82 +16,196 @@ msgstr ""
16
  "Content-Type: text/plain; charset=utf-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
- #: wp-realtime-sitemap.php:33
20
  msgid "You do not have sufficient permissions to access this page."
21
  msgstr ""
22
 
23
- #: wp-realtime-sitemap.php:357
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  msgid "Pages"
25
  msgstr ""
26
 
27
- #: wp-realtime-sitemap.php:376
28
  msgid "Posts"
29
  msgstr ""
30
 
31
- #: wp-realtime-sitemap.php:379
32
  #, php-format
33
  msgid "Permalink to %s"
34
  msgstr ""
35
 
36
- #: wp-realtime-sitemap.php:387
37
  msgid "Archives"
38
  msgstr ""
39
 
40
- #: wp-realtime-sitemap.php:392
41
  msgid "Categories"
42
  msgstr ""
43
 
44
- #: wp-realtime-sitemap.php:402
45
  msgid "Tags"
46
  msgstr ""
47
 
48
- #: wp-realtime-sitemap.php:903 wp-realtime-sitemap.php:917
49
  msgid "Settings"
50
  msgstr ""
51
 
52
- #: wp-realtime-sitemap.php:913
53
  msgid "FAQ"
54
  msgstr ""
55
 
56
- #: wp-realtime-sitemap.php:915
57
  msgid "Support"
58
  msgstr ""
59
 
60
- #: wp-realtime-sitemap.php:919
61
  msgid "Donate"
62
  msgstr ""
63
 
64
- #: wp-realtime-sitemap.php:929
65
  msgid "WP Realtime Sitemap Options"
66
  msgstr ""
67
 
68
- #. #-#-#-#-# plugin.pot (WP Realtime Sitemap 1.3) #-#-#-#-#
69
  #. Plugin Name of the plugin/theme
70
- #: wp-realtime-sitemap.php:930
71
  msgid "WP Realtime Sitemap"
72
  msgstr ""
73
 
74
- #: wp-realtime-sitemap.php:944
75
  msgid "WP Realtime Sitemap Help"
76
  msgstr ""
77
 
78
- #: wp-realtime-sitemap.php:945
79
  msgid "WP Realtime Sitemap Home Page"
80
  msgstr ""
81
 
82
- #: wp-realtime-sitemap.php:946
83
  msgid "WP Realtime Sitemap FAQ"
84
  msgstr ""
85
 
86
- #: wp-realtime-sitemap.php:947
87
  msgid "WP Realtime Sitemap Support"
88
  msgstr ""
89
 
90
- #: wp-realtime-sitemap.php:948
91
  msgid "WP Realtime Sitemap Donate"
92
  msgstr ""
93
 
94
- #: wp-realtime-sitemap.php:949
95
  msgid "Please read the plugin information and FAQ, before asking a question."
96
  msgstr ""
97
 
@@ -101,9 +215,9 @@ msgstr ""
101
 
102
  #. Description of the plugin/theme
103
  msgid ""
104
- "Adds a sitemap to your Wordpress blog that is always up-to-date. Add `<!--wp-"
105
- "realtime-sitemap-->` to any page or post and the site map will be added "
106
- "there. Use Settings->WP Realtime Sitemap to set options."
107
  msgstr ""
108
 
109
  #. Author of the plugin/theme
1
+ # Translation of the WordPress plugin WP Realtime Sitemap 1.4.4 by Daniel Tweedy.
2
  # Copyright (C) 2010 Daniel Tweedy
3
  # This file is distributed under the same license as the WP Realtime Sitemap package.
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
6
  #, fuzzy
7
  msgid ""
8
  msgstr ""
9
+ "Project-Id-Version: WP Realtime Sitemap 1.4.4\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-realtime-sitemap\n"
11
+ "POT-Creation-Date: 2010-09-14 10:10+0000\n"
12
  "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
  "Content-Type: text/plain; charset=utf-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
+ #: wp-realtime-sitemap.php:34
20
  msgid "You do not have sufficient permissions to access this page."
21
  msgstr ""
22
 
23
+ #: wp-realtime-sitemap.php:94
24
+ msgid "WP Realtime Sitemap Default Options"
25
+ msgstr ""
26
+
27
+ #: wp-realtime-sitemap.php:100
28
+ msgid "Sort column"
29
+ msgstr ""
30
+
31
+ #: wp-realtime-sitemap.php:102
32
+ msgid "Alphabetically (by title) (Default)"
33
+ msgstr ""
34
+
35
+ #: wp-realtime-sitemap.php:103
36
+ msgid "Page order"
37
+ msgstr ""
38
+
39
+ #: wp-realtime-sitemap.php:104
40
+ msgid "Creation time"
41
+ msgstr ""
42
+
43
+ #: wp-realtime-sitemap.php:105
44
+ msgid "Time last modified"
45
+ msgstr ""
46
+
47
+ #: wp-realtime-sitemap.php:106
48
+ msgid "Numeric Page ID"
49
+ msgstr ""
50
+
51
+ #: wp-realtime-sitemap.php:107
52
+ msgid "Page author"
53
+ msgstr ""
54
+
55
+ #: wp-realtime-sitemap.php:108
56
+ msgid "Alphabetically (by post slug)"
57
+ msgstr ""
58
+
59
+ #: wp-realtime-sitemap.php:112
60
+ msgid "Sort order"
61
+ msgstr ""
62
+
63
+ #: wp-realtime-sitemap.php:114
64
+ msgid "Ascending (Default)"
65
+ msgstr ""
66
+
67
+ #: wp-realtime-sitemap.php:115
68
+ msgid "Descending"
69
+ msgstr ""
70
+
71
+ #: wp-realtime-sitemap.php:119
72
+ msgid "Show post count"
73
+ msgstr ""
74
+
75
+ #: wp-realtime-sitemap.php:121 wp-realtime-sitemap.php:128
76
+ #: wp-realtime-sitemap.php:163 wp-realtime-sitemap.php:177
77
+ msgid "Yes/On"
78
+ msgstr ""
79
+
80
+ #: wp-realtime-sitemap.php:122 wp-realtime-sitemap.php:129
81
+ #: wp-realtime-sitemap.php:164 wp-realtime-sitemap.php:178
82
+ msgid "No/Off (Default)"
83
+ msgstr ""
84
+
85
+ #: wp-realtime-sitemap.php:126
86
+ msgid "Show date"
87
+ msgstr ""
88
+
89
+ #: wp-realtime-sitemap.php:133
90
+ msgid "Show pages"
91
+ msgstr ""
92
+
93
+ #: wp-realtime-sitemap.php:135 wp-realtime-sitemap.php:142
94
+ #: wp-realtime-sitemap.php:149 wp-realtime-sitemap.php:156
95
+ #: wp-realtime-sitemap.php:170
96
+ msgid "Yes/On (Default)"
97
+ msgstr ""
98
+
99
+ #: wp-realtime-sitemap.php:136 wp-realtime-sitemap.php:143
100
+ #: wp-realtime-sitemap.php:150 wp-realtime-sitemap.php:157
101
+ #: wp-realtime-sitemap.php:171
102
+ msgid "No/Off"
103
+ msgstr ""
104
+
105
+ #: wp-realtime-sitemap.php:140
106
+ msgid "Show posts"
107
+ msgstr ""
108
+
109
+ #: wp-realtime-sitemap.php:147
110
+ msgid "Show archives"
111
+ msgstr ""
112
+
113
+ #: wp-realtime-sitemap.php:154
114
+ msgid "Show categories"
115
+ msgstr ""
116
+
117
+ #: wp-realtime-sitemap.php:161
118
+ msgid "Show categories as a tag cloud"
119
+ msgstr ""
120
+
121
+ #: wp-realtime-sitemap.php:168
122
+ msgid "Show tags"
123
+ msgstr ""
124
+
125
+ #: wp-realtime-sitemap.php:175
126
+ msgid "Show tags as a tag cloud"
127
+ msgstr ""
128
+
129
+ #: wp-realtime-sitemap.php:184
130
+ msgid "Update Options"
131
+ msgstr ""
132
+
133
+ #: wp-realtime-sitemap.php:192
134
+ msgid "Restore Defaults"
135
+ msgstr ""
136
+
137
+ #: wp-realtime-sitemap.php:227
138
  msgid "Pages"
139
  msgstr ""
140
 
141
+ #: wp-realtime-sitemap.php:246
142
  msgid "Posts"
143
  msgstr ""
144
 
145
+ #: wp-realtime-sitemap.php:255
146
  #, php-format
147
  msgid "Permalink to %s"
148
  msgstr ""
149
 
150
+ #: wp-realtime-sitemap.php:268
151
  msgid "Archives"
152
  msgstr ""
153
 
154
+ #: wp-realtime-sitemap.php:274
155
  msgid "Categories"
156
  msgstr ""
157
 
158
+ #: wp-realtime-sitemap.php:290
159
  msgid "Tags"
160
  msgstr ""
161
 
162
+ #: wp-realtime-sitemap.php:335 wp-realtime-sitemap.php:349
163
  msgid "Settings"
164
  msgstr ""
165
 
166
+ #: wp-realtime-sitemap.php:345
167
  msgid "FAQ"
168
  msgstr ""
169
 
170
+ #: wp-realtime-sitemap.php:347
171
  msgid "Support"
172
  msgstr ""
173
 
174
+ #: wp-realtime-sitemap.php:351
175
  msgid "Donate"
176
  msgstr ""
177
 
178
+ #: wp-realtime-sitemap.php:361
179
  msgid "WP Realtime Sitemap Options"
180
  msgstr ""
181
 
182
+ #. #-#-#-#-# plugin.pot (WP Realtime Sitemap 1.4.4) #-#-#-#-#
183
  #. Plugin Name of the plugin/theme
184
+ #: wp-realtime-sitemap.php:362
185
  msgid "WP Realtime Sitemap"
186
  msgstr ""
187
 
188
+ #: wp-realtime-sitemap.php:488
189
  msgid "WP Realtime Sitemap Help"
190
  msgstr ""
191
 
192
+ #: wp-realtime-sitemap.php:489
193
  msgid "WP Realtime Sitemap Home Page"
194
  msgstr ""
195
 
196
+ #: wp-realtime-sitemap.php:490
197
  msgid "WP Realtime Sitemap FAQ"
198
  msgstr ""
199
 
200
+ #: wp-realtime-sitemap.php:491
201
  msgid "WP Realtime Sitemap Support"
202
  msgstr ""
203
 
204
+ #: wp-realtime-sitemap.php:492
205
  msgid "WP Realtime Sitemap Donate"
206
  msgstr ""
207
 
208
+ #: wp-realtime-sitemap.php:493
209
  msgid "Please read the plugin information and FAQ, before asking a question."
210
  msgstr ""
211
 
215
 
216
  #. Description of the plugin/theme
217
  msgid ""
218
+ "Adds a sitemap to your Wordpress blog that is always up-to-date. Add `[wp-"
219
+ "realtime-sitemap show=\"all\"]` to any page or post and the site map will be "
220
+ "added there. Use Settings->WP Realtime Sitemap to set options."
221
  msgstr ""
222
 
223
  #. Author of the plugin/theme
readme.txt CHANGED
@@ -1,5 +1,5 @@
1
  === WP Realtime Sitemap ===
2
- Contributors: rincewind
3
  Donate link: http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-donate/
4
  Tags: seo, navigation, sitemap, sitemaps
5
  Requires at least: 3.0
@@ -51,6 +51,24 @@ Please rate this plugin and/or make a donation if you find it useful, thank you.
51
  1. v1.3: Now choose the php file you wish to add the sitemap to, and add the following code: `<?php echo wp_realtime_sitemap('<!--wp-realtime-sitemap-->'); ?>`.
52
  1. v1.3.1+: Now choose the php file you wish to add the sitemap to, and add the following code: `<?php wp_realtime_sitemap(array('show' => 'all'), '', 'wp-realtime-sitemap'); ?>`.
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  == Examples ==
55
 
56
  The shortcode will still use the database, this will be the default options now so you can use a small shortcode in your page and not have to put a long line just to get what you want, you can however do this if you wish to change the default options.
@@ -67,29 +85,24 @@ Show tags: `[wp-realtime-sitemap show="tags"]`.
67
 
68
  Show everything (fixed order of: posts, pages, archives, categories, tags): `[wp-realtime-sitemap show="all" sort_column="title" sort_order="ASC" show_count="yes" show_date="yes"]`.
69
 
70
- `show_date` only applies to posts.
71
- `show_count` only applies to archives, categories and tags.
 
 
72
 
73
- == Frequently Asked Questions ==
74
 
75
- = Do I need to add the &lt;!--wp-realtime-sitemap--&gt; to a Post or a Page? =
76
-
77
- This method is no longer supported in anything passed v1.3, please use the shortcode instead.
78
-
79
- = What should I call the page that I add the sitemap to? =
80
-
81
- You can call it whatever you like. I would suggest you call it Site Map.
82
-
83
- = Is there a php code so I can add it to a php template file? =
84
-
85
- Upto v1.3 you can put this php code into a file that you wish to have the sitemap shown on: `<?php echo wp_realtime_sitemap('<!--wp-realtime-sitemap-->'); ?>`.
86
-
87
- After v1.3 you can if do this put this php code in the php file you wish to have the sitemap shown on: `<?php echo wp_realtime_sitemap(array('show' => 'pages'), '', 'wp-realtime-sitemap'); ?>`.
88
-
89
- Please see the installation page for information about the short code usage for more information on the show attribute.
90
 
91
  == Changelog ==
92
 
 
 
 
 
 
 
 
93
  = 1.4.3 =
94
  * Fixed issue where overwritting `sort_column` variable.
95
 
1
  === WP Realtime Sitemap ===
2
+ Contributors: Rincewind, gervasioantonio
3
  Donate link: http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-donate/
4
  Tags: seo, navigation, sitemap, sitemaps
5
  Requires at least: 3.0
51
  1. v1.3: Now choose the php file you wish to add the sitemap to, and add the following code: `<?php echo wp_realtime_sitemap('<!--wp-realtime-sitemap-->'); ?>`.
52
  1. v1.3.1+: Now choose the php file you wish to add the sitemap to, and add the following code: `<?php wp_realtime_sitemap(array('show' => 'all'), '', 'wp-realtime-sitemap'); ?>`.
53
 
54
+ == Frequently Asked Questions ==
55
+
56
+ = Do I need to add the &lt;!--wp-realtime-sitemap--&gt; to a Post or a Page? =
57
+
58
+ This method is no longer supported in anything passed v1.3, please use the shortcode instead.
59
+
60
+ = What should I call the page that I add the sitemap to? =
61
+
62
+ You can call it whatever you like. I would suggest you call it Site Map.
63
+
64
+ = Is there a php code so I can add it to a php template file? =
65
+
66
+ Upto v1.3 you can put this php code into a file that you wish to have the sitemap shown on: `<?php echo wp_realtime_sitemap('<!--wp-realtime-sitemap-->'); ?>`.
67
+
68
+ After v1.3 you can if do this put this php code in the php file you wish to have the sitemap shown on: `<?php echo wp_realtime_sitemap(array('show' => 'pages'), '', 'wp-realtime-sitemap'); ?>`.
69
+
70
+ Please see the installation page for information about the short code usage for more information on the show attribute.
71
+
72
  == Examples ==
73
 
74
  The shortcode will still use the database, this will be the default options now so you can use a small shortcode in your page and not have to put a long line just to get what you want, you can however do this if you wish to change the default options.
85
 
86
  Show everything (fixed order of: posts, pages, archives, categories, tags): `[wp-realtime-sitemap show="all" sort_column="title" sort_order="ASC" show_count="yes" show_date="yes"]`.
87
 
88
+ *sort_column* options: title, menu_order, date, modified, ID, author, name.
89
+ *sort_order* options: ASC, DESC.
90
+ *show_count* options: yes, on, no, off (only applies to posts).
91
+ *show_date* options: yes, on, no, off (only applies to archives, categories and tags).
92
 
93
+ == Translations ==
94
 
95
+ Brazilian Portuguese translation kindly done by gervasioantonio.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
 
97
  == Changelog ==
98
 
99
+ = 1.4.4 =
100
+ * Added option to reset database settings back to defaults.
101
+ * Fixed code when using `[wp-realtime-sitemap show="all"]` and not correctly showing tags and/or categories as tag clouds or not.
102
+ * Changed activation code to better upgrade database settings, and clean up old data from the database that is now no longer needed.
103
+ * Added Brazilian Portuguese translation files courtesy of gervasioantonio.
104
+ * Admin interface now fully translatable.
105
+
106
  = 1.4.3 =
107
  * Fixed issue where overwritting `sort_column` variable.
108
 
wp-realtime-sitemap.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: WP Realtime Sitemap
5
  Plugin URI: http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-home/
6
  Description: Adds a sitemap to your Wordpress blog that is always up-to-date. Add `[wp-realtime-sitemap show="all"]` to any page or post and the site map will be added there. Use Settings->WP Realtime Sitemap to set options.
7
- Version: 1.4.3
8
  Author: Daniel Tweedy
9
  Author URI: http://www.daniel-tweedy.co.uk/
10
  License: GPL2
@@ -45,6 +45,8 @@ function wprs_options_form() {
45
  // Update current options with options submitted by the form.
46
  $options['sort_column'] = $_POST['sort_column'];
47
  $options['sort_order'] = $_POST['sort_order'];
 
 
48
  $options['show_pages'] = $_POST['show_pages'];
49
  $options['show_posts'] = $_POST['show_posts'];
50
  $options['show_archives'] = $_POST['show_archives'];
@@ -52,112 +54,142 @@ function wprs_options_form() {
52
  $options['category_tagcloud'] = $_POST['category_tagcloud'];
53
  $options['show_tags'] = $_POST['show_tags'];
54
  $options['tags_tagcloud'] = $_POST['tags_tagcloud'];
55
- $options['show_count'] = $_POST['show_count'];
56
- $options['show_date'] = $_POST['show_date'];
57
 
58
  // Update settings posted via the form into the database.
59
  update_option('plugin_wp_realtime_sitemap_settings', $options);
60
 
61
  // Get current options from the database.
62
  extract(get_option('plugin_wp_realtime_sitemap_settings'));
63
- } else {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  // Get current options from the database.
65
  extract(get_option('plugin_wp_realtime_sitemap_settings'));
66
  }
 
 
 
67
  ?>
68
  <div class="wrap">
69
- <h2>WP Realtime Sitemap Default Options</h2>
 
70
 
71
  <form method="post">
72
- <h3>Globals</h3>
73
  <?php wp_nonce_field('wp-realtime-sitemap'); ?>
74
  <table class="form-table">
75
  <tr valign="top">
76
- <th scope="row"><label for="sort_column">Sort column</label></th>
77
  <td><select name="sort_column">
78
- <option <?php selected('title', $sort_column); ?> value="title">Alphabetically (by title) (Default)</option>
79
- <option <?php selected('menu_order', $sort_column); ?> value="menu_order">Page order</option>
80
- <option <?php selected('date', $sort_column); ?> value="date">Creation time</option>
81
- <option <?php selected('modified', $sort_column); ?> value="modified">Time last modified</option>
82
- <option <?php selected('ID', $sort_column); ?> value="ID">Numeric Page ID</option>
83
- <option <?php selected('author', $sort_column); ?> value="author">Page author</option>
84
- <option <?php selected('name', $sort_column); ?> value="name">Alphabetically (by post slug)</option>
85
  </select></td>
86
  </tr>
87
  <tr valign="top">
88
- <th scope="row"><label for="sort_order">Sort order</label></th>
89
  <td><select name="sort_order">
90
- <option <?php selected('ASC', $sort_order); ?> value="ASC">Ascending (Default)</option>
91
- <option <?php selected('DESC', $sort_order); ?> value="DESC">Descending</option>
92
  </select></td>
93
  </tr>
94
  <tr valign="top">
95
- <th scope="row"><label for="show_count">Show post count</label></th>
96
  <td><select name="show_count">
97
- <option <?php selected('yes', $show_count); ?> value="yes">Yes/On</option>
98
- <option <?php selected('no', $show_count); ?> value="no">No/Off (Default)</option>
99
  </select></td>
100
  </tr>
101
  <tr valign="top">
102
- <th scope="row"><label for="show_date">Show date</label></th>
103
  <td><select name="show_date">
104
- <option <?php selected('yes', $show_date); ?> value="yes">Yes/On</option>
105
- <option <?php selected('no', $show_date); ?> value="no">No/Off (Default)</option>
106
  </select></td>
107
  </tr>
108
  <tr valign="top">
109
- <th scope="row"><label for="show_pages">Show pages</label></th>
110
  <td><select name="show_pages">
111
- <option value="yes" <?php selected('yes', $show_pages); ?>>Yes/On (Default)</option>
112
- <option value="no" <?php selected('no', $show_pages); ?>>No/Off</option>
113
  </select></td>
114
  </tr>
115
  <tr valign="top">
116
- <th scope="row"><label for="show_posts">Show posts</label></th>
117
  <td><select name="show_posts">
118
- <option value="yes" <?php selected('yes', $show_posts); ?>>Yes/On (Default)</option>
119
- <option value="no" <?php selected('no', $show_posts); ?>>No/Off</option>
120
  </select></td>
121
  </tr>
122
  <tr valign="top">
123
- <th scope="row"><label for="show_archives">Show archives</label></th>
124
  <td><select name="show_archives">
125
- <option value="yes" <?php selected('yes', $show_archives); ?>>Yes/On (Default)</option>
126
- <option value="no" <?php selected('no', $show_archives); ?>>No/Off</option>
127
  </select></td>
128
  </tr>
129
  <tr valign="top">
130
- <th scope="row"><label for="show_categories">Show categories</label></th>
131
  <td><select name="show_categories">
132
- <option value="yes" <?php selected('yes', $show_categories); ?>>Yes/On (Default)</option>
133
- <option value="no" <?php selected('no', $show_categories); ?>>No/Off</option>
134
  </select></td>
135
  </tr>
136
  <tr valign="top">
137
- <th scope="row"><label for="category_tagcloud">Show categories as a tag cloud</label></th>
138
  <td><select name="category_tagcloud">
139
- <option value="yes" <?php selected('yes', $category_tagcloud); ?>>Yes/On</option>
140
- <option value="no" <?php selected('no', $category_tagcloud); ?>>No/Off (Default)</option>
141
  </select></td>
142
  </tr>
143
  <tr valign="top">
144
- <th scope="row"><label for="show_tags">Show tags</label></th>
145
  <td><select name="show_tags">
146
- <option value="yes" <?php selected('yes', $show_tags); ?>>Yes/On (Default)</option>
147
- <option value="no" <?php selected('no', $show_tags); ?>>No/Off</option>
148
  </select></td>
149
  </tr>
150
  <tr valign="top">
151
- <th scope="row"><label for="tags_tagcloud">Show tags as a tag cloud</label></th>
152
  <td><select name="tags_tagcloud">
153
- <option value="yes" <?php selected('yes', $tags_tagcloud); ?>>Yes/On</option>
154
- <option value="no" <?php selected('no', $tags_tagcloud); ?>>No/Off (Default)</option>
155
  </select></td>
156
  </tr>
157
  </table>
158
 
159
  <div class="submit">
160
- <input type="submit" name="info_update" value="Update Options" />
 
 
 
 
 
 
 
 
161
  </div>
162
  </form>
163
  </div><?php
@@ -183,7 +215,7 @@ function wp_realtime_sitemap($atts, $content=null, $code='') {
183
 
184
  if ($show == 'categories') {
185
  $tagcloud = $all_options['category_tagcloud'];
186
- } elseif ($show == 'tags') {
187
  $tagcloud = $all_options['tags_tagcloud'];
188
  }
189
 
@@ -197,7 +229,7 @@ function wp_realtime_sitemap($atts, $content=null, $code='') {
197
  }
198
 
199
  // Posts: Yes/No?
200
- if ($all_options['show_posts'] != 'no' && $all_options['show_posts'] != 'no') {
201
  $posts = '';
202
 
203
  // Set options for post query
@@ -232,17 +264,17 @@ function wp_realtime_sitemap($atts, $content=null, $code='') {
232
  }
233
 
234
  // Archives: Yes/No?
235
- if ($all_options['show_archives'] != 'no' && $all_options['show_archives'] != 'no') {
236
  $archives = '<h3>'.__('Archives', 'wp-realtime-sitemap').'</h3>';
237
  $archives .= '<ul>' . wp_get_archives(array('type' => 'monthly', 'show_post_count' => ($show_count == 'yes') ? true : false, 'echo' => 0)) . '</ul>';
238
  }
239
 
240
  // Categories: Yes/No?
241
- if ($all_options['show_categories'] != 'no' && $all_options['show_categories'] != 'no') {
242
  $categories = '<h3>'.__('Categories', 'wp-realtime-sitemap').'</h3>';
243
 
244
  // Tag Cloud: Yes/No?
245
- if ($tagcloud != 'no' && $tagcloud != 'no') {
246
  $categories .= wp_tag_cloud(array('format' => 'flat', 'separator' => ' ', 'taxonomy' => 'category', 'echo' => '0'));
247
  } else {
248
  if ($sort_column != 'ID' || $sort_column != 'name' || $sort_column != 'slug' || $sort_column != 'count' || $sort_column != 'term_group') {
@@ -254,11 +286,11 @@ function wp_realtime_sitemap($atts, $content=null, $code='') {
254
  }
255
 
256
  // Tags: Yes/No?
257
- if ($all_options['show_tags'] != 'no' && $all_options['show_tags'] != 'no') {
258
  $tags = '<h3>'.__('Tags', 'wp-realtime-sitemap').'</h3>';
259
 
260
  // Tag Cloud: Yes/No?
261
- if ($tagcloud != 'no' && $tagcloud != 'no') {
262
  $tags .= wp_tag_cloud(array('format' => 'flat', 'separator' => ' ', 'echo' => '0'));
263
  } else {
264
  if ($sort_column != 'ID' || $sort_column != 'name' || $sort_column != 'slug' || $sort_column != 'count' || $sort_column != 'term_group') {
@@ -351,20 +383,82 @@ function wprs_admin_init() {
351
  if ($orderby == 'dateasc' || $orderby == 'alphaasc')
352
  $sort_order = 'ASC';
353
 
354
- // Add default options if first time running - http://striderweb.com/nerdaphernalia/2008/07/consolidate-options-with-arrays/
355
- add_option('plugin_wp_realtime_sitemap_settings', array(
356
- 'sort_column' => $sort_column,
357
- 'sort_order' => $sort_order,
358
- 'show_pages' => get_option('wp_realtime_sitemap_showpages'),
359
- 'show_posts' => get_option('wp_realtime_sitemap_showposts'),
360
- 'show_archives' => get_option('wp_realtime_sitemap_showarchives'),
361
- 'show_categories' => get_option('wp_realtime_sitemap_showcategories'),
362
- 'category_tagcloud' => get_option('wp_realtime_sitemap_showcategoriesastc'),
363
- 'show_tags' => get_option('wp_realtime_sitemap_showtags'),
364
- 'tags_tagcloud' => get_option('wp_realtime_sitemap_showtagsastc'),
365
- 'show_count' => 'no',
366
- 'show_date' => 'no',
367
- ));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
368
 
369
  // Delete old unused database entries - v1.0
370
  delete_option('wp_realtime_sitemap_orderby');
4
  Plugin Name: WP Realtime Sitemap
5
  Plugin URI: http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-home/
6
  Description: Adds a sitemap to your Wordpress blog that is always up-to-date. Add `[wp-realtime-sitemap show="all"]` to any page or post and the site map will be added there. Use Settings->WP Realtime Sitemap to set options.
7
+ Version: 1.4.4
8
  Author: Daniel Tweedy
9
  Author URI: http://www.daniel-tweedy.co.uk/
10
  License: GPL2
45
  // Update current options with options submitted by the form.
46
  $options['sort_column'] = $_POST['sort_column'];
47
  $options['sort_order'] = $_POST['sort_order'];
48
+ $options['show_count'] = $_POST['show_count'];
49
+ $options['show_date'] = $_POST['show_date'];
50
  $options['show_pages'] = $_POST['show_pages'];
51
  $options['show_posts'] = $_POST['show_posts'];
52
  $options['show_archives'] = $_POST['show_archives'];
54
  $options['category_tagcloud'] = $_POST['category_tagcloud'];
55
  $options['show_tags'] = $_POST['show_tags'];
56
  $options['tags_tagcloud'] = $_POST['tags_tagcloud'];
 
 
57
 
58
  // Update settings posted via the form into the database.
59
  update_option('plugin_wp_realtime_sitemap_settings', $options);
60
 
61
  // Get current options from the database.
62
  extract(get_option('plugin_wp_realtime_sitemap_settings'));
63
+ }
64
+
65
+ // Check if we have a posted form to deal with.
66
+ if (isset($_POST['reset_options'])) {
67
+ // check admin security.
68
+ check_admin_referer('wp-realtime-sitemap');
69
+
70
+ // Restore settings back to the defaults.
71
+ update_option('plugin_wp_realtime_sitemap_settings', array(
72
+ 'sort_column' => 'post_date',
73
+ 'sort_order' => 'ASC',
74
+ 'show_count' => 'no',
75
+ 'show_date' => 'no',
76
+ 'show_pages' => 'yes',
77
+ 'show_posts' => 'yes',
78
+ 'show_archives' => 'yes',
79
+ 'show_categories' => 'yes',
80
+ 'category_tagcloud' => 'no',
81
+ 'show_tags' => 'no',
82
+ 'tags_tagcloud' => 'no',
83
+ ));
84
+
85
  // Get current options from the database.
86
  extract(get_option('plugin_wp_realtime_sitemap_settings'));
87
  }
88
+
89
+ // Get current options from the database.
90
+ extract(get_option('plugin_wp_realtime_sitemap_settings'));
91
  ?>
92
  <div class="wrap">
93
+ <?php screen_icon(); ?>
94
+ <h2><?php _e('WP Realtime Sitemap Default Options', 'wp-realtime-sitemap'); ?></h2>
95
 
96
  <form method="post">
 
97
  <?php wp_nonce_field('wp-realtime-sitemap'); ?>
98
  <table class="form-table">
99
  <tr valign="top">
100
+ <th scope="row"><label for="sort_column"><?php _e('Sort column', 'wp-realtime-sitemap'); ?></label></th>
101
  <td><select name="sort_column">
102
+ <option <?php selected('title', $sort_column); ?> value="title"><?php _e('Alphabetically (by title) (Default)', 'wp-realtime-sitemap'); ?></option>
103
+ <option <?php selected('menu_order', $sort_column); ?> value="menu_order"><?php _e('Page order', 'wp-realtime-sitemap'); ?></option>
104
+ <option <?php selected('date', $sort_column); ?> value="date"><?php _e('Creation time', 'wp-realtime-sitemap'); ?></option>
105
+ <option <?php selected('modified', $sort_column); ?> value="modified"><?php _e('Time last modified', 'wp-realtime-sitemap'); ?></option>
106
+ <option <?php selected('ID', $sort_column); ?> value="ID"><?php _e('Numeric Page ID', 'wp-realtime-sitemap'); ?></option>
107
+ <option <?php selected('author', $sort_column); ?> value="author"><?php _e('Page author', 'wp-realtime-sitemap'); ?></option>
108
+ <option <?php selected('name', $sort_column); ?> value="name"><?php _e('Alphabetically (by post slug)', 'wp-realtime-sitemap'); ?></option>
109
  </select></td>
110
  </tr>
111
  <tr valign="top">
112
+ <th scope="row"><label for="sort_order"><?php _e('Sort order', 'wp-realtime-sitemap'); ?></label></th>
113
  <td><select name="sort_order">
114
+ <option <?php selected('ASC', $sort_order); ?> value="ASC"><?php _e('Ascending (Default)', 'wp-realtime-sitemap'); ?></option>
115
+ <option <?php selected('DESC', $sort_order); ?> value="DESC"><?php _e('Descending', 'wp-realtime-sitemap'); ?></option>
116
  </select></td>
117
  </tr>
118
  <tr valign="top">
119
+ <th scope="row"><label for="show_count"><?php _e('Show post count', 'wp-realtime-sitemap'); ?></label></th>
120
  <td><select name="show_count">
121
+ <option <?php selected('yes', $show_count); ?> value="yes"><?php _e('Yes/On', 'wp-realtime-sitemap'); ?></option>
122
+ <option <?php selected('no', $show_count); ?> value="no"><?php _e('No/Off (Default)', 'wp-realtime-sitemap'); ?></option>
123
  </select></td>
124
  </tr>
125
  <tr valign="top">
126
+ <th scope="row"><label for="show_date"><?php _e('Show date', 'wp-realtime-sitemap'); ?></label></th>
127
  <td><select name="show_date">
128
+ <option <?php selected('yes', $show_date); ?> value="yes"><?php _e('Yes/On', 'wp-realtime-sitemap'); ?></option>
129
+ <option <?php selected('no', $show_date); ?> value="no"><?php _e('No/Off (Default)', 'wp-realtime-sitemap'); ?></option>
130
  </select></td>
131
  </tr>
132
  <tr valign="top">
133
+ <th scope="row"><label for="show_pages"><?php _e('Show pages', 'wp-realtime-sitemap'); ?></label></th>
134
  <td><select name="show_pages">
135
+ <option value="yes" <?php selected('yes', $show_pages); ?>><?php _e('Yes/On (Default)', 'wp-realtime-sitemap'); ?></option>
136
+ <option value="no" <?php selected('no', $show_pages); ?>><?php _e('No/Off', 'wp-realtime-sitemap'); ?></option>
137
  </select></td>
138
  </tr>
139
  <tr valign="top">
140
+ <th scope="row"><label for="show_posts"><?php _e('Show posts', 'wp-realtime-sitemap'); ?></label></th>
141
  <td><select name="show_posts">
142
+ <option value="yes" <?php selected('yes', $show_posts); ?>><?php _e('Yes/On (Default)', 'wp-realtime-sitemap'); ?></option>
143
+ <option value="no" <?php selected('no', $show_posts); ?>><?php _e('No/Off', 'wp-realtime-sitemap'); ?></option>
144
  </select></td>
145
  </tr>
146
  <tr valign="top">
147
+ <th scope="row"><label for="show_archives"><?php _e('Show archives', 'wp-realtime-sitemap'); ?></label></th>
148
  <td><select name="show_archives">
149
+ <option value="yes" <?php selected('yes', $show_archives); ?>><?php _e('Yes/On (Default)', 'wp-realtime-sitemap'); ?></option>
150
+ <option value="no" <?php selected('no', $show_archives); ?>><?php _e('No/Off', 'wp-realtime-sitemap'); ?></option>
151
  </select></td>
152
  </tr>
153
  <tr valign="top">
154
+ <th scope="row"><label for="show_categories"><?php _e('Show categories', 'wp-realtime-sitemap'); ?></label></th>
155
  <td><select name="show_categories">
156
+ <option value="yes" <?php selected('yes', $show_categories); ?>><?php _e('Yes/On (Default)', 'wp-realtime-sitemap'); ?></option>
157
+ <option value="no" <?php selected('no', $show_categories); ?>><?php _e('No/Off', 'wp-realtime-sitemap'); ?></option>
158
  </select></td>
159
  </tr>
160
  <tr valign="top">
161
+ <th scope="row"><label for="category_tagcloud"><?php _e('Show categories as a tag cloud', 'wp-realtime-sitemap'); ?></label></th>
162
  <td><select name="category_tagcloud">
163
+ <option value="yes" <?php selected('yes', $category_tagcloud); ?>><?php _e('Yes/On', 'wp-realtime-sitemap'); ?></option>
164
+ <option value="no" <?php selected('no', $category_tagcloud); ?>><?php _e('No/Off (Default)', 'wp-realtime-sitemap'); ?></option>
165
  </select></td>
166
  </tr>
167
  <tr valign="top">
168
+ <th scope="row"><label for="show_tags"><?php _e('Show tags', 'wp-realtime-sitemap'); ?></label></th>
169
  <td><select name="show_tags">
170
+ <option value="yes" <?php selected('yes', $show_tags); ?>><?php _e('Yes/On (Default)', 'wp-realtime-sitemap'); ?></option>
171
+ <option value="no" <?php selected('no', $show_tags); ?>><?php _e('No/Off', 'wp-realtime-sitemap'); ?></option>
172
  </select></td>
173
  </tr>
174
  <tr valign="top">
175
+ <th scope="row"><label for="tags_tagcloud"><?php _e('Show tags as a tag cloud', 'wp-realtime-sitemap'); ?></label></th>
176
  <td><select name="tags_tagcloud">
177
+ <option value="yes" <?php selected('yes', $tags_tagcloud); ?>><?php _e('Yes/On', 'wp-realtime-sitemap'); ?></option>
178
+ <option value="no" <?php selected('no', $tags_tagcloud); ?>><?php _e('No/Off (Default)', 'wp-realtime-sitemap'); ?></option>
179
  </select></td>
180
  </tr>
181
  </table>
182
 
183
  <div class="submit">
184
+ <input type="submit" name="info_update" value="<?php _e('Update Options', 'wp-realtime-sitemap'); ?>" />
185
+ </div>
186
+ </form>
187
+
188
+ <form method="post">
189
+ <?php wp_nonce_field('wp-realtime-sitemap'); ?>
190
+
191
+ <div class="submit">
192
+ <input type="submit" name="reset_options" value="<?php _e('Restore Defaults', 'wp-realtime-sitemap'); ?>" />
193
  </div>
194
  </form>
195
  </div><?php
215
 
216
  if ($show == 'categories') {
217
  $tagcloud = $all_options['category_tagcloud'];
218
+ } else if ($show == 'tags') {
219
  $tagcloud = $all_options['tags_tagcloud'];
220
  }
221
 
229
  }
230
 
231
  // Posts: Yes/No?
232
+ if ($all_options['show_posts'] != 'no' && $all_options['show_posts'] != 'off') {
233
  $posts = '';
234
 
235
  // Set options for post query
264
  }
265
 
266
  // Archives: Yes/No?
267
+ if ($all_options['show_archives'] != 'no' && $all_options['show_archives'] != 'off') {
268
  $archives = '<h3>'.__('Archives', 'wp-realtime-sitemap').'</h3>';
269
  $archives .= '<ul>' . wp_get_archives(array('type' => 'monthly', 'show_post_count' => ($show_count == 'yes') ? true : false, 'echo' => 0)) . '</ul>';
270
  }
271
 
272
  // Categories: Yes/No?
273
+ if ($all_options['show_categories'] != 'no' && $all_options['show_categories'] != 'off') {
274
  $categories = '<h3>'.__('Categories', 'wp-realtime-sitemap').'</h3>';
275
 
276
  // Tag Cloud: Yes/No?
277
+ if ($all_options['category_tagcloud'] != 'no' && $all_options['category_tagcloud'] != 'off') {
278
  $categories .= wp_tag_cloud(array('format' => 'flat', 'separator' => ' ', 'taxonomy' => 'category', 'echo' => '0'));
279
  } else {
280
  if ($sort_column != 'ID' || $sort_column != 'name' || $sort_column != 'slug' || $sort_column != 'count' || $sort_column != 'term_group') {
286
  }
287
 
288
  // Tags: Yes/No?
289
+ if ($all_options['show_tags'] != 'no' && $all_options['show_tags'] != 'off') {
290
  $tags = '<h3>'.__('Tags', 'wp-realtime-sitemap').'</h3>';
291
 
292
  // Tag Cloud: Yes/No?
293
+ if ($all_options['tags_tagcloud'] != 'no' && $all_options['tags_tagcloud'] != 'off') {
294
  $tags .= wp_tag_cloud(array('format' => 'flat', 'separator' => ' ', 'echo' => '0'));
295
  } else {
296
  if ($sort_column != 'ID' || $sort_column != 'name' || $sort_column != 'slug' || $sort_column != 'count' || $sort_column != 'term_group') {
383
  if ($orderby == 'dateasc' || $orderby == 'alphaasc')
384
  $sort_order = 'ASC';
385
 
386
+ // show_pages
387
+ if (get_option('wp_realtime_sitemap_showpages') !== false) {
388
+ $show_pages = get_option('wp_realtime_sitemap_showpages');
389
+ } else if (get_option('wp_realtime_sitemap_pages') !== false) {
390
+ $show_pages = get_option('wp_realtime_sitemap_pages');
391
+ }
392
+
393
+ // show_posts
394
+ if (get_option('wp_realtime_sitemap_showposts') !== false) {
395
+ $show_posts = get_option('wp_realtime_sitemap_showposts');
396
+ } else if (get_option('wp_realtime_sitemap_posts') !== false) {
397
+ $show_posts = get_option('wp_realtime_sitemap_posts');
398
+ }
399
+
400
+ // show_archives
401
+ if (get_option('wp_realtime_sitemap_showarchives') !== false) {
402
+ $show_archives = get_option('wp_realtime_sitemap_showarchives');
403
+ } else if (get_option('wp_realtime_sitemap_archives') !== false) {
404
+ $show_archives = get_option('wp_realtime_sitemap_archives');
405
+ }
406
+
407
+ // show_categories
408
+ if (get_option('wp_realtime_sitemap_showcategories') !== false) {
409
+ $show_categories = get_option('wp_realtime_sitemap_showcategories');
410
+ } else if (get_option('wp_realtime_sitemap_categories') !== false) {
411
+ $show_categories = get_option('wp_realtime_sitemap_categories');
412
+ }
413
+
414
+ // category_tagcloud
415
+ if (get_option('wp_realtime_sitemap_showcategoriesastc') !== false) {
416
+ $category_tagcloud = get_option('wp_realtime_sitemap_showcategoriesastc');
417
+ }
418
+
419
+ // show_tags
420
+ if (get_option('wp_realtime_sitemap_showtags') !== false) {
421
+ $show_tags = get_option('wp_realtime_sitemap_showtags');
422
+ } else if (get_option('wp_realtime_sitemap_tags') !== false) {
423
+ $show_tags = get_option('wp_realtime_sitemap_tags');
424
+ }
425
+
426
+ // tags_tagcloud
427
+ if (get_option('wp_realtime_sitemap_showtagsastc') !== false) {
428
+ $tags_tagcloud = get_option('wp_realtime_sitemap_showtagsastc');
429
+ }
430
+
431
+ if (get_option('plugin_wp_realtime_sitemap_settings') === false) {
432
+ // Add default options if first time running - http://striderweb.com/nerdaphernalia/2008/07/consolidate-options-with-arrays/
433
+ add_option('plugin_wp_realtime_sitemap_settings', array(
434
+ 'sort_column' => (!isset($sort_column)) ? 'post_date' : $sort_column,
435
+ 'sort_order' => (!isset($sort_order)) ? 'ASC' : $sort_order,
436
+ 'show_count' => 'no',
437
+ 'show_date' => 'no',
438
+ 'show_pages' => (!isset($show_pages)) ? 'yes' : $show_pages,
439
+ 'show_posts' => (!isset($show_posts)) ? 'yes' : $show_posts,
440
+ 'show_archives' => (!isset($show_archives)) ? 'yes' : $show_archives,
441
+ 'show_categories' => (!isset($show_categories)) ? 'yes' : $show_categories,
442
+ 'category_tagcloud' => (!isset($category_tagcloud)) ? 'no' : $category_tagcloud,
443
+ 'show_tags' => (!isset($show_tags)) ? 'no' : $show_tags,
444
+ 'tags_tagcloud' => (!isset($tags_tagcloud)) ? 'no' : $tags_tagcloud,
445
+ ));
446
+ } else {
447
+ // Add default options if first time running - http://striderweb.com/nerdaphernalia/2008/07/consolidate-options-with-arrays/
448
+ update_option('plugin_wp_realtime_sitemap_settings', array(
449
+ 'sort_column' => (!isset($sort_column)) ? 'post_date' : $sort_column,
450
+ 'sort_order' => (!isset($sort_order)) ? 'ASC' : $sort_order,
451
+ 'show_count' => 'no',
452
+ 'show_date' => 'no',
453
+ 'show_pages' => (!isset($show_pages)) ? 'yes' : $show_pages,
454
+ 'show_posts' => (!isset($show_posts)) ? 'yes' : $show_posts,
455
+ 'show_archives' => (!isset($show_archives)) ? 'yes' : $show_archives,
456
+ 'show_categories' => (!isset($show_categories)) ? 'yes' : $show_categories,
457
+ 'category_tagcloud' => (!isset($category_tagcloud)) ? 'no' : $category_tagcloud,
458
+ 'show_tags' => (!isset($show_tags)) ? 'no' : $show_tags,
459
+ 'tags_tagcloud' => (!isset($tags_tagcloud)) ? 'no' : $tags_tagcloud,
460
+ ));
461
+ }
462
 
463
  // Delete old unused database entries - v1.0
464
  delete_option('wp_realtime_sitemap_orderby');