Browse Source

directory: move pagination into template

pull/1975/head
rabuzarus 6 years ago
parent
commit
b9d9bf8ecd
2 changed files with 5 additions and 4 deletions
  1. +2
    -3
      mod/directory.php
  2. +3
    -1
      view/templates/directory_header.tpl

+ 2
- 3
mod/directory.php View File

@ -196,11 +196,10 @@ function directory_content(&$a) {
'$finding' => t('Finding:'),
'$findterm' => (strlen($search) ? $search : ""),
'$title' => t('Site Directory'),
'$submit' => t('Find')
'$submit' => t('Find'),
'$paginate' => paginate($a),
));
$o .= paginate($a);
}
else
info( t("No entries \x28some entries may be hidden\x29.") . EOL);


+ 3
- 1
view/templates/directory_header.tpl View File

@ -26,4 +26,6 @@
{{include file="directory_item.tpl"}}
{{/foreach}}
<div class="directory-end" ></div>
<div class="directory-end" ></div>
{{$paginate}}

Loading…
Cancel
Save