Simple Sitemap – Automatically Generate a Responsive Sitemap - Version 2.7

Version Description

  • March 6, 2019 =

  • Added link to sitemap plugin settings page directly from main plugin index page.

  • Removed redundant .bak file.

  • Plugin settings page information updated.

  • Removed redirect to settings page after activation.

  • Removed admin notice popup displayed after activation.

Download this release

Release Info

Developer dgwyer
Plugin Icon Simple Sitemap – Automatically Generate a Responsive Sitemap
Version 2.7
Comparing to
See all releases

Code changes from version 2.6 to 2.7

classes/simple-sitemap-links.php CHANGED
@@ -14,67 +14,9 @@ class WPGO_Simple_Sitemap_Links {
14
 
15
  add_filter( 'plugin_row_meta', array( &$this, 'plugin_action_links' ), 10, 2 );
16
  add_filter( 'plugin_action_links', array( &$this, 'plugin_settings_link' ), 10, 2 );
17
-
18
- // display dismissible admin notice when user updates plugin to new version
19
- add_action( 'admin_init', array( &$this, 'register_admin_notice' ) );
20
- add_action( 'admin_notices', array( &$this, 'admin_notice' ) );
21
-
22
- // redirect user to plugin settings page when plugin activated manually
23
- register_activation_hook( $this->module_roots['file'], array( $this, 'set_redirect_transient' ) );
24
- add_action( 'admin_init', array( &$this, 'redirect_settings_page' ) );
25
- }
26
-
27
- /**
28
- * Setup transient for admin notice to be displayed
29
- */
30
- public function register_admin_notice() {
31
-
32
- $plugin_data = get_plugin_data( $this->module_roots['file'], false, false );
33
- $current_version = $plugin_data['Version'];
34
- $version = get_option('ss_plugin_version');
35
-
36
- // Perform tasks after plugin updated
37
- if ($version != $current_version) {
38
- update_option('ss_plugin_version', $current_version);
39
- set_transient( 'simple-sitemap-admin-notice', true, 60 );
40
- }
41
- }
42
-
43
- /* Admin Notice first time plugin is activated. */
44
- public function admin_notice(){
45
-
46
- /* Only display admin notice if transient exists */
47
- if( get_transient( 'simple-sitemap-admin-notice' ) ){
48
- ?>
49
- <div class="updated notice is-dismissible">
50
- <p>*NEW* Simple Sitemap live demo gallery added to plugin <a href="<?php echo get_admin_url() . 'options-general.php?page=simple-sitemap/classes/simple-sitemap-settings.php'; ?>"><strong>settings</strong></a> page. What sitemap will you create today?</p>
51
- </div>
52
- <?php
53
- delete_transient( 'simple-sitemap-admin-notice' );
54
- }
55
- }
56
-
57
- /* Runs only when the plugin is activated. */
58
- public function set_redirect_transient() {
59
- set_transient( 'simple-sitemap-redirect', true, 60 );
60
  }
61
 
62
- /**
63
- * Redirect automatically to plugin settings page
64
- */
65
- public function redirect_settings_page() {
66
- // only do this if the user can activate plugins
67
- if ( ! current_user_can( 'manage_options' ) )
68
- return;
69
-
70
- // don't do anything if the transient isn't set
71
- if ( ! get_transient( 'simple-sitemap-redirect' ) )
72
- return;
73
-
74
- delete_transient( 'simple-sitemap-redirect' );
75
- wp_safe_redirect( admin_url( 'options-general.php?page=simple-sitemap%2Fclasses%2Fsimple-sitemap-settings.php') );
76
- exit;
77
- }
78
 
79
  // Display a Settings link on the main Plugins page
80
  public function plugin_action_links( $links, $file ) {
@@ -84,6 +26,11 @@ class WPGO_Simple_Sitemap_Links {
84
  //$links[] = '<a style="color:limegreen;" href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank" title="Upgrade to Pro - 100% money back guarantee"><span class="dashicons dashicons-awards"></span></a>';
85
  //}
86
 
 
 
 
 
 
87
  return $links;
88
  }
89
 
@@ -95,11 +42,6 @@ class WPGO_Simple_Sitemap_Links {
95
  array_unshift( $links, $pccf_links );
96
  }
97
 
98
- if ( $file == 'simple-sitemap/simple-sitemap.php') {
99
- $pccf_links = '<a style="color:#60a559;" href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank" title="Upgrade for more features"><b>Upgrade</b></a>';
100
- array_push( $links, $pccf_links );
101
- }
102
-
103
  return $links;
104
  }
105
 
14
 
