Simple Sitemap – Automatically Generate a Responsive Sitemap - Version 1.41

Version Description

Download this release

Release Info

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

Code changes from version 1.4 to 1.41

Files changed (4) hide show
  1. images/facebook.png +0 -0
  2. images/twitter.png +0 -0
  3. readme.txt +6 -2
  4. simple-sitemap.php +20 -11
images/facebook.png ADDED
Binary file
images/twitter.png ADDED
Binary file
readme.txt CHANGED
@@ -4,13 +4,13 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: sitemap, html, global, sort, shortcode, pages, posts
5
  Requires at least: 2.7
6
  Tested up to: 3.3.2
7
- Stable tag: 1.4
8
 
9
  HTML sitemap to display content as a single linked list of posts and pages, or as groups sorted by taxonomy (via a drop-down box).
10
 
11
  == Description ==
12
 
13
- Update: With version 1.4 you can now exclude pages by ID! This was a commonly requested feature. Also, ALL posts are now listed and are not restricted by the Settings -> Reading value.
14
 
15
  This is probably the easiest way to add a powerful HTML sitemap to your site!
16
 
@@ -67,6 +67,10 @@ The Plugin can also be installed directly from the main WordPress Plugin page.
67
 
68
  == Changelog ==
69
 
 
 
 
 
70
  *1.4*
71
 
72
  * Plugin option added to exclude pages by ID!
4
  Tags: sitemap, html, global, sort, shortcode, pages, posts
5
  Requires at least: 2.7
6
  Tested up to: 3.3.2
7
+ Stable tag: 1.41
8
 
9
  HTML sitemap to display content as a single linked list of posts and pages, or as groups sorted by taxonomy (via a drop-down box).
10
 
11
  == Description ==
12
 
13
+ Update: From version 1.4 you can now exclude pages by ID! This was a commonly requested feature. Also, ALL posts are now listed and are not restricted by the Settings -> Reading value.
14
 
15
  This is probably the easiest way to add a powerful HTML sitemap to your site!
16
 
67
 
68
  == Changelog ==
69
 
70
+ *1.4.1*
71
+
72
+ * Minor updates to Plugin options page, and some internal functions.
73
+
74
  *1.4*
75
 
76
  * Plugin option added to exclude pages by ID!
simple-sitemap.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Simple Sitemap
4
  Plugin URI: http://www.presscoders.com/plugins/free-plugins/simple-sitemap/
5
  Description: HTML sitemap to display content as a single linked list of posts and pages, or as groups sorted by taxonomy (via a drop-down box).
6
- Version: 1.4
7
  Author: David Gwyer
8
  Author URI: http://www.presscoders.com
9
  */
@@ -38,7 +38,8 @@ Author URI: http://www.presscoders.com
38
  - Check which pages the simple-sitemap css is loaded. Don't really want it showing on pages that are not sitemap pages. It's being loaded on all pages currently?
39
  - Consider adding a drop down in Plugin options to show the page hierchy as it appears in 'Pages' (i.e. the way it works now), or to show it via a defined custom menu hierarchy.
40
  - Include option to show only posts/or pages.
41
- - Add option to include CPT posts?
 
42
  - Add option to show/hide drop down boxes on sitemap page.
43
  - Use the 'prepare' WP feature when querying the db directly.
44
  */
