Version Description
- Added class to ul elements by default;
- Added "class" option (thanks to Arvind);
Download this release
Release Info
Developer | webvitaly |
Plugin | Sitemap |
Version | 1.3.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.3.0
- readme.txt +12 -8
- sitemap.php +9 -4
readme.txt
CHANGED
@@ -1,12 +1,11 @@
|
|
1 |
=== Sitemap ===
|
2 |
Contributors: webvitaly
|
3 |
-
Donate link: http://web-profile.com.ua/wordpress/plugins/page-list/
|
4 |
Plugin URI: http://web-profile.com.ua/wordpress/plugins/page-list/
|
5 |
-
Tags: page, page-list, pagelist, sitemap
|
6 |
Author URI: http://web-profile.com.ua/wordpress/
|
7 |
Requires at least: 3.0
|
8 |
-
Tested up to: 3.
|
9 |
-
Stable tag: 1.
|
10 |
|
11 |
"Sitemap" plugin helps you to show list of pages with [sitemap], [pagelist], [subpages] and [siblings] shortcodes.
|
12 |
|
@@ -14,7 +13,7 @@ Stable tag: 1.2.0
|
|
14 |
|
15 |
Code moved to [page-list plugin](http://wordpress.org/extend/plugins/page-list/).
|
16 |
|
17 |
-
You can use aditional parameters:
|
18 |
|
19 |
Plugin is based on [wp_list_pages('title_li=')](http://codex.wordpress.org/Template_Tags/wp_list_pages) function;
|
20 |
= Examples: =
|
@@ -22,6 +21,8 @@ Plugin is based on [wp_list_pages('title_li=')](http://codex.wordpress.org/Templ
|
|
22 |
* show hierarchical tree of subpages: `[subpages]`;
|
23 |
* show hierarchical tree of sibling pages: `[siblings]`;
|
24 |
|
|
|
|
|
25 |
[WordPress stuff](http://web-profile.com.ua/wordpress/)
|
26 |
|
27 |
== Other Notes ==
|
@@ -50,10 +51,14 @@ Shortcodes [pagelist], [subpages] and [siblings] accept the same parameters. The
|
|
50 |
* if you want to change the sort order of the list of pages (either ascending or descending) you can use this shortcode: `[pagelist sort_order="desc"]`; by default sort_order is `asc` (sort_order="asc"); you can use this values for `sort_order` parameter: asc, desc;
|
51 |
* if you want to specify the text or html that precedes the link text inside the link tag you can use this shortcode: `[pagelist link_before="<span>"]`; you may specify html tags only in the `HTML` tab in your Rich-text editor;
|
52 |
* if you want to specify the text or html that follows the link text inside the link tag you can use this shortcode: `[pagelist link_after="</span>"]`; you may specify html tags only in the `HTML` tab in your Rich-text editor;
|
53 |
-
|
54 |
|
55 |
== Changelog ==
|
56 |
|
|
|
|
|
|
|
|
|
57 |
= 1.2.0 =
|
58 |
* Added [subpages] and [siblings] shortcodes;
|
59 |
|
@@ -67,5 +72,4 @@ Shortcodes [pagelist], [subpages] and [siblings] accept the same parameters. The
|
|
67 |
== Installation ==
|
68 |
|
69 |
1. Install plugin and activate it on the Plugins page;
|
70 |
-
2. Add shortcode
|
71 |
-
|
1 |
=== Sitemap ===
|
2 |
Contributors: webvitaly
|
|
|
3 |
Plugin URI: http://web-profile.com.ua/wordpress/plugins/page-list/
|
4 |
+
Tags: page, page-list, pagelist, sitemap, subpages
|
5 |
Author URI: http://web-profile.com.ua/wordpress/
|
6 |
Requires at least: 3.0
|
7 |
+
Tested up to: 3.2
|
8 |
+
Stable tag: 1.3.0
|
9 |
|
10 |
"Sitemap" plugin helps you to show list of pages with [sitemap], [pagelist], [subpages] and [siblings] shortcodes.
|
11 |
|
13 |
|
14 |
Code moved to [page-list plugin](http://wordpress.org/extend/plugins/page-list/).
|
15 |
|
16 |
+
You can use aditional parameters: `[pagelist depth="2" child_of="4" exclude="6,7,8"]`.
|
17 |
|
18 |
Plugin is based on [wp_list_pages('title_li=')](http://codex.wordpress.org/Template_Tags/wp_list_pages) function;
|
19 |
= Examples: =
|
21 |
* show hierarchical tree of subpages: `[subpages]`;
|
22 |
* show hierarchical tree of sibling pages: `[siblings]`;
|
23 |
|
24 |
+
[Sitemap plugin page](http://web-profile.com.ua/wordpress/plugins/page-list/)
|
25 |
+
|
26 |
[WordPress stuff](http://web-profile.com.ua/wordpress/)
|
27 |
|
28 |
== Other Notes ==
|
51 |
* if you want to change the sort order of the list of pages (either ascending or descending) you can use this shortcode: `[pagelist sort_order="desc"]`; by default sort_order is `asc` (sort_order="asc"); you can use this values for `sort_order` parameter: asc, desc;
|
52 |
* if you want to specify the text or html that precedes the link text inside the link tag you can use this shortcode: `[pagelist link_before="<span>"]`; you may specify html tags only in the `HTML` tab in your Rich-text editor;
|
53 |
* if you want to specify the text or html that follows the link text inside the link tag you can use this shortcode: `[pagelist link_after="</span>"]`; you may specify html tags only in the `HTML` tab in your Rich-text editor;
|
54 |
+
* if you want to specify the CSS class for list of pages you can use this shortcode: `[pagelist class="listclass"]`; by default the class is empty (class="");
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
= 1.3.0 =
|
59 |
+
* Added class to ul elements by default;
|
60 |
+
* Added "class" option (thanks to Arvind);
|
61 |
+
|
62 |
= 1.2.0 =
|
63 |
* Added [subpages] and [siblings] shortcodes;
|
64 |
|
72 |
== Installation ==
|
73 |
|
74 |
1. Install plugin and activate it on the Plugins page;
|
75 |
+
2. Add shortcode `[pagelist]`, `[subpages]` or `[siblings]` to page content;
|
|
sitemap.php
CHANGED
@@ -3,13 +3,15 @@
|
|
3 |
Plugin Name: Sitemap
|
4 |
Plugin URI: http://web-profile.com.ua/wordpress/plugins/page-list/
|
5 |
Description: Show list of pages with [pagelist], [subpages] and [siblings] shortcodes.
|
6 |
-
Version: 1.
|
7 |
Author: webvitaly
|
8 |
Author Email: webvitaly(at)gmail.com
|
9 |
Author URI: http://web-profile.com.ua/
|
10 |
|
11 |
Future features:
|
12 |
- exclude_by_alias;
|
|
|
|
|
13 |
- [parents];
|
14 |
*/
|
15 |
|
@@ -33,6 +35,7 @@ if ( !function_exists('pagelist_shortcode') ) {
|
|
33 |
'sort_order' => 'ASC',
|
34 |
'link_before' => '',
|
35 |
'link_after' => '',
|
|
|
36 |
), $atts ) );
|
37 |
|
38 |
if( $child_of == 'current' || $child_of == 'this' ){
|
@@ -66,7 +69,7 @@ if ( !function_exists('pagelist_shortcode') ) {
|
|
66 |
$list_pages = wp_list_pages( $page_list_args );
|
67 |
|
68 |
if ($list_pages) {
|
69 |
-
$return = '<ul>'.$list_pages.'</ul>';
|
70 |
}else{
|
71 |
$return = '';
|
72 |
}
|
@@ -97,6 +100,7 @@ if ( !function_exists('subpages_shortcode') ) {
|
|
97 |
'sort_order' => 'ASC',
|
98 |
'link_before' => '',
|
99 |
'link_after' => '',
|
|
|
100 |
), $atts ) );
|
101 |
|
102 |
$page_list_args = array(
|
@@ -123,7 +127,7 @@ if ( !function_exists('subpages_shortcode') ) {
|
|
123 |
$list_pages = wp_list_pages( $page_list_args );
|
124 |
|
125 |
if ($list_pages) {
|
126 |
-
$return = '<ul>'.$list_pages.'</ul>';
|
127 |
}else{
|
128 |
$return = '';
|
129 |
}
|
@@ -154,6 +158,7 @@ if ( !function_exists('siblings_shortcode') ) {
|
|
154 |
'sort_order' => 'ASC',
|
155 |
'link_before' => '',
|
156 |
'link_after' => '',
|
|
|
157 |
), $atts ) );
|
158 |
|
159 |
$page_list_args = array(
|
@@ -180,7 +185,7 @@ if ( !function_exists('siblings_shortcode') ) {
|
|
180 |
$list_pages = wp_list_pages( $page_list_args );
|
181 |
|
182 |
if ($list_pages) {
|
183 |
-
$return = '<ul>'.$list_pages.'</ul>';
|
184 |
}else{
|
185 |
$return = '';
|
186 |
}
|
3 |
Plugin Name: Sitemap
|
4 |
Plugin URI: http://web-profile.com.ua/wordpress/plugins/page-list/
|
5 |
Description: Show list of pages with [pagelist], [subpages] and [siblings] shortcodes.
|
6 |
+
Version: 1.3.0
|
7 |
Author: webvitaly
|
8 |
Author Email: webvitaly(at)gmail.com
|
9 |
Author URI: http://web-profile.com.ua/
|
10 |
|
11 |
Future features:
|
12 |
- exclude_by_alias;
|
13 |
+
- exclude_front_page;
|
14 |
+
- exclude_post_page;
|
15 |
- [parents];
|
16 |
*/
|
17 |
|
35 |
'sort_order' => 'ASC',
|
36 |
'link_before' => '',
|
37 |
'link_after' => '',
|
38 |
+
'class' => ''
|
39 |
), $atts ) );
|
40 |
|
41 |
if( $child_of == 'current' || $child_of == 'this' ){
|
69 |
$list_pages = wp_list_pages( $page_list_args );
|
70 |
|
71 |
if ($list_pages) {
|
72 |
+
$return = '<ul class="page-list '.$class.'">'.$list_pages.'</ul>';
|
73 |
}else{
|
74 |
$return = '';
|
75 |
}
|
100 |
'sort_order' => 'ASC',
|
101 |
'link_before' => '',
|
102 |
'link_after' => '',
|
103 |
+
'class' => ''
|
104 |
), $atts ) );
|
105 |
|
106 |
$page_list_args = array(
|
127 |
$list_pages = wp_list_pages( $page_list_args );
|
128 |
|
129 |
if ($list_pages) {
|
130 |
+
$return = '<ul class="page-list subpages-page-list '.$class.'">'.$list_pages.'</ul>';
|
131 |
}else{
|
132 |
$return = '';
|
133 |
}
|
158 |
'sort_order' => 'ASC',
|
159 |
'link_before' => '',
|
160 |
'link_after' => '',
|
161 |
+
'class' => ''
|
162 |
), $atts ) );
|
163 |
|
164 |
$page_list_args = array(
|
185 |
$list_pages = wp_list_pages( $page_list_args );
|
186 |
|
187 |
if ($list_pages) {
|
188 |
+
$return = '<ul class="page-list siblings-page-list '.$class.'">'.$list_pages.'</ul>';
|
189 |
}else{
|
190 |
$return = '';
|
191 |
}
|