hi all,
I’m trying to style the pagination links and page_info text on pages with listed items. Though, I’ve been a bit successful with the pagination, I’ve noticed that the html wrappers on the page_info are somewhat inconsistent, making it difficult to apply styling to them. on some pages, they are wrapped in <tr>, on some they are sitting at the buttom of the page without wrappers. is there a way to modify the php function that generates these items?
for pagintion I already tried modifying some lines from function smartyPageLinks in PKPTemplateManager.inc.php, like so:
OPENING tag
BEFORE MOD $value = ''; if ($page>1) {
AFTER MOD $value = ''; $value .= '<ul class="pagination">'; if ($page>1) {
CLOSING tag
BEFORE MOD } return $value;
AFTER MOD } $value .= '</ul>'; return $value;
But this seemed to have no effect. I’d appreciate to be pointed in the right direction.
yes please, I want to wrap the <a> tags in <li>s. (I think they already are)
then the page_info (1 - 25 of 29 items), I plan on wrapping in <p>s, as they have no links.
you’re right, my apologies. my “PKPTemplateManager.inc.php” already has those modifications based on a “PKPTemplateManager.inc.php” someone shared in this forum.
I’m now left with function smartyPageInfo(). how do I wrap in <p> tags?
it has
The __() function performs localization / translation, returning the ‘navigation.items’ phrase in the appropriate language, with the ‘from’, ‘to’, and ‘total’, variables replaced in-line.