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;

- -/ +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'; +?> +/ /