mirror of
https://github.com/e107inc/e107.git
synced 2025-07-23 07:52:07 +02:00
forum - use the same markup (bootstrap) for pagination in forum and topic (Issue #4713)
This commit is contained in:
@@ -921,7 +921,7 @@
|
||||
// $url = e107::getUrl()->create('forum/thread/view', $urlparms);
|
||||
$title = $tp->lanVars(LAN_GOTOPAGEX, $aa);
|
||||
$url = e107::url('forum', 'topic', $urlparms) . '&p=' . $aa;
|
||||
$opts[] = "<a data-toggle='tooltip' data-bs-toggle='tooltip' title=\"" . $title . "\" href='{$url}'>{$aa}</a>";
|
||||
$opts[] = "<a class='page-link' data-toggle='tooltip' data-bs-toggle='tooltip' title=\"" . $title . "\" href='{$url}'>{$aa}</a>";
|
||||
}
|
||||
$text .= ' ... ';
|
||||
for($a = $pages - 3; $a <= $pages - 1; $a++)
|
||||
@@ -932,7 +932,7 @@
|
||||
// $url = e107::getUrl()->create('forum/thread/view', $urlparms);
|
||||
$title = $tp->lanVars(LAN_GOTOPAGEX, $aa);
|
||||
$url = e107::url('forum', 'topic', $urlparms) . '&p=' . $aa;
|
||||
$opts[] = "<a data-toggle='tooltip' data-bs-toggle='tooltip' title=\"" . $title . "\" href='{$url}'>{$aa}</a>";
|
||||
$opts[] = "<a class='page-link' data-toggle='tooltip' data-bs-toggle='tooltip' title=\"" . $title . "\" href='{$url}'>{$aa}</a>";
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -946,16 +946,16 @@
|
||||
// $url = e107::getUrl()->create('forum/thread/view', $urlparms);
|
||||
$title = $tp->lanVars(LAN_GOTOPAGEX, $aa);
|
||||
$url = e107::url('forum', 'topic', $urlparms) . '&p=' . $aa;
|
||||
$opts[] = "<a data-toggle='tooltip' data-bs-toggle='tooltip' title=\"" . $title . "\" href='{$url}'>{$aa}</a>";
|
||||
$opts[] = "<a class='page-link' data-toggle='tooltip' data-bs-toggle='tooltip' title=\"" . $title . "\" href='{$url}'>{$aa}</a>";
|
||||
}
|
||||
}
|
||||
|
||||
if(deftrue('BOOTSTRAP'))
|
||||
{
|
||||
$text = "<ul class='pagination pagination-sm forum-viewforum-pagination'>
|
||||
<li>";
|
||||
<li class='page-item'>";
|
||||
|
||||
$text .= implode("</li><li>", $opts); // ."</div>";
|
||||
$text .= implode("</li><li class='page-item'>", $opts); // ."</div>";
|
||||
$text .= "</li></ul>";
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user