directory sort links on sidebar
This commit is contained in:
parent
0e0e0d018b
commit
bae7f4e078
@ -9,6 +9,17 @@ function find_upstream_directory($dirmode) {
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function dir_sort_links() {
|
||||||
|
|
||||||
|
$o = replace_macros(get_markup_template('dir_sort_links.tpl'), array(
|
||||||
|
'$header' => t('Sort Options'),
|
||||||
|
'$normal' => t('Alphabetic'),
|
||||||
|
'$reverse' => t('Reverse Alphabetic'),
|
||||||
|
'$date' => t('Newest to Oldest')
|
||||||
|
));
|
||||||
|
return $o;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function sync_directories($dirmode) {
|
function sync_directories($dirmode) {
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@ function directory_aside(&$a) {
|
|||||||
require_once('include/contact_widgets.php');
|
require_once('include/contact_widgets.php');
|
||||||
$a->set_widget('find_people',findpeople_widget());
|
$a->set_widget('find_people',findpeople_widget());
|
||||||
}
|
}
|
||||||
|
$a->set_widget('dir_sort_order',dir_sort_links());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
6
view/tpl/dir_sort_links.tpl
Normal file
6
view/tpl/dir_sort_links.tpl
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<div class="widget" id="dir_sort_links">
|
||||||
|
<h3>{{$header}}</h3>
|
||||||
|
<a href="directory?f=&order=">{{$normal}}</a><br />
|
||||||
|
<a href="directory?f=&order=reverse">{{$reverse}}</a><br />
|
||||||
|
<a href="directory?f=&order=date">{{$date}}</a><br />
|
||||||
|
</div>
|
Reference in New Issue
Block a user