Simple Sitemap – Automatically Generate a Responsive Sitemap - Version 1.3

Version Description

Download this release

Release Info

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

Code changes from version 1.28 to 1.3

Files changed (2) hide show
  1. readme.txt +6 -4
  2. simple-sitemap.php +21 -40
readme.txt CHANGED
@@ -3,15 +3,13 @@ Contributors: dgwyer
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UUFZZU35RZPW8
4
  Tags: sitemap, html, global, sort, shortcode, pages, posts
5
  Requires at least: 2.7
6
- Tested up to: 3.1
7
- Stable tag: 1.28
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: Plugin has just undergone a major overhaul, as of 02/09/2010!
14
-
15
  This is probably the easiest way to add a powerful HTML sitemap to your site!
16
 
17
  Unique and intuitive way to display your website content by simply adding a single shortcode [simple-sitemap] to a page. See the Plugin screenshots for examples.
@@ -67,6 +65,10 @@ The Plugin can also be installed directly from the main WordPress Plugin page.
67
 
68
  == Changelog ==
69
 
 
 
 
 
70
  *1.28*
71
 
72
  * Changed the .sticky CSS class to be .ss_sticky to avoid conflict with the WordPress .sticky class.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UUFZZU35RZPW8
4
  Tags: sitemap, html, global, sort, shortcode, pages, posts
5
  Requires at least: 2.7
6
+ Tested up to: 3.2.1
7
+ Stable tag: 1.3
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
  This is probably the easiest way to add a powerful HTML sitemap to your site!
14
 
15
  Unique and intuitive way to display your website content by simply adding a single shortcode [simple-sitemap] to a page. See the Plugin screenshots for examples.
65
 
66
  == Changelog ==
67
 
68
+ *1.3*
69
+
70
+ * Dropdown sort boxes on the front end now work much better in all browsers. Thanks to Matt Bailey for this fix.
71
+
72
  *1.28*
73
 
74
  * Changed the .sticky CSS class to be .ss_sticky to avoid conflict with the WordPress .sticky class.
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.28
7
  Author: David Gwyer
8
  Author URI: http://www.presscoders.com
9
  */
@@ -34,7 +34,7 @@ Author URI: http://www.presscoders.com
34
  6. Check which pages the simple-sitemap css is loaded. Don't really want it showing on pages that are not sitemap pages. I think it is loaded on all pages currently?
35
  */
36
 
37
- // wpss_ suffix is derived from [W]ord[P]ress [s]imple [s]itemap
38
  add_shortcode('simple-sitemap', 'wpss_gen');
39
  add_filter('query_vars', 'parameter_queryvars' );
40
  //add_action( 'plugins_loaded', 'wpss_generate' );
