Simple Sitemap – Automatically Generate a Responsive Sitemap - Version 2.4

Version Description

Download this release

Release Info

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

Code changes from version 2.3 to 2.4

classes/simple-sitemap-links.php CHANGED
@@ -14,8 +14,30 @@ 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
- register_activation_hook( __FILE__, array( &$this, 'set_admin_notice_transient' ) );
 
 
18
  add_action( 'admin_notices', array( &$this, 'admin_notice' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  }
20
 
21
  /* Admin Notice first time plugin is activated. */
@@ -25,18 +47,33 @@ class WPGO_Simple_Sitemap_Links {
25
  if( get_transient( 'simple-sitemap-admin-notice' ) ){
26
  ?>
27
  <div class="updated notice is-dismissible">
28
- <p>Welcome to Simple Sitemap! To get started right away please visit the plugin <a href="<?php echo get_admin_url() . 'options-general.php?page=simple-sitemap/classes/simple-sitemap-settings.php'; ?>"><strong>settings & documentation</strong></a> page.</p>
29
  </div>
30
  <?php
31
- // might not be needed to do this manually
32
  delete_transient( 'simple-sitemap-admin-notice' );
33
  }
34
  }
35
 
36
  /* Runs only when the plugin is activated. */
37
- public function set_admin_notice_transient() {
38
- // set transient to expire after 5 seconds
39
- set_transient( 'simple-sitemap-admin-notice', true, 5 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  }
41
 
42
  // Display a Settings link on the main Plugins page
@@ -54,13 +91,18 @@ class WPGO_Simple_Sitemap_Links {
54
  public function plugin_settings_link( $links, $file ) {
55
 
56
  if ( $file == 'simple-sitemap/simple-sitemap.php') {
57
- $pccf_links = '<a href="' . get_admin_url() . 'options-general.php?page=simple-sitemap/classes/simple-sitemap-settings.php">' . __( 'Getting Started' ) . '</a>';
58
  array_unshift( $links, $pccf_links );
59
 
60
- $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>';
 
61
  array_push( $links, $pccf_links );
62
  }
63
 
 
 
 
 
64
  return $links;
65
  }
66
 
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. */
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
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>Go Pro</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
 
classes/simple-sitemap-settings.php CHANGED
@@ -40,16 +40,47 @@ class WPGO_Simple_Sitemap_Settings {
40
  ?>
41
  <div class="wrap">
42
 
43
- <h2 style="float:left;"><?php _e( 'Simple Sitemap - Settings & Documentation', 'simple-sitemap' ); ?></h2>
44
  <div style="float:right;padding:1px;background: rgba(57, 49, 76, 0.33);"><a style="display: block;line-height:0;" target="_blank" title="We love to develop WordPress plugins!" alt="WPGO Plugins Site" href="https://wpgoplugins.com/"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/wpgo_plugins_logo.png"></a></div>
45
 
46
  <div style="clear:both;"></div>
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  <div class="ss-box" style="margin-top:30px;">
49
- <h3 style="margin-top:5px;display:inline-block;">Available Shortcodes</h3><button id="shortcodes-btn" style="float:right;" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
50
 
51
  <div id="shortcodes-wrap">
52
- <p style="margin:0;"><code>[simple-sitemap]</code> <?php printf( __( 'Display a list of posts for one or more post types.<br><br>', 'simple-sitemap' ) ); ?>
53
  </p>
54
  <p style="margin:0;"><code>[simple-sitemap-group]</code> <?php printf( __( 'Display a list of posts grouped category, OR tags.<br><br>', 'simple-sitemap' ) ); ?>
55
  </p>
@@ -65,10 +96,8 @@ class WPGO_Simple_Sitemap_Settings {
65
  <?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>'; ?>
66
 
67
  <div class="ss-box">
68
- <h3 style="margin-top:5px;display:inline-block;">Shortcode Attributes & Default Values</h3><button id="attributes-btn" style="float:right;" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
69
-
70
  <div id="attributes-wrap">
71
-
72
  <p>Note: Default values are always used for missing shortcode attributes. i.e. Override only the values you want to change.</p>
73
  <p style="margin:20px 0 0 0;"><code><b>[simple-sitemap ... ]</b></code></p>
74
  <ul class="shortcode-attributes">
@@ -84,6 +113,7 @@ class WPGO_Simple_Sitemap_Settings {
84
  <li><code>order="asc"</code> - List posts for each post type in ascending, or descending order.</li>
85
  <li><code>orderby="title"</code> - Value to sort posts by (title, date, author etc.). See the full list <a href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">here</a>.</li>
86
  <li><code>exclude=""</code> - Comma separated list of post IDs to exclude from the sitemap.</li>
 
87
  <li><code>include=""</code> <?php echo $pro_attribute; ?> - Comma separated list of post IDs to INCLUDE in the sitemap only. Other posts will be ignored.</li>
88
  <li><code>render=""</code> <?php echo $pro_attribute; ?> - Set to "tab" to display posts in a tabbed layout!</li>
89
  <li><code>list_icon="true"</code> <?php echo $pro_attribute; ?> - Optionally display HTML bullet icons.</li>
40
  ?>
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:1px;background: rgba(57, 49, 76, 0.33);"><a style="display: block;line-height:0;" target="_blank" title="We love to develop WordPress plugins!" alt="WPGO Plugins Site" href="https://wpgoplugins.com/"><img 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's plenty of different types of sitemap to choose from! Checkout the live demos below.</div>
49
+
50
+ <div id="ssp-demo-gallery">
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
+
78
+ <h2 style="margin:25px 0 0 0;">Documentation</h2>
79
  <div class="ss-box" style="margin-top:30px;">
80
+ <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>
81
 
82
  <div id="shortcodes-wrap">
83
+ <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' ) ); ?>
84
  </p>
85
  <p style="margin:0;"><code>[simple-sitemap-group]</code> <?php printf( __( 'Display a list of posts grouped category, OR tags.<br><br>', 'simple-sitemap' ) ); ?>
86
  </p>
96
  <?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>'; ?>
97
 
98
  <div class="ss-box">
99
+ <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>
 
100
  <div id="attributes-wrap">
 
101
  <p>Note: Default values are always used for missing shortcode attributes. i.e. Override only the values you want to change.</p>
102
  <p style="margin:20px 0 0 0;"><code><b>[simple-sitemap ... ]</b></code></p>
103
  <ul class="shortcode-attributes">
113
  <li><code>order="asc"</code> - List posts for each post type in ascending, or descending order.</li>
114
  <li><code>orderby="title"</code> - Value to sort posts by (title, date, author etc.). See the full list <a href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">here</a>.</li>
115
  <li><code>exclude=""</code> - Comma separated list of post IDs to exclude from the sitemap.</li>
116
+ <li><code>nofollow="0"</code> <?php echo $pro_attribute; ?> - Set to "1" to make sitemap links <a href="https://en.wikipedia.org/wiki/Nofollow" target="_blank">nofollow</a>.</li>
117
  <li><code>include=""</code> <?php echo $pro_attribute; ?> - Comma separated list of post IDs to INCLUDE in the sitemap only. Other posts will be ignored.</li>
118
  <li><code>render=""</code> <?php echo $pro_attribute; ?> - Set to "tab" to display posts in a tabbed layout!</li>
119
  <li><code>list_icon="true"</code> <?php echo $pro_attribute; ?> - Optionally display HTML bullet icons.</li>
css/simple-sitemap-admin.css CHANGED
@@ -38,4 +38,103 @@
38
  .social-link {
39
  display: inline-block;
40
  line-height: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  }
38
  .social-link {
39
  display: inline-block;
40
  line-height: 0;
41
+ }
42
+
43
+ #attributes-btn, #shortcodes-btn {
44
+ margin-left: 20px;
45
+ }
46
+
47
+ /* Sitemap gallery */
48
+
49
+ /* SIMPLE SITEMAP PRO DEMO STYLES */
50
+
51
+ #ssp-demo-wrap {
52
+ display:flex;
53
+ margin:5px 0 15px 0;
54
+ }
55
+
56
+ #ssp-demo-description {
57
+ padding-left: 20px;
58
+ margin: 20px 0 20px 20px;
59
+ border-left: 2px solid rgba(39, 154, 151, 0.6);
60
+ }
61
+
62
+ #ssp-demo-description p {
63
+ margin: 10px 0 0 0;
64
+ }
65
+
66
+ #ssp-demo-btn-wrap {
67
+ align-self:center;
68
+ }
69
+
70
+ #ssp-btn {
71
+ width: 225px;
72
+ /* replace with this when better supported: width: fit-content; */
73
+ font-size: 18px;
74
+ background: rgba(39, 154, 151, 0.75);
75
+ border: 2px rgba(35, 121, 118, 0.63) solid;
76
+ border-radius: 2px;
77
+ }
78
+
79
+ #ssp-btn:hover {
80
+ background: #279a97;
81
+ }
82
+
83
+ #ssp-demo-gallery {
84
+ width: 100%;
85
+ display: flex;
86
+ flex-wrap: wrap;
87
+ /*margin-top: 25px;*/
88
+ }
89
+
90
+ #ssp-demo-gallery > div {
91
+ width: calc(33.33% - 30px);
92
+ padding: 10px;
93
+ margin: 5px 5px;
94
+ text-align: center;
95
+ }
96
+
97
+ #ssp-demo-gallery > div img {
98
+ border: 2px rgba(102, 180, 177, 0.5) solid;
99
+ max-width: 230px;
100
+ height: auto;
101
+ }
102
+
103
+ #ssp-demo-gallery > div:hover h5 {
104
+ text-decoration: underline;
105
+ }
106
+
107
+ #ssp-demo-gallery > div h5 {
108
+ font-size: 18px;
109
+ margin-bottom: 8px;
110
+ }
111
+
112
+ #ssp-demo-gallery > div h5 a {
113
+ color: #3c8f8c;
114
+ text-decoration: none;
115
+ }
116
+
117
+ #ssp-demo-gallery div > a {
118
+ display: inline-block;
119
+ line-height: 0;
120
+ }
121
+
122
+ @media only screen and (max-width: 800px) {
123
+ #ssp-demo-wrap {
124
+ display: block;
125
+ margin: 15px 0 15px 0;
126
+ }
127
+ #ssp-demo-description {
128
+ margin: 20px 0 30px 0px;
129
+ }
130
+ #ssp-demo-gallery > div {
131
+ width: calc(50% - 30px);
132
+ }
133
+ }
134
+
135
+ @media only screen and (max-width: 550px) {
136
+ #ssp-demo-gallery > div {
137
+ width: 100%;
138
+ padding: 0x;
139
+ }
140
  }
