WP Realtime Sitemap - Version 1.3

Version Description

  • Hierarchical list of categories.
  • Change code for tags to use wordpress inbuilt functions instead.
  • Supports I18n for translation.
Download this release

Release Info

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

Code changes from version 1.2 to 1.3

language/wp-realtime-sitemap.pot ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of the WordPress plugin WP Realtime Sitemap 1.3 by Daniel Tweedy.
2
+ # Copyright (C) 2010 Daniel Tweedy
3
+ # This file is distributed under the same license as the WP Realtime Sitemap package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: WP Realtime Sitemap 1.3\n"
10
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-realtime-sitemap\n"
11
+ "POT-Creation-Date: 2010-07-06 19:49+0000\n"
12
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
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:33
20
+ msgid "You do not have sufficient permissions to access this page."
21
+ msgstr ""
22
+
23
+ #: wp-realtime-sitemap.php:357
24
+ msgid "Pages"
25
+ msgstr ""
26
+
27
+ #: wp-realtime-sitemap.php:376
28
+ msgid "Posts"
29
+ msgstr ""
30
+
31
+ #: wp-realtime-sitemap.php:379
32
+ #, php-format
33
+ msgid "Permalink to %s"
34
+ msgstr ""
35
+
36
+ #: wp-realtime-sitemap.php:387
37
+ msgid "Archives"
38
+ msgstr ""
39
+
40
+ #: wp-realtime-sitemap.php:392
41
+ msgid "Categories"
42
+ msgstr ""
43
+
44
+ #: wp-realtime-sitemap.php:402
45
+ msgid "Tags"
46
+ msgstr ""
47
+
48
+ #: wp-realtime-sitemap.php:903 wp-realtime-sitemap.php:917
49
+ msgid "Settings"
50
+ msgstr ""
51
+
52
+ #: wp-realtime-sitemap.php:913
53
+ msgid "FAQ"
54
+ msgstr ""
55
+
56
+ #: wp-realtime-sitemap.php:915
57
+ msgid "Support"
58
+ msgstr ""
59
+
60
+ #: wp-realtime-sitemap.php:919
61
+ msgid "Donate"
62
+ msgstr ""
63
+
64
+ #: wp-realtime-sitemap.php:929
65
+ msgid "WP Realtime Sitemap Options"
66
+ msgstr ""
67
+
68
+ #. #-#-#-#-# plugin.pot (WP Realtime Sitemap 1.3) #-#-#-#-#
69
+ #. Plugin Name of the plugin/theme
70
+ #: wp-realtime-sitemap.php:930
71
+ msgid "WP Realtime Sitemap"
72
+ msgstr ""
73
+
74
+ #: wp-realtime-sitemap.php:944
75
+ msgid "WP Realtime Sitemap Help"
76
+ msgstr ""
77
+
78
+ #: wp-realtime-sitemap.php:945
79
+ msgid "WP Realtime Sitemap Home Page"
80
+ msgstr ""
81
+
82
+ #: wp-realtime-sitemap.php:946
83
+ msgid "WP Realtime Sitemap FAQ"
84
+ msgstr ""
85
+
86
+ #: wp-realtime-sitemap.php:947
87
+ msgid "WP Realtime Sitemap Support"
88
+ msgstr ""
89
+
90
+ #: wp-realtime-sitemap.php:948
91
+ msgid "WP Realtime Sitemap Donate"
92
+ msgstr ""
93
+
94
+ #: wp-realtime-sitemap.php:949
95
+ msgid "Please read the plugin information and FAQ, before asking a question."
96
+ msgstr ""
97
+
98
+ #. Plugin URI of the plugin/theme
99
+ msgid "http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-home/"
100
+ msgstr ""
101
+
102
+ #. Description of the plugin/theme
103
+ msgid ""
104
+ "Adds a sitemap to your Wordpress blog that is always up-to-date. Add `<!--wp-"
105
+ "realtime-sitemap-->` to any page or post and the site map will be added "
106
+ "there. Use Settings->WP Realtime Sitemap to set options."
107
+ msgstr ""
108
+
109
+ #. Author of the plugin/theme
110
+ msgid "Daniel Tweedy"
111
+ msgstr ""
112
+
113
+ #. Author URI of the plugin/theme
114
+ msgid "http://www.daniel-tweedy.co.uk/"
115
+ msgstr ""
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: rincewind
3
  Donate link: http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-donate
4
  Tags: seo, sitemap, navigation
5
- Requires at least: 2.3
6
  Tested up to: 3.0
7
  Stable tag: trunk
