Readd the sort menu. re #73

This commit is contained in:
Sébastien Lucas 2013-06-16 14:48:57 +02:00
parent 77b155ac20
commit 6ee817710e
2 changed files with 24 additions and 1 deletions

View file

@ -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 ()) {

View file

@ -22,5 +22,24 @@
</div>
</form>
</div>
{{? it.containsBook == 1}}
<div style="float: right; width: 35%">
<div style="float: right">
<img id="sort" src="images/sort32.png?v={{=it.version}}" alt="{{=it.i18n.sortAlt}}" />
</div>
<div class="stop">
<select id="sortchoice">
<option value="st">{{=it.i18n.bookwordTitle}}</option>
<option value="sa">{{=it.i18n.authorsTitle}}</option>
<option value="ss">{{=it.i18n.seriesTitle}}</option>
<option value="sp">{{=it.i18n.pubdateTitle}}</option>
</select>
<select id="sortorder">
<option value="asc">{{=it.i18n.sortorderAsc}}</option>
<option value="desc">{{=it.i18n.sortorderDesc}}</option>
</select>
</div>
</div>
{{?}}
</div>
</header>