diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-03-05 10:11:59 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-03-05 10:11:59 +0000 |
commit | 0ea18f81edff9866d8b3d5a0c2394135e4af9560 (patch) | |
tree | 509a99dd568308dff1b7338428204066c6fd0d11 /templates | |
parent | e036187a42ff78e093ded5287b9c23efd222e686 (diff) | |
download | semanticscuttle-0ea18f81edff9866d8b3d5a0c2394135e4af9560.tar.gz semanticscuttle-0ea18f81edff9866d8b3d5a0c2394135e4af9560.tar.bz2 |
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@308 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates')
-rw-r--r-- | templates/bookmarks.tpl.php | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php index 3059e17..09b1d95 100644 --- a/templates/bookmarks.tpl.php +++ b/templates/bookmarks.tpl.php @@ -92,11 +92,33 @@ window.onload = playerLoad; <p id="sort"><?php echo $total.' '.T_("bookmark(s)"); ?> - <?php echo T_("Sort by:"); ?> <?php -$dateSort = (getSortOrder()=='date_desc')? 'date_asc':'date_desc'; -$titleSort = (getSortOrder()=='title_asc')? 'title_desc':'title_asc'; -$urlSort = (getSortOrder()=='url_asc')? 'url_desc':'url_asc'; -?> <a href="?sort=<?php echo $dateSort ?>"><?php echo T_("Date"); ?></a><span> -/ </span> <a href="?sort=<?php echo $titleSort ?>"><?php echo T_("Title"); ?></a><span> +switch(getSortOrder()) { + case 'date_asc': + $dateArrow = ' ↑'; + $dateSort = 'date_desc'; + $titleSort = 'title_asc'; + break; + case 'title_asc': + $titleArrow = ' ↑'; + $dateSort = 'date_desc'; + $titleSort = 'title_desc'; + break; + case 'title_desc': + $titleArrow = ' ↓'; + $dateSort = 'date_desc'; + $titleSort = 'title_asc'; + break; + case 'date_desc': + default: + $dateArrow = ' ↓'; + $dateSort = 'date_asc'; + $titleSort = 'title_asc'; + break; +} +//$dateSort = (getSortOrder()=='date_desc')? 'date_asc':'date_desc'; +//$titleSort = (getSortOrder()=='title_asc')? 'title_desc':'title_asc'; +?> <a href="?sort=<?php echo $dateSort ?>"><?php echo T_("Date").$dateArrow; ?></a><span> +/ </span> <a href="?sort=<?php echo $titleSort ?>"><?php echo T_("Title").$titleArrow; ?></a><span> / </span> <?php if($currenttag!= '') { if($user!= '') { |