aboutsummaryrefslogtreecommitdiff
path: root/app/layout
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-04-13 17:05:16 -0400
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-04-13 17:05:16 -0400
commitdd1055c35de6f50eaf3e229ddc79ab8edcbc22db (patch)
treed8e730041d8ca1d06b2f0e6ffb17cc707abeb082 /app/layout
parent245c71ebe561aa70f674ed467f7bd169ca5a55d2 (diff)
Add sort button
Diffstat (limited to 'app/layout')
-rw-r--r--app/layout/nav_menu.phtml38
1 files changed, 17 insertions, 21 deletions
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml
index b316b090b..eaa564023 100644
--- a/app/layout/nav_menu.phtml
+++ b/app/layout/nav_menu.phtml
@@ -197,27 +197,6 @@
</a>
</li>
<?php } ?>
-
- <li class="separator"></li>
-
- <li class="item">
- <?php
- $url_order = $this->url;
- if ($this->order === 'DESC') {
- $url_order['params']['order'] = 'ASC';
- ?>
- <a href="<?php echo Minz_Url::display ($url_order); ?>">
- <?php echo Minz_Translate::t ('older_first'); ?>
- </a>
- <?php
- } else {
- $url_order['params']['order'] = 'DESC';
- ?>
- <a href="<?php echo Minz_Url::display ($url_order); ?>">
- <?php echo Minz_Translate::t ('newer_first'); ?>
- </a>
- <?php } ?>
- </li>
</ul>
</div>
@@ -243,6 +222,23 @@
</form>
</div>
+ <?php
+ if ($this->order === 'DESC') {
+ $order = 'ASC';
+ $icon = 'up';
+ $title = 'older_first';
+ } else {
+ $order = 'DESC';
+ $icon = 'down';
+ $title = 'newer_first';
+ }
+ $url_order = $this->url;
+ $url_order['params']['order'] = $order;
+ ?>
+ <a class="btn" href="<?php echo Minz_Url::display ($url_order); ?>" title="<?php echo Minz_Translate::t ($title); ?>">
+ <?php echo FreshRSS_Themes::icon($icon); ?>
+ </a>
+
<?php $url_output['params']['output'] = 'rss'; ?>
<a class="btn view_rss" target="_blank" href="<?php echo Minz_Url::display ($url_output); ?>" title="<?php echo Minz_Translate::t ('rss_view'); ?>">
<?php echo FreshRSS_Themes::icon('rss'); ?>