@@ -146,29 +146,6 @@ function wpss_render_form() {
146
  </p>
147
  </form>
148
 
149
- <div><strong>*New* Plugin Support Forum!</strong><a id="pc_support_toggle" href="#" title="status" style="margin-left:5px;"><small>(click to expand)</small></a></div>
150
- <div id="pc_support" style="display:none;background:#eeeeee;border:1px solid #bbbbbb;margin-top:10px;padding:15px;">
151
- <h3 style="margin:0px 0px 15px 0px;padding:0px;">Please help support the development of this plugin.</h3>
152
-
153
- <div style="margin-bottom:10px;">Would you like this plugin to..</div>
154
- <ul>
155
- <li> - be supported on a FULL time basis?</li>
156
- <li> - always work with the latest version of WordPress?</li>
157
- <li> - have updates regularly released?</li>
158
- <li> - be fixed quickly should any bugs/security issues arise?</li>
159
- <li> - give you peace of mind and ALWAYS work on your website whether it is a business site, or personal?</li>
160
- </ul>
161
- <div style="margin-top:10px;">If you answered YES to any of these questions then you may wish to <a href="http://www.presscoders.com/members/signup.php" target="_blank">sign-up to our exclusive support package</a>, which is available to all users of our FREE plugins.</div>
162
- <div style="margin-top:10px;">We are dedicated to bringing our users a range of high quality, stable FREE plugins. The only way we can continue to do this by providing support to users to cover the full time development of these plugins. We have many more plugins on the drawing board. Please help us to convert these ideas into working active plugins!</div>
163
- <div style="margin-top:10px;">Click <a href="http://www.presscoders.com/wordpress-support/" target="_blank">here</a> for full details of support available for Simple Sitemap.</div>
164
- <div style="margin-top:10px;">Or <a href="http://www.presscoders.com/members/signup.php" target="_blank">sign-up straight away</a> to get immediate access to support!</div>
165
- </div>
166
- <script>
167
- jQuery("#pc_support_toggle").click(function(){
168
- jQuery("#pc_support").toggle(400);
169
- });
170
- </script>
171
-
172
  <p style="margin-top:20px;">Follow me on <a href="http://twitter.com/dgwyer" target="_blank">twitter</a>. Also, check out our new site: <a href="http://www.presscoders.com" target="_blank">PressCoders.com</a></p>
173
 
174
  </div>
@@ -313,12 +290,14 @@ function wpss_gen() {
313
  <h2 class='page_heading'>Pages</h2>
314
 
315
  <div id="page_drop_down">
316
- <span id="page_dd_label">Show pages by:</span>
317
- <select>
318
- <option onClick="location.href='<?php echo $link_url.$query_symbol.'pagesort=post_title'; ?>'" <?php echo $pt1; ?>>Title</option>
319
- <option onClick="location.href='<?php echo $link_url.$query_symbol.'pagesort=post_date'; ?>'" <?php echo $pd1; ?>>Date</option>
320
- <option onClick="location.href='<?php echo $link_url.$query_symbol.'pagesort=post_author'; ?>'" <?php echo $pa1; ?>>Author</option>
321
- </select>
 
 
322
  </div>
323
  <?php
324
  if(strpos($page_params, 'post_date') !== false) {
@@ -367,15 +346,17 @@ function wpss_gen() {
367
  <div id="ss_posts" style="<?php echo $posts_float ?>">
368
  <h2 class='post_heading'>Posts</h2>
369
  <div id="post_drop_down">
370
- <span id="post_dd_label">Show posts by:</span>
371
- <select>
372
- <option onClick="location.href='<?php echo $link_url.$query_symbol.'postsort=title'; ?>'" <?php echo $pt2; ?>>Title</option>
373
- <option onClick="location.href='<?php echo $link_url.$query_symbol.'postsort=date'; ?>'" <?php echo $pd2; ?>>Date</option>
374
- <option onClick="location.href='<?php echo $link_url.$query_symbol.'postsort=author'; ?>'" <?php echo $pa2; ?>>Author</option>
375
- <option onClick="location.href='<?php echo $link_url.$query_symbol.'postsort=category'; ?>'" <?php echo $pc2; ?>>Category</option>
376
- <option onClick="location.href='<?php echo $link_url.$query_symbol.'postsort=tags'; ?>'" <?php echo $ptg2; ?>>Tags</option>
377
- </select>
378
- </div>
 
 
379
  <?php
380
  if(strpos($post_params, 'category') !== false) {
381
  $categories = get_categories();
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.3
7
  Author: David Gwyer
8
  Author URI: http://www.presscoders.com
9
  */
34
  6. Check which pages the simple-sitemap css is loaded. Don't really want it showing on pages that are not sitemap pages. I think it is loaded on all pages currently?
35
  */
36
 
37
+ // wpss_ prefix is derived from [W]ord[P]ress [s]imple [s]itemap
38
  add_shortcode('simple-sitemap', 'wpss_gen');
39
  add_filter('query_vars', 'parameter_queryvars' );
40
  //add_action( 'plugins_loaded', 'wpss_generate' );
146
  </p>
147
  </form>
148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  <p style="margin-top:20px;">Follow me on <a href="http://twitter.com/dgwyer" target="_blank">twitter</a>. Also, check out our new site: <a href="http://www.presscoders.com" target="_blank">PressCoders.com</a></p>
150
 
151
  </div>
290
  <h2 class='page_heading'>Pages</h2>
291
 
292
  <div id="page_drop_down">
293
+ <form name="page_drop_form" id="page_drop_form">
294
+ <span id="page_dd_label">Show pages by:</span>
295
+ <select name="page_drop_select" OnChange="location.href=page_drop_form.page_drop_select.options[selectedIndex].value">
296
+ <option value="<?php echo $link_url.$query_symbol.'pagesort=post_title'; ?>" <?php echo $pt1; ?>>Title</option>
297
+ <option value="<?php echo $link_url.$query_symbol.'pagesort=post_date'; ?>" <?php echo $pd1; ?>>Date</option>
298
+ <option value="<?php echo $link_url.$query_symbol.'pagesort=post_author'; ?>" <?php echo $pa1; ?>>Author</option>
299
+ </select>
300
+ </form>
301
  </div>
302
  <?php
303
  if(strpos($page_params, 'post_date') !== false) {
346
  <div id="ss_posts" style="<?php echo $posts_float ?>">
347
  <h2 class='post_heading'>Posts</h2>
348
  <div id="post_drop_down">
349
+ <form name="post_drop_form" id="post_drop_form">
350
+ <span id="post_dd_label">Show posts by:</span>
351
+ <select name="post_drop_select" OnChange="location.href=post_drop_form.post_drop_select.options[selectedIndex].value">
352
+ <option value="<?php echo $link_url.$query_symbol.'postsort=title'; ?>" <?php echo $pt2; ?>>Title</option>
353
+ <option value="<?php echo $link_url.$query_symbol.'postsort=date'; ?>" <?php echo $pd2; ?>>Date</option>
354
+ <option value="<?php echo $link_url.$query_symbol.'postsort=author'; ?>" <?php echo $pa2; ?>>Author</option>
355
+ <option value="<?php echo $link_url.$query_symbol.'postsort=category'; ?>" <?php echo $pc2; ?>>Category</option>
356
+ <option value="<?php echo $link_url.$query_symbol.'postsort=tags'; ?>" <?php echo $ptg2; ?>>Tags</option>
357
+ </select>
358
+ </form>
359
+ </div
360
  <?php
361
  if(strpos($post_params, 'category') !== false) {
362
  $categories = get_categories();