Skip to content

Commit

Permalink
Merge pull request #4714 from Jimmi08/patch-14
Browse files Browse the repository at this point in the history
Fixes #4713 Forum styling fix in pagination in forum and topic pages.
  • Loading branch information
CaMer0n authored Mar 27, 2022
2 parents f6d0164 + d8c5739 commit 8d84578
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ function fpages($thread_info, $replies)
// $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++)
Expand All @@ -932,7 +932,7 @@ function fpages($thread_info, $replies)
// $url = e107::getUrl()->create('forum/thread/view', $urlparms);
$title = $tp->lanVars(LAN_GOTOPAGEX, $aa);
$url = e107::url('forum', 'topic', $urlparms) . '&amp;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
Expand All @@ -946,16 +946,16 @@ function fpages($thread_info, $replies)
// $url = e107::getUrl()->create('forum/thread/view', $urlparms);
$title = $tp->lanVars(LAN_GOTOPAGEX, $aa);
$url = e107::url('forum', 'topic', $urlparms) . '&amp;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
Expand Down

0 comments on commit 8d84578

Please sign in to comment.