8
 
@@ -12,25 +12,27 @@ A sitemap plugin to make it easier for your site to show all your pages, posts,
12
 
13
  A sitemap plugin to make it easier for your site to show all your pages, posts, archives, categories and tags in an easy to read format without any need for template modification or html/php knowledge.
14
 
15
- 1. You can show/hide hidden posts and pages.
16
- 1. You can show/hide Posts, Pages, Archives, Categories and Tags.
17
- 1. Can optionally show categories and tags as a bullet list, or as a tag cloud if you prefer.
18
- 1. Hierarchical list of pages.
19
  1. All of the above can be ordered in anyway order you want.
 
 
 
 
20
  1. It comes with an uninstaller, if you dont want it anymore just deactivate the plugin and delete it from within wordpress and it will delete all of its settings itself.
21
 
22
  == Installation ==
23
 
24
- 1. Upload the files to `/wp-content/plugins/wp-realtime-sitemap` directory
25
  1. Activate the plugin through the 'Plugins' menu in WordPress.
26
  1. Create a page to be your sitemap.
27
- 1. Click the HTML tab in the WYSIWYG editor and paste into the page you created above or an already existing page the following comment `&lt;!--wp-realtime-sitemap--&gt;`.
28
 
29
- You can if you wish call it via php using `&lt;?php echo wp_realtime_sitemap('&lt;!--wp-realtime-sitemap--&gt;'); ?&gt;`.
30
 
31
  == Frequently Asked Questions ==
32
 
33
- = Do I need to add the `&lt;!--wp-realtime-sitemap--&gt;` to a Post or a Page? =
34
 
35
  You can add it to either. The text will be substituted with the sitemap links.
36
 
@@ -40,10 +42,15 @@ You can call it whatever you like. I would suggest you call it Site Map.
40
 
41
  = Is there a php code so I can add it to a php template file? =
42
 
43
- You can if do this put this php code in the php file you wish to have the sitemap shown on, `&lt;?php echo wp_realtime_sitemap('&lt;!--wp-realtime-sitemap--&gt;'); ?&gt;`.
44
 
45
  == Changelog ==
46
 
 
 
 
 
 
47
  = 1.2 =
48
  * Updated code, added settings, support and donate link.
49
  * Fixed display bug.
2
  Contributors: rincewind
3
  Donate link: http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-donate
4
  Tags: seo, sitemap, navigation
5
+ Requires at least: 3.0
6
  Tested up to: 3.0
7
  Stable tag: trunk
8
 
12
 
13
  A sitemap plugin to make it easier for your site to show all your pages, posts, archives, categories and tags in an easy to read format without any need for template modification or html/php knowledge.
14
 
15
+ 1. Can show/hide hidden posts and pages.
16
+ 1. Can show/hide Posts, Pages, Archives, Categories and Tags.
 
 
17
  1. All of the above can be ordered in anyway order you want.
18
+ 1. Can optionally show categories and/or tags as a bullet list, or as a tag cloud.
19
+ 1. Hierarchical list of pages.
20
+ 1. Hierarchical list of categories.
21
+ 1. Supports I18n for translation.
22
  1. It comes with an uninstaller, if you dont want it anymore just deactivate the plugin and delete it from within wordpress and it will delete all of its settings itself.
23
 
24
  == Installation ==
25
 
26
+ 1. Upload the files to `/wp-content/plugins/wp-realtime-sitemap` directory.
27
  1. Activate the plugin through the 'Plugins' menu in WordPress.
28
  1. Create a page to be your sitemap.
29
+ 1. Click the HTML tab in the WYSIWYG editor and paste into the page you created above or an already existing page the following comment `<!--wp-realtime-sitemap-->`.
30
 
31
+ You can if you wish call it via php using `<?php echo wp_realtime_sitemap('<!--wp-realtime-sitemap-->'); ?>`.
32
 
33
  == Frequently Asked Questions ==
34
 
35
+ = Do I need to add the &lt;!--wp-realtime-sitemap--&gt; to a Post or a Page? =
36
 
37
  You can add it to either. The text will be substituted with the sitemap links.
38
 
42
 
43
  = Is there a php code so I can add it to a php template file? =
44
 
45
+ You can if do this put this php code in the php file you wish to have the sitemap shown on, `<?php echo wp_realtime_sitemap('<!--wp-realtime-sitemap-->'); ?>`.
46
 
47
  == Changelog ==
48
 
49
+ = 1.3 =
50
+ * Hierarchical list of categories.
51
+ * Change code for tags to use wordpress inbuilt functions instead.
52
+ * Supports I18n for translation.
53
+
54
  = 1.2 =
