Version Description
- Fixed crash bug with [pagelist_ext] if theme does not have thumbnail feature;
Download this release
Release Info
Developer | webvitaly |
Plugin | Sitemap |
Version | 2.0 |
Comparing to | |
See all releases |
Code changes from version 1.9 to 2.0
- readme.txt +5 -2
- sitemap.php +12 -10
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:
|
9 |
|
10 |
"Sitemap" plugin helps you to show list of pages with [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes.
|
11 |
|
@@ -28,7 +28,7 @@ You can use aditional parameters: **`[pagelist_ext child_of="4" exclude="6,7,8"
|
|
28 |
* show hierarchical tree of sibling pages: `[siblings]`;
|
29 |
* show list of pages with featured image and with excerpt: `[pagelist_ext]`;
|
30 |
|
31 |
-
[
|
32 |
|
33 |
[CMS WordPress](http://web-profile.com.ua/wordpress/)
|
34 |
|
@@ -86,6 +86,9 @@ You can use aditional parameters: **`[pagelist_ext child_of="4" exclude="6,7,8"
|
|
86 |
|
87 |
== Changelog ==
|
88 |
|
|
|
|
|
|
|
89 |
= 1.9 =
|
90 |
* Added show_child_count parameter;
|
91 |
* Added show_meta_key parameter;
|
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.0
|
9 |
|
10 |
"Sitemap" plugin helps you to show list of pages with [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes.
|
11 |
|
28 |
* show hierarchical tree of sibling pages: `[siblings]`;
|
29 |
* show list of pages with featured image and with excerpt: `[pagelist_ext]`;
|
30 |
|
31 |
+
[Page-list plugin page](http://web-profile.com.ua/wordpress/plugins/page-list/)
|
32 |
|
33 |
[CMS WordPress](http://web-profile.com.ua/wordpress/)
|
34 |
|
86 |
|
87 |
== Changelog ==
|
88 |
|
89 |
+
= 2.0 =
|
90 |
+
* Fixed crash bug with [pagelist_ext] if theme does not have thumbnail feature;
|
91 |
+
|
92 |
= 1.9 =
|
93 |
* Added show_child_count parameter;
|
94 |
* Added show_meta_key parameter;
|
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:
|
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, '
|
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.
|
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.
|
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.
|
206 |
$return .= '<ul class="page-list siblings-page-list '.$class.'">'."\n".$list_pages."\n".'</ul>';
|
207 |
}else{
|
208 |
$return = '';
|
@@ -285,10 +285,12 @@ if ( !function_exists('pagelist_ext_shortcode') ) {
|
|
285 |
$link = get_permalink( $page->ID );
|
286 |
$list_pages_html .= '<div class="page-list-ext-item">';
|
287 |
if( $show_image == 1 ){
|
288 |
-
if(
|
289 |
-
$
|
290 |
-
|
291 |
-
|
|
|
|
|
292 |
}
|
293 |
}
|
294 |
if( $show_title == 1 ){
|
@@ -329,7 +331,7 @@ if ( !function_exists('pagelist_ext_shortcode') ) {
|
|
329 |
$list_pages_html .= '</div>'."\n";
|
330 |
}
|
331 |
if ($list_pages_html) {
|
332 |
-
$return = "\n".'<!-- powered by Page-list plugin ver.
|
333 |
$return .= '<div class="page-list page-list-ext '.$class.'">'."\n".$list_pages_html."\n".'</div>';
|
334 |
}else{
|
335 |
$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.0
|
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.0', '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.0 (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.0 (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.0 (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 = '';
|
285 |
$link = get_permalink( $page->ID );
|
286 |
$list_pages_html .= '<div class="page-list-ext-item">';
|
287 |
if( $show_image == 1 ){
|
288 |
+
if (function_exists('get_the_post_thumbnail')) {
|
289 |
+
if( get_the_post_thumbnail($page->ID) ){
|
290 |
+
$list_pages_html .= '<div class="page-list-ext-image"><a href="'.$link.'" title="'.$page->post_title.'">';
|
291 |
+
$list_pages_html .= get_the_post_thumbnail($page->ID, array($image_width,$image_height));
|
292 |
+
$list_pages_html .= '</a></div> ';
|
293 |
+
}
|
294 |
}
|
295 |
}
|
296 |
if( $show_title == 1 ){
|
331 |
$list_pages_html .= '</div>'."\n";
|
332 |
}
|
333 |
if ($list_pages_html) {
|
334 |
+
$return = "\n".'<!-- powered by Page-list plugin ver.2.0 (wordpress.org/extend/plugins/page-list/) -->'."\n";
|
335 |
$return .= '<div class="page-list page-list-ext '.$class.'">'."\n".$list_pages_html."\n".'</div>';
|
336 |
}else{
|
337 |
$return = '';
|