From 6ee817710e35652c76b2be3c3239bd50f2727621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sun, 16 Jun 2013 14:48:57 +0200 Subject: [PATCH] Readd the sort menu. re #73 --- getJSON.php | 6 +++++- templates/default/header.html | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/getJSON.php b/getJSON.php index 0294c4c..ef59ebe 100644 --- a/getJSON.php +++ b/getJSON.php @@ -56,6 +56,7 @@ } $out ["i18n"] = array ("coverAlt" => localize("i18n.coversection"), "authorsTitle" => localize("authors.title"), + "bookwordTitle" => localize("bookword.title"), "tagsTitle" => localize("tags.title"), "seriesTitle" => localize("series.title"), "customizeTitle" => localize ("customize.title"), @@ -63,11 +64,14 @@ "previousAlt" => localize ("paging.previous.alternate"), "nextAlt" => localize ("paging.next.alternate"), "searchAlt" => localize ("search.alternate"), + "sortAlt" => localize ("sort.alternate"), "homeAlt" => localize ("home.alternate"), "permalinkAlt" => localize ("permalink.alternate"), "pubdateTitle" => localize("pubdate.title"), "languagesTitle" => localize("language.title"), - "contentTitle" => localize("content.summary")); + "contentTitle" => localize("content.summary"), + "sortorderAsc" => localize("search.sortorder.asc"), + "sortorderDesc" => localize("search.sortorder.desc")); $out ["containsBook"] = 0; if ($currentPage->containsBook ()) { diff --git a/templates/default/header.html b/templates/default/header.html index f8ff366..65fdd0a 100644 --- a/templates/default/header.html +++ b/templates/default/header.html @@ -22,5 +22,24 @@ + {{? it.containsBook == 1}} +
+
+ {{=it.i18n.sortAlt}} +
+
+ + +
+
+ {{?}}