HTML Page Sitemap - Version 1.1.0

Version Description

  • Released on 11/24/2009
  • Fixed typos in readme
  • Added child_of options ** child_of=CURRENT (starts list of pages that are children of the current page) ** child_of=PARENT (starts list of pages that are of the same level as current page)
Download this release

Release Info

Developer amandato
Plugin Icon wp plugin HTML Page Sitemap
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.0 to 1.1.0

Files changed (2) hide show
  1. html-sitemap.php +13 -2
  2. readme.txt +24 -11
html-sitemap.php CHANGED
@@ -3,11 +3,11 @@
3
  Plugin Name: HTML Page Sitemap
4
  Plugin URI: http://www.pluginspodcast.com/plugins/html-page-sitemap/
5
  Description: <a href="http://www.pluginspodcast.com/plugins/html-page-sitemap/" target="_blank">HTML Page Sitemap</a> Adds an HTML (Not XML) sitemap of your blog pages (not posts) by entering the shortcode [html-sitemap]. A plugin from <a href="http://www.pluginspodcast.com/" target="_blank">Plugins: The WordPress Plugins Podcast</a>.
6
- Version: 1.0.0
7
  Author: Angelo Mandato
8
  Author URI: http://www.pluginspodcast.com/
9
  Change Log:
10
- 2009-09-05 - v1.0.0: Initial release of the Classic Image Button plugin
11
 
12
  Contributors:
13
  Angelo Mandato, CIO RawVoice and host of the PluginsPodcast.com - Plugin author
@@ -33,6 +33,17 @@ function html_sitemap_shortcode_handler( $args, $content = null )
33
  $args['title_li'] = '';
34
  unset($args['link_before']);
35
  unset($args['link_after']);
 
 
 
 
 
 
 
 
 
 
 
36
  $html = wp_list_pages($args);
37
 
38
  // Remove the classes added by WordPress
3
  Plugin Name: HTML Page Sitemap
4
  Plugin URI: http://www.pluginspodcast.com/plugins/html-page-sitemap/
5
  Description: <a href="http://www.pluginspodcast.com/plugins/html-page-sitemap/" target="_blank">HTML Page Sitemap</a> Adds an HTML (Not XML) sitemap of your blog pages (not posts) by entering the shortcode [html-sitemap]. A plugin from <a href="http://www.pluginspodcast.com/" target="_blank">Plugins: The WordPress Plugins Podcast</a>.
6
+ Version: 1.1.0
7
  Author: Angelo Mandato
8
  Author URI: http://www.pluginspodcast.com/
9
  Change Log:
10
+ See readme.txt for complete change log
11
 
12
  Contributors:
13
  Angelo Mandato, CIO RawVoice and host of the PluginsPodcast.com - Plugin author
33
  $args['title_li'] = '';
34
  unset($args['link_before']);
35
  unset($args['link_after']);
36
+ if( isset($args['child_of']) && $args['child_of'] == 'CURRENT' )
37
+ $args['child_of'] = get_the_ID();
38
+ else if( isset($args['child_of']) && $args['child_of'] == 'PARENT' )
39
+ {
40
+ $post = &get_post( get_the_ID() );
41
+ if( $post->post_parent )
42
+ $args['child_of'] = $post->post_parent;
43
+ else
44
+ unset( $args['child_of'] );
45
+ }
46
+
47
  $html = wp_list_pages($args);
48
 
49
  // Remove the classes added by WordPress
readme.txt CHANGED
@@ -3,27 +3,32 @@ Contributors: Angelo Mandato of the PluginsPodcast.com
3
  Donate link: http://www.pluginspodcast.com/contact/
4
  Tags: sitemap, page, pages, shortcode, cms, static, short code, map, pagemap, site, html
5
  Requires at least: 2.7.0
6
- Tested up to: 2.8.4
7
- Stable tag: 1.0.0
8
 
9
  Adds an HTML (Not XML) sitemap of your blog pages (not posts) by entering the shortcode [html-sitemap], perfect for those who use WordPress as a CMS.
10
 
11
  == Description ==
12
- This simple plugin adds an HTML (Not XML) sitemap of your blog pages (not posts) by entering the shortcode [html-sitemap] in the page content. This simple plugin is configured from the shortocde. Settings include the `sort_column`, `sort_order`, `exclude`, `include`, `depth`, `child_of`, `meta_key`, `meta_value`, `authors`, `number`, and `offset`. You can set essentially everything you can set in the wp_list_pages function.
13
 
14
  This plugins is perfect for those who use WordPress as a CMS.
15
 
16
  First example shows how to add the sitemap in its simplest form.
17
 
18
- `[html-sitemap]`
19
 
