Page-list - Version 3.2

Version Description

  • fixed bug with "more_tag" and non english chars;
Download this release

Release Info

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

Code changes from version 3.1 to 3.2

Files changed (2) hide show
  1. page-list.php +4 -4
  2. readme.txt +34 -14
page-list.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Page-list
4
  Plugin URI: http://web-profile.com.ua/wordpress/plugins/page-list/
5
  Description: Show list of pages with [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes.
6
- Version: 3.1
7
  Author: webvitaly
8
  Author Email: webvitaly(at)gmail.com
9
  Author URI: http://web-profile.com.ua/wordpress/
@@ -16,10 +16,10 @@ Future features:
16
 
17
  add_action('wp_print_styles', 'pagelist_add_stylesheet');
18
  function pagelist_add_stylesheet() {
19
- wp_enqueue_style( 'page-list-style', plugins_url( '/css/page-list.css', __FILE__ ), false, '3.1', 'all' );
20
  }
21
 
22
- $pagelist_powered_line = "\n".'<!-- Page-list plugin v.3.1 (wordpress.org/extend/plugins/page-list/) -->'."\n";
23
 
24
  if ( !function_exists('pagelist_shortcode') ) {
25
  function pagelist_shortcode( $atts ) {
@@ -433,7 +433,7 @@ if ( !function_exists('page_list_parse_content') ) {
433
  }
434
 
435
  if( $more_tag && $more_tag_found ){ // "more_tag" have higher priority than "limit_content"
436
- $fake_more_pos = strpos($content, '###more###');
437
  if( $fake_more_pos === false ) {
438
  // substring not found in string and this is strange :)
439
  } else {
3
  Plugin Name: Page-list
4
  Plugin URI: http://web-profile.com.ua/wordpress/plugins/page-list/
5
  Description: Show list of pages with [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes.
6
+ Version: 3.2
7
  Author: webvitaly
8
  Author Email: webvitaly(at)gmail.com
9
  Author URI: http://web-profile.com.ua/wordpress/
16
 
17
  add_action('wp_print_styles', 'pagelist_add_stylesheet');
18
  function pagelist_add_stylesheet() {
19
+ wp_enqueue_style( 'page-list-style', plugins_url( '/css/page-list.css', __FILE__ ), false, '3.2', 'all' );
20
  }
21
 
22
+ $pagelist_powered_line = "\n".'<!-- Page-list plugin v.3.2 (wordpress.org/extend/plugins/page-list/) -->'."\n";
23
 
24
  if ( !function_exists('pagelist_shortcode') ) {
25
  function pagelist_shortcode( $atts ) {
433
  }
434
 
435
  if( $more_tag && $more_tag_found ){ // "more_tag" have higher priority than "limit_content"
436
+ $fake_more_pos = mb_strpos($content, '###more###', 0, 'UTF-8');
437
  if( $fake_more_pos === false ) {
438
  // substring not found in string and this is strange :)
439
  } else {
readme.txt CHANGED
@@ -5,32 +5,30 @@ 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.1
9
 
10
- "Page-list" plugin helps you to show list of pages with [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes.
11
 
12
  == Description ==
13
 
14
- You can use aditional parameters: `[pagelist depth="2" child_of="4" exclude="6,7,8"]`.
15
 
16
- Shortcodes [pagelist], [subpages], [siblings] are based on [wp_list_pages('title_li=')](http://codex.wordpress.org/Template_Tags/wp_list_pages) function and show hierarchical tree of pages;
17
- You can use aditional parameters: **`[pagelist depth="2" child_of="4" exclude="6,7,8"]`**.
18
- Shortcodes [pagelist], [subpages] and [siblings] accept the same parameters. The only difference is that [subpages] and [siblings] not accept `child_of` parameter, because [subpages] shows subpages to the current page and [siblings] shows subpages to the parent page.
 
19
 
20
- Shortcode [pagelist_ext] is based on [get_pages()](http://codex.wordpress.org/Function_Reference/get_pages) function and show list of pages with featured image and with excerpt;
21
- You can use aditional parameters: **`[pagelist_ext child_of="4" exclude="6,7,8" image_width="50" image_height="50"]`**.
22
 
23
- = Examples: =
24
- * show hierarchical tree of pages: `[pagelist]`;
25
- * show hierarchical tree of subpages: `[subpages]`;
26
- * show hierarchical tree of sibling pages: `[siblings]`;
27
- * show list of pages with featured image and with excerpt: `[pagelist_ext]`;
28
 
29
  [Page-list plugin page](http://web-profile.com.ua/wordpress/plugins/page-list/)
30
 
31
  [CMS WordPress](http://web-profile.com.ua/wordpress/)
32
 
33
- == Usage ==
34
 
35
  = Parameters for [pagelist], [subpages] and [siblings]: =
36
  * **depth** - means how many levels in the hierarchy of pages are to be included in the list, by default depth is unlimited (depth=0), but you can specify it like this: `[pagelist depth="3"]`; If you want to show flat list of pages (not hierarchical tree) you can use this shortcode: `[pagelist depth="-1"]`;
@@ -80,6 +78,25 @@ You can use aditional parameters: **`[pagelist_ext child_of="4" exclude="6,7,8"
80
  * **show_meta_key** - if you want to show meta key you can use this shortcode: `[pagelist_ext show_meta_key="your_meta_key"]`; by default the show_meta_key is empty (show_meta_key=""); If show_meta_key is enabled, but meta_value is empty, than meta_key is not showing;
81
  * **meta_template** - if you want to specify the template of meta you can use this shortcode: `[pagelist_ext show_meta_key="your_meta_key" meta_template="Meta: %meta%"]`; by default meta_template="%meta%";
82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  == Screenshots ==
84
 
85
  1. [pagelist] shortcode;
@@ -87,6 +104,9 @@ You can use aditional parameters: **`[pagelist_ext child_of="4" exclude="6,7,8"
87
 
88
  == Changelog ==
89
 
 
 
 
90
  = 3.1 =
91
  * fixed bug with empty image in "show_first_image" parameter;
92
  * added "more_tag" higher priority than "limit_content" (thanks to BobyDimitrov);
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.2
9
 
10
+ Plugin shows list of pages with [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes.
11
 
12
  == Description ==
13
 
14
+ = shortcodes: =
15
 
16
+ * **[pagelist]** - hierarchical tree of all pages on site (useful to show sitemap of the site);
17
+ * **[subpages]** - hierarchical tree of subpages to the current page;
18
+ * **[siblings]** - hierarchical tree of sibling pages to the current page;
19
+ * **[pagelist_ext]** - list of pages with featured image and with excerpt (useful to show list of products with images);
20
 
21
+ = aditional parameters examples: =
 
22
 
23
+ * `[pagelist depth="2" child_of="4" exclude="6,7,8"]`
24
+ * `[pagelist_ext child_of="4" exclude="6,7,8" image_width="50" image_height="50"]`
25
+ * visit [other notes](http://wordpress.org/extend/plugins/page-list/other_notes/) section to see all params
 
 
26
 
27
  [Page-list plugin page](http://web-profile.com.ua/wordpress/plugins/page-list/)
28
 
29
  [CMS WordPress](http://web-profile.com.ua/wordpress/)
30
 
31
+ == Other Notes ==
32
 
33
  = Parameters for [pagelist], [subpages] and [siblings]: =
34
  * **depth** - means how many levels in the hierarchy of pages are to be included in the list, by default depth is unlimited (depth=0), but you can specify it like this: `[pagelist depth="3"]`; If you want to show flat list of pages (not hierarchical tree) you can use this shortcode: `[pagelist depth="-1"]`;
78
  * **show_meta_key** - if you want to show meta key you can use this shortcode: `[pagelist_ext show_meta_key="your_meta_key"]`; by default the show_meta_key is empty (show_meta_key=""); If show_meta_key is enabled, but meta_value is empty, than meta_key is not showing;
79
  * **meta_template** - if you want to specify the template of meta you can use this shortcode: `[pagelist_ext show_meta_key="your_meta_key" meta_template="Meta: %meta%"]`; by default meta_template="%meta%";
80
 
81
+
82
+ == Frequently Asked Questions ==
83
+
84
+ = How to show the list of posts? =
85
+
86
+ To show list of posts you can use [List Category Posts](http://wordpress.org/extend/plugins/list-category-posts/other_notes/) plugin.
87
+
88
+ = On what functions shortcodes are based? =
89
+
90
+ Shortcodes [pagelist], [subpages], [siblings] are based on [wp_list_pages('title_li=')](http://codex.wordpress.org/Template_Tags/wp_list_pages) function.
91
+ Shortcode [pagelist_ext] is based on [get_pages()](http://codex.wordpress.org/Function_Reference/get_pages) function.
92
+
93
+ = What is the difference between [pagelist], [subpages] and [siblings]? =
94
+
95
+ Shortcodes [pagelist], [subpages] and [siblings] accept the same parameters. The only difference is that [subpages] and [siblings] not accept `child_of` parameter, because [subpages] shows subpages to the current page and [siblings] shows subpages to the parent page.
96
+
97
+ = How to create sitemap.xml? =
98
+ To create sitemap.xml you can use [Google XML Sitemaps](http://wordpress.org/extend/plugins/google-sitemap-generator/) plugin.
99
+
100
  == Screenshots ==
101
 
102
  1. [pagelist] shortcode;
104
 
105
  == Changelog ==
106
 
107
+ = 3.2 =
108
+ * fixed bug with "more_tag" and non english chars;
109
+
110
  = 3.1 =
111
  * fixed bug with empty image in "show_first_image" parameter;
112
  * added "more_tag" higher priority than "limit_content" (thanks to BobyDimitrov);