Version Description
- Updated code to be more cleaner and easier to understand.
- Used WordPress Settings API for options form, and added validation.
- Updated the localization files, still fully translatable right down to the admin area.
Download this release
Release Info
Developer | Rincewind |
Plugin | WP Realtime Sitemap |
Version | 1.4.6 |
Comparing to | |
See all releases |
Code changes from version 1.4.5 to 1.4.6
- language/wp-realtime-sitemap-cs_CZ.mo +0 -0
- language/wp-realtime-sitemap-cs_CZ.po +119 -0
- language/wp-realtime-sitemap-pt_BR.po +4 -0
- language/wp-realtime-sitemap.mo +0 -0
- language/wp-realtime-sitemap.po +298 -0
- language/wp-realtime-sitemap.pot +346 -229
- readme.txt +21 -4
- wp-realtime-sitemap.php +664 -341
language/wp-realtime-sitemap-cs_CZ.mo
ADDED
Binary file
|
language/wp-realtime-sitemap-cs_CZ.po
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-10-19 17:41+0100\n"
|
12 |
+
"Last-Translator: Libor Cerny <me@cerny.eu.org>\n"
|
13 |
+
"Language-Team: Libor Cerny <me@cerny.eu.org>\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-KeywordsList: __;_e;esc_attr__\n"
|
18 |
+
"X-Poedit-Basepath: .\n"
|
19 |
+
"X-Poedit-Language: Czech\n"
|
20 |
+
"X-Poedit-Country: CZECH REPUBLIC\n"
|
21 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
22 |
+
"X-Poedit-SearchPath-0: ..\n"
|
23 |
+
|
24 |
+
#: wp-realtime-sitemap.php:33
|
25 |
+
msgid "You do not have sufficient permissions to access this page."
|
26 |
+
msgstr "K zobrazení této stránky nemáte dostatečná přístupová práva"
|
27 |
+
|
28 |
+
#: wp-realtime-sitemap.php:357
|
29 |
+
msgid "Pages"
|
30 |
+
msgstr "Stránky"
|
31 |
+
|
32 |
+
#: wp-realtime-sitemap.php:376
|
33 |
+
msgid "Posts"
|
34 |
+
msgstr "Příspěvky"
|
35 |
+
|
36 |
+
#: wp-realtime-sitemap.php:379
|
37 |
+
#, php-format
|
38 |
+
msgid "Permalink to %s"
|
39 |
+
msgstr "Trvalé odkazy na %s"
|
40 |
+
|
41 |
+
#: wp-realtime-sitemap.php:387
|
42 |
+
msgid "Archives"
|
43 |
+
msgstr "Archivy"
|
44 |
+
|
45 |
+
#: wp-realtime-sitemap.php:392
|
46 |
+
msgid "Categories"
|
47 |
+
msgstr "Kategorie"
|
48 |
+
|
49 |
+
#: wp-realtime-sitemap.php:402
|
50 |
+
msgid "Tags"
|
51 |
+
msgstr "Štítky"
|
52 |
+
|
53 |
+
#: wp-realtime-sitemap.php:903
|
54 |
+
#: wp-realtime-sitemap.php:917
|
55 |
+
msgid "Settings"
|
56 |
+
msgstr "Nastavení"
|
57 |
+
|
58 |
+
#: wp-realtime-sitemap.php:913
|
59 |
+
msgid "FAQ"
|
60 |
+
msgstr "Často kladené otázky"
|
61 |
+
|
62 |
+
#: wp-realtime-sitemap.php:915
|
63 |
+
msgid "Support"
|
64 |
+
msgstr "Podpora"
|
65 |
+
|
66 |
+
#: wp-realtime-sitemap.php:919
|
67 |
+
msgid "Donate"
|
68 |
+
msgstr "Darujte"
|
69 |
+
|
70 |
+
#: wp-realtime-sitemap.php:929
|
71 |
+
msgid "WP Realtime Sitemap Options"
|
72 |
+
msgstr "Možnosti WP Realtime Sitemap"
|
73 |
+
|
74 |
+
#. #-#-#-#-# plugin.pot (WP Realtime Sitemap 1.3) #-#-#-#-#
|
75 |
+
#. Plugin Name of the plugin/theme
|
76 |
+
#: wp-realtime-sitemap.php:930
|
77 |
+
msgid "WP Realtime Sitemap"
|
78 |
+
msgstr "WP Realtime Sitemap"
|
79 |
+
|
80 |
+
#: wp-realtime-sitemap.php:944
|
81 |
+
msgid "WP Realtime Sitemap Help"
|
82 |
+
msgstr "Nápověda k WP Realtime Sitemap"
|
83 |
+
|
84 |
+
#: wp-realtime-sitemap.php:945
|
85 |
+
msgid "WP Realtime Sitemap Home Page"
|
86 |
+
msgstr "Domovská stránka WP Realtime Sitemap"
|
87 |
+
|
88 |
+
#: wp-realtime-sitemap.php:946
|
89 |
+
msgid "WP Realtime Sitemap FAQ"
|
90 |
+
msgstr "Často kladené otázky o WP Realtime Sitemap"
|
91 |
+
|
92 |
+
#: wp-realtime-sitemap.php:947
|
93 |
+
msgid "WP Realtime Sitemap Support"
|
94 |
+
msgstr "Podpora WP Realtime Sitemap"
|
95 |
+
|
96 |
+
#: wp-realtime-sitemap.php:948
|
97 |
+
msgid "WP Realtime Sitemap Donate"
|
98 |
+
msgstr "Podpořte WP Realtime Sitemap"
|
99 |
+
|
100 |
+
#: wp-realtime-sitemap.php:949
|
101 |
+
msgid "Please read the plugin information and FAQ, before asking a question."
|
102 |
+
msgstr "Dříve než položíte otázku si prosím přečtěte informace a často kladené otázky"
|
103 |
+
|
104 |
+
#. Plugin URI of the plugin/theme
|
105 |
+
msgid "http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-home/"
|
106 |
+
msgstr "http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-home/"
|
107 |
+
|
108 |
+
#. Description of the plugin/theme
|
109 |
+
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."
|
110 |
+
msgstr "Rozšiřuje Wordpress o mapu stránek, která je vždy aktuální. Pro zobrazení mapy vašich stránek přidejte do kterékoli stránky či příspěvku blogu kód `<!--wp-realtime-sitemap-->`. Nastavení možností tohoto pluginu se provádí v sekci Nastavení->WP Realtime Sitemap"
|
111 |
+
|
112 |
+
#. Author of the plugin/theme
|
113 |
+
msgid "Daniel Tweedy"
|
114 |
+
msgstr "Daniel Tweedy"
|
115 |
+
|
116 |
+
#. Author URI of the plugin/theme
|
117 |
+
msgid "http://www.daniel-tweedy.co.uk/"
|
118 |
+
msgstr "http://www.daniel-tweedy.co.uk/"
|
119 |
+
|
language/wp-realtime-sitemap-pt_BR.po
CHANGED
@@ -14,8 +14,12 @@ msgstr ""
|
|
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."
|
14 |
"MIME-Version: 1.0\n"
|
15 |
"Content-Type: text/plain; charset=utf-8\n"
|
16 |
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"X-Poedit-KeywordsList: __;_e;esc_attr__\n"
|
18 |
+
"X-Poedit-Basepath: .\n"
|
19 |
"X-Poedit-Language: Portuguese\n"
|
20 |
"X-Poedit-Country: BRAZIL\n"
|
21 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
22 |
+
"X-Poedit-SearchPath-0: ..\n"
|
23 |
|
24 |
#: wp-realtime-sitemap.php:33
|
25 |
msgid "You do not have sufficient permissions to access this page."
|
language/wp-realtime-sitemap.mo
ADDED
Binary file
|
language/wp-realtime-sitemap.po
ADDED
@@ -0,0 +1,298 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WP Realtime Sitemap\n"
|
4 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-realtime-sitemap\n"
|
5 |
+
"POT-Creation-Date: 2010-12-03 22:41-0000\n"
|
6 |
+
"PO-Revision-Date: 2010-12-03 22:44-0000\n"
|
7 |
+
"Last-Translator: Daniel Tweedy <daniel.tweedy@gmail.com>\n"
|
8 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: __;_e;esc_attr__\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"X-Poedit-Language: English\n"
|
15 |
+
"X-Poedit-Country: UNITED KINGDOM\n"
|
16 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
+
"X-Poedit-SearchPath-0: ..\n"
|
18 |
+
|
19 |
+
#: ../wp-realtime-sitemap.php:63
|
20 |
+
#: ../wp-realtime-sitemap.php:90
|
21 |
+
msgid "FAQ"
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#: ../wp-realtime-sitemap.php:65
|
25 |
+
#: ../wp-realtime-sitemap.php:91
|
26 |
+
msgid "Support"
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#: ../wp-realtime-sitemap.php:67
|
30 |
+
#: ../wp-realtime-sitemap.php:80
|
31 |
+
msgid "Settings"
|
32 |
+
msgstr ""
|
33 |
+
|
34 |
+
#: ../wp-realtime-sitemap.php:69
|
35 |
+
#: ../wp-realtime-sitemap.php:92
|
36 |
+
msgid "Donate"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: ../wp-realtime-sitemap.php:71
|
40 |
+
#: ../wp-realtime-sitemap.php:93
|
41 |
+
msgid "Amazon Wishlist"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: ../wp-realtime-sitemap.php:88
|
45 |
+
msgid "WP Realtime Sitemap Help"
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: ../wp-realtime-sitemap.php:89
|
49 |
+
msgid "Home Page"
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: ../wp-realtime-sitemap.php:94
|
53 |
+
msgid "Please read the plugin information and FAQ, before asking a question."
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: ../wp-realtime-sitemap.php:102
|
57 |
+
#: ../wp-realtime-sitemap.php:525
|
58 |
+
msgid "WP Realtime Sitemap Options"
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
#: ../wp-realtime-sitemap.php:102
|
62 |
+
msgid "WP Realtime Sitemap"
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: ../wp-realtime-sitemap.php:108
|
66 |
+
msgid "General Settings"
|
67 |
+
msgstr ""
|
68 |
+
|
69 |
+
#: ../wp-realtime-sitemap.php:109
|
70 |
+
msgid "Sort Column"
|
71 |
+
msgstr ""
|
72 |
+
|
73 |
+
#: ../wp-realtime-sitemap.php:110
|
74 |
+
msgid "Sort Order"
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#: ../wp-realtime-sitemap.php:112
|
78 |
+
msgid "Post Settings"
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: ../wp-realtime-sitemap.php:113
|
82 |
+
msgid "Count"
|
83 |
+
msgstr ""
|
84 |
+
|
85 |
+
#: ../wp-realtime-sitemap.php:114
|
86 |
+
msgid "Date"
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: ../wp-realtime-sitemap.php:115
|
90 |
+
msgid "Limit"
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: ../wp-realtime-sitemap.php:117
|
94 |
+
msgid "Tag Cloud Settings"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: ../wp-realtime-sitemap.php:118
|
98 |
+
msgid "Show Category as a Tag Cloud"
|
99 |
+
msgstr ""
|
100 |
+
|
101 |
+
#: ../wp-realtime-sitemap.php:119
|
102 |
+
msgid "Show Tags as a Tag Cloud"
|
103 |
+
msgstr ""
|
104 |
+
|
105 |
+
#: ../wp-realtime-sitemap.php:121
|
106 |
+
msgid "Display Settings"
|
107 |
+
msgstr ""
|
108 |
+
|
109 |
+
#: ../wp-realtime-sitemap.php:122
|
110 |
+
msgid "Show Pages"
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: ../wp-realtime-sitemap.php:123
|
114 |
+
msgid "Show Posts"
|
115 |
+
msgstr ""
|
116 |
+
|
117 |
+
#: ../wp-realtime-sitemap.php:124
|
118 |
+
msgid "Show Archives"
|
119 |
+
msgstr ""
|
120 |
+
|
121 |
+
#: ../wp-realtime-sitemap.php:125
|
122 |
+
msgid "Show Categories"
|
123 |
+
msgstr ""
|
124 |
+
|
125 |
+
#: ../wp-realtime-sitemap.php:126
|
126 |
+
msgid "Show Tags"
|
127 |
+
msgstr ""
|
128 |
+
|
129 |
+
#: ../wp-realtime-sitemap.php:130
|
130 |
+
msgid "Sort Column and Sort Order are used for sorting Pages, Posts, Categories and Tags."
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: ../wp-realtime-sitemap.php:138
|
134 |
+
msgid "Alphabetically (by title) (Default)"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: ../wp-realtime-sitemap.php:139
|
138 |
+
msgid "Page order"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: ../wp-realtime-sitemap.php:140
|
142 |
+
msgid "Creation time"
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#: ../wp-realtime-sitemap.php:141
|
146 |
+
msgid "Time last modified"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: ../wp-realtime-sitemap.php:142
|
150 |
+
msgid "Numeric Page ID"
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: ../wp-realtime-sitemap.php:143
|
154 |
+
msgid "Page author"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: ../wp-realtime-sitemap.php:144
|
158 |
+
msgid "Alphabetically (by post slug)"
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: ../wp-realtime-sitemap.php:165
|
162 |
+
msgid "Ascending (Default)"
|
163 |
+
msgstr ""
|
164 |
+
|
165 |
+
#: ../wp-realtime-sitemap.php:166
|
166 |
+
msgid "Descending"
|
167 |
+
msgstr ""
|
168 |
+
|
169 |
+
#: ../wp-realtime-sitemap.php:183
|
170 |
+
msgid "Count is to display the number of posts that a Archive, Category and/or Tag has."
|
171 |
+
msgstr ""
|
172 |
+
|
173 |
+
#: ../wp-realtime-sitemap.php:184
|
174 |
+
msgid "Date is to show the date that the post itself was created/published."
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
#: ../wp-realtime-sitemap.php:185
|
178 |
+
msgid "Limit is used to apply a limit as to how many posts should be shown on the sitemap, useful for if you have a very large blog and as such a large number of posts, use -1 to show all posts and not apply a limit."
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#: ../wp-realtime-sitemap.php:193
|
182 |
+
#: ../wp-realtime-sitemap.php:215
|
183 |
+
#: ../wp-realtime-sitemap.php:248
|
184 |
+
#: ../wp-realtime-sitemap.php:270
|
185 |
+
#: ../wp-realtime-sitemap.php:384
|
186 |
+
msgid "Yes/On"
|
187 |
+
msgstr ""
|
188 |
+
|
189 |
+
#: ../wp-realtime-sitemap.php:194
|
190 |
+
#: ../wp-realtime-sitemap.php:216
|
191 |
+
#: ../wp-realtime-sitemap.php:249
|
192 |
+
#: ../wp-realtime-sitemap.php:271
|
193 |
+
#: ../wp-realtime-sitemap.php:385
|
194 |
+
msgid "No/Off (Default)"
|
195 |
+
msgstr ""
|
196 |
+
|
197 |
+
#: ../wp-realtime-sitemap.php:240
|
198 |
+
msgid "To show category and/or tags as a tag cloud instead of a bulletted list."
|
199 |
+
msgstr ""
|
200 |
+
|
201 |
+
#: ../wp-realtime-sitemap.php:288
|
202 |
+
msgid "Choose what you would like to be displayed on your site map."
|
203 |
+
msgstr ""
|
204 |
+
|
205 |
+
#: ../wp-realtime-sitemap.php:296
|
206 |
+
#: ../wp-realtime-sitemap.php:318
|
207 |
+
#: ../wp-realtime-sitemap.php:340
|
208 |
+
#: ../wp-realtime-sitemap.php:362
|
209 |
+
msgid "Yes/On (Default)"
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#: ../wp-realtime-sitemap.php:297
|
213 |
+
#: ../wp-realtime-sitemap.php:319
|
214 |
+
#: ../wp-realtime-sitemap.php:341
|
215 |
+
#: ../wp-realtime-sitemap.php:363
|
216 |
+
msgid "No/Off"
|
217 |
+
msgstr ""
|
218 |
+
|
219 |
+
#: ../wp-realtime-sitemap.php:421
|
220 |
+
msgid "Sort Column: Only Yes/On or No/Off are accepted as valid inputs."
|
221 |
+
msgstr ""
|
222 |
+
|
223 |
+
#: ../wp-realtime-sitemap.php:429
|
224 |
+
msgid "Sort Order: Only Yes/On or No/Off are accepted as valid inputs."
|
225 |
+
msgstr ""
|
226 |
+
|
227 |
+
#: ../wp-realtime-sitemap.php:437
|
228 |
+
msgid "Count: Only Yes/On or No/Off are accepted as valid inputs."
|
229 |
+
msgstr ""
|
230 |
+
|
231 |
+
#: ../wp-realtime-sitemap.php:445
|
232 |
+
msgid "Date: Only Yes/On or No/Off are accepted as valid inputs."
|
233 |
+
msgstr ""
|
234 |
+
|
235 |
+
#: ../wp-realtime-sitemap.php:453
|
236 |
+
msgid "Limit: Only integers or -1 are accepted as valid inputs."
|
237 |
+
msgstr ""
|
238 |
+
|
239 |
+
#: ../wp-realtime-sitemap.php:461
|
240 |
+
msgid "Show Pages: Only Yes/On or No/Off are accepted as valid inputs."
|
241 |
+
msgstr ""
|
242 |
+
|
243 |
+
#: ../wp-realtime-sitemap.php:469
|
244 |
+
msgid "Show Posts: Only Yes/On or No/Off are accepted as valid inputs."
|
245 |
+
msgstr ""
|
246 |
+
|
247 |
+
#: ../wp-realtime-sitemap.php:477
|
248 |
+
msgid "Show Archives: Only Yes/On or No/Off are accepted as valid inputs."
|
249 |
+
msgstr ""
|
250 |
+
|
251 |
+
#: ../wp-realtime-sitemap.php:485
|
252 |
+
msgid "Show Categories: Only Yes/On or No/Off are accepted as valid inputs."
|
253 |
+
msgstr ""
|
254 |
+
|
255 |
+
#: ../wp-realtime-sitemap.php:493
|
256 |
+
msgid "Show Category as a Tag Cloud: Only Yes/On or No/Off are accepted as valid inputs."
|
257 |
+
msgstr ""
|
258 |
+
|
259 |
+
#: ../wp-realtime-sitemap.php:501
|
260 |
+
msgid "Show Tags: Only Yes/On or No/Off are accepted as valid inputs."
|
261 |
+
msgstr ""
|
262 |
+
|
263 |
+
#: ../wp-realtime-sitemap.php:509
|
264 |
+
msgid "Show Tags as a Tag Cloud: Only Yes/On or No/Off are accepted as valid inputs."
|
265 |
+
msgstr ""
|
266 |
+
|
267 |
+
#: ../wp-realtime-sitemap.php:520
|
268 |
+
msgid "You do not have sufficient permissions to access this page."
|
269 |
+
msgstr ""
|
270 |
+
|
271 |
+
#: ../wp-realtime-sitemap.php:527
|
272 |
+
msgid "This plugin can easily be styled by using the following ids below should you need to, if you require more flexibility than this please feel free to suggest something"
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
+
#: ../wp-realtime-sitemap.php:540
|
276 |
+
msgid "Save Changes"
|
277 |
+
msgstr ""
|
278 |
+
|
279 |
+
#: ../wp-realtime-sitemap.php:574
|
280 |
+
msgid "Pages"
|
281 |
+
msgstr ""
|
282 |
+
|
283 |
+
#: ../wp-realtime-sitemap.php:593
|
284 |
+
msgid "Posts"
|
285 |
+
msgstr ""
|
286 |
+
|
287 |
+
#: ../wp-realtime-sitemap.php:614
|
288 |
+
msgid "Archives"
|
289 |
+
msgstr ""
|
290 |
+
|
291 |
+
#: ../wp-realtime-sitemap.php:620
|
292 |
+
msgid "Categories"
|
293 |
+
msgstr ""
|
294 |
+
|
295 |
+
#: ../wp-realtime-sitemap.php:638
|
296 |
+
msgid "Tags"
|
297 |
+
msgstr ""
|
298 |
+
|
language/wp-realtime-sitemap.pot
CHANGED
@@ -1,229 +1,346 @@
|
|
1 |
-
# Translation of the WordPress plugin WP Realtime Sitemap
|
2 |
-
# Copyright (C) 2010 Daniel Tweedy
|
3 |
-
# This file is distributed under the same license as the WP Realtime Sitemap package.
|
4 |
-
#
|
5 |
-
#
|
6 |
-
#, fuzzy
|
7 |
-
msgid ""
|
8 |
-
msgstr ""
|
9 |
-
"Project-Id-Version: WP Realtime Sitemap 1.4.
|
10 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-realtime-sitemap\n"
|
11 |
-
"POT-Creation-Date: 2010-
|
12 |
-
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
13 |
-
"Last-Translator:
|
14 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
-
"MIME-Version: 1.0\n"
|
16 |
-
"Content-Type: text/plain; charset=utf-8\n"
|
17 |
-
"Content-Transfer-Encoding: 8bit\n"
|
18 |
-
|
19 |
-
#: wp-realtime-sitemap.php:
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
#: wp-realtime-sitemap.php:
|
36 |
-
msgid "
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: wp-realtime-sitemap.php:
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
#: wp-realtime-sitemap.php:
|
82 |
-
msgid "
|
83 |
-
msgstr ""
|
84 |
-
|
85 |
-
#: wp-realtime-sitemap.php:
|
86 |
-
msgid "
|
87 |
-
msgstr ""
|
88 |
-
|
89 |
-
#: wp-realtime-sitemap.php:
|
90 |
-
msgid "
|
91 |
-
msgstr ""
|
92 |
-
|
93 |
-
#: wp-realtime-sitemap.php:
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
#: wp-realtime-sitemap.php:
|
102 |
-
msgid "
|
103 |
-
msgstr ""
|
104 |
-
|
105 |
-
#: wp-realtime-sitemap.php:
|
106 |
-
msgid "
|
107 |
-
msgstr ""
|
108 |
-
|
109 |
-
#: wp-realtime-sitemap.php:
|
110 |
-
msgid "Show
|
111 |
-
msgstr ""
|
112 |
-
|
113 |
-
#: wp-realtime-sitemap.php:
|
114 |
-
msgid "Show
|
115 |
-
msgstr ""
|
116 |
-
|
117 |
-
#: wp-realtime-sitemap.php:
|
118 |
-
msgid "Show
|
119 |
-
msgstr ""
|
120 |
-
|
121 |
-
#: wp-realtime-sitemap.php:
|
122 |
-
msgid "Show
|
123 |
-
msgstr ""
|
124 |
-
|
125 |
-
#: wp-realtime-sitemap.php:
|
126 |
-
msgid "Show
|
127 |
-
msgstr ""
|
128 |
-
|
129 |
-
#: wp-realtime-sitemap.php:
|
130 |
-
msgid "
|
131 |
-
msgstr ""
|
132 |
-
|
133 |
-
#: wp-realtime-sitemap.php:
|
134 |
-
msgid "
|
135 |
-
msgstr ""
|
136 |
-
|
137 |
-
#: wp-realtime-sitemap.php:
|
138 |
-
msgid "
|
139 |
-
msgstr ""
|
140 |
-
|
141 |
-
#: wp-realtime-sitemap.php:
|
142 |
-
msgid "
|
143 |
-
msgstr ""
|
144 |
-
|
145 |
-
#: wp-realtime-sitemap.php:
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
#: wp-realtime-sitemap.php:
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
#: wp-realtime-sitemap.php:
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
#: wp-realtime-sitemap.php:
|
209 |
-
msgid "
|
210 |
-
msgstr ""
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
"
|
221 |
-
msgstr ""
|
222 |
-
|
223 |
-
|
224 |
-
msgid "
|
225 |
-
msgstr ""
|
226 |
-
|
227 |
-
|
228 |
-
msgid "
|
229 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation of the WordPress plugin WP Realtime Sitemap 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 |
+
# Daniel Tweedy <support@daniel-tweedy.co.uk>, 2010.
|
5 |
+
#
|
6 |
+
#, fuzzy
|
7 |
+
msgid ""
|
8 |
+
msgstr ""
|
9 |
+
"Project-Id-Version: WP Realtime Sitemap 1.4.5\n"
|
10 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-realtime-sitemap\n"
|
11 |
+
"POT-Creation-Date: 2010-10-20 12:27+0000\n"
|
12 |
+
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
13 |
+
"Last-Translator: Daniel Tweedy <support@daniel-tweedy.co.uk>\n"
|
14 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
+
"MIME-Version: 1.0\n"
|
16 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
17 |
+
"Content-Transfer-Encoding: 8bit\n"
|
18 |
+
|
19 |
+
#: ../wp-realtime-sitemap.php:63
|
20 |
+
#: ../wp-realtime-sitemap.php:90
|
21 |
+
msgid "FAQ"
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#: ../wp-realtime-sitemap.php:65
|
25 |
+
#: ../wp-realtime-sitemap.php:91
|
26 |
+
msgid "Support"
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#: ../wp-realtime-sitemap.php:67
|
30 |
+
#: ../wp-realtime-sitemap.php:80
|
31 |
+
msgid "Settings"
|
32 |
+
msgstr ""
|
33 |
+
|
34 |
+
#: ../wp-realtime-sitemap.php:69
|
35 |
+
#: ../wp-realtime-sitemap.php:92
|
36 |
+
msgid "Donate"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: ../wp-realtime-sitemap.php:71
|
40 |
+
#: ../wp-realtime-sitemap.php:93
|
41 |
+
msgid "Amazon Wishlist"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: ../wp-realtime-sitemap.php:88
|
45 |
+
msgid "WP Realtime Sitemap Help"
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: ../wp-realtime-sitemap.php:89
|
49 |
+
msgid "Home Page"
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: ../wp-realtime-sitemap.php:94
|
53 |
+
msgid "Please read the plugin information and FAQ, before asking a question."
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: ../wp-realtime-sitemap.php:102
|
57 |
+
#: ../wp-realtime-sitemap.php:525
|
58 |
+
msgid "WP Realtime Sitemap Options"
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
#: ../wp-realtime-sitemap.php:102
|
62 |
+
msgid "WP Realtime Sitemap"
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: ../wp-realtime-sitemap.php:108
|
66 |
+
msgid "General Settings"
|
67 |
+
msgstr ""
|
68 |
+
|
69 |
+
#: ../wp-realtime-sitemap.php:109
|
70 |
+
msgid "Sort Column"
|
71 |
+
msgstr ""
|
72 |
+
|
73 |
+
#: ../wp-realtime-sitemap.php:110
|
74 |
+
msgid "Sort Order"
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#: ../wp-realtime-sitemap.php:112
|
78 |
+
msgid "Post Settings"
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: ../wp-realtime-sitemap.php:113
|
82 |
+
msgid "Count"
|
83 |
+
msgstr ""
|
84 |
+
|
85 |
+
#: ../wp-realtime-sitemap.php:114
|
86 |
+
msgid "Date"
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: ../wp-realtime-sitemap.php:115
|
90 |
+
msgid "Limit"
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: ../wp-realtime-sitemap.php:117
|
94 |
+
msgid "Tag Cloud Settings"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: ../wp-realtime-sitemap.php:118
|
98 |
+
msgid "Show Category as a Tag Cloud"
|
99 |
+
msgstr ""
|
100 |
+
|
101 |
+
#: ../wp-realtime-sitemap.php:119
|
102 |
+
msgid "Show Tags as a Tag Cloud"
|
103 |
+
msgstr ""
|
104 |
+
|
105 |
+
#: ../wp-realtime-sitemap.php:121
|
106 |
+
msgid "Display Settings"
|
107 |
+
msgstr ""
|
108 |
+
|
109 |
+
#: ../wp-realtime-sitemap.php:122
|
110 |
+
msgid "Show Pages"
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: ../wp-realtime-sitemap.php:123
|
114 |
+
msgid "Show Posts"
|
115 |
+
msgstr ""
|
116 |
+
|
117 |
+
#: ../wp-realtime-sitemap.php:124
|
118 |
+
msgid "Show Archives"
|
119 |
+
msgstr ""
|
120 |
+
|
121 |
+
#: ../wp-realtime-sitemap.php:125
|
122 |
+
msgid "Show Categories"
|
123 |
+
msgstr ""
|
124 |
+
|
125 |
+
#: ../wp-realtime-sitemap.php:126
|
126 |
+
msgid "Show Tags"
|
127 |
+
msgstr ""
|
128 |
+
|
129 |
+
#: ../wp-realtime-sitemap.php:130
|
130 |
+
msgid "Sort Column and Sort Order are used for sorting Pages, Posts, Categories and Tags."
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: ../wp-realtime-sitemap.php:138
|
134 |
+
msgid "Alphabetically (by title) (Default)"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: ../wp-realtime-sitemap.php:139
|
138 |
+
msgid "Page order"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: ../wp-realtime-sitemap.php:140
|
142 |
+
msgid "Creation time"
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#: ../wp-realtime-sitemap.php:141
|
146 |
+
msgid "Time last modified"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: ../wp-realtime-sitemap.php:142
|
150 |
+
msgid "Numeric Page ID"
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: ../wp-realtime-sitemap.php:143
|
154 |
+
msgid "Page author"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: ../wp-realtime-sitemap.php:144
|
158 |
+
msgid "Alphabetically (by post slug)"
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: ../wp-realtime-sitemap.php:165
|
162 |
+
msgid "Ascending (Default)"
|
163 |
+
msgstr ""
|
164 |
+
|
165 |
+
#: ../wp-realtime-sitemap.php:166
|
166 |
+
msgid "Descending"
|
167 |
+
msgstr ""
|
168 |
+
|
169 |
+
#: ../wp-realtime-sitemap.php:183
|
170 |
+
msgid "Count is to display the number of posts that a Archive, Category and/or Tag has."
|
171 |
+
msgstr ""
|
172 |
+
|
173 |
+
#: ../wp-realtime-sitemap.php:184
|
174 |
+
msgid "Date is to show the date that the post itself was created/published."
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
#: ../wp-realtime-sitemap.php:185
|
178 |
+
msgid "Limit is used to apply a limit as to how many posts should be shown on the sitemap, useful for if you have a very large blog and as such a large number of posts, use -1 to show all posts and not apply a limit."
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#: ../wp-realtime-sitemap.php:193
|
182 |
+
#: ../wp-realtime-sitemap.php:215
|
183 |
+
#: ../wp-realtime-sitemap.php:248
|
184 |
+
#: ../wp-realtime-sitemap.php:270
|
185 |
+
#: ../wp-realtime-sitemap.php:384
|
186 |
+
msgid "Yes/On"
|
187 |
+
msgstr ""
|
188 |
+
|
189 |
+
#: ../wp-realtime-sitemap.php:194
|
190 |
+
#: ../wp-realtime-sitemap.php:216
|
191 |
+
#: ../wp-realtime-sitemap.php:249
|
192 |
+
#: ../wp-realtime-sitemap.php:271
|
193 |
+
#: ../wp-realtime-sitemap.php:385
|
194 |
+
msgid "No/Off (Default)"
|
195 |
+
msgstr ""
|
196 |
+
|
197 |
+
#: ../wp-realtime-sitemap.php:240
|
198 |
+
msgid "To show category and/or tags as a tag cloud instead of a bulletted list."
|
199 |
+
msgstr ""
|
200 |
+
|
201 |
+
#: ../wp-realtime-sitemap.php:288
|
202 |
+
msgid "Choose what you would like to be displayed on your site map."
|
203 |
+
msgstr ""
|
204 |
+
|
205 |
+
#: ../wp-realtime-sitemap.php:296
|
206 |
+
#: ../wp-realtime-sitemap.php:318
|
207 |
+
#: ../wp-realtime-sitemap.php:340
|
208 |
+
#: ../wp-realtime-sitemap.php:362
|
209 |
+
msgid "Yes/On (Default)"
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#: ../wp-realtime-sitemap.php:297
|
213 |
+
#: ../wp-realtime-sitemap.php:319
|
214 |
+
#: ../wp-realtime-sitemap.php:341
|
215 |
+
#: ../wp-realtime-sitemap.php:363
|
216 |
+
msgid "No/Off"
|
217 |
+
msgstr ""
|
218 |
+
|
219 |
+
#: ../wp-realtime-sitemap.php:421
|
220 |
+
msgid "Sort Column: Only Yes/On or No/Off are accepted as valid inputs."
|
221 |
+
msgstr ""
|
222 |
+
|
223 |
+
#: ../wp-realtime-sitemap.php:429
|
224 |
+
msgid "Sort Order: Only Yes/On or No/Off are accepted as valid inputs."
|
225 |
+
msgstr ""
|
226 |
+
|
227 |
+
#: ../wp-realtime-sitemap.php:437
|
228 |
+
msgid "Count: Only Yes/On or No/Off are accepted as valid inputs."
|
229 |
+
msgstr ""
|
230 |
+
|
231 |
+
#: ../wp-realtime-sitemap.php:445
|
232 |
+
msgid "Date: Only Yes/On or No/Off are accepted as valid inputs."
|
233 |
+
msgstr ""
|
234 |
+
|
235 |
+
#: ../wp-realtime-sitemap.php:453
|
236 |
+
msgid "Limit: Only integers or -1 are accepted as valid inputs."
|
237 |
+
msgstr ""
|
238 |
+
|
239 |
+
#: ../wp-realtime-sitemap.php:461
|
240 |
+
msgid "Show Pages: Only Yes/On or No/Off are accepted as valid inputs."
|
241 |
+
msgstr ""
|
242 |
+
|
243 |
+
#: ../wp-realtime-sitemap.php:469
|
244 |
+
msgid "Show Posts: Only Yes/On or No/Off are accepted as valid inputs."
|
245 |
+
msgstr ""
|
246 |
+
|
247 |
+
#: ../wp-realtime-sitemap.php:477
|
248 |
+
msgid "Show Archives: Only Yes/On or No/Off are accepted as valid inputs."
|
249 |
+
msgstr ""
|
250 |
+
|
251 |
+
#: ../wp-realtime-sitemap.php:485
|
252 |
+
msgid "Show Categories: Only Yes/On or No/Off are accepted as valid inputs."
|
253 |
+
msgstr ""
|
254 |
+
|
255 |
+
#: ../wp-realtime-sitemap.php:493
|
256 |
+
msgid "Show Category as a Tag Cloud: Only Yes/On or No/Off are accepted as valid inputs."
|
257 |
+
msgstr ""
|
258 |
+
|
259 |
+
#: ../wp-realtime-sitemap.php:501
|
260 |
+
msgid "Show Tags: Only Yes/On or No/Off are accepted as valid inputs."
|
261 |
+
msgstr ""
|
262 |
+
|
263 |
+
#: ../wp-realtime-sitemap.php:509
|
264 |
+
msgid "Show Tags as a Tag Cloud: Only Yes/On or No/Off are accepted as valid inputs."
|
265 |
+
msgstr ""
|
266 |
+
|
267 |
+
#: ../wp-realtime-sitemap.php:520
|
268 |
+
msgid "You do not have sufficient permissions to access this page."
|
269 |
+
msgstr ""
|
270 |
+
|
271 |
+
#: ../wp-realtime-sitemap.php:527
|
272 |
+
msgid "This plugin can easily be styled by using the following ids below should you need to, if you require more flexibility than this please feel free to suggest something"
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
+
#: ../wp-realtime-sitemap.php:540
|
276 |
+
msgid "Save Changes"
|
277 |
+
msgstr ""
|
278 |
+
|
279 |
+
#: ../wp-realtime-sitemap.php:574
|
280 |
+
msgid "Pages"
|
281 |
+
msgstr ""
|
282 |
+
|
283 |
+
#: ../wp-realtime-sitemap.php:593
|
284 |
+
msgid "Posts"
|
285 |
+
msgstr ""
|
286 |
+
|
287 |
+
#: ../wp-realtime-sitemap.php:614
|
288 |
+
msgid "Archives"
|
289 |
+
msgstr ""
|
290 |
+
|
291 |
+
#: ../wp-realtime-sitemap.php:620
|
292 |
+
msgid "Categories"
|
293 |
+
msgstr ""
|
294 |
+
|
295 |
+
#: ../wp-realtime-sitemap.php:638
|
296 |
+
msgid "Tags"
|
297 |
+
msgstr ""
|
298 |
+
|
299 |
+
#. #-#-#-#-# plugin.pot (WP Realtime Sitemap) #-#-#-#-#
|
300 |
+
#. Plugin Name of the plugin/theme
|
301 |
+
#: ../wp-realtime-sitemap.php:102
|
302 |
+
msgid "WP Realtime Sitemap"
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#: wp-realtime-sitemap.php:88
|
306 |
+
msgid "WP Realtime Sitemap Help"
|
307 |
+
msgstr ""
|
308 |
+
|
309 |
+
#: wp-realtime-sitemap.php:89
|
310 |
+
msgid "WP Realtime Sitemap Home Page"
|
311 |
+
msgstr ""
|
312 |
+
|
313 |
+
#: wp-realtime-sitemap.php:90
|
314 |
+
msgid "WP Realtime Sitemap FAQ"
|
315 |
+
msgstr ""
|
316 |
+
|
317 |
+
#: wp-realtime-sitemap.php:91
|
318 |
+
msgid "WP Realtime Sitemap Support"
|
319 |
+
msgstr ""
|
320 |
+
|
321 |
+
#: wp-realtime-sitemap.php:92
|
322 |
+
msgid "WP Realtime Sitemap Donate"
|
323 |
+
msgstr ""
|
324 |
+
|
325 |
+
#: wp-realtime-sitemap.php:93
|
326 |
+
msgid "Please read the plugin information and FAQ, before asking a question."
|
327 |
+
msgstr ""
|
328 |
+
|
329 |
+
#. Plugin URI of the plugin/theme
|
330 |
+
msgid "http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-home/"
|
331 |
+
msgstr ""
|
332 |
+
|
333 |
+
#. Description of the plugin/theme
|
334 |
+
msgid ""
|
335 |
+
"Adds a sitemap to your Wordpress blog that is always up-to-date. Add `[wp-"
|
336 |
+
"realtime-sitemap show=\"all\"]` to any page or post and the site map will be "
|
337 |
+
"added there. Use Settings->WP Realtime Sitemap to set options."
|
338 |
+
msgstr ""
|
339 |
+
|
340 |
+
#. Author of the plugin/theme
|
341 |
+
msgid "Daniel Tweedy"
|
342 |
+
msgstr ""
|
343 |
+
|
344 |
+
#. Author URI of the plugin/theme
|
345 |
+
msgid "http://www.daniel-tweedy.co.uk/"
|
346 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
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
|
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.
|
@@ -22,6 +22,12 @@ A sitemap plugin to make it easier for your site to show all your pages, posts,
|
|
22 |
|
23 |
I am open to ideas as to where to take the plugin next, if anyone has any ideas as to how to make it better then do please let me know and I will see what I can do to accomodate your requests.
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
Please rate this plugin and/or make a donation if you find it useful, thank you.
|
26 |
|
27 |
== Installation ==
|
@@ -92,10 +98,18 @@ Show everything (fixed order of: posts, pages, archives, categories, tags): `[wp
|
|
92 |
|
93 |
== Translations ==
|
94 |
|
95 |
-
Brazilian Portuguese translation kindly done by
|
|
|
|
|
|
|
96 |
|
97 |
== Changelog ==
|
98 |
|
|
|
|
|
|
|
|
|
|
|
99 |
= 1.4.5 =
|
100 |
* Removed database code from admin_init as was being called on every admin page.
|
101 |
* Added post limit to show x number of posts only, currently limited to 9999.
|
@@ -141,8 +155,11 @@ Brazilian Portuguese translation kindly done by gervasioantonio.
|
|
141 |
|
142 |
== Upgrade Notice ==
|
143 |
|
|
|
|
|
|
|
144 |
= 1.4 =
|
145 |
You will need to change the code you have in your pages/posts to show the sitemap, please see plugin page on wordpress.org for more info.
|
146 |
|
147 |
= 1.1 =
|
148 |
-
Before upgrading you MUST delete the old plugin from your wordpress installation, BEFORE installing the new version! I changed the name of some of the variables stored in the database.
|
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
|
6 |
+
Tested up to: 3.0.2
|
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.
|
22 |
|
23 |
I am open to ideas as to where to take the plugin next, if anyone has any ideas as to how to make it better then do please let me know and I will see what I can do to accomodate your requests.
|
24 |
|
25 |
+
WP Realtime Sitemap is available in:-
|
26 |
+
|
27 |
+
* English
|
28 |
+
* Brazilian Portuguese by Gervasio Antonio
|
29 |
+
* Czech by Libor Cerny
|
30 |
+
|
31 |
Please rate this plugin and/or make a donation if you find it useful, thank you.
|
32 |
|
33 |
== Installation ==
|
98 |
|
99 |
== Translations ==
|
100 |
|
101 |
+
Brazilian Portuguese translation kindly done by Gervasio Antonio.
|
102 |
+
Czech translation kindly done by Libor Cerny.
|
103 |
+
|
104 |
+
I would be very grateful if someone could translate my plugin to other languages and also update the language files that have already been done to check they are still current and work with the recent changes I made to my plugin.
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
+
= 1.4.6 =
|
109 |
+
* Updated code to be more cleaner and easier to understand.
|
110 |
+
* Used WordPress Settings API for options form, and added validation.
|
111 |
+
* Updated the localization files, still fully translatable right down to the admin area.
|
112 |
+
|
113 |
= 1.4.5 =
|
114 |
* Removed database code from admin_init as was being called on every admin page.
|
115 |
* Added post limit to show x number of posts only, currently limited to 9999.
|
155 |
|
156 |
== Upgrade Notice ==
|
157 |
|
158 |
+
= 1.4.6 =
|
159 |
+
Renamed form options for Show post count, Show date, Post limit, as a result of this I do regrettably have to tell you you will need to visit the settings page and submit your settings back into the database for these options, otherwise your sitemap will not display on your site.
|
160 |
+
|
161 |
= 1.4 =
|
162 |
You will need to change the code you have in your pages/posts to show the sitemap, please see plugin page on wordpress.org for more info.
|
163 |
|
164 |
= 1.1 =
|
165 |
+
Before upgrading you MUST delete the old plugin from your wordpress installation, BEFORE installing the new version! I changed the name of some of the variables stored in the database.
|
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.
|
8 |
Author: Daniel Tweedy
|
9 |
Author URI: http://www.daniel-tweedy.co.uk/
|
10 |
License: GPL2
|
@@ -26,396 +26,719 @@ License: GPL2
|
|
26 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
*/
|
28 |
|
29 |
-
|
|
|
|
|
|
|
|
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
if (!current_user_can('manage_options')) {
|
34 |
-
wp_die( __('You do not have sufficient permissions to access this page.', 'wp-realtime-sitemap') );
|
35 |
-
}
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
// check admin security.
|
40 |
-
check_admin_referer('wp-realtime-sitemap');
|
41 |
-
|
42 |
-
// Get current options from the database.
|
43 |
-
$options = get_option('plugin_wp_realtime_sitemap_settings');
|
44 |
-
|
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['post_limit'] = $_POST['post_limit'];
|
53 |
-
$options['show_archives'] = $_POST['show_archives'];
|
54 |
-
$options['show_categories'] = $_POST['show_categories'];
|
55 |
-
$options['category_tagcloud'] = $_POST['category_tagcloud'];
|
56 |
-
$options['show_tags'] = $_POST['show_tags'];
|
57 |
-
$options['tags_tagcloud'] = $_POST['tags_tagcloud'];
|
58 |
-
|
59 |
-
// Update database with settings submitted via the form.
|
60 |
-
update_option('plugin_wp_realtime_sitemap_settings', $options);
|
61 |
-
|
62 |
-
// Extract submitted options into variables.
|
63 |
-
extract($options);
|
64 |
-
}
|
65 |
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
check_admin_referer('wp-realtime-sitemap');
|
70 |
-
|
71 |
-
$defaultOptions = 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 |
-
'post_limit' => '-1',
|
79 |
-
'show_archives' => 'yes',
|
80 |
-
'show_categories' => 'yes',
|
81 |
-
'category_tagcloud' => 'no',
|
82 |
-
'show_tags' => 'no',
|
83 |
-
'tags_tagcloud' => 'no',
|
84 |
-
);
|
85 |
-
|
86 |
-
// Update database with default settings.
|
87 |
-
update_option('plugin_wp_realtime_sitemap_settings', $defaultOptions);
|
88 |
-
|
89 |
-
// Extract default options into variables.
|
90 |
-
extract($defaultOptions);
|
91 |
-
|
92 |
-
// Delete old unused database entries - v1.0
|
93 |
-
delete_option('wp_realtime_sitemap_orderby');
|
94 |
-
delete_option('wp_realtime_sitemap_private');
|
95 |
-
delete_option('wp_realtime_sitemap_pages');
|
96 |
-
delete_option('wp_realtime_sitemap_posts');
|
97 |
-
delete_option('wp_realtime_sitemap_tags');
|
98 |
-
delete_option('wp_realtime_sitemap_archives');
|
99 |
-
delete_option('wp_realtime_sitemap_displayorder');
|
100 |
-
|
101 |
-
// Delete old unused database entries - v1.1
|
102 |
-
delete_option('wp_realtime_sitemap_orderby');
|
103 |
-
delete_option('wp_realtime_sitemap_showprivate');
|
104 |
-
delete_option('wp_realtime_sitemap_showpages');
|
105 |
-
delete_option('wp_realtime_sitemap_showposts');
|
106 |
-
delete_option('wp_realtime_sitemap_showarchives');
|
107 |
-
delete_option('wp_realtime_sitemap_showcategories');
|
108 |
-
delete_option('wp_realtime_sitemap_showcategoriesastc');
|
109 |
-
delete_option('wp_realtime_sitemap_showtags');
|
110 |
-
delete_option('wp_realtime_sitemap_showtagsastc');
|
111 |
-
delete_option('wp_realtime_sitemap_displayorder');
|
112 |
-
}
|
113 |
|
114 |
-
|
115 |
-
|
116 |
-
extract(get_option('plugin_wp_realtime_sitemap_settings'));
|
117 |
-
}
|
118 |
-
?>
|
119 |
-
<div class="wrap">
|
120 |
-
<?php screen_icon(); ?>
|
121 |
-
<h2><?php _e('WP Realtime Sitemap Default Options', 'wp-realtime-sitemap'); ?></h2>
|
122 |
-
|
123 |
-
<form method="post">
|
124 |
-
<?php wp_nonce_field('wp-realtime-sitemap'); ?>
|
125 |
-
<table class="form-table">
|
126 |
-
<tr valign="top">
|
127 |
-
<th scope="row"><label for="sort_column"><?php _e('Sort column', 'wp-realtime-sitemap'); ?></label></th>
|
128 |
-
<td><select name="sort_column">
|
129 |
-
<option <?php selected('title', $sort_column); ?> value="title"><?php _e('Alphabetically (by title) (Default)', 'wp-realtime-sitemap'); ?></option>
|
130 |
-
<option <?php selected('menu_order', $sort_column); ?> value="menu_order"><?php _e('Page order', 'wp-realtime-sitemap'); ?></option>
|
131 |
-
<option <?php selected('date', $sort_column); ?> value="date"><?php _e('Creation time', 'wp-realtime-sitemap'); ?></option>
|
132 |
-
<option <?php selected('modified', $sort_column); ?> value="modified"><?php _e('Time last modified', 'wp-realtime-sitemap'); ?></option>
|
133 |
-
<option <?php selected('ID', $sort_column); ?> value="ID"><?php _e('Numeric Page ID', 'wp-realtime-sitemap'); ?></option>
|
134 |
-
<option <?php selected('author', $sort_column); ?> value="author"><?php _e('Page author', 'wp-realtime-sitemap'); ?></option>
|
135 |
-
<option <?php selected('name', $sort_column); ?> value="name"><?php _e('Alphabetically (by post slug)', 'wp-realtime-sitemap'); ?></option>
|
136 |
-
</select></td>
|
137 |
-
</tr>
|
138 |
-
<tr valign="top">
|
139 |
-
<th scope="row"><label for="sort_order"><?php _e('Sort order', 'wp-realtime-sitemap'); ?></label></th>
|
140 |
-
<td><select name="sort_order">
|
141 |
-
<option <?php selected('ASC', $sort_order); ?> value="ASC"><?php _e('Ascending (Default)', 'wp-realtime-sitemap'); ?></option>
|
142 |
-
<option <?php selected('DESC', $sort_order); ?> value="DESC"><?php _e('Descending', 'wp-realtime-sitemap'); ?></option>
|
143 |
-
</select></td>
|
144 |
-
</tr>
|
145 |
-
<tr valign="top">
|
146 |
-
<th scope="row"><label for="show_count"><?php _e('Show post count', 'wp-realtime-sitemap'); ?></label></th>
|
147 |
-
<td><select name="show_count">
|
148 |
-
<option <?php selected('yes', $show_count); ?> value="yes"><?php _e('Yes/On', 'wp-realtime-sitemap'); ?></option>
|
149 |
-
<option <?php selected('no', $show_count); ?> value="no"><?php _e('No/Off (Default)', 'wp-realtime-sitemap'); ?></option>
|
150 |
-
</select></td>
|
151 |
-
</tr>
|
152 |
-
<tr valign="top">
|
153 |
-
<th scope="row"><label for="show_date"><?php _e('Show date', 'wp-realtime-sitemap'); ?></label></th>
|
154 |
-
<td><select name="show_date">
|
155 |
-
<option <?php selected('yes', $show_date); ?> value="yes"><?php _e('Yes/On', 'wp-realtime-sitemap'); ?></option>
|
156 |
-
<option <?php selected('no', $show_date); ?> value="no"><?php _e('No/Off (Default)', 'wp-realtime-sitemap'); ?></option>
|
157 |
-
</select></td>
|
158 |
-
</tr>
|
159 |
-
<tr valign="top">
|
160 |
-
<th scope="row"><label for="show_pages"><?php _e('Show pages', 'wp-realtime-sitemap'); ?></label></th>
|
161 |
-
<td><select name="show_pages">
|
162 |
-
<option value="yes" <?php selected('yes', $show_pages); ?>><?php _e('Yes/On (Default)', 'wp-realtime-sitemap'); ?></option>
|
163 |
-
<option value="no" <?php selected('no', $show_pages); ?>><?php _e('No/Off', 'wp-realtime-sitemap'); ?></option>
|
164 |
-
</select></td>
|
165 |
-
</tr>
|
166 |
-
<tr valign="top">
|
167 |
-
<th scope="row"><label for="show_posts"><?php _e('Show posts', 'wp-realtime-sitemap'); ?></label></th>
|
168 |
-
<td><select name="show_posts">
|
169 |
-
<option value="yes" <?php selected('yes', $show_posts); ?>><?php _e('Yes/On (Default)', 'wp-realtime-sitemap'); ?></option>
|
170 |
-
<option value="no" <?php selected('no', $show_posts); ?>><?php _e('No/Off', 'wp-realtime-sitemap'); ?></option>
|
171 |
-
</select></td>
|
172 |
-
</tr>
|
173 |
-
<tr valign="top">
|
174 |
-
<th scope="row"><label for="post_limit"><?php _e('Post limit', 'wp-realtime-sitemap'); ?></label></th>
|
175 |
-
<td><input value="<?php echo $post_limit; ?>" type="text" name="post_limit" size="4" /> -1 to show all posts.</td>
|
176 |
-
</tr>
|
177 |
-
<tr valign="top">
|
178 |
-
<th scope="row"><label for="show_archives"><?php _e('Show archives', 'wp-realtime-sitemap'); ?></label></th>
|
179 |
-
<td><select name="show_archives">
|
180 |
-
<option value="yes" <?php selected('yes', $show_archives); ?>><?php _e('Yes/On (Default)', 'wp-realtime-sitemap'); ?></option>
|
181 |
-
<option value="no" <?php selected('no', $show_archives); ?>><?php _e('No/Off', 'wp-realtime-sitemap'); ?></option>
|
182 |
-
</select></td>
|
183 |
-
</tr>
|
184 |
-
<tr valign="top">
|
185 |
-
<th scope="row"><label for="show_categories"><?php _e('Show categories', 'wp-realtime-sitemap'); ?></label></th>
|
186 |
-
<td><select name="show_categories">
|
187 |
-
<option value="yes" <?php selected('yes', $show_categories); ?>><?php _e('Yes/On (Default)', 'wp-realtime-sitemap'); ?></option>
|
188 |
-
<option value="no" <?php selected('no', $show_categories); ?>><?php _e('No/Off', 'wp-realtime-sitemap'); ?></option>
|
189 |
-
</select></td>
|
190 |
-
</tr>
|
191 |
-
<tr valign="top">
|
192 |
-
<th scope="row"><label for="category_tagcloud"><?php _e('Show categories as a tag cloud', 'wp-realtime-sitemap'); ?></label></th>
|
193 |
-
<td><select name="category_tagcloud">
|
194 |
-
<option value="yes" <?php selected('yes', $category_tagcloud); ?>><?php _e('Yes/On', 'wp-realtime-sitemap'); ?></option>
|
195 |
-
<option value="no" <?php selected('no', $category_tagcloud); ?>><?php _e('No/Off (Default)', 'wp-realtime-sitemap'); ?></option>
|
196 |
-
</select></td>
|
197 |
-
</tr>
|
198 |
-
<tr valign="top">
|
199 |
-
<th scope="row"><label for="show_tags"><?php _e('Show tags', 'wp-realtime-sitemap'); ?></label></th>
|
200 |
-
<td><select name="show_tags">
|
201 |
-
<option value="yes" <?php selected('yes', $show_tags); ?>><?php _e('Yes/On', 'wp-realtime-sitemap'); ?></option>
|
202 |
-
<option value="no" <?php selected('no', $show_tags); ?>><?php _e('No/Off (Default)', 'wp-realtime-sitemap'); ?></option>
|
203 |
-
</select></td>
|
204 |
-
</tr>
|
205 |
-
<tr valign="top">
|
206 |
-
<th scope="row"><label for="tags_tagcloud"><?php _e('Show tags as a tag cloud', 'wp-realtime-sitemap'); ?></label></th>
|
207 |
-
<td><select name="tags_tagcloud">
|
208 |
-
<option value="yes" <?php selected('yes', $tags_tagcloud); ?>><?php _e('Yes/On', 'wp-realtime-sitemap'); ?></option>
|
209 |
-
<option value="no" <?php selected('no', $tags_tagcloud); ?>><?php _e('No/Off (Default)', 'wp-realtime-sitemap'); ?></option>
|
210 |
-
</select></td>
|
211 |
-
</tr>
|
212 |
-
</table>
|
213 |
-
|
214 |
-
<div class="submit">
|
215 |
-
<input type="submit" name="info_update" value="<?php _e('Update Options', 'wp-realtime-sitemap'); ?>" />
|
216 |
-
</div>
|
217 |
-
</form>
|
218 |
|
219 |
-
|
220 |
-
<?php wp_nonce_field('wp-realtime-sitemap'); ?>
|
221 |
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
function wp_realtime_sitemap($atts, $content=null, $code='') {
|
231 |
-
global $wpdb, $table_prefix;
|
232 |
-
|
233 |
-
// Only perform plugin functionality if post/page text has the shortcode in the page.
|
234 |
-
if (preg_match('|wp-realtime-sitemap|', $code)) {
|
235 |
-
|
236 |
-
// Get option values from the database.
|
237 |
-
$all_options = get_option('plugin_wp_realtime_sitemap_settings');
|
238 |
-
|
239 |
-
extract(shortcode_atts(array(
|
240 |
-
'show' => 'all',
|
241 |
-
'sort_column' => $all_options['sort_column'],
|
242 |
-
'sort_order' => $all_options['sort_order'],
|
243 |
-
'show_count' => $all_options['show_count'],
|
244 |
-
'show_date' => $all_options['show_date'],
|
245 |
-
'post_limit' => $all_options['post_limit'],
|
246 |
-
), $atts));
|
247 |
-
|
248 |
-
if ($show == 'categories') {
|
249 |
-
$tagcloud = $all_options['category_tagcloud'];
|
250 |
-
} else if ($show == 'tags') {
|
251 |
-
$tagcloud = $all_options['tags_tagcloud'];
|
252 |
}
|
253 |
|
254 |
-
|
255 |
-
|
256 |
-
if ($
|
257 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
|
259 |
-
|
260 |
-
$
|
|
|
|
|
|
|
|
|
|
|
261 |
}
|
262 |
|
263 |
-
|
264 |
-
|
265 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
);
|
273 |
|
274 |
-
|
275 |
-
|
|
|
276 |
|
277 |
-
|
278 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
|
284 |
-
|
285 |
-
|
|
|
|
|
|
|
|
|
286 |
|
287 |
-
|
|
|
|
|
|
|
288 |
}
|
289 |
|
290 |
-
|
291 |
-
$posts .= '</ul>';
|
292 |
|
293 |
-
|
294 |
-
|
295 |
|
|
|
|
|
|
|
|
|
296 |
}
|
297 |
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
}
|
303 |
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
if ($sort_column != 'ID' || $sort_column != 'name' || $sort_column != 'slug' || $sort_column != 'count' || $sort_column != 'term_group') {
|
313 |
-
$categories_sort_column = 'name';
|
314 |
-
}
|
315 |
|
316 |
-
|
|
|
|
|
|
|
|
|
|
|
317 |
}
|
|
|
|
|
|
|
|
|
318 |
}
|
319 |
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
|
|
|
|
|
|
331 |
|
332 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
333 |
}
|
|
|
|
|
|
|
|
|
334 |
}
|
335 |
|
336 |
-
|
337 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
338 |
}
|
339 |
|
340 |
-
|
341 |
-
|
342 |
}
|
343 |
|
344 |
-
|
345 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
}
|
347 |
|
348 |
-
|
349 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
350 |
}
|
351 |
|
352 |
-
|
353 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
}
|
355 |
|
356 |
-
|
357 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
}
|
359 |
-
}
|
360 |
-
} // End wp_realtime_sitemap()
|
361 |
|
362 |
-
|
|
|
|
|
363 |
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
399 |
}
|
400 |
}
|
401 |
-
add_action('admin_menu', 'wprs_admin_menu');
|
402 |
-
|
403 |
-
function wprs_admin_init() { }
|
404 |
-
add_action('admin_init', 'wprs_admin_init');
|
405 |
-
|
406 |
-
function wprs_contextual_help( $help, $screen ) {
|
407 |
-
if ( $screen == 'settings_page_wp-realtime-sitemap' ) {
|
408 |
-
$help .= '<h5>' . __('WP Realtime Sitemap Help', 'wp-realtime-sitemap') . '</h5><div class="metabox-prefs">';
|
409 |
-
$help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-install">'.__( 'WP Realtime Sitemap Home Page', 'wp-realtime-sitemap' ).'</a><br/>';
|
410 |
-
$help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-faq">'.__( 'WP Realtime Sitemap FAQ', 'wp-realtime-sitemap' ).'</a><br/>';
|
411 |
-
$help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-support">'.__( 'WP Realtime Sitemap Support', 'wp-realtime-sitemap' ).'</a><br/>';
|
412 |
-
$help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-donate">'.__( 'WP Realtime Sitemap Donate', 'wp-realtime-sitemap' ).'</a><br/>';
|
413 |
-
$help .= __( 'Please read the plugin information and FAQ, before asking a question.', 'wp-realtime-sitemap' );
|
414 |
-
$help .= '</div>';
|
415 |
-
}
|
416 |
|
417 |
-
|
418 |
-
|
419 |
-
add_filter( 'contextual_help', 'wprs_contextual_help', 10, 2 );
|
420 |
|
421 |
-
?>
|
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.6
|
8 |
Author: Daniel Tweedy
|
9 |
Author URI: http://www.daniel-tweedy.co.uk/
|
10 |
License: GPL2
|
26 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
*/
|
28 |
|
29 |
+
if (!class_exists('WPRealtimeSitemap')) {
|
30 |
+
class WPRealtimeSitemap {
|
31 |
+
function WPRealtimeSitemap() { //constructor
|
32 |
+
// Add Meta
|
33 |
+
add_filter('plugin_row_meta', array(&$this, 'addMeta'), 10, 2);
|
34 |
|
35 |
+
// Add Action Links
|
36 |
+
add_filter('plugin_action_links', array(&$this, 'addActionLinks'), 10, 2);
|
|
|
|
|
|
|
37 |
|
38 |
+
// Add Help
|
39 |
+
add_filter('contextual_help', array(&$this, 'addHelp'), 10, 2 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
+
// Add Settings Panel
|
42 |
+
add_action('admin_menu', array($this, 'addOptions'));
|
43 |
+
add_action('admin_init', array($this, 'addOptionsInit'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
+
// Add Form Shortcode
|
46 |
+
add_shortcode('wp-realtime-sitemap', array($this, 'showOutput'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
+
$options = get_option('plugin_wp_realtime_sitemap_settings');
|
|
|
49 |
|
50 |
+
// Localization
|
51 |
+
load_plugin_textdomain('wp-realtime-sitemap', false, dirname(plugin_basename(__FILE__)) . '/language');
|
52 |
+
|
53 |
+
// Install Default Settings
|
54 |
+
register_activation_hook( __FILE__, array(&$this, 'installSettings') );
|
55 |
+
|
56 |
+
// UnInstall Settings
|
57 |
+
register_deactivation_hook( __FILE__, array(&$this, 'unInstallSettings') );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
|
60 |
+
function addMeta($links, $file) {
|
61 |
+
$plugin_file = basename(__FILE__);
|
62 |
+
if (basename($file) == $plugin_file) {
|
63 |
+
$faq_link = '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-faq">' . __('FAQ', 'wp-realtime-sitemap') . '</a>';
|
64 |
+
array_unshift($links, $faq_link);
|
65 |
+
$support_link = '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-support">' . __('Support', 'wp-realtime-sitemap') . '</a>';
|
66 |
+
array_unshift($links, $support_link);
|
67 |
+
$settings_link = '<a href="options-general.php?page='.$plugin_file.'">' . __('Settings', 'wp-realtime-sitemap') . '</a>';
|
68 |
+
array_unshift($links, $settings_link);
|
69 |
+
$donate_link = '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-donate">' . __('Donate', 'wp-realtime-sitemap') . '</a>';
|
70 |
+
array_unshift($links, $donate_link);
|
71 |
+
$amazon_link = '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-amazon-wishlist">' . __('Amazon Wishlist', 'wp-realtime-sitemap') . '</a>';
|
72 |
+
array_unshift($links, $amazon_link);
|
73 |
+
}
|
74 |
+
return $links;
|
75 |
+
}
|
76 |
|
77 |
+
function addActionLinks($links, $file) {
|
78 |
+
$plugin_file = basename(__FILE__);
|
79 |
+
if (basename($file) == $plugin_file) {
|
80 |
+
$settings_link = '<a href="options-general.php?page='.$plugin_file.'">' . __('Settings', 'wp-realtime-sitemap') . '</a>';
|
81 |
+
array_unshift($links, $settings_link);
|
82 |
+
}
|
83 |
+
return $links;
|
84 |
}
|
85 |
|
86 |
+
function addHelp( $help, $screen ) {
|
87 |
+
if ( $screen == 'settings_page_wp-realtime-sitemap' ) {
|
88 |
+
$help .= '<h5>' . __('WP Realtime Sitemap Help', 'wp-realtime-sitemap') . '</h5><div class="metabox-prefs">';
|
89 |
+
$help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-install">' . __( 'Home Page', 'wp-realtime-sitemap' ).'</a><br/>';
|
90 |
+
$help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-faq">' . __( 'FAQ', 'wp-realtime-sitemap' ).'</a><br/>';
|
91 |
+
$help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-support">' . __( 'Support', 'wp-realtime-sitemap' ).'</a><br/>';
|
92 |
+
$help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-donate">' . __( 'Donate', 'wp-realtime-sitemap' ).'</a><br/>';
|
93 |
+
$help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-amazon-wishlist">' . __('Amazon Wishlist', 'wp-realtime-sitemap') . '</a>';
|
94 |
+
$help .= __( 'Please read the plugin information and FAQ, before asking a question.', 'wp-realtime-sitemap' );
|
95 |
+
$help .= '</div>';
|
96 |
+
}
|
97 |
+
|
98 |
+
return $help;
|
99 |
+
}
|
100 |
+
|
101 |
+
function addOptions() {
|
102 |
+
add_options_page(__('WP Realtime Sitemap Options', 'wp-realtime-sitemap'), __('WP Realtime Sitemap', 'wp-realtime-sitemap'), 'manage_options', basename(__FILE__), array(&$this, '_optionsForm'));
|
103 |
+
}
|
104 |
+
|
105 |
+
function addOptionsInit() {
|
106 |
+
register_setting('update_settings', 'plugin_wp_realtime_sitemap_settings', array($this, '_formValidate'));
|
107 |
+
|
108 |
+
add_settings_section('general_settings', __('General Settings', 'wp-realtime-sitemap'), array($this, 'general_section_text'), __FILE__);
|
109 |
+
add_settings_field('sort_column', __('Sort Column', 'wp-realtime-sitemap'), array($this, '_formSortColumn'), __FILE__, 'general_settings');
|
110 |
+
add_settings_field('sort_order', __('Sort Order', 'wp-realtime-sitemap'), array($this, '_formSortOrder'), __FILE__, 'general_settings');
|
111 |
|
112 |
+
add_settings_section('post_settings', __('Post Settings', 'wp-realtime-sitemap'), array($this, 'post_section_text'), __FILE__);
|
113 |
+
add_settings_field('count', __('Count', 'wp-realtime-sitemap'), array($this, '_formCount'), __FILE__, 'post_settings');
|
114 |
+
add_settings_field('date', __('Date', 'wp-realtime-sitemap'), array($this, '_formDate'), __FILE__, 'post_settings');
|
115 |
+
add_settings_field('limit', __('Limit', 'wp-realtime-sitemap'), array($this, '_formLimit'), __FILE__, 'post_settings');
|
116 |
+
|
117 |
+
add_settings_section('tagcloud_settings', __('Tag Cloud Settings', 'wp-realtime-sitemap'), array($this, 'tagcloud_section_text'), __FILE__);
|
118 |
+
add_settings_field('category_tagcloud', __('Show Category as a Tag Cloud', 'wp-realtime-sitemap'), array($this, '_formCategoryTagCloud'), __FILE__, 'tagcloud_settings');
|
119 |
+
add_settings_field('tags_tagcloud', __('Show Tags as a Tag Cloud', 'wp-realtime-sitemap'), array($this, '_formTagsTagCloud'), __FILE__, 'tagcloud_settings');
|
120 |
+
|
121 |
+
add_settings_section('display_settings', __('Display Settings', 'wp-realtime-sitemap'), array($this, 'display_section_text'), __FILE__);
|
122 |
+
add_settings_field('show_pages', __('Show Pages', 'wp-realtime-sitemap'), array($this, '_formShowPages'), __FILE__, 'display_settings');
|
123 |
+
add_settings_field('show_posts', __('Show Posts', 'wp-realtime-sitemap'), array($this, '_formShowPosts'), __FILE__, 'display_settings');
|
124 |
+
add_settings_field('show_archives', __('Show Archives', 'wp-realtime-sitemap'), array($this, '_formShowArchives'), __FILE__, 'display_settings');
|
125 |
+
add_settings_field('show_categories', __('Show Categories', 'wp-realtime-sitemap'), array($this, '_formShowCategories'), __FILE__, 'display_settings');
|
126 |
+
add_settings_field('show_tags', __('Show Tags', 'wp-realtime-sitemap'), array($this, '_formShowTags'), __FILE__, 'display_settings');
|
127 |
+
}
|
128 |
+
|
129 |
+
function general_section_text() {
|
130 |
+
echo '<p>' . __('Sort Column and Sort Order are used for sorting Pages, Posts, Categories and Tags.', 'wp-realtime-sitemap') . '</p>';
|
131 |
+
}
|
132 |
+
|
133 |
+
function _formSortColumn() {
|
134 |
+
// Get current options from the database.
|
135 |
+
extract(get_option('plugin_wp_realtime_sitemap_settings'));
|
136 |
+
|
137 |
+
$values = array(
|
138 |
+
'title' => __('Alphabetically (by title) (Default)', 'wp-realtime-sitemap'),
|
139 |
+
'menu_order' => __('Page order', 'wp-realtime-sitemap'),
|
140 |
+
'date' => __('Creation time', 'wp-realtime-sitemap'),
|
141 |
+
'modified' => __('Time last modified', 'wp-realtime-sitemap'),
|
142 |
+
'ID' => __('Numeric Page ID', 'wp-realtime-sitemap'),
|
143 |
+
'author' => __('Page author', 'wp-realtime-sitemap'),
|
144 |
+
'name' => __('Alphabetically (by post slug)', 'wp-realtime-sitemap'),
|
145 |
);
|
146 |
|
147 |
+
$optionFormat = '<option value="%s"%s>%s</option>';
|
148 |
+
|
149 |
+
$output = '<select name="plugin_wp_realtime_sitemap_settings[sort_column]">';
|
150 |
|
151 |
+
foreach ($values as $key => $label) {
|
152 |
+
$output .= sprintf($optionFormat, $key, selected($sort_column, $key, false), $label);
|
153 |
+
}
|
154 |
+
|
155 |
+
$output .= '</select>';
|
156 |
+
|
157 |
+
echo $output;
|
158 |
+
}
|
159 |
|
160 |
+
function _formSortOrder() {
|
161 |
+
// Get current options from the database.
|
162 |
+
extract(get_option('plugin_wp_realtime_sitemap_settings'));
|
163 |
|
164 |
+
$values = array(
|
165 |
+
'ASC' => __('Ascending (Default)', 'wp-realtime-sitemap'),
|
166 |
+
'DESC' => __('Descending', 'wp-realtime-sitemap'),
|
167 |
+
);
|
168 |
+
|
169 |
+
$optionFormat = '<option value="%s"%s>%s</option>';
|
170 |
|
171 |
+
$output = '<select name="plugin_wp_realtime_sitemap_settings[sort_order]">';
|
172 |
+
|
173 |
+
foreach ($values as $key => $label) {
|
174 |
+
$output .= sprintf($optionFormat, $key, selected($sort_order, $key, false), $label);
|
175 |
}
|
176 |
|
177 |
+
$output .= '</select>';
|
|
|
178 |
|
179 |
+
echo $output;
|
180 |
+
}
|
181 |
|
182 |
+
function post_section_text() {
|
183 |
+
echo '<p>' . __('Count is to display the number of posts that a Archive, Category and/or Tag has.', 'wp-realtime-sitemap') . '</p>';
|
184 |
+
echo '<p>' . __('Date is to show the date that the post itself was created/published.', 'wp-realtime-sitemap') . '</p>';
|
185 |
+
echo '<p>' . __('Limit is used to apply a limit as to how many posts should be shown on the sitemap, useful for if you have a very large blog and as such a large number of posts, use -1 to show all posts and not apply a limit.', 'wp-realtime-sitemap') . '</p>';
|
186 |
}
|
187 |
|
188 |
+
function _formCount() {
|
189 |
+
// Get current options from the database.
|
190 |
+
extract(get_option('plugin_wp_realtime_sitemap_settings'));
|
191 |
+
|
192 |
+
$values = array(
|
193 |
+
'yes' => __('Yes/On', 'wp-realtime-sitemap'),
|
194 |
+
'no' => __('No/Off (Default)', 'wp-realtime-sitemap'),
|
195 |
+
);
|
196 |
+
|
197 |
+
$optionFormat = '<option value="%s"%s>%s</option>';
|
198 |
+
|
199 |
+
$output = '<select name="plugin_wp_realtime_sitemap_settings[count]">';
|
200 |
+
|
201 |
+
foreach ($values as $key => $label) {
|
202 |
+
$output .= sprintf($optionFormat, $key, selected($count, $key, false), $label);
|
203 |
+
}
|
204 |
+
|
205 |
+
$output .= '</select>';
|
206 |
+
|
207 |
+
echo $output;
|
208 |
}
|
209 |
|
210 |
+
function _formDate() {
|
211 |
+
// Get current options from the database.
|
212 |
+
extract(get_option('plugin_wp_realtime_sitemap_settings'));
|
213 |
|
214 |
+
$values = array(
|
215 |
+
'yes' => __('Yes/On', 'wp-realtime-sitemap'),
|
216 |
+
'no' => __('No/Off (Default)', 'wp-realtime-sitemap'),
|
217 |
+
);
|
|
|
|
|
|
|
218 |
|
219 |
+
$optionFormat = '<option value="%s"%s>%s</option>';
|
220 |
+
|
221 |
+
$output = '<select name="plugin_wp_realtime_sitemap_settings[date]">';
|
222 |
+
|
223 |
+
foreach ($values as $key => $label) {
|
224 |
+
$output .= sprintf($optionFormat, $key, selected($date, $key, false), $label);
|
225 |
}
|
226 |
+
|
227 |
+
$output .= '</select>';
|
228 |
+
|
229 |
+
echo $output;
|
230 |
}
|
231 |
|
232 |
+
function _formLimit() {
|
233 |
+
// Get current options from the database.
|
234 |
+
extract(get_option('plugin_wp_realtime_sitemap_settings'));
|
235 |
|
236 |
+
echo '<input name="plugin_wp_realtime_sitemap_settings[limit]" size="4" type="text" value="' . $limit . '" /> -1 to show all posts.';
|
237 |
+
}
|
238 |
+
|
239 |
+
function tagcloud_section_text() {
|
240 |
+
echo '<p>' . __('To show category and/or tags as a tag cloud instead of a bulletted list.', 'wp-realtime-sitemap') . '</p>';
|
241 |
+
}
|
242 |
+
|
243 |
+
function _formCategoryTagCloud() {
|
244 |
+
// Get current options from the database.
|
245 |
+
extract(get_option('plugin_wp_realtime_sitemap_settings'));
|
246 |
|
247 |
+
$values = array(
|
248 |
+
'yes' => __('Yes/On', 'wp-realtime-sitemap'),
|
249 |
+
'no' => __('No/Off (Default)', 'wp-realtime-sitemap'),
|
250 |
+
);
|
251 |
+
|
252 |
+
$optionFormat = '<option value="%s"%s>%s</option>';
|
253 |
+
|
254 |
+
$output = '<select name="plugin_wp_realtime_sitemap_settings[category_tagcloud]">';
|
255 |
+
|
256 |
+
foreach ($values as $key => $label) {
|
257 |
+
$output .= sprintf($optionFormat, $key, selected($category_tagcloud, $key, false), $label);
|
258 |
}
|
259 |
+
|
260 |
+
$output .= '</select>';
|
261 |
+
|
262 |
+
echo $output;
|
263 |
}
|
264 |
|
265 |
+
function _formTagsTagCloud() {
|
266 |
+
// Get current options from the database.
|
267 |
+
extract(get_option('plugin_wp_realtime_sitemap_settings'));
|
268 |
+
|
269 |
+
$values = array(
|
270 |
+
'yes' => __('Yes/On', 'wp-realtime-sitemap'),
|
271 |
+
'no' => __('No/Off (Default)', 'wp-realtime-sitemap'),
|
272 |
+
);
|
273 |
+
|
274 |
+
$optionFormat = '<option value="%s"%s>%s</option>';
|
275 |
+
|
276 |
+
$output = '<select name="plugin_wp_realtime_sitemap_settings[tags_tagcloud]">';
|
277 |
+
|
278 |
+
foreach ($values as $key => $label) {
|
279 |
+
$output .= sprintf($optionFormat, $key, selected($tags_tagcloud, $key, false), $label);
|
280 |
+
}
|
281 |
+
|
282 |
+
$output .= '</select>';
|
283 |
+
|
284 |
+
echo $output;
|
285 |
}
|
286 |
|
287 |
+
function display_section_text() {
|
288 |
+
echo '<p>' . __('Choose what you would like to be displayed on your site map.', 'wp-realtime-sitemap') . '</p>';
|
289 |
}
|
290 |
|
291 |
+
function _formShowPages() {
|
292 |
+
// Get current options from the database.
|
293 |
+
extract(get_option('plugin_wp_realtime_sitemap_settings'));
|
294 |
+
|
295 |
+
$values = array(
|
296 |
+
'yes' => __('Yes/On (Default)', 'wp-realtime-sitemap'),
|
297 |
+
'no' => __('No/Off', 'wp-realtime-sitemap'),
|
298 |
+
);
|
299 |
+
|
300 |
+
$optionFormat = '<option value="%s"%s>%s</option>';
|
301 |
+
|
302 |
+
$output = '<select name="plugin_wp_realtime_sitemap_settings[show_pages]">';
|
303 |
+
|
304 |
+
foreach ($values as $key => $label) {
|
305 |
+
$output .= sprintf($optionFormat, $key, selected($show_pages, $key, false), $label);
|
306 |
+
}
|
307 |
+
|
308 |
+
$output .= '</select>';
|
309 |
+
|
310 |
+
echo $output;
|
311 |
}
|
312 |
|
313 |
+
function _formShowPosts() {
|
314 |
+
// Get current options from the database.
|
315 |
+
extract(get_option('plugin_wp_realtime_sitemap_settings'));
|
316 |
+
|
317 |
+
$values = array(
|
318 |
+
'yes' => __('Yes/On (Default)', 'wp-realtime-sitemap'),
|
319 |
+
'no' => __('No/Off', 'wp-realtime-sitemap'),
|
320 |
+
);
|
321 |
+
|
322 |
+
$optionFormat = '<option value="%s"%s>%s</option>';
|
323 |
+
|
324 |
+
$output = '<select name="plugin_wp_realtime_sitemap_settings[show_posts]">';
|
325 |
+
|
326 |
+
foreach ($values as $key => $label) {
|
327 |
+
$output .= sprintf($optionFormat, $key, selected($show_posts, $key, false), $label);
|
328 |
+
}
|
329 |
+
|
330 |
+
$output .= '</select>';
|
331 |
+
|
332 |
+
echo $output;
|
333 |
}
|
334 |
|
335 |
+
function _formShowArchives() {
|
336 |
+
// Get current options from the database.
|
337 |
+
extract(get_option('plugin_wp_realtime_sitemap_settings'));
|
338 |
+
|
339 |
+
$values = array(
|
340 |
+
'yes' => __('Yes/On (Default)', 'wp-realtime-sitemap'),
|
341 |
+
'no' => __('No/Off', 'wp-realtime-sitemap'),
|
342 |
+
);
|
343 |
+
|
344 |
+
$optionFormat = '<option value="%s"%s>%s</option>';
|
345 |
+
|
346 |
+
$output = '<select name="plugin_wp_realtime_sitemap_settings[show_archives]">';
|
347 |
+
|
348 |
+
foreach ($values as $key => $label) {
|
349 |
+
$output .= sprintf($optionFormat, $key, selected($show_archives, $key, false), $label);
|
350 |
+
}
|
351 |
+
|
352 |
+
$output .= '</select>';
|
353 |
+
|
354 |
+
echo $output;
|
355 |
}
|
356 |
|
357 |
+
function _formShowCategories() {
|
358 |
+
// Get current options from the database.
|
359 |
+
extract(get_option('plugin_wp_realtime_sitemap_settings'));
|
360 |
+
|
361 |
+
$values = array(
|
362 |
+
'yes' => __('Yes/On (Default)', 'wp-realtime-sitemap'),
|
363 |
+
'no' => __('No/Off', 'wp-realtime-sitemap'),
|
364 |
+
);
|
365 |
+
|
366 |
+
$optionFormat = '<option value="%s"%s>%s</option>';
|
367 |
+
|
368 |
+
$output = '<select name="plugin_wp_realtime_sitemap_settings[show_categories]">';
|
369 |
+
|
370 |
+
foreach ($values as $key => $label) {
|
371 |
+
$output .= sprintf($optionFormat, $key, selected($show_categories, $key, false), $label);
|
372 |
+
}
|
373 |
+
|
374 |
+
$output .= '</select>';
|
375 |
+
|
376 |
+
echo $output;
|
377 |
}
|
|
|
|
|
378 |
|
379 |
+
function _formShowTags() {
|
380 |
+
// Get current options from the database.
|
381 |
+
extract(get_option('plugin_wp_realtime_sitemap_settings'));
|
382 |
|
383 |
+
$values = array(
|
384 |
+
'yes' => __('Yes/On', 'wp-realtime-sitemap'),
|
385 |
+
'no' => __('No/Off (Default)', 'wp-realtime-sitemap'),
|
386 |
+
);
|
387 |
+
|
388 |
+
$optionFormat = '<option value="%s"%s>%s</option>';
|
389 |
+
|
390 |
+
$output = '<select name="plugin_wp_realtime_sitemap_settings[show_tags]">';
|
391 |
+
|
392 |
+
foreach ($values as $key => $label) {
|
393 |
+
$output .= sprintf($optionFormat, $key, selected($show_tags, $key, false), $label);
|
394 |
+
}
|
395 |
+
|
396 |
+
$output .= '</select>';
|
397 |
+
|
398 |
+
echo $output;
|
399 |
+
}
|
400 |
+
|
401 |
+
function _formValidate($input) {
|
402 |
+
$plugin_wp_realtime_sitemap_settings = get_option('plugin_wp_realtime_sitemap_settings');
|
403 |
+
|
404 |
+
$validOptions = array(
|
405 |
+
'sort_column' => array('title', 'menu_order', 'date', 'modified', 'ID', 'author', 'name'),
|
406 |
+
'sort_order' => array('ASC', 'DESC'),
|
407 |
+
'count' => array('no', 'yes'),
|
408 |
+
'date' => array('no', 'yes'),
|
409 |
+
'show_pages' => array('yes', 'no'),
|
410 |
+
'show_posts' => array('yes', 'no'),
|
411 |
+
'show_archives' => array('yes', 'no'),
|
412 |
+
'show_categories' => array('yes', 'no'),
|
413 |
+
'category_tagcloud' => array('no', 'yes'),
|
414 |
+
'show_tags' => array('no', 'yes'),
|
415 |
+
'tags_tagcloud' => array('no', 'yes'),
|
416 |
+
);
|
417 |
+
|
418 |
+
if(!in_array($input['sort_column'], $validOptions['sort_column'])) {
|
419 |
+
$plugin_wp_realtime_sitemap_settings['sort_column'] = $validOptions['sort_column'][0];
|
420 |
+
|
421 |
+
add_settings_error('plugin_wp_realtime_sitemap_settings', 'settings_updated', __('Sort Column: Only Yes/On or No/Off are accepted as valid inputs.', 'wp-realtime-sitemap'));
|
422 |
+
} else {
|
423 |
+
$plugin_wp_realtime_sitemap_settings['sort_column'] = $input['sort_column'];
|
424 |
+
}
|
425 |
+
|
426 |
+
if(!in_array($input['sort_order'], $validOptions['sort_order'])) {
|
427 |
+
$plugin_wp_realtime_sitemap_settings['sort_order'] = $validOptions['sort_order'][0];
|
428 |
+
|
429 |
+
add_settings_error('plugin_wp_realtime_sitemap_settings', 'settings_updated', __('Sort Order: Only Yes/On or No/Off are accepted as valid inputs.', 'wp-realtime-sitemap'));
|
430 |
+
} else {
|
431 |
+
$plugin_wp_realtime_sitemap_settings['sort_order'] = $input['sort_order'];
|
432 |
+
}
|
433 |
+
|
434 |
+
if(!in_array($input['count'], $validOptions['count'])) {
|
435 |
+
$plugin_wp_realtime_sitemap_settings['count'] = $validOptions['count'][0];
|
436 |
+
|
437 |
+
add_settings_error('plugin_wp_realtime_sitemap_settings', 'settings_updated', __('Count: Only Yes/On or No/Off are accepted as valid inputs.', 'wp-realtime-sitemap'));
|
438 |
+
} else {
|
439 |
+
$plugin_wp_realtime_sitemap_settings['count'] = $input['count'];
|
440 |
+
}
|
441 |
+
|
442 |
+
if(!in_array($input['date'], $validOptions['date'])) {
|
443 |
+
$plugin_wp_realtime_sitemap_settings['date'] = $validOptions['date'][0];
|
444 |
+
|
445 |
+
add_settings_error('plugin_wp_realtime_sitemap_settings', 'settings_updated', __('Date: Only Yes/On or No/Off are accepted as valid inputs.', 'wp-realtime-sitemap'));
|
446 |
+
} else {
|
447 |
+
$plugin_wp_realtime_sitemap_settings['date'] = $input['date'];
|
448 |
+
}
|
449 |
+
|
450 |
+
if(!is_numeric($input['limit']) || $input['limit'] < '-1') {
|
451 |
+
$plugin_wp_realtime_sitemap_settings['limit'] = '-1';
|
452 |
+
|
453 |
+
add_settings_error('plugin_wp_realtime_sitemap_settings', 'settings_updated', __('Limit: Only integers or -1 are accepted as valid inputs.', 'wp-realtime-sitemap'));
|
454 |
+
} else {
|
455 |
+
$plugin_wp_realtime_sitemap_settings['limit'] = $input['limit'];
|
456 |
+
}
|
457 |
+
|
458 |
+
if(!in_array($input['show_pages'], $validOptions['show_pages'])) {
|
459 |
+
$plugin_wp_realtime_sitemap_settings['show_pages'] = $validOptions['show_pages'][0];
|
460 |
+
|
461 |
+
add_settings_error('plugin_wp_realtime_sitemap_settings', 'settings_updated', __('Show Pages: Only Yes/On or No/Off are accepted as valid inputs.', 'wp-realtime-sitemap'));
|
462 |
+
} else {
|
463 |
+
$plugin_wp_realtime_sitemap_settings['show_pages'] = $input['show_pages'];
|
464 |
+
}
|
465 |
+
|
466 |
+
if(!in_array($input['show_posts'], $validOptions['show_posts'])) {
|
467 |
+
$plugin_wp_realtime_sitemap_settings['show_posts'] = $validOptions['show_posts'][0];
|
468 |
+
|
469 |
+
add_settings_error('plugin_wp_realtime_sitemap_settings', 'settings_updated', __('Show Posts: Only Yes/On or No/Off are accepted as valid inputs.', 'wp-realtime-sitemap'));
|
470 |
+
} else {
|
471 |
+
$plugin_wp_realtime_sitemap_settings['show_posts'] = $input['show_posts'];
|
472 |
+
}
|
473 |
+
|
474 |
+
if(!in_array($input['show_archives'], $validOptions['show_archives'])) {
|
475 |
+
$plugin_wp_realtime_sitemap_settings['show_archives'] = $validOptions['show_archives'][0];
|
476 |
+
|
477 |
+
add_settings_error('plugin_wp_realtime_sitemap_settings', 'settings_updated', __('Show Archives: Only Yes/On or No/Off are accepted as valid inputs.', 'wp-realtime-sitemap'));
|
478 |
+
} else {
|
479 |
+
$plugin_wp_realtime_sitemap_settings['show_archives'] = $input['show_archives'];
|
480 |
+
}
|
481 |
+
|
482 |
+
if(!in_array($input['show_categories'], $validOptions['show_categories'])) {
|
483 |
+
$plugin_wp_realtime_sitemap_settings['show_categories'] = $validOptions['show_categories'][0];
|
484 |
+
|
485 |
+
add_settings_error('plugin_wp_realtime_sitemap_settings', 'settings_updated', __('Show Categories: Only Yes/On or No/Off are accepted as valid inputs.', 'wp-realtime-sitemap'));
|
486 |
+
} else {
|
487 |
+
$plugin_wp_realtime_sitemap_settings['show_categories'] = $input['show_categories'];
|
488 |
+
}
|
489 |
+
|
490 |
+
if(!in_array($input['category_tagcloud'], $validOptions['category_tagcloud'])) {
|
491 |
+
$plugin_wp_realtime_sitemap_settings['category_tagcloud'] = $validOptions['category_tagcloud'][0];
|
492 |
+
|
493 |
+
add_settings_error('plugin_wp_realtime_sitemap_settings', 'settings_updated', __('Show Category as a Tag Cloud: Only Yes/On or No/Off are accepted as valid inputs.', 'wp-realtime-sitemap'));
|
494 |
+
} else {
|
495 |
+
$plugin_wp_realtime_sitemap_settings['category_tagcloud'] = $input['category_tagcloud'];
|
496 |
+
}
|
497 |
+
|
498 |
+
if(!in_array($input['show_tags'], $validOptions['show_tags'])) {
|
499 |
+
$plugin_wp_realtime_sitemap_settings['show_tags'] = $validOptions['show_tags'][0];
|
500 |
+
|
501 |
+
add_settings_error('plugin_wp_realtime_sitemap_settings', 'settings_updated', __('Show Tags: Only Yes/On or No/Off are accepted as valid inputs.', 'wp-realtime-sitemap'));
|
502 |
+
} else {
|
503 |
+
$plugin_wp_realtime_sitemap_settings['show_tags'] = $input['show_tags'];
|
504 |
+
}
|
505 |
+
|
506 |
+
if(!in_array($input['tags_tagcloud'], $validOptions['tags_tagcloud'])) {
|
507 |
+
$plugin_wp_realtime_sitemap_settings['tags_tagcloud'] = $validOptions['tags_tagcloud'][0];
|
508 |
+
|
509 |
+
add_settings_error('plugin_wp_realtime_sitemap_settings', 'settings_updated', __('Show Tags as a Tag Cloud: Only Yes/On or No/Off are accepted as valid inputs.', 'wp-realtime-sitemap'));
|
510 |
+
} else {
|
511 |
+
$plugin_wp_realtime_sitemap_settings['tags_tagcloud'] = $input['tags_tagcloud'];
|
512 |
+
}
|
513 |
+
|
514 |
+
return $plugin_wp_realtime_sitemap_settings;
|
515 |
+
}
|
516 |
+
|
517 |
+
function _optionsForm() {
|
518 |
+
// check user has access to change settings for this plugin.
|
519 |
+
if (!current_user_can('manage_options')) {
|
520 |
+
wp_die( __('You do not have sufficient permissions to access this page.', 'wp-realtime-sitemap') );
|
521 |
+
}
|
522 |
+
?>
|
523 |
+
<div class="wrap">
|
524 |
+
<?php screen_icon(); ?>
|
525 |
+
<h2><?php _e('WP Realtime Sitemap Options', 'wp-realtime-sitemap'); ?></h2>
|
526 |
+
|
527 |
+
<p><?php _e('This plugin can easily be styled by using the following ids below should you need to, if you require more flexibility than this please feel free to suggest something', 'wp-realtime-sitemap'); ?></p>
|
528 |
+
|
529 |
+
<ul>
|
530 |
+
<li>wp-realtime-sitemap-pages</li>
|
531 |
+
<li>wp-realtime-sitemap-posts</li>
|
532 |
+
<li>wp-realtime-sitemap-archives</li>
|
533 |
+
<li>wp-realtime-sitemap-categories</li>
|
534 |
+
<li>wp-realtime-sitemap-tags</li>
|
535 |
+
</ul>
|
536 |
+
|
537 |
+
<form method="post" action="options.php">
|
538 |
+
<?php settings_fields('update_settings'); ?>
|
539 |
+
<?php do_settings_sections(__FILE__); ?>
|
540 |
+
<p class="submit"><input name="wp_realtime_sitemap_update" value="<?php _e('Save Changes', 'wp-realtime-sitemap'); ?>" type="submit" class="button-primary" /></p>
|
541 |
+
</form>
|
542 |
+
</div><?php
|
543 |
+
}
|
544 |
+
|
545 |
+
function showOutput($atts, $content=null, $code='') {
|
546 |
+
global $wpdb, $table_prefix;
|
547 |
+
|
548 |
+
// Only perform plugin functionality if post/page text has the shortcode in the page.
|
549 |
+
if (preg_match('|wp-realtime-sitemap|', $code)) {
|
550 |
+
|
551 |
+
// Get option values from the database.
|
552 |
+
$all_options = get_option('plugin_wp_realtime_sitemap_settings');
|
553 |
+
|
554 |
+
extract(shortcode_atts(array(
|
555 |
+
'show' => 'all',
|
556 |
+
'sort_column' => $all_options['sort_column'],
|
557 |
+
'sort_order' => $all_options['sort_order'],
|
558 |
+
'post_limit' => $all_options['post_limit'],
|
559 |
+
'count' => $all_options['count'],
|
560 |
+
'date' => $all_options['date'],
|
561 |
+
), $atts));
|
562 |
+
|
563 |
+
if ($show == 'categories') {
|
564 |
+
$tagcloud = $all_options['category_tagcloud'];
|
565 |
+
} else if ($show == 'tags') {
|
566 |
+
$tagcloud = $all_options['tags_tagcloud'];
|
567 |
+
}
|
568 |
+
|
569 |
+
// Pages: Yes/No?
|
570 |
+
if ($all_options['show_pages'] != 'no' && $all_options['show_pages'] != 'off') {
|
571 |
+
if ($sort_column == 'title' || $sort_column == 'date' || $sort_column == 'modified' || $sort_column == 'author' || $sort_column == 'name')
|
572 |
+
$page_sort_column = 'post_' . $sort_column;
|
573 |
+
|
574 |
+
$pages = '<div id="wp-realtime-sitemap-pages"><h3>' . __('Pages', 'wp-realtime-sitemap') . '</h3>';
|
575 |
+
$pages .= '<ul>' . wp_list_pages(array('sort_column' => (!isset($page_sort_column)) ? $sort_column : $page_sort_column, 'sort_order' => $sort_order, 'title_li' => '', 'echo' => '0')) . '</ul></div>';
|
576 |
+
}
|
577 |
+
|
578 |
+
// Posts: Yes/No?
|
579 |
+
if ($all_options['show_posts'] != 'no' && $all_options['show_posts'] != 'off') {
|
580 |
+
$posts = '';
|
581 |
+
|
582 |
+
// Set options for post query
|
583 |
+
$post_args = array(
|
584 |
+
'orderby' => $sort_column,
|
585 |
+
'order' => $sort_order,
|
586 |
+
'posts_per_page' => $post_limit,
|
587 |
+
);
|
588 |
+
|
589 |
+
// The Query
|
590 |
+
query_posts($post_args);
|
591 |
+
|
592 |
+
if (have_posts())
|
593 |
+
$posts = '<div id="wp-realtime-sitemap-posts"><h3>' . __('Posts', 'wp-realtime-sitemap') . '</h3><ul>';
|
594 |
+
|
595 |
+
// The Loop
|
596 |
+
while (have_posts()) {
|
597 |
+
the_post();
|
598 |
+
|
599 |
+
if ($show_date == 'yes')
|
600 |
+
$extra = ' <span>' . get_the_date() . '</span>';
|
601 |
+
|
602 |
+
$posts .= '<li><a href="' . get_permalink() . '" title="' . sprintf(esc_attr__('Permalink to %s', 'wp-realtime-sitemap'), the_title_attribute('echo=0')) . '" rel="bookmark">' . get_the_title() . '</a>' . $extra . '</li>';
|
603 |
+
}
|
604 |
+
|
605 |
+
if (have_posts())
|
606 |
+
$posts .= '</ul></div>';
|
607 |
+
|
608 |
+
// Reset Query
|
609 |
+
wp_reset_query();
|
610 |
+
}
|
611 |
+
|
612 |
+
// Archives: Yes/No?
|
613 |
+
if ($all_options['show_archives'] != 'no' && $all_options['show_archives'] != 'off') {
|
614 |
+
$archives = '<div id="wp-realtime-sitemap-archives"><h3>' . __('Archives', 'wp-realtime-sitemap') . '</h3>';
|
615 |
+
$archives .= '<ul>' . wp_get_archives(array('type' => 'monthly', 'show_post_count' => ($count == 'yes') ? true : false, 'echo' => 0)) . '</ul></div>';
|
616 |
+
}
|
617 |
+
|
618 |
+
// Categories: Yes/No?
|
619 |
+
if ($all_options['show_categories'] != 'no' && $all_options['show_categories'] != 'off') {
|
620 |
+
$categories = '<div id="wp-realtime-sitemap-categories"><h3>' . __('Categories', 'wp-realtime-sitemap') . '</h3>';
|
621 |
+
|
622 |
+
// Tag Cloud: Yes/No?
|
623 |
+
if ($all_options['category_tagcloud'] != 'no' && $all_options['category_tagcloud'] != 'off') {
|
624 |
+
$categories .= wp_tag_cloud(array('format' => 'flat', 'separator' => ' ', 'taxonomy' => 'category', 'echo' => '0'));
|
625 |
+
} else {
|
626 |
+
if ($sort_column != 'ID' || $sort_column != 'name' || $sort_column != 'slug' || $sort_column != 'count' || $sort_column != 'term_group') {
|
627 |
+
$categories_sort_column = 'name';
|
628 |
+
}
|
629 |
+
|
630 |
+
$categories .= '<ul>' . wp_list_categories(array('orderby' => (!isset($categories_sort_column)) ? $sort_column : $categories_sort_column, 'order' => $sort_order, 'show_count' => ($count == 'yes') ? true : false, 'hierarchical' => true, 'title_li' => '', 'echo' => '0', 'taxonomy' => 'category')) . '</ul>';
|
631 |
+
}
|
632 |
+
|
633 |
+
$categories .= '</div>';
|
634 |
+
}
|
635 |
+
|
636 |
+
// Tags: Yes/No?
|
637 |
+
if ($all_options['show_tags'] != 'no' && $all_options['show_tags'] != 'off') {
|
638 |
+
$tags = '<div id="wp-realtime-sitemap-tags"><h3>' . __('Tags', 'wp-realtime-sitemap') . '</h3>';
|
639 |
+
|
640 |
+
// Tag Cloud: Yes/No?
|
641 |
+
if ($all_options['tags_tagcloud'] != 'no' && $all_options['tags_tagcloud'] != 'off') {
|
642 |
+
$tags .= wp_tag_cloud(array('format' => 'flat', 'separator' => ' ', 'echo' => '0'));
|
643 |
+
} else {
|
644 |
+
if ($sort_column != 'ID' || $sort_column != 'name' || $sort_column != 'slug' || $sort_column != 'count' || $sort_column != 'term_group') {
|
645 |
+
$tags_sort_column = 'name';
|
646 |
+
}
|
647 |
+
|
648 |
+
$tags .= '<ul>' . wp_list_categories(array('orderby' => (!isset($tags_sort_column)) ? $sort_column : $tags_sort_column, 'order' => $sort_order, 'show_count' => ($count == 'yes') ? true : false, 'hierarchical' => true, 'title_li' => '', 'echo' => '0', 'taxonomy' => 'post_tag')) . '</ul>';
|
649 |
+
}
|
650 |
+
|
651 |
+
$tags .= '</div>';
|
652 |
+
}
|
653 |
+
|
654 |
+
if ($show == 'pages') {
|
655 |
+
return $pages;
|
656 |
+
}
|
657 |
+
|
658 |
+
if ($show == 'posts') {
|
659 |
+
return $posts;
|
660 |
+
}
|
661 |
+
|
662 |
+
if ($show == 'archives') {
|
663 |
+
return $archives;
|
664 |
+
}
|
665 |
+
|
666 |
+
if ($show == 'categories') {
|
667 |
+
return $categories;
|
668 |
+
}
|
669 |
+
|
670 |
+
if ($show == 'tags') {
|
671 |
+
return $tags;
|
672 |
+
}
|
673 |
+
|
674 |
+
if ($show == 'all') {
|
675 |
+
return $pages . $posts . $archives . $categories . $tags;
|
676 |
+
}
|
677 |
+
}
|
678 |
+
}
|
679 |
+
|
680 |
+
function installSettings() {
|
681 |
+
global $wpdb , $wp_roles, $wp_version;
|
682 |
+
|
683 |
+
// Check for capability
|
684 |
+
if (!current_user_can('activate_plugins'))
|
685 |
+
return;
|
686 |
+
|
687 |
+
$options = get_option('plugin_wp_realtime_sitemap_settings');
|
688 |
+
// set the default settings, if we didn't upgrade
|
689 |
+
if (empty($options))
|
690 |
+
$this->_defaultSettings();
|
691 |
+
}
|
692 |
+
|
693 |
+
function _defaultSettings () {
|
694 |
+
$defaults = array(
|
695 |
+
'sort_column' => 'post_date',
|
696 |
+
'sort_order' => 'ASC',
|
697 |
+
'count' => 'no',
|
698 |
+
'date' => 'no',
|
699 |
+
'limit' => '-1',
|
700 |
+
'show_pages' => 'yes',
|
701 |
+
'show_posts' => 'yes',
|
702 |
+
'show_archives' => 'yes',
|
703 |
+
'show_categories' => 'yes',
|
704 |
+
'category_tagcloud' => 'no',
|
705 |
+
'show_tags' => 'no',
|
706 |
+
'tags_tagcloud' => 'no',
|
707 |
+
);
|
708 |
+
|
709 |
+
update_option('plugin_wp_realtime_sitemap_settings', $defaults);
|
710 |
+
}
|
711 |
+
|
712 |
+
function unInstallSettings() {
|
713 |
+
global $wpdb , $wp_roles, $wp_version;
|
714 |
+
|
715 |
+
delete_option('plugin_wp_realtime_sitemap_settings');
|
716 |
+
|
717 |
+
// Delete old unused database entries - v1.0
|
718 |
+
delete_option('wp_realtime_sitemap_orderby');
|
719 |
+
delete_option('wp_realtime_sitemap_private');
|
720 |
+
delete_option('wp_realtime_sitemap_pages');
|
721 |
+
delete_option('wp_realtime_sitemap_posts');
|
722 |
+
delete_option('wp_realtime_sitemap_tags');
|
723 |
+
delete_option('wp_realtime_sitemap_archives');
|
724 |
+
delete_option('wp_realtime_sitemap_displayorder');
|
725 |
+
|
726 |
+
// Delete old unused database entries - v1.1
|
727 |
+
delete_option('wp_realtime_sitemap_orderby');
|
728 |
+
delete_option('wp_realtime_sitemap_showprivate');
|
729 |
+
delete_option('wp_realtime_sitemap_showpages');
|
730 |
+
delete_option('wp_realtime_sitemap_showposts');
|
731 |
+
delete_option('wp_realtime_sitemap_showarchives');
|
732 |
+
delete_option('wp_realtime_sitemap_showcategories');
|
733 |
+
delete_option('wp_realtime_sitemap_showcategoriesastc');
|
734 |
+
delete_option('wp_realtime_sitemap_showtags');
|
735 |
+
delete_option('wp_realtime_sitemap_showtagsastc');
|
736 |
+
delete_option('wp_realtime_sitemap_displayorder');
|
737 |
+
}
|
738 |
}
|
739 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
740 |
|
741 |
+
if( class_exists('WPRealtimeSitemap') )
|
742 |
+
$wpRealtimeSitemap = new WPRealtimeSitemap();
|
|
|
743 |
|
744 |
+
?>
|