Version Description
- Fixed [pagelist_ext] with showing excerpt of the page if it is not empty, else showing content;
Download this release
Release Info
Developer | webvitaly |
Plugin | Sitemap |
Version | 2.3 |
Comparing to | |
See all releases |
Code changes from version 2.2 to 2.3
- readme.txt +4 -1
- sitemap.php +12 -7
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 |
"Sitemap" plugin helps you to show list of pages with [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes.
|
11 |
|
@@ -86,6 +86,9 @@ You can use aditional parameters: **`[pagelist_ext child_of="4" exclude="6,7,8"
|
|
86 |
|
87 |
== Changelog ==
|
88 |
|
|
|
|
|
|
|
89 |
= 2.2 =
|
90 |
* Fixed offset parameter;
|
91 |
|
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.3
|
9 |
|
10 |
"Sitemap" plugin helps you to show list of pages with [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes.
|
11 |
|
86 |
|
87 |
== Changelog ==
|
88 |
|
89 |
+
= 2.3 =
|
90 |
+
* Fixed [pagelist_ext] with showing excerpt of the page if it is not empty, else showing content;
|
91 |
+
|
92 |
= 2.2 =
|
93 |
* Fixed offset parameter;
|
94 |
|
sitemap.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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], [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_norm_params') ) {
|
@@ -78,7 +78,7 @@ if ( !function_exists('pagelist_shortcode') ) {
|
|
78 |
$list_pages = wp_list_pages( $page_list_args );
|
79 |
|
80 |
if ($list_pages) {
|
81 |
-
$return = "\n".'<!-- powered by Page-list plugin ver.2.
|
82 |
$return .= '<ul class="page-list '.$class.'">'."\n".$list_pages."\n".'</ul>';
|
83 |
}else{
|
84 |
$return = '';
|
@@ -138,7 +138,7 @@ if ( !function_exists('subpages_shortcode') ) {
|
|
138 |
$list_pages = wp_list_pages( $page_list_args );
|
139 |
|
140 |
if ($list_pages) {
|
141 |
-
$return = "\n".'<!-- powered by Page-list plugin ver.2.
|
142 |
$return .= '<ul class="page-list subpages-page-list '.$class.'">'."\n".$list_pages."\n".'</ul>';
|
143 |
}else{
|
144 |
$return = '';
|
@@ -202,7 +202,7 @@ if ( !function_exists('siblings_shortcode') ) {
|
|
202 |
$list_pages = wp_list_pages( $page_list_args );
|
203 |
|
204 |
if ($list_pages) {
|
205 |
-
$return = "\n".'<!-- powered by Page-list plugin ver.2.
|
206 |
$return .= '<ul class="page-list siblings-page-list '.$class.'">'."\n".$list_pages."\n".'</ul>';
|
207 |
}else{
|
208 |
$return = '';
|
@@ -308,7 +308,12 @@ if ( !function_exists('pagelist_ext_shortcode') ) {
|
|
308 |
if( $show_content == 1 ){
|
309 |
//$content = apply_filters('the_content', $page->post_content);
|
310 |
//$content = str_replace(']]>', ']]>', $content);
|
311 |
-
|
|
|
|
|
|
|
|
|
|
|
312 |
$list_pages_html .= '<div class="page-list-ext-item-content">'.$content.'</div>';
|
313 |
}
|
314 |
if( $show_child_count == 1 ){
|
@@ -342,7 +347,7 @@ if ( !function_exists('pagelist_ext_shortcode') ) {
|
|
342 |
}
|
343 |
}
|
344 |
if ($list_pages_html) {
|
345 |
-
$return = "\n".'<!-- powered by Page-list plugin ver.2.
|
346 |
$return .= '<div class="page-list page-list-ext '.$class.'">'."\n".$list_pages_html."\n".'</div>';
|
347 |
}else{
|
348 |
$return = '';
|
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], [siblings] and [pagelist_ext] shortcodes.
|
6 |
+
Version: 2.3
|
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.3', 'all' );
|
20 |
}
|
21 |
|
22 |
if ( !function_exists('pagelist_norm_params') ) {
|
78 |
$list_pages = wp_list_pages( $page_list_args );
|
79 |
|
80 |
if ($list_pages) {
|
81 |
+
$return = "\n".'<!-- powered by Page-list plugin ver.2.3 (wordpress.org/extend/plugins/page-list/) -->'."\n";
|
82 |
$return .= '<ul class="page-list '.$class.'">'."\n".$list_pages."\n".'</ul>';
|
83 |
}else{
|
84 |
$return = '';
|
138 |
$list_pages = wp_list_pages( $page_list_args );
|
139 |
|
140 |
if ($list_pages) {
|
141 |
+
$return = "\n".'<!-- powered by Page-list plugin ver.2.3 (wordpress.org/extend/plugins/page-list/) -->'."\n";
|
142 |
$return .= '<ul class="page-list subpages-page-list '.$class.'">'."\n".$list_pages."\n".'</ul>';
|
143 |
}else{
|
144 |
$return = '';
|
202 |
$list_pages = wp_list_pages( $page_list_args );
|
203 |
|
204 |
if ($list_pages) {
|
205 |
+
$return = "\n".'<!-- powered by Page-list plugin ver.2.3 (wordpress.org/extend/plugins/page-list/) -->'."\n";
|
206 |
$return .= '<ul class="page-list siblings-page-list '.$class.'">'."\n".$list_pages."\n".'</ul>';
|
207 |
}else{
|
208 |
$return = '';
|
308 |
if( $show_content == 1 ){
|
309 |
//$content = apply_filters('the_content', $page->post_content);
|
310 |
//$content = str_replace(']]>', ']]>', $content);
|
311 |
+
if( !empty( $page->post_excerpt ) ){
|
312 |
+
$text_content = $page->post_excerpt;
|
313 |
+
}else{
|
314 |
+
$text_content = $page->post_content;
|
315 |
+
}
|
316 |
+
$content = page_list_parse_content( $text_content, $limit_content, $strip_tags );
|
317 |
$list_pages_html .= '<div class="page-list-ext-item-content">'.$content.'</div>';
|
318 |
}
|
319 |
if( $show_child_count == 1 ){
|
347 |
}
|
348 |
}
|
349 |
if ($list_pages_html) {
|
350 |
+
$return = "\n".'<!-- powered by Page-list plugin ver.2.3 (wordpress.org/extend/plugins/page-list/) -->'."\n";
|
351 |
$return .= '<div class="page-list page-list-ext '.$class.'">'."\n".$list_pages_html."\n".'</div>';
|
352 |
}else{
|
353 |
$return = '';
|