Sitemap - Version 4.3

Version Description

  • 2015.01.15 =
  • use wp_enqueue_scripts hook instead of wp_print_styles to enqueue scripts and styles (thanks to sireneweb)
Download this release

Release Info

Developer webvitaly
Plugin Icon wp plugin Sitemap
Version 4.3
Comparing to
See all releases

Code changes from version 4.2 to 4.3

Files changed (2) hide show
  1. readme.txt +13 -10
  2. sitemap.php +15 -12
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Sitemap ===
2
  Contributors: webvitaly
3
- Donate link: http://web-profile.com.ua/donate/
4
  Tags: page, page-list, pagelist, sitemap, subpages, siblings
5
  Requires at least: 3.0
6
- Tested up to: 4.1
7
- Stable tag: 4.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
@@ -14,10 +14,11 @@ License URI: http://www.gnu.org/licenses/gpl.html
14
 
15
  **Code moved to [Page-list plugin](http://wordpress.org/plugins/page-list/)** Please, delete Sitemap plugin and install [Page-list plugin](http://wordpress.org/plugins/page-list/ "List of pages") instead. Don't be afraid, the functionality of these plugins is the same.
16
 
17
- > **[WordPress Pro plugins](http://codecanyon.net/popular_item/by_category?category=wordpress&ref=webvitaly)** |
18
- > **[Page-list](http://web-profile.com.ua/wordpress/plugins/page-list/ "Plugin page")** |
19
  > **[all Page-list params](http://wordpress.org/plugins/page-list/other_notes/)** |
20
- > **[Donate](http://web-profile.com.ua/donate/ "Support the development")**
 
21
 
22
  = shortcodes: =
23
 
@@ -33,9 +34,8 @@ License URI: http://www.gnu.org/licenses/gpl.html
33
  * **[all Page-list params](http://wordpress.org/plugins/page-list/other_notes/)**
34
 
35
  = Useful: =
36
- * ["Anti-spam" - block spam in comments](http://wordpress.org/plugins/anti-spam/ "no spam, no captcha")
37
- * ["Iframe" - embed iframe with shortcode](http://wordpress.org/plugins/iframe/ "embed iframe")
38
- * [WordPress Pro plugins](http://codecanyon.net/popular_item/by_category?category=wordpress&ref=webvitaly)
39
 
40
  == Other Notes ==
41
 
@@ -111,7 +111,7 @@ Shortcodes [pagelist], [subpages] and [siblings] accept the same parameters. The
111
  To create sitemap.xml you can use [Google XML Sitemaps](http://wordpress.org/plugins/google-sitemap-generator/) plugin.
112
 
113
  = Is there "more-link" feature in the plugin? =
114
- No, there is no "more-link" feature in the plugin. Because "[more-link](http://web-profile.com.ua/web/web-principles/more-link/)":
115
 
116
  * **bad for SEO.** Nobody will search your site with the word "more". "rel=nofollow" will not solve it too.
117
  * **bad for usability.** There is already link on title and "more-link" is an extra no needed element on page. If user cannot understand that the title is the link, than there is a problem in css styles and not in plugin's templates.
@@ -126,6 +126,9 @@ When you changed the plugin's code you should also change the plugin's version t
126
 
127
  == Changelog ==
128
 
 
 
 
129
  = 4.2 - 2013.02.16 =
130
  * fix in css styles (clearfix added to .page-list-ext)
131
  * make default image size 150x150 like default thumbnail size
1
  === Sitemap ===
2
  Contributors: webvitaly
3
+ Donate link: http://web-profile.net/donate/
4
  Tags: page, page-list, pagelist, sitemap, subpages, siblings
5
  Requires at least: 3.0
6
+ Tested up to: 5.0
7
+ Stable tag: 4.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
14
 
15
  **Code moved to [Page-list plugin](http://wordpress.org/plugins/page-list/)** Please, delete Sitemap plugin and install [Page-list plugin](http://wordpress.org/plugins/page-list/ "List of pages") instead. Don't be afraid, the functionality of these plugins is the same.
16
 
17
+ > **[Silver Bullet Pro](http://codecanyon.net/item/silver-bullet-pro/15171769?ref=webvitalii "Speedup and protect WordPress in a smart way")** |
18
+ > **[Page-list](http://web-profile.net/wordpress/plugins/page-list/ "Plugin page")** |
19
  > **[all Page-list params](http://wordpress.org/plugins/page-list/other_notes/)** |
20
+ > **[Donate](http://web-profile.net/donate/ "Support the development")** |
21
+ > **[GitHub](https://github.com/webvitalii/page-list "Fork")**
22
 
23
  = shortcodes: =
24
 
34
  * **[all Page-list params](http://wordpress.org/plugins/page-list/other_notes/)**
35
 
36
  = Useful: =
37
+ * **[Silver Bullet Pro - Speedup and protect WordPress in a smart way](http://codecanyon.net/item/silver-bullet-pro/15171769?ref=webvitalii "Speedup and protect WordPress in a smart way")**
38
+ * **[Anti-spam Pro - Block spam in comments](http://codecanyon.net/item/antispam-pro/6491169?ref=webvitalii "Block spam in comments")**
 
39
 
40
  == Other Notes ==
41
 
111
  To create sitemap.xml you can use [Google XML Sitemaps](http://wordpress.org/plugins/google-sitemap-generator/) plugin.
112
 
113
  = Is there "more-link" feature in the plugin? =
114
+ No, there is no "more-link" feature in the plugin. Because "[more-link](http://web-profile.net/web/web-principles/more-link/)":
115
 
116
  * **bad for SEO.** Nobody will search your site with the word "more". "rel=nofollow" will not solve it too.
117
  * **bad for usability.** There is already link on title and "more-link" is an extra no needed element on page. If user cannot understand that the title is the link, than there is a problem in css styles and not in plugin's templates.
126
 
127
  == Changelog ==
128
 
129
+ = 4.3 - 2015.01.15 =
130
+ * use wp_enqueue_scripts hook instead of wp_print_styles to enqueue scripts and styles (thanks to sireneweb)
131
+
132
  = 4.2 - 2013.02.16 =
133
  * fix in css styles (clearfix added to .page-list-ext)
134
  * make default image size 150x150 like default thumbnail size
sitemap.php CHANGED
@@ -3,21 +3,21 @@
3
  Plugin Name: Sitemap
4
  Plugin URI: http://wordpress.org/plugins/page-list/
5
  Description: [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes
6
- Version: 4.2
7
  Author: webvitaly
8
- Author URI: http://web-profile.com.ua/wordpress/plugins/
9
  License: GPLv3
10
  */
11
 
12
  if ( !function_exists('pagelist_unqprfx_add_stylesheet') ) {
13
  function pagelist_unqprfx_add_stylesheet() {
14
- wp_enqueue_style( 'page-list-style', plugins_url( '/css/page-list.css', __FILE__ ), false, '4.2', 'all' );
15
  }
16
- add_action('wp_print_styles', 'pagelist_unqprfx_add_stylesheet');
17
  }
18
 
19
 
20
- $pagelist_unqprfx_powered_line = "\n".'<!-- Page-list plugin v.4.2 wordpress.org/plugins/page-list/ -->'."\n";
21
 
22
 
23
  if ( !function_exists('pagelist_unqprfx_shortcode') ) {
@@ -515,14 +515,17 @@ if ( !function_exists('pagelist_unqprfx_get_first_image') ) {
515
  }
516
  }
517
 
518
- if ( !function_exists('pagelist_unqprfx_plugin_meta') ) {
519
- function pagelist_unqprfx_plugin_meta( $links, $file ) { // add 'Plugin page' and 'Donate' links to plugin meta row
520
- if ( strpos( $file, 'sitemap.php' ) !== false ) {
521
- $links = array_merge( $links, array( '<a href="http://web-profile.com.ua/wordpress/plugins/page-list/" title="Plugin page">Page-list</a>' ) );
522
- $links = array_merge( $links, array( '<a href="http://web-profile.com.ua/donate/" title="Support the development">Donate</a>' ) );
523
- $links = array_merge( $links, array( '<a href="http://codecanyon.net/popular_item/by_category?category=wordpress&ref=webvitaly">WordPress Pro plugins</a>' ) );
 
 
 
524
  }
525
- return $links;
526
  }
527
  add_filter( 'plugin_row_meta', 'pagelist_unqprfx_plugin_meta', 10, 2 );
528
  }
3
  Plugin Name: Sitemap
4
  Plugin URI: http://wordpress.org/plugins/page-list/
5
  Description: [pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes
6
+ Version: 4.3
7
  Author: webvitaly
8
+ Author URI: http://web-profile.net/wordpress/plugins/
9
  License: GPLv3
10
  */
11
 
12
  if ( !function_exists('pagelist_unqprfx_add_stylesheet') ) {
13
  function pagelist_unqprfx_add_stylesheet() {
14
+ wp_enqueue_style( 'page-list-style', plugins_url( '/css/page-list.css', __FILE__ ), false, '4.3', 'all' );
15
  }
16
+ add_action('wp_enqueue_scripts', 'pagelist_unqprfx_add_stylesheet');
17
  }
18
 
19
 
20
+ $pagelist_unqprfx_powered_line = "\n".'<!-- Page-list plugin v.4.3 wordpress.org/plugins/page-list/ -->'."\n";
21
 
22
 
23
  if ( !function_exists('pagelist_unqprfx_shortcode') ) {
515
  }
516
  }
517
 
518
+ if ( ! function_exists('pagelist_unqprfx_plugin_meta') ) {
519
+ function pagelist_unqprfx_plugin_meta( $links, $file ) { // add links to plugin meta row
520
+ if ( $file == plugin_basename( __FILE__ ) ) {
521
+ $row_meta = array(
522
+ 'support' => '<a href="http://web-profile.net/wordpress/plugins/page-list/" target="_blank"><span class="dashicons dashicons-editor-help"></span> Page-list</a>',
523
+ 'donate' => '<a href="http://web-profile.net/donate/" target="_blank"><span class="dashicons dashicons-heart"></span> Donate</a>',
524
+ 'pro' => '<a href="http://codecanyon.net/item/silver-bullet-pro/15171769?ref=webvitalii" target="_blank" title="Speedup and protect WordPress in a smart way"><span class="dashicons dashicons-star-filled"></span> ' . __( 'Silver Bullet Pro', 'page-list' ) . '</a>'
525
+ );
526
+ $links = array_merge( $links, $row_meta );
527
  }
528
+ return (array) $links;
529
  }
530
  add_filter( 'plugin_row_meta', 'pagelist_unqprfx_plugin_meta', 10, 2 );
531
  }