Version Description
- make excerpt link if there is no title;
Download this release
Release Info
Developer | webvitaly |
Plugin | Page-list |
Version | 2.7 |
Comparing to | |
See all releases |
Code changes from version 2.6 to 2.7
- page-list.php +10 -6
- readme.txt +23 -20
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: 2.
|
7 |
Author: webvitaly
|
8 |
Author Email: webvitaly(at)gmail.com
|
9 |
Author URI: http://web-profile.com.ua/wordpress/
|
@@ -16,7 +16,7 @@ Future features:
|
|
16 |
|
17 |
add_action('wp_print_styles', 'page_list_add_stylesheet');
|
18 |
function page_list_add_stylesheet() {
|
19 |
-
wp_enqueue_style( 'page-list-style', plugins_url( '/css/page-list.css', __FILE__ ), false, '2.
|
20 |
}
|
21 |
|
22 |
if ( !function_exists('pagelist_shortcode') ) {
|
@@ -66,7 +66,7 @@ if ( !function_exists('pagelist_shortcode') ) {
|
|
66 |
$list_pages = wp_list_pages( $page_list_args );
|
67 |
|
68 |
if ($list_pages) {
|
69 |
-
$return = "\n".'<!-- powered by Page-list plugin ver.2.
|
70 |
$return .= '<ul class="page-list '.$class.'">'."\n".$list_pages."\n".'</ul>';
|
71 |
}else{
|
72 |
$return = '';
|
@@ -126,7 +126,7 @@ if ( !function_exists('subpages_shortcode') ) {
|
|
126 |
$list_pages = wp_list_pages( $page_list_args );
|
127 |
|
128 |
if ($list_pages) {
|
129 |
-
$return = "\n".'<!-- powered by Page-list plugin ver.2.
|
130 |
$return .= '<ul class="page-list subpages-page-list '.$class.'">'."\n".$list_pages."\n".'</ul>';
|
131 |
}else{
|
132 |
$return = '';
|
@@ -190,7 +190,7 @@ if ( !function_exists('siblings_shortcode') ) {
|
|
190 |
$list_pages = wp_list_pages( $page_list_args );
|
191 |
|
192 |
if ($list_pages) {
|
193 |
-
$return = "\n".'<!-- powered by Page-list plugin ver.2.
|
194 |
$return .= '<ul class="page-list siblings-page-list '.$class.'">'."\n".$list_pages."\n".'</ul>';
|
195 |
}else{
|
196 |
$return = '';
|
@@ -302,7 +302,11 @@ if ( !function_exists('pagelist_ext_shortcode') ) {
|
|
302 |
$text_content = $page->post_content;
|
303 |
}
|
304 |
$content = page_list_parse_content( $text_content, $limit_content, $strip_tags );
|
|
|
|
|
|
|
305 |
$list_pages_html .= '<div class="page-list-ext-item-content">'.$content.'</div>';
|
|
|
306 |
}
|
307 |
if( $show_child_count == 1 ){
|
308 |
$count_subpages = count(get_pages("child_of=".$page->ID));
|
@@ -335,7 +339,7 @@ if ( !function_exists('pagelist_ext_shortcode') ) {
|
|
335 |
}
|
336 |
}
|
337 |
if ($list_pages_html) {
|
338 |
-
$return = "\n".'<!-- powered by Page-list plugin ver.2.
|
339 |
$return .= '<div class="page-list page-list-ext '.$class.'">'."\n".$list_pages_html."\n".'</div>';
|
340 |
}else{
|
341 |
$return = '';
|
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: 2.7
|
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', 'page_list_add_stylesheet');
|
18 |
function page_list_add_stylesheet() {
|
19 |
+
wp_enqueue_style( 'page-list-style', plugins_url( '/css/page-list.css', __FILE__ ), false, '2.7', 'all' );
|
20 |
}
|
21 |
|
22 |
if ( !function_exists('pagelist_shortcode') ) {
|
66 |
$list_pages = wp_list_pages( $page_list_args );
|
67 |
|
68 |
if ($list_pages) {
|
69 |
+
$return = "\n".'<!-- powered by Page-list plugin ver.2.7 (wordpress.org/extend/plugins/page-list/) -->'."\n";
|
70 |
$return .= '<ul class="page-list '.$class.'">'."\n".$list_pages."\n".'</ul>';
|
71 |
}else{
|
72 |
$return = '';
|
126 |
$list_pages = wp_list_pages( $page_list_args );
|
127 |
|
128 |
if ($list_pages) {
|
129 |
+
$return = "\n".'<!-- powered by Page-list plugin ver.2.7 (wordpress.org/extend/plugins/page-list/) -->'."\n";
|
130 |
$return .= '<ul class="page-list subpages-page-list '.$class.'">'."\n".$list_pages."\n".'</ul>';
|
131 |
}else{
|
132 |
$return = '';
|
190 |
$list_pages = wp_list_pages( $page_list_args );
|
191 |
|
192 |
if ($list_pages) {
|
193 |
+
$return = "\n".'<!-- powered by Page-list plugin ver.2.7 (wordpress.org/extend/plugins/page-list/) -->'."\n";
|
194 |
$return .= '<ul class="page-list siblings-page-list '.$class.'">'."\n".$list_pages."\n".'</ul>';
|
195 |
}else{
|
196 |
$return = '';
|
302 |
$text_content = $page->post_content;
|
303 |
}
|
304 |
$content = page_list_parse_content( $text_content, $limit_content, $strip_tags );
|
305 |
+
if( $show_title == 0 ){ // make excerpt link if there is no title
|
306 |
+
$content = '<a href="'.$link.'">'.$content.'</a>';
|
307 |
+
}
|
308 |
$list_pages_html .= '<div class="page-list-ext-item-content">'.$content.'</div>';
|
309 |
+
|
310 |
}
|
311 |
if( $show_child_count == 1 ){
|
312 |
$count_subpages = count(get_pages("child_of=".$page->ID));
|
339 |
}
|
340 |
}
|
341 |
if ($list_pages_html) {
|
342 |
+
$return = "\n".'<!-- powered by Page-list plugin ver.2.7 (wordpress.org/extend/plugins/page-list/) -->'."\n";
|
343 |
$return .= '<div class="page-list page-list-ext '.$class.'">'."\n".$list_pages_html."\n".'</div>';
|
344 |
}else{
|
345 |
$return = '';
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ 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
|
8 |
-
Stable tag: 2.
|
9 |
|
10 |
"Page-list" plugin helps you to show list of pages with [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes.
|
11 |
|
@@ -84,56 +84,59 @@ You can use aditional parameters: **`[pagelist_ext child_of="4" exclude="6,7,8"
|
|
84 |
|
85 |
== Changelog ==
|
86 |
|
|
|
|
|
|
|
87 |
= 2.6 =
|
88 |
-
*
|
89 |
|
90 |
= 2.5 =
|
91 |
-
*
|
92 |
|
93 |
= 2.4 =
|
94 |
-
*
|
95 |
|
96 |
= 2.3 =
|
97 |
-
*
|
98 |
|
99 |
= 2.2 =
|
100 |
-
*
|
101 |
|
102 |
= 2.1 =
|
103 |
-
*
|
104 |
|
105 |
= 2.0 =
|
106 |
-
*
|
107 |
|
108 |
= 1.9 =
|
109 |
-
*
|
110 |
-
*
|
111 |
|
112 |
= 1.8 =
|
113 |
-
*
|
114 |
-
*
|
115 |
|
116 |
= 1.7 =
|
117 |
-
*
|
118 |
|
119 |
= 1.6 =
|
120 |
-
*
|
121 |
|
122 |
= 1.5 =
|
123 |
-
*
|
124 |
|
125 |
= 1.4 =
|
126 |
-
*
|
127 |
|
128 |
= 1.3.0 =
|
129 |
-
*
|
130 |
-
*
|
131 |
|
132 |
= 1.2.0 =
|
133 |
-
*
|
134 |
|
135 |
= 1.0.0 =
|
136 |
-
*
|
137 |
|
138 |
== Installation ==
|
139 |
|
5 |
Author URI: http://web-profile.com.ua/wordpress/
|
6 |
Requires at least: 3.0
|
7 |
Tested up to: 3.3
|
8 |
+
Stable tag: 2.7
|
9 |
|
10 |
"Page-list" plugin helps you to show list of pages with [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes.
|
11 |
|
84 |
|
85 |
== Changelog ==
|
86 |
|
87 |
+
= 2.7 =
|
88 |
+
* make excerpt link if there is no title;
|
89 |
+
|
90 |
= 2.6 =
|
91 |
+
* fixed [pagelist_ext] "parent" parameter;
|
92 |
|
93 |
= 2.5 =
|
94 |
+
* adding spaces between lines when tags are stripped in [pagelist_ext];
|
95 |
|
96 |
= 2.4 =
|
97 |
+
* escaping attributes in title in [pagelist_ext];
|
98 |
|
99 |
= 2.3 =
|
100 |
+
* fixed [pagelist_ext] with showing excerpt of the page if it is not empty, else showing content;
|
101 |
|
102 |
= 2.2 =
|
103 |
+
* fixed offset parameter;
|
104 |
|
105 |
= 2.1 =
|
106 |
+
* fixed number parameter;
|
107 |
|
108 |
= 2.0 =
|
109 |
+
* fixed crash bug with [pagelist_ext] if theme does not have thumbnail feature;
|
110 |
|
111 |
= 1.9 =
|
112 |
+
* added show_child_count parameter;
|
113 |
+
* added show_meta_key parameter;
|
114 |
|
115 |
= 1.8 =
|
116 |
+
* added screenshots;
|
117 |
+
* improved parameter parsing;
|
118 |
|
119 |
= 1.7 =
|
120 |
+
* added strip_tags parameter;
|
121 |
|
122 |
= 1.6 =
|
123 |
+
* improved [pagelist_ext] shortcode: added content to list, added toggle show and limit content parameters;
|
124 |
|
125 |
= 1.5 =
|
126 |
+
* added [pagelist_ext] shortcode - list of pages with featured image;
|
127 |
|
128 |
= 1.4 =
|
129 |
+
* added exclude="current" parameter;
|
130 |
|
131 |
= 1.3.0 =
|
132 |
+
* added class to ul elements by default;
|
133 |
+
* added "class" option (thanks to Arvind);
|
134 |
|
135 |
= 1.2.0 =
|
136 |
+
* added [subpages] and [siblings] shortcodes;
|
137 |
|
138 |
= 1.0.0 =
|
139 |
+
* initial release;
|
140 |
|
141 |
== Installation ==
|
142 |
|