aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-07-07 22:29:27 +0200
committerMario Vavti <mario@mariovavti.com>2015-07-07 22:29:27 +0200
commitf67d9d59afea32a90ea546163da25e36cc4ad9fb (patch)
treea9bf8aae9c798226dfadab62e1af168e2d61b2e2 /mod/directory.php
parent9c577e042292bd8227b40f9500d19eecd974a8e4 (diff)
downloadvolse-hubzilla-f67d9d59afea32a90ea546163da25e36cc4ad9fb.tar.gz
volse-hubzilla-f67d9d59afea32a90ea546163da25e36cc4ad9fb.tar.bz2
volse-hubzilla-f67d9d59afea32a90ea546163da25e36cc4ad9fb.zip
rename function get_directory_settings => get_directory_setting and move sort options to directory title bar
Diffstat (limited to 'mod/directory.php')
-rw-r--r--mod/directory.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/mod/directory.php b/mod/directory.php
index 6dea0e992..ff892d381 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -62,14 +62,14 @@ function directory_content(&$a) {
$observer = get_observer_hash();
- $globaldir = get_directory_settings($observer, 'globaldir');
+ $globaldir = get_directory_setting($observer, 'globaldir');
// override your personal global search pref if we're doing a navbar search of the directory
if(intval($_REQUEST['navsearch']))
$globaldir = 1;
- $safe_mode = get_directory_settings($observer, 'safemode');
+ $safe_mode = get_directory_setting($observer, 'safemode');
- $pubforums = get_directory_settings($observer, 'pubforums');
+ $pubforums = get_directory_setting($observer, 'pubforums');
$o = '';
nav_set_selected('directory');
@@ -382,7 +382,12 @@ function directory_content(&$a) {
'$entries' => $entries,
'$dirlbl' => $suggest ? t('Channel Suggestions') : $dirtitle,
'$submit' => t('Find'),
- '$next' => alt_pager($a,$j['records'], t('next page'), t('previous page'))
+ '$next' => alt_pager($a,$j['records'], t('next page'), t('previous page')),
+ '$sort' => t('Sort options'),
+ '$normal' => t('Alphabetic'),
+ '$reverse' => t('Reverse Alphabetic'),
+ '$date' => t('Newest to Oldest'),
+ '$reversedate' => t('Oldest to Newest'),
));