aboutsummaryrefslogtreecommitdiff
path: root/templates/bookmarks.tpl.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-05-09 07:29:50 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-05-09 07:29:50 +0000
commitc1c23e20dba5d935b39cc7603e5c496560a2bac3 (patch)
tree3e6ea69bbf86f7bfe9dbfc7a815445023fa7e59f /templates/bookmarks.tpl.php
parent791f1492478e4497a554c2a3a1c8737c36d71821 (diff)
downloadsemanticscuttle-c1c23e20dba5d935b39cc7603e5c496560a2bac3.tar.gz
semanticscuttle-c1c23e20dba5d935b39cc7603e5c496560a2bac3.tar.bz2
Interface fix: enable sorting bookmarks asc or desc; improve navigation links
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@119 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates/bookmarks.tpl.php')
-rw-r--r--templates/bookmarks.tpl.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php
index 9277083..6a778bb 100644
--- a/templates/bookmarks.tpl.php
+++ b/templates/bookmarks.tpl.php
@@ -63,12 +63,17 @@ window.onload = playerLoad;
<p id="sort">
<?php echo $total.' '.T_("bookmark(s)"); ?> -
<?php echo T_("Sort by:"); ?>
- <a href="?sort=date_desc"><?php echo T_("Date"); ?></a><span> / </span>
- <a href="?sort=title_asc"><?php echo T_("Title"); ?></a><span> / </span>
+ <?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> / </span>
<?php
if (!isset($hash)) {
?>
- <a href="?sort=url_asc"><?php echo T_("URL"); ?></a>
+ <a href="?sort=<?php echo $urlSort ?>"><?php echo T_("URL"); ?></a>
<?php
}
?>