55
  * Updated code, added settings, support and donate link.
56
  * Fixed display bug.
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-->` to any page or post and the site map will be added there. Use Settings->WP Realtime Sitemap to set options.
7
- Version: 1.2
8
  Author: Daniel Tweedy
9
  Author URI: http://www.daniel-tweedy.co.uk/
10
  License: GPL2
@@ -26,78 +26,11 @@ License: GPL2
26
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
  */
28
 
29
- function wprs_plugin_action_links($links, $file) {
30
- $plugin_file = basename(__FILE__);
31
- if (basename($file) == $plugin_file) {
32
- $settings_link = '<a href="options-general.php?page='.$plugin_file.'">'.__('Settings', 'wp-realtime-sitemap').'</a>';
33
- array_unshift($links, $settings_link);
34
- }
35
- return $links;
36
- }
37
- add_filter('plugin_action_links', 'wprs_plugin_action_links', 10, 2);
38
-
39
- function wprs_plugin_row_meta($links, $file) {
40
- $plugin_file = basename(__FILE__);
41
- if (basename($file) == $plugin_file) {
42
- $faq_link = '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-faq">'.__('FAQ', 'wp-realtime-sitemap').'</a>';
43
- array_unshift($links, $faq_link);
44
- $support_link = '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-support">'.__('Support', 'wp-realtime-sitemap').'</a>';
45
- array_unshift($links, $support_link);
46
- $settings_link = '<a href="options-general.php?page='.$plugin_file.'">'.__('Settings', 'wp-realtime-sitemap').'</a>';
47
- array_unshift($links, $settings_link);
48
- $donate_link = '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-donate">'.__('Donate', 'wp-realtime-sitemap').'</a>';
49
- array_unshift($links, $donate_link);
50
- }
51
- return $links;
52
- }
53
- add_filter('plugin_row_meta', 'wprs_plugin_row_meta', 10, 2);
54
-
55
- function wprs_admin_menu() {
56
- if (function_exists('add_options_page')) {
57
- add_options_page(
58
- 'wp-realtime-sitemap'
59
- , 'WP Realtime Sitemap'
60
- , 10
61
- , basename(__FILE__)
62
- , 'wprs_options_form'
63
- );
64
- }
65
- /* if (function_exists('add_submenu_page')) {
66
- add_submenu_page(
67
- 'index.php'
68
- , __('Most Popular Posts', 'popularity-contest')
69
- , __('Most Popular Posts', 'popularity-contest')
70
- , 0
71
- , basename(__FILE__)
72
- , 'akpc_view_stats'
73
- );
74
- } */
75
- }
76
- add_action('admin_menu', 'wprs_admin_menu');
77
-
78
- function wprs_admin_init() {
79
- // register_setting($this->tag.'_options', $this->tag);
80
- }
81
- add_action('admin_init', 'wprs_admin_init');
82
-
83
- function wprs_contextual_help( $help, $screen ) {
84
- if ( $screen == 'settings_page_wp-realtime-sitemap' ) {
85
- $help .= '<h5>' . __( 'WP Realtime Sitemap Help' ) . '</h5><div class="metabox-prefs">';
86
- $help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-install">'.__( 'WP Realtime Sitemap Home Page', 'wp-realtime-sitemap' ).'</a><br/>';
87
- $help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-faq">'.__( 'WP Realtime Sitemap FAQ', 'wp-realtime-sitemap' ).'</a><br/>';
88
- $help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-support">'.__( 'WP Realtime Sitemap Support', 'wp-realtime-sitemap' ).'</a><br/>';
89
- $help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-donate">'.__( 'WP Realtime Sitemap Donate', 'wp-realtime-sitemap' ).'</a><br/>';
90
- $help .= __( 'Please read the plugin information and FAQ, before asking a question.', 'wp-realtime-sitemap' );
91
- $help .= '</div>';
92
- }
93
-
94
- return $help;
95
- }
96
- add_filter( 'contextual_help', 'wprs_contextual_help', 10, 2 );
97
 
98
  function wprs_options_form() {
99
  if (!current_user_can('manage_options')) {
100
- wp_die( __('You do not have sufficient permissions to access this page.') );
101
  }
102
 
103
  $orderby = get_option('wp_realtime_sitemap_orderby');
@@ -421,7 +354,7 @@ function wp_realtime_sitemap($text) {
421
  if ($orderby == 'dateasc' || $orderby == 'alphaasc')
422
  $sort_order = 'ASC';
423
 
424
- $pages = '<h3>Pages</h3>';
425
  $pages .= '<ul>' . wp_list_pages(array('sort_column' => $sort_column, 'sort_order' => $sort_order, 'title_li' => '', 'echo' => '0')) . '</ul>';
426
  }
427
 
@@ -440,11 +373,10 @@ function wp_realtime_sitemap($text) {
440
  if (count($allposts) == 0) {
441
  $posts = '';
442
  } else {
443
- $posts = '<h3>Posts</h3><ul>';
444
 
445
  foreach($allposts as $thepost) {
446
- $permalink = get_permalink($thepost->ID);
447
- $posts .= '<li><a href="' . $permalink . '">' . $thepost->post_title . '</a></li>';
448
  }
449
 
450
  $posts .= '</ul>';
@@ -452,26 +384,27 @@ function wp_realtime_sitemap($text) {
452
  }
453
 
454
  if ($showarchives != 'no') {
455
- $archives = '<h3>Archives</h3><ul>' . wp_get_archives('type=monthly&echo=0') . '</ul>';
 
456
  }
457
 
458
  if ($showcategories != 'no') {
459
- $categories = '<h3>Categories</h3>';
460
 
461
  if ($showcategoriesastc != 'no') {
462
  $categories .= wp_tag_cloud(array('format' => 'flat', 'separator' => ' ', 'taxonomy' => 'category', 'echo' => '0'));
463
  } else {
464
- $categories .= preg_replace('/ style=\'font-size: .*;\'/', '', wp_tag_cloud(array('format' => 'list', 'taxonomy' => 'category', 'echo' => '0')));
465
  }
466
  }
467
 
468
  if ($showtags != 'no') {
469
- $tags = '<h3>Tags</h3>';
470
 
471
  if ($showtagsastc != 'no') {
472
  $tags .= wp_tag_cloud(array('format' => 'flat', 'separator' => ' ', 'echo' => '0'));
473
  } else {
474
- $tags .= preg_replace('/ style=\'font-size: .*;\'/', '', wp_tag_cloud(array('format' => 'list', 'echo' => '0')));
475
  }
476
  }
477
 
@@ -964,4 +897,61 @@ function wp_realtime_sitemap($text) {
964
 
965
  add_filter('the_content', 'wp_realtime_sitemap', 2);
966
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
967
  ?>
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-->` to any page or post and the site map will be added there. Use Settings->WP Realtime Sitemap to set options.
7
+ Version: 1.3
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
+ load_plugin_textdomain('wp-realtime-sitemap', false, dirname(plugin_basename(__FILE__)) . '/language');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  function wprs_options_form() {
32
  if (!current_user_can('manage_options')) {
33
+ wp_die( __('You do not have sufficient permissions to access this page.', 'wp-realtime-sitemap') );
34
  }
35
 
36
  $orderby = get_option('wp_realtime_sitemap_orderby');
354
  if ($orderby == 'dateasc' || $orderby == 'alphaasc')
355
  $sort_order = 'ASC';
356
 
357
+ $pages = '<h3>'.__('Pages', 'wp-realtime-sitemap').'</h3>';
358
  $pages .= '<ul>' . wp_list_pages(array('sort_column' => $sort_column, 'sort_order' => $sort_order, 'title_li' => '', 'echo' => '0')) . '</ul>';
359
  }