images/advanced-tabbed-sitemap.png ADDED
Binary file
images/basic-tabbed-sitemap.png ADDED
Binary file
images/column-layout.png ADDED
Binary file
images/horizontal-sitemap.png ADDED
Binary file
images/list-post-by-taxonomy.png ADDED
Binary file
images/nofollow-sitemap-links.png ADDED
Binary file
images/posts-by-category.png ADDED
Binary file
images/sitemap-with-excerpt.png ADDED
Binary file
images/standard-sitemap.png ADDED
Binary file
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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.3
7
 
8
  The simplest HTML5 sitemap available for WordPress! No setup required. Flexible customization options available.
9
 
@@ -55,6 +55,12 @@ Please <a href="https://wordpress.org/support/view/plugin-reviews/simple-sitemap
55
  5. Click 'Activate Plugin' to finish installation.
56
  6. Add [simple-sitemap] shortcode to a page to display the sitemap on your site.
57
 
 
 
 
 
 
 
58
  == Screenshots ==
59
 
60
  1. Once plugin has been activated simply add the [simple-sitemap] shortcode to any page, post, or text widget.
@@ -70,6 +76,10 @@ Please <a href="https://wordpress.org/support/view/plugin-reviews/simple-sitemap
70
 
71
  == Changelog ==
