Version Description
- showing all pages for [pagelist_ext child_of="0"] shortcode
Download this release
Release Info
Developer | webvitaly |
Plugin | Sitemap |
Version | 3.5 |
Comparing to | |
See all releases |
Code changes from version 3.4 to 3.5
- readme.txt +6 -3
- sitemap.php +6 -6
readme.txt
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
-
===
|
2 |
Contributors: webvitaly
|
3 |
Plugin URI: http://web-profile.com.ua/wordpress/plugins/page-list/
|
4 |
Tags: page, page-list, pagelist, sitemap, subpages, siblings
|
5 |
Author URI: http://web-profile.com.ua/wordpress/
|
6 |
Requires at least: 3.0
|
7 |
Tested up to: 3.3.1
|
8 |
-
Stable tag: 3.
|
9 |
|
10 |
[pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
**Code moved to [page-list plugin](http://wordpress.org/extend/plugins/page-list/)** Please, delete Sitemap plugin and install [
|
15 |
|
16 |
= shortcodes: =
|
17 |
|
@@ -118,6 +118,9 @@ But if you still need "more-link" feature and you will add it by yourself, than
|
|
118 |
|
119 |
== Changelog ==
|
120 |
|
|
|
|
|
|
|
121 |
= 3.4 =
|
122 |
* remove esc_attr() from title in [pagelist_ext] shortcode
|
123 |
|
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, siblings
|
5 |
Author URI: http://web-profile.com.ua/wordpress/
|
6 |
Requires at least: 3.0
|
7 |
Tested up to: 3.3.1
|
8 |
+
Stable tag: 3.5
|
9 |
|
10 |
[pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
**Code moved to [page-list plugin](http://wordpress.org/extend/plugins/page-list/)** Please, delete Sitemap plugin and install [Pagelist plugin](http://wordpress.org/extend/plugins/page-list/). Don't be afraid, the functionality of these plugins is the same.
|
15 |
|
16 |
= shortcodes: =
|
17 |
|
118 |
|
119 |
== Changelog ==
|
120 |
|
121 |
+
= 3.5 =
|
122 |
+
* showing all pages for [pagelist_ext child_of="0"] shortcode
|
123 |
+
|
124 |
= 3.4 =
|
125 |
* remove esc_attr() from title in [pagelist_ext] shortcode
|
126 |
|
sitemap.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
Plugin Name:
|
4 |
Plugin URI: http://web-profile.com.ua/wordpress/plugins/page-list/
|
5 |
Description: [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes
|
6 |
-
Version: 3.
|
7 |
Author: webvitaly
|
8 |
Author Email: webvitaly(at)gmail.com
|
9 |
Author URI: http://web-profile.com.ua/wordpress/
|
@@ -11,10 +11,10 @@ Author URI: http://web-profile.com.ua/wordpress/
|
|
11 |
|
12 |
add_action('wp_print_styles', 'pagelist_add_stylesheet');
|
13 |
function pagelist_add_stylesheet() {
|
14 |
-
wp_enqueue_style( 'page-list-style', plugins_url( '/css/page-list.css', __FILE__ ), false, '3.
|
15 |
}
|
16 |
|
17 |
-
$pagelist_powered_line = "\n".'<!--
|
18 |
|
19 |
if ( !function_exists('pagelist_shortcode') ) {
|
20 |
function pagelist_shortcode( $atts ) {
|
@@ -210,7 +210,7 @@ if ( !function_exists('pagelist_ext_shortcode') ) {
|
|
210 |
'limit_content' => 250,
|
211 |
'image_width' => '50',
|
212 |
'image_height' => '50',
|
213 |
-
'child_of' => '
|
214 |
'sort_order' => 'ASC',
|
215 |
'sort_column' => 'menu_order, post_title',
|
216 |
'hierarchical' => 1,
|
@@ -234,7 +234,7 @@ if ( !function_exists('pagelist_ext_shortcode') ) {
|
|
234 |
'meta_template' => '%meta%'
|
235 |
), $atts ) );
|
236 |
|
237 |
-
if( $child_of == '
|
238 |
$child_of = $post->ID;
|
239 |
}
|
240 |
|
1 |
<?php
|
2 |
/*
|
3 |
+
Plugin Name: [sitemap]
|
4 |
Plugin URI: http://web-profile.com.ua/wordpress/plugins/page-list/
|
5 |
Description: [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes
|
6 |
+
Version: 3.5
|
7 |
Author: webvitaly
|
8 |
Author Email: webvitaly(at)gmail.com
|
9 |
Author URI: http://web-profile.com.ua/wordpress/
|
11 |
|
12 |
add_action('wp_print_styles', 'pagelist_add_stylesheet');
|
13 |
function pagelist_add_stylesheet() {
|
14 |
+
wp_enqueue_style( 'page-list-style', plugins_url( '/css/page-list.css', __FILE__ ), false, '3.5', 'all' );
|
15 |
}
|
16 |
|
17 |
+
$pagelist_powered_line = "\n".'<!-- [pagelist] plugin v.3.5 (wordpress.org/extend/plugins/page-list/) -->'."\n";
|
18 |
|
19 |
if ( !function_exists('pagelist_shortcode') ) {
|
20 |
function pagelist_shortcode( $atts ) {
|
210 |
'limit_content' => 250,
|
211 |
'image_width' => '50',
|
212 |
'image_height' => '50',
|
213 |
+
'child_of' => '',
|
214 |
'sort_order' => 'ASC',
|
215 |
'sort_column' => 'menu_order, post_title',
|
216 |
'hierarchical' => 1,
|
234 |
'meta_template' => '%meta%'
|
235 |
), $atts ) );
|
236 |
|
237 |
+
if( $child_of == '' ){ // show subpages if child_of is empty
|
238 |
$child_of = $post->ID;
|
239 |
}
|
240 |
|