Version Description
Download this release
Release Info
Developer | dgwyer |
Plugin | Simple Sitemap – Automatically Generate a Responsive Sitemap |
Version | 1.3.1 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 1.3.1
- readme.txt +5 -1
- simple-sitemap.php +8 -8
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.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 |
|
@@ -65,6 +65,10 @@ The Plugin can also be installed directly from the main WordPress Plugin page.
|
|
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.
|
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.1
|
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 |
|
65 |
|
66 |
== Changelog ==
|
67 |
|
68 |
+
*1.3.1*
|
69 |
+
|
70 |
+
* Fixed HTML bug. Replaced deprecated function.
|
71 |
+
|
72 |
*1.3*
|
73 |
|
74 |
* Dropdown sort boxes on the front end now work much better in all browsers. Thanks to Matt Bailey for this fix.
|
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.3
|
7 |
Author: David Gwyer
|
8 |
Author URI: http://www.presscoders.com
|
9 |
*/
|
@@ -307,16 +307,16 @@ function wpss_gen() {
|
|
307 |
echo '</ul>';
|
308 |
}
|
309 |
elseif(strpos($page_params, 'post_author') !== false) {
|
310 |
-
$authors =
|
311 |
foreach ($authors as $author) {
|
312 |
-
$empty_page_args=array('echo' => 0, 'authors' => $author->
|
313 |
$empty_test = wp_list_pages($empty_page_args); // test for authors with zero pages
|
314 |
//echo '$empty_test = '.$empty_test;
|
315 |
|
316 |
if($empty_test != null || $empty_test != "") {
|
317 |
echo "<div class='page_author'>$author->display_name</div>";
|
318 |
echo "<div class=\"ss_date_header\"><ul class=\"page_item_list\">";
|
319 |
-
$page_args=array('authors' => $author->
|
320 |
wp_list_pages($page_args);
|
321 |
echo "</ul></div>";
|
322 |
}
|
@@ -356,7 +356,7 @@ function wpss_gen() {
|
|
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();
|
@@ -384,10 +384,10 @@ function wpss_gen() {
|
|
384 |
}
|
385 |
}
|
386 |
else if(strpos($post_params, 'author') !== false) {
|
387 |
-
$authors =
|
388 |
foreach ($authors as $author) {
|
389 |
-
echo '<a href="'.get_author_posts_url($author->
|
390 |
-
query_posts('post_status=publish&author='.$author->
|
391 |
<?php
|
392 |
global $wp_query;
|
393 |
echo '('.$wp_query->post_count.')'; ?>
|
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.1
|
7 |
Author: David Gwyer
|
8 |
Author URI: http://www.presscoders.com
|
9 |
*/
|
307 |
echo '</ul>';
|
308 |
}
|
309 |
elseif(strpos($page_params, 'post_author') !== false) {
|
310 |
+
$authors = get_users(); //gets registered users
|
311 |
foreach ($authors as $author) {
|
312 |
+
$empty_page_args=array('echo' => 0, 'authors' => $author->ID, 'title_li' => '');
|
313 |
$empty_test = wp_list_pages($empty_page_args); // test for authors with zero pages
|
314 |
//echo '$empty_test = '.$empty_test;
|
315 |
|
316 |
if($empty_test != null || $empty_test != "") {
|
317 |
echo "<div class='page_author'>$author->display_name</div>";
|
318 |
echo "<div class=\"ss_date_header\"><ul class=\"page_item_list\">";
|
319 |
+
$page_args=array('authors' => $author->ID, 'title_li' => '');
|
320 |
wp_list_pages($page_args);
|
321 |
echo "</ul></div>";
|
322 |
}
|
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();
|
384 |
}
|
385 |
}
|
386 |
else if(strpos($post_params, 'author') !== false) {
|
387 |
+
$authors = get_users(); //gets registered users
|
388 |
foreach ($authors as $author) {
|
389 |
+
echo '<a href="'.get_author_posts_url($author->ID).'">'.$author->display_name.'</a> ';
|
390 |
+
query_posts('post_status=publish&author='.$author->ID); // show the sorted posts ?>
|
391 |
<?php
|
392 |
global $wp_query;
|
393 |
echo '('.$wp_query->post_count.')'; ?>
|