360
 
373
  if (count($allposts) == 0) {
374
  $posts = '';
375
  } else {
376
+ $posts = '<h3>'.__('Posts', 'wp-realtime-sitemap').'</h3><ul>';
377
 
378
  foreach($allposts as $thepost) {
379
+ $posts .= '<li><a href="' . get_permalink($thepost->ID) . '" title="' . sprintf(esc_attr__('Permalink to %s', 'wp-realtime-sitemap'), $thepost->post_title) . '" rel="bookmark">' . $thepost->post_title . '</a></li>';
 
380
  }
381
 
382
  $posts .= '</ul>';
384
  }
385
 
386
  if ($showarchives != 'no') {
387
+ $archives = '<h3>'.__('Archives', 'wp-realtime-sitemap').'</h3>';
388
+ $archives .= '<ul>' . wp_get_archives('type=monthly&echo=0') . '</ul>';
389
  }
390
 
391
  if ($showcategories != 'no') {
392
+ $categories = '<h3>'.__('Categories', 'wp-realtime-sitemap').'</h3>';
393
 
394
  if ($showcategoriesastc != 'no') {
395
  $categories .= wp_tag_cloud(array('format' => 'flat', 'separator' => ' ', 'taxonomy' => 'category', 'echo' => '0'));
396
  } else {
397
+ $categories .= '<ul>' . wp_list_categories(array('orderby' => 'name', 'order' => 'ASC', 'hierarchical' => true, 'title_li' => '', 'echo' => '0', 'taxonomy' => 'category')) . '</ul>';
398
  }
399
  }
