Version Description
- Minor fix to the new variable names, some instances where the old ones were still referenced, instead of the new ones.
Download this release
Release Info
Developer | Rincewind |
Plugin | WP Realtime Sitemap |
Version | 1.4.7 |
Comparing to | |
See all releases |
Code changes from version 1.4.6 to 1.4.7
- language/wp-realtime-sitemap.po +48 -0
- readme.txt +5 -2
- wp-realtime-sitemap.php +13 -5
language/wp-realtime-sitemap.po
CHANGED
@@ -296,3 +296,51 @@ msgstr ""
|
|
296 |
msgid "Tags"
|
297 |
msgstr ""
|
298 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
@@ -98,13 +98,16 @@ Show everything (fixed order of: posts, pages, archives, categories, tags): `[wp
|
|
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.
|
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.7 =
|
109 |
+
* Minor fix to the new variable names, some instances where the old ones were still referenced, instead of the new ones.
|
110 |
+
|
111 |
= 1.4.6 =
|
112 |
* Updated code to be more cleaner and easier to understand.
|
113 |
* Used WordPress Settings API for options form, and added validation.
|
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
|
@@ -547,6 +547,12 @@ if (!class_exists('WPRealtimeSitemap')) {
|
|
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');
|
@@ -555,7 +561,7 @@ if (!class_exists('WPRealtimeSitemap')) {
|
|
555 |
'show' => 'all',
|
556 |
'sort_column' => $all_options['sort_column'],
|
557 |
'sort_order' => $all_options['sort_order'],
|
558 |
-
'
|
559 |
'count' => $all_options['count'],
|
560 |
'date' => $all_options['date'],
|
561 |
), $atts));
|
@@ -574,7 +580,7 @@ if (!class_exists('WPRealtimeSitemap')) {
|
|
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 = '';
|
@@ -583,7 +589,7 @@ if (!class_exists('WPRealtimeSitemap')) {
|
|
583 |
$post_args = array(
|
584 |
'orderby' => $sort_column,
|
585 |
'order' => $sort_order,
|
586 |
-
'posts_per_page' => $
|
587 |
);
|
588 |
|
589 |
// The Query
|
@@ -595,8 +601,10 @@ if (!class_exists('WPRealtimeSitemap')) {
|
|
595 |
// The Loop
|
596 |
while (have_posts()) {
|
597 |
the_post();
|
|
|
|
|
598 |
|
599 |
-
if ($
|
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>';
|
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.7
|
8 |
Author: Daniel Tweedy
|
9 |
Author URI: http://www.daniel-tweedy.co.uk/
|
10 |
License: GPL2
|
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 |
+
$pages = '';
|
552 |
+
$posts = '';
|
553 |
+
$archives = '';
|
554 |
+
$categories = '';
|
555 |
+
$tags = '';
|
556 |
|
557 |
// Get option values from the database.
|
558 |
$all_options = get_option('plugin_wp_realtime_sitemap_settings');
|
561 |
'show' => 'all',
|
562 |
'sort_column' => $all_options['sort_column'],
|
563 |
'sort_order' => $all_options['sort_order'],
|
564 |
+
'limit' => $all_options['limit'],
|
565 |
'count' => $all_options['count'],
|
566 |
'date' => $all_options['date'],
|
567 |
), $atts));
|
580 |
$pages = '<div id="wp-realtime-sitemap-pages"><h3>' . __('Pages', 'wp-realtime-sitemap') . '</h3>';
|
581 |
$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>';
|
582 |
}
|
583 |
+
|
584 |
// Posts: Yes/No?
|
585 |
if ($all_options['show_posts'] != 'no' && $all_options['show_posts'] != 'off') {
|
586 |
$posts = '';
|
589 |
$post_args = array(
|
590 |
'orderby' => $sort_column,
|
591 |
'order' => $sort_order,
|
592 |
+
'posts_per_page' => $limit,
|
593 |
);
|
594 |
|
595 |
// The Query
|
601 |
// The Loop
|
602 |
while (have_posts()) {
|
603 |
the_post();
|
604 |
+
|
605 |
+
$extra = '';
|
606 |
|
607 |
+
if ($date == 'yes')
|
608 |
$extra = ' <span>' . get_the_date() . '</span>';
|
609 |
|
610 |
$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>';
|