Browse Source

directory: move pagination into template

pull/1975/head
rabuzarus 6 years ago
parent
commit
b9d9bf8ecd
  1. 5
      mod/directory.php
  2. 4
      view/templates/directory_header.tpl

5
mod/directory.php

@ -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);

4
view/templates/directory_header.tpl

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