@@ -65,7 +66,7 @@ function wpss_delete_plugin_options() {
65
  /* Define default option settings. */
66
  function wpss_add_defaults() {
67
  $tmp = get_option('wpss_options');
68
- if(($tmp['chk_default_options_db']=='1')||(!is_array($tmp))) {
69
  delete_option('wpss_options');
70
  $arr = array( "drp_pages_default" => "post_title",
71
  "drp_posts_default" => "title",
@@ -94,6 +95,12 @@ function wpss_add_options_page() {
94
  add_options_page('Simple Sitemap Options Page', 'Simple Sitemap', 'manage_options', __FILE__, 'wpss_render_form');
95
  }
96
 
 
 
 
 
 
 
97
  /* Draw the menu page itself. */
98
  function wpss_render_form() {
99
  ?>
@@ -149,8 +156,7 @@ function wpss_render_form() {
149
  <tr valign="top" style="border-top:#dddddd 1px solid;">
150
  <th scope="row">Database Options</th>
151
  <td>
152
- <label><input name="wpss_options[chk_default_options_db]" type="checkbox" value="1" <?php checked('1', $options['chk_default_options_db']); ?> /> Restore Plugin defaults upon deactivation/reactivation</label>
153
- <br /><span style="color:#666666;margin-left:2px;">Only check this if you want to reset plugin settings upon reactivation</span>
154
  </td>
155
  </tr>
156
  </table>
@@ -159,12 +165,15 @@ function wpss_render_form() {
159
  </p>
160
  </form>
161
 
162
- <p style="margin-top:20px">
163
- <span><a href="http://www.facebook.com/PressCoders" title="Our Facebook page" target="_blank"><img style="border:1px #ccc solid;" src="<?php echo plugins_url(); ?>/simple-sitemap/images/facebook-icon.png" /></a></span>
164
- &nbsp;&nbsp;<span><a href="http://www.twitter.com/dgwyer" title="Follow on Twitter" target="_blank"><img style="border:1px #ccc solid;" src="<?php echo plugins_url(); ?>/simple-sitemap/images/twitter-icon.png" /></a></span>
165
- &nbsp;&nbsp;<span><a href="http://www.presscoders.com" title="PressCoders.com" target="_blank"><img style="border:1px #ccc solid;" src="<?php echo plugins_url(); ?>/simple-sitemap/images/pc-icon.png" /></a></span>
166
- <span style="margin-left:10px;">If you like this Plugin <b>please</b> consider making a <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UUFZZU35RZPW8" target="_blank">donation</a> to support continued development. Thanks.</span>
167
- </p>
 
 
 
168
 
169
  </div>
170
  <?php
3
  Plugin Name: Simple Sitemap
4
  Plugin URI: http://www.presscoders.com/plugins/free-plugins/simple-sitemap/
5
  Description: HTML sitemap to display content as a single linked list of posts and pages, or as groups sorted by taxonomy (via a drop-down box).
6
+ Version: 1.41
7
  Author: David Gwyer
8
  Author URI: http://www.presscoders.com
9
  */
38
  - Check which pages the simple-sitemap css is loaded. Don't really want it showing on pages that are not sitemap pages. It's being loaded on all pages currently?
39
  - Consider adding a drop down in Plugin options to show the page hierchy as it appears in 'Pages' (i.e. the way it works now), or to show it via a defined custom menu hierarchy.
40
  - Include option to show only posts/or pages.
41
+ - Add option to remove certain tags, categories, or posts.
42
+ - Add option to include CPT posts underneath.
43
  - Add option to show/hide drop down boxes on sitemap page.
44
  - Use the 'prepare' WP feature when querying the db directly.
45
  */
66
  /* Define default option settings. */
67
  function wpss_add_defaults() {
68
  $tmp = get_option('wpss_options');
69
+ if( ( (isset($tmp['chk_default_options_db']) && $tmp['chk_default_options_db']=='1')) || (!is_array($tmp)) ) {
70
  delete_option('wpss_options');
71
  $arr = array( "drp_pages_default" => "post_title",
72
  "drp_posts_default" => "title",
95
  add_options_page('Simple Sitemap Options Page', 'Simple Sitemap', 'manage_options', __FILE__, 'wpss_render_form');
96
  }
97
 
98
+ /* Record Plugin activation error messages. */
99
+ add_action( 'activated_plugin', 'wpss_save_error' );
100
+ function wpss_save_error(){
101
+ update_option( 'pc_plugin_error', ob_get_contents() );
102
+ }
103
+
104
  /* Draw the menu page itself. */
105
  function wpss_render_form() {
106
  ?>
156
  <tr valign="top" style="border-top:#dddddd 1px solid;">
157
  <th scope="row">Database Options</th>
158
  <td>
159
+ <label><input name="wpss_options[chk_default_options_db]" type="checkbox" value="1" <?php if (isset($options['chk_default_options_db'])) { checked('1', $options['chk_default_options_db']); } ?> /> Restore Plugin defaults upon deactivation/reactivation</label><br /><span style="color:#666666;margin-left:2px;">Only check this if you want to reset plugin settings upon reactivation</span>
 
160
  </td>
161
  </tr>
162
  </table>
165
  </p>
166
  </form>
167
 
168
+ <div style="margin-top:15px;">
169
+ <p style="margin-bottom:10px;">If you use this Plugin 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=UUFZZU35RZPW8" target="_blank">donation</a> to support continued development. Thanks.&nbsp;&nbsp;:-)</p>
170
+ </div>
171
+
172
+ <div style="clear:both;">
173
+ <p>
174
+ <a href="http://www.facebook.com/PressCoders" title="Our Facebook page" target="_blank"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/facebook.png" /></a><a href="http://www.twitter.com/dgwyer" title="Follow on Twitter" target="_blank"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/twitter.png" /></a>&nbsp;<input class="button" style="vertical-align:12px;" type="button" value="Visit Our Site" onClick="window.open('http://www.presscoders.com')">&nbsp;<input class="button" style="vertical-align:12px;" type="button" value="Free Responsive Theme!" onClick="window.open('http://www.presscoders.com/designfolio')">
175
+ </p>
176
+ </div>
177
 
178
  </div>
179
  <?php