Version Description
Download this release
Release Info
Developer | dgwyer |
Plugin | Simple Sitemap – Automatically Generate a Responsive Sitemap |
Version | 2.5 |
Comparing to | |
See all releases |
Code changes from version 2.4 to 2.5
- classes/simple-sitemap-links.php +2 -5
- classes/simple-sitemap-links.php.bak +109 -0
- classes/simple-sitemap-settings.php +3 -27
- images/advanced-tabbed-sitemap.png +0 -0
- images/basic-tabbed-sitemap.png +0 -0
- images/column-layout.png +0 -0
- images/horizontal-sitemap.png +0 -0
- images/list-post-by-taxonomy.png +0 -0
- images/nofollow-sitemap-links.png +0 -0
- images/posts-by-category.png +0 -0
- images/sitemap-with-excerpt.png +0 -0
- images/standard-sitemap.png +0 -0
- images/wpgo_plugins_logo.png +0 -0
- readme.txt +7 -3
- simple-sitemap.php +1 -1
classes/simple-sitemap-links.php
CHANGED
@@ -93,16 +93,13 @@ class WPGO_Simple_Sitemap_Links {
|
|
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="
|
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 |
|
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 |
|
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 |
|
classes/simple-sitemap-links.php.bak
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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,37 +41,13 @@ 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;padding:
|
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
|
49 |
|
50 |
-
<div
|
51 |
-
|
52 |
-
<div><h5><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/standard-sitemap-demo/">Standard Sitemap</a></h5><div><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/standard-sitemap-demo/"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/standard-sitemap.png" alt="" width="325" height="270" class="alignnone size-full" /></a></div></div>
|
53 |
-
|
54 |
-
<div><h5><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/sitemap-with-excerpt/">Sitemap with Excerpt</a></h5><div><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/sitemap-with-excerpt/"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/sitemap-with-excerpt.png" alt="" width="325" height="270" class="alignnone size-full" /></a></div></div>
|
55 |
-
|
56 |
-
<div><h5><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/column-layout/">Column Layout</a></h5><div><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/column-layout/"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/column-layout.png" alt="" width="325" height="270" class="alignnone size-full" /></a></div></div>
|
57 |
-
|
58 |
-
<div><h5><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/list-posts-by-category/">List Posts by Category</a></h5><div><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/list-posts-by-category/"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/posts-by-category.png" alt="" width="325" height="270" class="alignnone size-full" /></a></div></div>
|
59 |
-
|
60 |
-
<div><h5><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/nofollow-sitemap-links/">Nofollow Sitemap Links</a></h5><div><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/nofollow-sitemap-links/"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/nofollow-sitemap-links.png" alt="" width="325" height="270" class="alignnone size-full" /></a></div></div>
|
61 |
-
|
62 |
-
<div><h5><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/basic-tabbed-sitemap-demo/">Basic Tabbed Sitemap</a></h5><div><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/basic-tabbed-sitemap-demo/"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/basic-tabbed-sitemap.png" alt="" width="325" height="270" class="alignnone size-full" /></a></div></div>
|
63 |
-
|
64 |
-
<div><h5><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/basic-tabbed-sitemap-demo/">Advanced Tabbed Sitemap</a></h5><div><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/advanced-tabbed-sitemap/"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/advanced-tabbed-sitemap.png" alt="" width="325" height="270" class="alignnone size-full" /></a></div></div>
|
65 |
-
|
66 |
-
<div><h5><a href="http://demo.wpgothemes.com/flexr/horizontal-sitemap/">Horizontal Sitemap</a></h5><div><a href="http://demo.wpgothemes.com/flexr/horizontal-sitemap/"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/horizontal-sitemap.png" alt="" width="325" height="270" class="alignnone size-full" /></a></div></div>
|
67 |
-
|
68 |
-
<div><h5><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/list-posts-by-taxonomy/">List Posts by Taxonomy</a></h5><div><a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/list-posts-by-taxonomy/"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/list-post-by-taxonomy.png" alt="" width="325" height="270" class="alignnone size-full" /></a></div></div>
|
69 |
-
|
70 |
-
<div style="width:100%;display:flex;align-items:center;justify-content:space-between;">
|
71 |
-
<h3 style="color:#3c8f8c;font-style:italic;">More live demos coming soon...</h3>
|
72 |
-
<div><a style="line-height:normal;display:inline;text-decoration:none;" href="https://wpgoplugins.com/contact/" target="_blank">Suggest a demo</a></div>
|
73 |
-
</div>
|
74 |
-
</div>
|
75 |
|
76 |
<hr>
|
77 |
|
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 |
|
images/advanced-tabbed-sitemap.png
DELETED
Binary file
|
images/basic-tabbed-sitemap.png
DELETED
Binary file
|
images/column-layout.png
DELETED
Binary file
|
images/horizontal-sitemap.png
DELETED
Binary file
|
images/list-post-by-taxonomy.png
DELETED
Binary file
|
images/nofollow-sitemap-links.png
DELETED
Binary file
|
images/posts-by-category.png
DELETED
Binary file
|
images/sitemap-with-excerpt.png
DELETED
Binary file
|
images/standard-sitemap.png
DELETED
Binary file
|
images/wpgo_plugins_logo.png
CHANGED
Binary file
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
=== Simple 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: 4.9
|
6 |
-
Stable tag: 2.
|
7 |
|
8 |
-
The
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -76,6 +76,10 @@ No. This plugin is for generating an HTML sitemap only.
|
|
76 |
|
77 |
== Changelog ==
|
78 |
|
|
|
|
|
|
|
|
|
79 |
= 2.4, OCTOBER 9, 2017 =
|
80 |
|
81 |
* Added live sitemap demo gallery on plugin settings page.
|
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: 4.9
|
6 |
+
Stable tag: 2.5
|
7 |
|
8 |
+
The best HTML5 sitemap available for WordPress! No setup required. Flexible customization options available.
|
9 |
|
10 |
== Description ==
|
11 |
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= 2.5, JUNE 19, 2018 =
|
80 |
+
|
81 |
+
* Settings page updated.
|
82 |
+
|
83 |
= 2.4, OCTOBER 9, 2017 =
|
84 |
|
85 |
* Added live sitemap demo gallery on plugin settings page.
|
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.
|
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.5
|
7 |
Author: David Gwyer
|
8 |
Author URI: http://www.wpgoplugins.com
|
9 |
Text Domain: simple-sitemap
|