Version Description
April 26, 2019 =
Updated settings page styles.
Download this release
Release Info
Developer | dgwyer |
Plugin | Simple Sitemap – Automatically Generate a Responsive Sitemap |
Version | 3.0 |
Comparing to | |
See all releases |
Code changes from version 2.9 to 3.0
- classes/simple-sitemap-links.php +25 -1
- classes/simple-sitemap-settings.php +5 -5
- readme.txt +6 -1
- simple-sitemap.php +1 -1
classes/simple-sitemap-links.php
CHANGED
@@ -14,9 +14,33 @@ 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 |
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
// Display a Settings link on the main Plugins page
|
22 |
public function plugin_action_links( $links, $file ) {
|
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 |
+
// redirect user to plugin settings page when plugin activated manually
|
19 |
+
register_activation_hook( $this->module_roots['file'], array( $this, 'set_redirect_transient' ) );
|
20 |
+
add_action( 'admin_init', array( &$this, 'redirect_settings_page' ) );
|
21 |
+
}
|
22 |
+
|
23 |
+
/* Runs only when the plugin is activated. */
|
24 |
+
public function set_redirect_transient() {
|
25 |
+
set_transient( 'simple-sitemap-redirect', true, 60 );
|
26 |
}
|
27 |
|
28 |
+
/**
|
29 |
+
* Redirect automatically to plugin settings page
|
30 |
+
*/
|
31 |
+
public function redirect_settings_page() {
|
32 |
+
// only do this if the user can activate plugins
|
33 |
+
if ( ! current_user_can( 'manage_options' ) )
|
34 |
+
return;
|
35 |
+
|
36 |
+
// don't do anything if the transient isn't set
|
37 |
+
if ( ! get_transient( 'simple-sitemap-redirect' ) )
|
38 |
+
return;
|
39 |
+
|
40 |
+
delete_transient( 'simple-sitemap-redirect' );
|
41 |
+
wp_safe_redirect( admin_url( 'options-general.php?page=simple-sitemap%2Fclasses%2Fsimple-sitemap-settings.php') );
|
42 |
+
exit;
|
43 |
+
}
|
44 |
|
45 |
// Display a Settings link on the main Plugins page
|
46 |
public function plugin_action_links( $links, $file ) {
|
classes/simple-sitemap-settings.php
CHANGED
@@ -51,7 +51,7 @@ class WPGO_Simple_Sitemap_Settings {
|
|
51 |
|
52 |
<h2 style="margin:25px 0 0 0;">Sitemap Shortcodes & Attributes</h2>
|
53 |
<div class="ss-box" style="margin-top:30px;">
|
54 |
-
<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>
|
55 |
|
56 |
<div id="shortcodes-wrap">
|
57 |
<p style="margin:15px 0 0 0;"><code>[simple-sitemap]</code> <?php printf( __( 'Display a list of posts for one or more post types.<br><br>', 'simple-sitemap' ) ); ?>
|
@@ -73,7 +73,7 @@ class WPGO_Simple_Sitemap_Settings {
|
|
73 |
<?php $pro_attribute = '<span class="pro" title="Shortcode attribute available in Simple Sitemap Pro"><a href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank">PRO</a></span>'; ?>
|
74 |
|
75 |
<div class="ss-box">
|
76 |
-
<h4 style="margin-top:5px;display:inline-block;">Shortcode Attributes & Default Values</h4><button id="attributes-btn" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
|
77 |
<div id="attributes-wrap">
|
78 |
<p>Note: Default values are always used for missing shortcode attributes. i.e. Override only the values you want to change.</p>
|
79 |
<p style="margin:20px 0 0 0;"><code><b>[simple-sitemap ... ]</b></code></p>
|
@@ -163,12 +163,12 @@ class WPGO_Simple_Sitemap_Settings {
|
|
163 |
<th scope="row">Help support this plugin</th>
|
164 |
<td>
|
165 |
<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>
|
166 |
-
<p style="margin-top:0;">Hi there, I'm David. I spend a lot of time developing FREE WordPress plugins like this one. If you like Simple Sitemap and use it on your website please 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>
|
167 |
</td>
|
168 |
</tr>
|
169 |
|
170 |
<tr valign="top">
|
171 |
-
<th scope="row">
|
172 |
<td>
|
173 |
<table class="other-plugins-tbl">
|
174 |
<tr><td><a class="plugin-image-link" href="https://wpgoplugins.com/plugins/flexible-faqs/" target="_blank"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/flexible-faq-thumb.png"></a></td></tr>
|
@@ -189,7 +189,7 @@ class WPGO_Simple_Sitemap_Settings {
|
|
189 |
<th scope="row">Read all about it!</th>
|
190 |
<td>
|
191 |
<p>Subscribe to our newsletter for news and updates about the latest development work. Be the first to find out about future projects and exclusive promotions.</p>
|
192 |
-
<div><a class="plugin-btn" target="_blank" href="http://eepurl.com/bXZmmD">
|
193 |
</td>
|
194 |
</tr>
|
195 |
|
51 |
|
52 |
<h2 style="margin:25px 0 0 0;">Sitemap Shortcodes & Attributes</h2>
|
53 |
<div class="ss-box" style="margin-top:30px;">
|
54 |
+
<h4 style="margin-top:5px;display:inline-block;margin-bottom:10px;">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>
|
55 |
|
56 |
<div id="shortcodes-wrap">
|
57 |
<p style="margin:15px 0 0 0;"><code>[simple-sitemap]</code> <?php printf( __( 'Display a list of posts for one or more post types.<br><br>', 'simple-sitemap' ) ); ?>
|
73 |
<?php $pro_attribute = '<span class="pro" title="Shortcode attribute available in Simple Sitemap Pro"><a href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank">PRO</a></span>'; ?>
|
74 |
|
75 |
<div class="ss-box">
|
76 |
+
<h4 style="margin-top:5px;display:inline-block;margin-bottom:10px;">Shortcode Attributes & Default Values</h4><button id="attributes-btn" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
|
77 |
<div id="attributes-wrap">
|
78 |
<p>Note: Default values are always used for missing shortcode attributes. i.e. Override only the values you want to change.</p>
|
79 |
<p style="margin:20px 0 0 0;"><code><b>[simple-sitemap ... ]</b></code></p>
|
163 |
<th scope="row">Help support this plugin</th>
|
164 |
<td>
|
165 |
<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>
|
166 |
+
<p style="margin-top:0;">Hi there, I'm David. I spend a lot of time developing FREE WordPress plugins like this one. If you like Simple Sitemap and use it on your website please 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>
|
167 |
</td>
|
168 |
</tr>
|
169 |
|
170 |
<tr valign="top">
|
171 |
+
<th scope="row">Try our other top plugins!</th>
|
172 |
<td>
|
173 |
<table class="other-plugins-tbl">
|
174 |
<tr><td><a class="plugin-image-link" href="https://wpgoplugins.com/plugins/flexible-faqs/" target="_blank"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/flexible-faq-thumb.png"></a></td></tr>
|
189 |
<th scope="row">Read all about it!</th>
|
190 |
<td>
|
191 |
<p>Subscribe to our newsletter for news and updates about the latest development work. Be the first to find out about future projects and exclusive promotions.</p>
|
192 |
+
<div><a class="plugin-btn" target="_blank" href="http://eepurl.com/bXZmmD">Sign Me Up!</a></div>
|
193 |
</td>
|
194 |
</tr>
|
195 |
|
readme.txt
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
=== Simple Sitemap - Create a Responsive HTML Sitemap ===
|
2 |
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: 5.1
|
6 |
-
Stable tag:
|
7 |
|
8 |
The most popular HTML sitemap available for WordPress! No setup required. Flexible customization options available.
|
9 |
|
@@ -81,6 +82,10 @@ No. This plugin is for generating a HTML sitemap only.
|
|
81 |
|
82 |
== Changelog ==
|
83 |
|
|
|
|
|
|
|
|
|
84 |
= 2.9 - April 2, 2019 =
|
85 |
|
86 |
* Updated settings page info.
|
1 |
=== Simple Sitemap - Create a Responsive HTML Sitemap ===
|
2 |
Contributors: dgwyer, wpgoplugins
|
3 |
+
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FBAG4ZHA4TTUC
|
4 |
Tags: seo sitemap, html, sitemap, html sitemap, seo, global, sort, shortcode, pages, posts, custom post types, post types, responsive, responsive sitemap
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 5.1
|
7 |
+
Stable tag: 3.0
|
8 |
|
9 |
The most popular HTML sitemap available for WordPress! No setup required. Flexible customization options available.
|
10 |
|
82 |
|
83 |
== Changelog ==
|
84 |
|
85 |
+
= 3.0 - April 26, 2019 =
|
86 |
+
|
87 |
+
* Updated settings page styles.
|
88 |
+
|
89 |
= 2.9 - April 2, 2019 =
|
90 |
|
91 |
* Updated settings page info.
|
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:
|
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: 3.0
|
7 |
Author: David Gwyer
|
8 |
Author URI: http://www.wpgoplugins.com
|
9 |
Text Domain: simple-sitemap
|