Version Description
Download this release
Release Info
Developer | amandato |
Plugin | HTML Page Sitemap |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- html-sitemap.php +45 -0
- readme.txt +57 -0
- screenshot-1.png +0 -0
html-sitemap.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
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
|
14 |
+
|
15 |
+
Copyright 2009 Angelo Mandato, host of the Plugins Podcast (http://www.pluginspodcast.com)
|
16 |
+
|
17 |
+
License: GPL (http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt)
|
18 |
+
*/
|
19 |
+
|
20 |
+
|
21 |
+
/*
|
22 |
+
Add the sitemap when shortcode is encountered
|
23 |
+
@param $args - arguments or attributes specified in the shortcode tag.
|
24 |
+
@param $content - not used
|
25 |
+
@return the page sitemap or empty string if not applicable.
|
26 |
+
*/
|
27 |
+
function html_sitemap_shortcode_handler( $args, $content = null )
|
28 |
+
{
|
29 |
+
if( is_feed() )
|
30 |
+
return '';
|
31 |
+
|
32 |
+
$args['echo'] = 0;
|
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
|
39 |
+
$html = preg_replace('/( class="[^"]+")/is', '', $html);
|
40 |
+
return '<ul>'. $html .'</ul>';
|
41 |
+
}
|
42 |
+
|
43 |
+
add_shortcode('html-sitemap', 'html_sitemap_shortcode_handler');
|
44 |
+
|
45 |
+
?>
|
readme.txt
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== HTML Page Sitemap ===
|
2 |
+
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 |
+
|
30 |
+
For the latest information visit the website.
|
31 |
+
|
32 |
+
[http://www.pluginspodcast.com/plugins/html-page-sitemap/](http://www.pluginspodcast.com/plugins/html-page-sitemap/)
|
33 |
+
|
34 |
+
== Frequently Asked Questions ==
|
35 |
+
|
36 |
+
= Why is there no settings page for the plugin? =
|
37 |
+
I put together this plugin in less than 2 hours, this readme.txt actually took longer to create. This plugin is meant to be simple and easy to use. To keep it simple, it doesn't add settings to your database or clutter to your admin screens.
|
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 ==
|
45 |
+
1. HTML Page Sitemap in the Default WordPress theme.
|
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)
|
screenshot-1.png
ADDED
Binary file
|