mirror of
https://github.com/friendica/friendica
synced 2024-11-18 08:23:53 +00:00
dirfind: move pagination into template
This commit is contained in:
parent
67f699403a
commit
4b8ca578d1
3 changed files with 4 additions and 2 deletions
|
@ -156,6 +156,7 @@ function dirfind_content(&$a, $prefix = "") {
|
||||||
$o .= replace_macros($tpl,array(
|
$o .= replace_macros($tpl,array(
|
||||||
'title' => sprintf( t('People Search - %s'), $search),
|
'title' => sprintf( t('People Search - %s'), $search),
|
||||||
'$entries' => $entries,
|
'$entries' => $entries,
|
||||||
|
'$paginate' => paginate($a),
|
||||||
));
|
));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -165,6 +166,5 @@ function dirfind_content(&$a, $prefix = "") {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$o .= paginate($a);
|
|
||||||
return $o;
|
return $o;
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,7 @@ function match_content(&$a) {
|
||||||
$o .= replace_macros($tpl,array(
|
$o .= replace_macros($tpl,array(
|
||||||
'$title' => t('Profile Match'),
|
'$title' => t('Profile Match'),
|
||||||
'entries' => $entries,
|
'entries' => $entries,
|
||||||
|
'$paginate' => paginate($a),
|
||||||
));
|
));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -91,6 +92,5 @@ function match_content(&$a) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$o .= paginate($a);
|
|
||||||
return $o;
|
return $o;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,3 +36,5 @@
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
{{$paginate}}
|
||||||
|
|
Loading…
Reference in a new issue