Page-list - Version 3.5

Version Description

  • showing all pages for [pagelist_ext child_of="0"] shortcode
Download this release

Release Info

Developer webvitaly
Plugin Icon wp plugin Page-list
Version 3.5
Comparing to
See all releases

Code changes from version 3.4 to 3.5

Files changed (2) hide show
  1. page-list.php +6 -6
  2. readme.txt +5 -2
page-list.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
- Plugin Name: Page-list
4
  Plugin URI: http://web-profile.com.ua/wordpress/plugins/page-list/
5
  Description: [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes
6
- Version: 3.4
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.4', 'all' );
15
  }
16
 
17
- $pagelist_powered_line = "\n".'<!-- Page-list plugin v.3.4 (wordpress.org/extend/plugins/page-list/) -->'."\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' => '0',
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 == '0' ){
238
  $child_of = $post->ID;
239
  }
240
 
1
  <?php
2
  /*
3
+ Plugin Name: [pagelist]
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
 
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
- === Page-list ===
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.4
9
 
10
  [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes
11
 
@@ -116,6 +116,9 @@ But if you still need "more-link" feature and you will add it by yourself, than
116
 
117
  == Changelog ==
118
 
 
 
 
119
  = 3.4 =
120
  * remove esc_attr() from title in [pagelist_ext] shortcode
121
 
1
+ === [pagelist] ===
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
 
116
 
117
  == Changelog ==
118
 
119
+ = 3.5 =
120
+ * showing all pages for [pagelist_ext child_of="0"] shortcode
121
+
122
  = 3.4 =
123
  * remove esc_attr() from title in [pagelist_ext] shortcode
124