72
 
 
 
 
 
73
  = 2.3, SEPTEMBER 25, 2017 =
74
 
75
  * 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.
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.4
7
 
8
  The simplest HTML5 sitemap available for WordPress! No setup required. Flexible customization options available.
9
 
55
  5. Click 'Activate Plugin' to finish installation.
56
  6. Add [simple-sitemap] shortcode to a page to display the sitemap on your site.
57
 
58
+ == Frequently Asked Questions ==
59
+
60
+ = Can I generate an XML sitemap too? =
61
+
62
+ No. This plugin is for generating an HTML sitemap only.
63
+
64
  == Screenshots ==
65
 
66
  1. Once plugin has been activated simply add the [simple-sitemap] shortcode to any page, post, or text widget.
76
 
77
  == Changelog ==
78
 
79
+ = 2.4, OCTOBER 9, 2017 =
80
+
81
+ * Added live sitemap demo gallery on plugin settings page.
82
+
83
  = 2.3, SEPTEMBER 25, 2017 =
84
 
85
  * 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.
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.3
7
  Author: David Gwyer
8
  Author URI: http://www.wpgoplugins.com
9
  Text Domain: simple-sitemap
@@ -35,7 +35,9 @@ class WPGO_Simple_Sitemap {
35
 
36
  $this->module_roots = $module_roots;
37
 
38
- add_action( 'plugins_loaded', array( &$this, 'load_supported_features' ), 12 );
 
 
39
  add_action( 'plugins_loaded', array( &$this, 'localize_plugin' ) );
40
  add_action( 'admin_enqueue_scripts', array( &$this, 'enqueue_admin_scripts' ) );
41
  }
@@ -84,5 +86,6 @@ class WPGO_Simple_Sitemap {
84
  $module_roots = array(
85
  'dir' => plugin_dir_path( __FILE__ ),
86
  'uri' => plugins_url( '', __FILE__ ),
 
87
  );
88
  new WPGO_Simple_Sitemap( $module_roots );
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.4
7
  Author: David Gwyer
8
  Author URI: http://www.wpgoplugins.com
9
  Text Domain: simple-sitemap
35
 
36
  $this->module_roots = $module_roots;
37
 
38
+ $this->load_supported_features();
39
+ //add_action( 'plugins_loaded', array( &$this, 'load_supported_features' ), 12 );
40
+
41
  add_action( 'plugins_loaded', array( &$this, 'localize_plugin' ) );
42
  add_action( 'admin_enqueue_scripts', array( &$this, 'enqueue_admin_scripts' ) );
43
  }
86
  $module_roots = array(
87
  'dir' => plugin_dir_path( __FILE__ ),
88
  'uri' => plugins_url( '', __FILE__ ),
89
+ 'file' => __FILE__
90
  );
91
  new WPGO_Simple_Sitemap( $module_roots );