15
  add_filter( 'plugin_row_meta', array( &$this, 'plugin_action_links' ), 10, 2 );
16
  add_filter( 'plugin_action_links', array( &$this, 'plugin_settings_link' ), 10, 2 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  }
18
 
19
+ // update_option('ss_plugin_version', $current_version);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  // Display a Settings link on the main Plugins page
22
  public function plugin_action_links( $links, $file ) {
26
  //$links[] = '<a style="color:limegreen;" href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank" title="Upgrade to Pro - 100% money back guarantee"><span class="dashicons dashicons-awards"></span></a>';
27
  //}
28
 
29
+ if ( $file == 'simple-sitemap/simple-sitemap.php') {
30
+ $pccf_links = '<a href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank" title="More sitemap features"><b>More features</b></a>';
31
+ array_push( $links, $pccf_links );
32
+ }
33
+
34
  return $links;
35
  }
36
 
42
  array_unshift( $links, $pccf_links );
43
  }
44
 
 
 
 
 
 
45
  return $links;
46
  }
47
 
classes/simple-sitemap-links.php.bak DELETED
@@ -1,109 +0,0 @@
1
- <?php
2
- /*
3
- * Main WordPress plugin index page links and admin notices
4
- */
5
-
6
- class WPGO_Simple_Sitemap_Links {
7
-
8
- protected $module_roots;
9
-
10
- /* Main class constructor. */
11
- public function __construct($module_roots) {
12
-
13
- $this->module_roots = $module_roots;
14
-
15
- add_filter( 'plugin_row_meta', array( &$this, 'plugin_action_links' ), 10, 2 );
16
- add_filter( 'plugin_action_links', array( &$this, 'plugin_settings_link' ), 10, 2 );
17
-
18
- // display dismissible admin notice when user updates plugin to new version
19
- add_action( 'admin_init', array( &$this, 'register_admin_notice' ) );
20
- add_action( 'admin_notices', array( &$this, 'admin_notice' ) );
21
-
22
- // redirect user to plugin settings page when plugin activated manually
23
- register_activation_hook( $this->module_roots['file'], array( $this, 'set_redirect_transient' ) );
24
- add_action( 'admin_init', array( &$this, 'redirect_settings_page' ) );
25
- }
26
-
27
- /**
28
- * Setup transient for admin notice to be displayed
29
- */
30
- public function register_admin_notice() {
31
-
32
- $plugin_data = get_plugin_data( $this->module_roots['file'], false, false );
33
- $current_version = $plugin_data['Version'];
34
- $version = get_option('ss_plugin_version');
35
-
36
- // Perform tasks after plugin updated
37
- if ($version != $current_version) {
38
- update_option('ss_plugin_version', $current_version);
39
- set_transient( 'simple-sitemap-admin-notice', true, 60 );
40
- }
41
- }
42
-
43
- /* Admin Notice first time plugin is activated. */
44
- public function admin_notice(){
45
-
46
- /* Only display admin notice if transient exists */
47
- if( get_transient( 'simple-sitemap-admin-notice' ) ){
48
- ?>
49
- <div class="updated notice is-dismissible">
50
- <p>*NEW* Simple Sitemap live demo gallery added to plugin <a href="<?php echo get_admin_url() . 'options-general.php?page=simple-sitemap/classes/simple-sitemap-settings.php'; ?>"><strong>settings</strong></a> page. What sitemap will you create today?</p>
51
- </div>
52
- <?php
53
- delete_transient( 'simple-sitemap-admin-notice' );
54
- }
55
- }
56
-
57
- /* Runs only when the plugin is activated. */
58
- public function set_redirect_transient() {
59
- set_transient( 'simple-sitemap-redirect', true, 60 );
60
- }
61
-
62
- /**
63
- * Redirect automatically to plugin settings page
64
- */
65
- public function redirect_settings_page() {
66
- // only do this if the user can activate plugins
67
- if ( ! current_user_can( 'manage_options' ) )
68
- return;
69
-
70
- // don't do anything if the transient isn't set
71
- if ( ! get_transient( 'simple-sitemap-redirect' ) )
72
- return;
73
-
74
- delete_transient( 'simple-sitemap-redirect' );
75
- wp_safe_redirect( admin_url( 'options-general.php?page=simple-sitemap%2Fclasses%2Fsimple-sitemap-settings.php') );
76
- exit;
77
- }
78
-
79
- // Display a Settings link on the main Plugins page
80
- public function plugin_action_links( $links, $file ) {
81
-
82
- //if ( $file == plugin_basename( __FILE__ ) ) {
83
- // add a link to pro plugin
84
- //$links[] = '<a style="color:limegreen;" href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank" title="Upgrade to Pro - 100% money back guarantee"><span class="dashicons dashicons-awards"></span></a>';
85
- //}
86
-
87
- return $links;
88
- }
89
-
90
- // Display a Settings link on the main Plugins page
91
- public function plugin_settings_link( $links, $file ) {
92
-
93
- if ( $file == 'simple-sitemap/simple-sitemap.php') {
94
- $pccf_links = '<a href="' . get_admin_url() . 'options-general.php?page=simple-sitemap/classes/simple-sitemap-settings.php">' . __( 'Get Started' ) . '</a>';
95
- array_unshift( $links, $pccf_links );
96
-
97
- if ( $file == 'simple-sitemap/simple-sitemap.php') {
98
- $pccf_links = '<a style="color:#60a559;" href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank" title="Try Simple Sitemap Pro today for just $29 - 100% money back guarantee"><b>More Features</b></a>';
99
- array_push( $links, $pccf_links );
100
- }
101
-
102
- //$pccf_links = '<a style="color:#60a559;" href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank" title="Try Simple Sitemap Pro today - 100% money back guarantee"><b>Upgrade to Pro</b></a>';
103
- //array_push( $links, $pccf_links );
104
- }
105
-
106
- return $links;
107
- }
108
-
109
- } /* End class definition */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
classes/simple-sitemap-settings.php CHANGED
@@ -41,17 +41,17 @@ class WPGO_Simple_Sitemap_Settings {
41
  <div class="wrap">
42
 
43
  <h2 style="float:left;"><?php _e( 'Welcome to Simple Sitemap!', 'simple-sitemap' ); ?></h2>
44
- <div style="float:right;margin-top:5px;padding:10px 12px;background: #39314c;border-radius: 6px;"><a style="display: block;line-height:0;" target="_blank" title="Check out our other plugins!" alt="WPGO Plugins Site" href="https://wpgoplugins.com/"><img style="width: 175px;" src="<?php echo plugins_url(); ?>/simple-sitemap/images/wpgo_plugins_logo.png"></a></div>
45
 
46
  <div style="clear:both;"></div>
47
 
48
- <div style="margin-top:30px;font-size:18px;line-height:1.4em;">What sitemap will you create today? There are plenty of different types of sitemap to choose from. Checkout the live demo to view the gallery of sitemap examples!</div>
49
 
50
- <div style="margin:15px 0 30px 0;width:150px;font-size: 18px;background: #279a97bf;border: 2px #237976a1 solid;border-radius: 2px;"><a style="color: #fff;text-decoration: none;padding: 7px 10px;display: inline-block;" href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/">LAUNCH DEMO</a></div>
51
 
52
- <hr>
53
 
54
- <h2 style="margin:25px 0 0 0;">Documentation</h2>
55
  <div class="ss-box" style="margin-top:30px;">
56
  <h4 style="margin-top:5px;display:inline-block;">Available Shortcodes</h4><button id="shortcodes-btn" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
57
 
@@ -139,9 +139,7 @@ class WPGO_Simple_Sitemap_Settings {
139
  </div>
140
  </div>
141
 
142
- <div style="margin-top:30px;"></div>
143
-
144
- <hr>
145
 
146
  <table class="form-table">
147
 
@@ -149,23 +147,23 @@ class WPGO_Simple_Sitemap_Settings {
149
  <th scope="row">Like the plugin?</th>
150
  <td>
151
  <p>Then why not try Simple Sitemap Pro to access powerful additional features. Try risk free today with our <span style="font-weight: bold;">100% money back guarantee!</span></p>
152
- <div style="margin-top:10px;"><input class="button" type="button" value="Upgrade to Pro" onClick="window.open('https://wpgoplugins.com/plugins/simple-sitemap-pro/')"></div>
153
  </td>
154
  </tr>
155
 
156
  <tr valign="top">
157
- <th scope="row">Buy me a coffee?</th>
158
  <td>
159
- <div style="float:left;"><a style="margin-right:10px;line-height:0;display:block;" href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank"><img style="width:75px;border-radius: 4px;border: 1px #b3bfcc solid;" src="<?php echo plugins_url(); ?>/simple-sitemap/images/david.jpg"></a></div>
160
- <p style="margin-top:0;">Hi there, I'm David. I spend most of my time developing FREE WordPress plugins like this one!<br><br>If you like Simple Sitemap and use it on your website <b><em>please</em></b> consider making a <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FBAG4ZHA4TTUC" target="_blank">donation</a>, or purchase the <a href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank">pro version</a>, to help fund continued development.<br><br>Thanks for your support!<span style="margin-left:5px;" class="dashicons dashicons-smiley"></span></p>
161
  </td>
162
  </tr>
163
 
164
  <tr valign="top">
165
  <th scope="row">Read all about it!</th>
166
  <td>
167
- <p>Signup to our plugin newsletter for news and updates about our latest work, and what's coming.</p>
168
- <div style="margin-top:10px;"><input class="button" type="button" value="Subscribe here..." onClick="window.open('http://eepurl.com/bXZmmD')"></div>
169
  </td>
170
  </tr>
171
 
41
  <div class="wrap">
42
 
43
  <h2 style="float:left;"><?php _e( 'Welcome to Simple Sitemap!', 'simple-sitemap' ); ?></h2>
44
+ <div style="float:right;margin-top:5px;padding:10px 12px;"><a style="text-decoration:none;" target="_blank" title="Check out some of our other plugins" alt="WPGO Plugins Site" href="https://wpgoplugins.com/">wpgoplugins.com</a></div>
45
 
46
  <div style="clear:both;"></div>
47
 
48
+ <div style="margin-top:30px;font-size:18px;line-height:1.4em;">What type of sitemap will you create today?</div>
49
 
50
+ <div style="margin-top:10px;font-size:18px;line-height:1.4em;">There are just so many settings and sitemap shortcodes to choose from. That's why we recommend checking out the live demo page to start with to see all the different types of sitemap available!</div>
51
 
52
+ <div style="margin:15px 0 30px 0;width:175px;font-size: 16px;background: #279a97bf;border: 2px #237976a1 solid;border-radius: 2px;"><a style="color: #fff;text-decoration: none;padding: 7px 7px;display: inline-block;" href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/">Launch Sitemap Demo</a></div>
53
 
54
+ <h2 style="margin:25px 0 0 0;">Sitemap Shortcodes & Attributes</h2>
55
  <div class="ss-box" style="margin-top:30px;">
56
  <h4 style="margin-top:5px;display:inline-block;">Available Shortcodes</h4><button id="shortcodes-btn" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
57
 
139
  </div>
140
  </div>
141
 
142
+ <div style="margin-top:15px;"></div>
 
 
143
 
144
  <table class="form-table">
145
 
147
  <th scope="row">Like the plugin?</th>
148
  <td>
149
  <p>Then why not try Simple Sitemap Pro to access powerful additional features. Try risk free today with our <span style="font-weight: bold;">100% money back guarantee!</span></p>
150
+ <div style="margin:15px 0 0 0;width:110px;font-size:14px;background: #279a97bf;border:2px #237976a1 solid;border-radius: 2px;"><a target="_blank" style="color: #fff;text-decoration: none;padding: 5px 7px;display: inline-block;" href="https://wpgoplugins.com/plugins/simple-sitemap-pro/">Upgrade to Pro</a></div>
151
  </td>
152
  </tr>
153
 
154
  <tr valign="top">
155
+ <th scope="row">Keep this plugin free!</th>
156
  <td>
157
+ <div style="float:left;"><a style="margin-right:10px;line-height:0;display:block;" href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank"><img style="box-shadow:0 10px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);width:75px;border-radius:2px;border:2px white solid;" src="<?php echo plugins_url(); ?>/simple-sitemap/images/david.png"></a></div>
158
+ <p style="margin-top:0;">Hi there, I'm David. I spend a lot of my time developing FREE WordPress plugins like this one. If you like Simple Sitemap and use it on your website <em>please</em> consider making a <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FBAG4ZHA4TTUC" target="_blank">donation</a>, or purchase the <a href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank">pro version</a>, to help fund continued development (and to keep Dexter in doggy biscuits!).</p>
159
  </td>
160
  </tr>
161
 
162
  <tr valign="top">
163
  <th scope="row">Read all about it!</th>
164
  <td>
165
+ <p>Signup to our plugin newsletter for news and updates about my latest plugins, and be the first to find out about future projects.</p>
166
+ <div style="margin:15px 0 0 0;width:162px;font-size:14px;background: #279a97bf;border: 2px #237976a1 solid;border-radius: 2px;"><a target="_blank" style="color: #fff;text-decoration: none;padding: 6px 7px;display: inline-block;" href="http://eepurl.com/bXZmmD">Subscribe to Newsletter</a></div>
167
  </td>
168
  </tr>
169
 
images/david.jpg DELETED
Binary file
images/david.png ADDED
Binary file
images/wpgo_plugins_logo.png DELETED
Binary file
readme.txt CHANGED
@@ -3,15 +3,17 @@ Contributors: dgwyer, wpgoplugins
3
  Tags: seo sitemap, html, sitemap, html sitemap, seo, global, sort, shortcode, pages, posts, custom post types, post types, responsive, responsive sitemap
4
  Requires at least: 3.0
5
  Tested up to: 4.9.8
6
- Stable tag: 2.6
7
 
8
- The best HTML5 sitemap available for WordPress! No setup required. Flexible customization options available.
9
 
10
  == Description ==
11
 
 
 
12
  Simple Sitemap helps improve your SEO ranking by automatically generating a HTML sitemap of all your content! There are flexible options to include only the content you want to include on your sitemap, and to format output.
13
 
14
- It takes just seconds to add a sitemap to your website. Simply include the <code>[simple-sitemap]</code> on a page to display a dynamically generated sitemap. It's that easy!
15
 
16
  Whatever your requirements, Simple Sitemap has you covered.
17
 
@@ -76,19 +78,27 @@ No. This plugin is for generating an HTML sitemap only.
76
 
77
  == Changelog ==
78
 
79
- = 2.6, September 21, 2018 =
 
 
 
 
 
 
 
 
80
 
81
  * Fixed bug with [simple-sitemap-group] shortcode. Was previously buffering output twice causing display issues.
82
 
83
- = 2.5, JUNE 19, 2018 =
84
 
85
  * Settings page updated.
86
 
87
- = 2.4, OCTOBER 9, 2017 =
88
 
89
  * Added live sitemap demo gallery on plugin settings page.
90
 
91
- = 2.3, SEPTEMBER 25, 2017 =
92
 
93
  * New 'container_tag' shortcode attribute added to all shortcodes to output the sitemap as an ordered list, or unordered list. See plugin settings page for more information.
94
  * Updated plugin readme.txt.
3
  Tags: seo sitemap, html, sitemap, html sitemap, seo, global, sort, shortcode, pages, posts, custom post types, post types, responsive, responsive sitemap
4
  Requires at least: 3.0
5
  Tested up to: 4.9.8
6
+ Stable tag: 2.7
7
 
8
+ The most popular HTML sitemap available for WordPress! No setup required. Flexible customization options available.
9
 
10
  == Description ==
11
 
12
+ The most popular HTML sitemap available for WordPress!
13
+
14
  Simple Sitemap helps improve your SEO ranking by automatically generating a HTML sitemap of all your content! There are flexible options to include only the content you want to include on your sitemap, and to format output.
15
 
16
+ Absolutely no setup steps needed. It takes just seconds to add a sitemap to your website. Simply include the <code>[simple-sitemap]</code> on a page to display a dynamically generated sitemap. It's that easy!
17
 
18
  Whatever your requirements, Simple Sitemap has you covered.
19
 
78
 
79
  == Changelog ==
80
 
81
+ = 2.7 - March 6, 2019 =
82
+
83
+ * Added link to sitemap plugin settings page directly from main plugin index page.
84
+ * Removed redundant .bak file.
85
+ * Plugin settings page information updated.
86
+ * Removed redirect to settings page after activation.
87
+ * Removed admin notice popup displayed after activation.
88
+
89
+ = 2.6 - September 21, 2018 =
90
 
91
  * Fixed bug with [simple-sitemap-group] shortcode. Was previously buffering output twice causing display issues.
92
 
93
+ = 2.5 - JUNE 19, 2018 =
94
 
95
  * Settings page updated.
96
 
97
+ = 2.4 - OCTOBER 9, 2017 =
98
 
99
  * Added live sitemap demo gallery on plugin settings page.
100
 
101
+ = 2.3 - SEPTEMBER 25, 2017 =
102
 
103
  * New 'container_tag' shortcode attribute added to all shortcodes to output the sitemap as an ordered list, or unordered list. See plugin settings page for more information.
104
  * Updated plugin readme.txt.
simple-sitemap.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Simple Sitemap
4
  Plugin URI: http://wordpress.org/plugins/simple-sitemap/
5
  Description: HTML sitemap to display content as a single linked list of posts, pages, or custom post types. You can even display posts in groups sorted by taxonomy!
6
- Version: 2.6
7
  Author: David Gwyer
8
  Author URI: http://www.wpgoplugins.com
9
  Text Domain: simple-sitemap
3
  Plugin Name: Simple Sitemap
4
  Plugin URI: http://wordpress.org/plugins/simple-sitemap/
5
  Description: HTML sitemap to display content as a single linked list of posts, pages, or custom post types. You can even display posts in groups sorted by taxonomy!
6
+ Version: 2.7
7
  Author: David Gwyer
8
  Author URI: http://www.wpgoplugins.com
9
  Text Domain: simple-sitemap