400
 
401
  if ($showtags != 'no') {
402
+ $tags = '<h3>'.__('Tags', 'wp-realtime-sitemap').'</h3>';
403
 
404
  if ($showtagsastc != 'no') {
405
  $tags .= wp_tag_cloud(array('format' => 'flat', 'separator' => ' ', 'echo' => '0'));
406
  } else {
407
+ $tags .= '<ul>' . wp_list_categories(array('orderby' => 'name', 'order' => 'ASC', 'hierarchical' => true, 'title_li' => '', 'echo' => '0', 'taxonomy' => 'post_tag')) . '</ul>';
408
  }
409
  }
410
 
897
 
898
  add_filter('the_content', 'wp_realtime_sitemap', 2);
899
 
900
+ function wprs_plugin_action_links($links, $file) {
901
+ $plugin_file = basename(__FILE__);
902
+ if (basename($file) == $plugin_file) {
903
+ $settings_link = '<a href="options-general.php?page='.$plugin_file.'">'.__('Settings', 'wp-realtime-sitemap').'</a>';
904
+ array_unshift($links, $settings_link);
905
+ }
906
+ return $links;
907
+ }
908
+ add_filter('plugin_action_links', 'wprs_plugin_action_links', 10, 2);
909
+
910
+ function wprs_plugin_row_meta($links, $file) {
911
+ $plugin_file = basename(__FILE__);
912
+ if (basename($file) == $plugin_file) {
913
+ $faq_link = '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-faq">'.__('FAQ', 'wp-realtime-sitemap').'</a>';
914
+ array_unshift($links, $faq_link);
915
+ $support_link = '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-support">'.__('Support', 'wp-realtime-sitemap').'</a>';
916
+ array_unshift($links, $support_link);
917
+ $settings_link = '<a href="options-general.php?page='.$plugin_file.'">'.__('Settings', 'wp-realtime-sitemap').'</a>';
918
+ array_unshift($links, $settings_link);
919
+ $donate_link = '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-donate">'.__('Donate', 'wp-realtime-sitemap').'</a>';
920
+ array_unshift($links, $donate_link);
921
+ }
922
+ return $links;
923
+ }
924
+ add_filter('plugin_row_meta', 'wprs_plugin_row_meta', 10, 2);
925
+
926
+ function wprs_admin_menu() {
927
+ if (function_exists('add_options_page')) {
928
+ add_options_page(
929
+ __('WP Realtime Sitemap Options', 'wp-realtime-sitemap')
930
+ , __('WP Realtime Sitemap', 'wp-realtime-sitemap')
931
+ , 10
932
+ , basename(__FILE__)
933
+ , 'wprs_options_form'
934
+ );
935
+ }
936
+ }
937
+ add_action('admin_menu', 'wprs_admin_menu');
938
+
939
+ function wprs_admin_init() { }
940
+ add_action('admin_init', 'wprs_admin_init');
941
+
942
+ function wprs_contextual_help( $help, $screen ) {
943
+ if ( $screen == 'settings_page_wp-realtime-sitemap' ) {
944
+ $help .= '<h5>' . __('WP Realtime Sitemap Help', 'wp-realtime-sitemap') . '</h5><div class="metabox-prefs">';
945
+ $help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-install">'.__( 'WP Realtime Sitemap Home Page', 'wp-realtime-sitemap' ).'</a><br/>';
946
+ $help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-faq">'.__( 'WP Realtime Sitemap FAQ', 'wp-realtime-sitemap' ).'</a><br/>';
947
+ $help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-support">'.__( 'WP Realtime Sitemap Support', 'wp-realtime-sitemap' ).'</a><br/>';
948
+ $help .= '<a href="http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-donate">'.__( 'WP Realtime Sitemap Donate', 'wp-realtime-sitemap' ).'</a><br/>';
949
+ $help .= __( 'Please read the plugin information and FAQ, before asking a question.', 'wp-realtime-sitemap' );
950
+ $help .= '</div>';
951
+ }
952
+
953
+ return $help;
954
+ }
955
+ add_filter( 'contextual_help', 'wprs_contextual_help', 10, 2 );
956
+
957
  ?>