20
- Next example shortcode will add a sitemap to a page displaying a depth limit of 3 and exclude page ID 708.
21
 
22
- `[html-sitemap depth=3 exclude=708]`
 
 
 
 
23
 
24
  Last example shortcode will add a sitemap displaying the page modified date with the pages sorted by the menu order number.
25
 
26
- `[html-sitemap show_date=modified sort_column=menu_order]`
 
27
 
28
  Please see the [Template Documentation for the `wp_list_pages` function](http://codex.wordpress.org/Template_Tags/wp_list_pages) for detailed documentation of the available attributes and their values.
29
 
@@ -38,7 +43,7 @@ For the latest information visit the website.
38
 
39
  == Installation ==
40
  1. Copy the entire directory from the downloaded zip file into the /wp-content/plugins/ folder.
41
- 2. Activate the "Classic Image Button" plugin in the Plugin Management page.
42
  3. Add the shortcode [html-sitemap] to the page(s) of your choice.
43
 
44
  == Screenshots ==
@@ -46,12 +51,20 @@ For the latest information visit the website.
46
 
47
  == Changelog ==
48
 
49
- 1.0.0 released on 09/05/2009
50
- Initial release of HTML Page Sitemap plugin.
 
 
 
 
 
 
 
 
51
 
52
 
53
  == Contributors ==
54
  Angelo Mandato, CIO [RawVoice](http://www.rawvoice.com) and host of the [Plugins Podcast](http://www.pluginspodcast.com) - Plugin author
55
 
56
  == Follow us on Twitter ==
57
- [http://twitter.com/pluginspodcast](http://twitter.com/pluginspodcast)
3
  Donate link: http://www.pluginspodcast.com/contact/
4
  Tags: sitemap, page, pages, shortcode, cms, static, short code, map, pagemap, site, html
5
  Requires at least: 2.7.0
6
+ Tested up to: 2.8.6
7
+ Stable tag: 1.1.0
8
 
9
  Adds an HTML (Not XML) sitemap of your blog pages (not posts) by entering the shortcode [html-sitemap], perfect for those who use WordPress as a CMS.
10
 
11
  == Description ==
12
+ This simple plugin adds an HTML (Not XML) sitemap of your blog pages (not posts) by entering the shortcode [html-sitemap] in the page content. This simple plugin is configured from the shortcode. Settings include the `sort_column`, `sort_order`, `exclude`, `include`, `depth`, `child_of`, `meta_key`, `meta_value`, `authors`, `number`, and `offset`. You can set essentially everything you can set in the wp_list_pages function.
13
 
14
  This plugins is perfect for those who use WordPress as a CMS.
15
 
16
  First example shows how to add the sitemap in its simplest form.
17
 
18
+ `[html-sitemap]`
19
 
20
+ Example shortcode will add a sitemap to a page displaying a depth limit of 3 and exclude page ID 708.
21
 
22
+ `[html-sitemap depth=3 exclude=708]`
23
+
24
+ Example shortcode will add a sitemap to a page displaying only children and grandchildren of the current page.
25
+
26
+ `[html-sitemap depth=2 child_of=CURRENT]`
27
 
28
  Last example shortcode will add a sitemap displaying the page modified date with the pages sorted by the menu order number.
29
 
30
+ `[html-sitemap show_date=modified sort_column=menu_order]`
31
+
32
 
33
  Please see the [Template Documentation for the `wp_list_pages` function](http://codex.wordpress.org/Template_Tags/wp_list_pages) for detailed documentation of the available attributes and their values.
34
 
43
 
44
  == Installation ==
45
  1. Copy the entire directory from the downloaded zip file into the /wp-content/plugins/ folder.
46
+ 2. Activate the "HTML Page Sitemap" plugin in the Plugin Management page.
47
  3. Add the shortcode [html-sitemap] to the page(s) of your choice.
48
 
49
  == Screenshots ==
51
 
52
  == Changelog ==
53
 
54
+ = 1.1.0 =
55
+ * Released on 11/24/2009
56
+ * Fixed typos in readme
57
+ * Added child_of options
58
+ ** child_of=CURRENT (starts list of pages that are children of the current page)
59
+ ** child_of=PARENT (starts list of pages that are of the same level as current page)
60
+
61
+ = 1.0.0 =
62
+ * Released on 09/05/2009
63
+ * Initial release of HTML Page Sitemap plugin.
64
 
65
 
66
  == Contributors ==
67
  Angelo Mandato, CIO [RawVoice](http://www.rawvoice.com) and host of the [Plugins Podcast](http://www.pluginspodcast.com) - Plugin author
68
 
69
  == Follow us on Twitter ==
70
+ [http://twitter.com/pluginspodcast](http://twitter.com/pluginspodcast)