Server : LiteSpeed System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : alsaif ( 1057) PHP Version : 7.4.33 Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/alsaif/domains/alsaif.group/private_html/templates/startsik/html/ |
<?php
/**
* @package Helix Ultimate Framework
* @author JoomShaper https://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2018 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
*/
defined ('_JEXEC') or die();
function pagination_list_render($list) {
// Initialize variables
$html = '<ul class="pagination">';
if ($list['start']['active']==1) $html .= $list['start']['data'];
if ($list['previous']['active']==1) $html .= $list['previous']['data'];
foreach ($list['pages'] as $page) {
$html .= $page['data'];
}
if ($list['next']['active']==1) $html .= $list['next']['data'];
if ($list['end']['active']==1) $html .= $list['end']['data'];
$html .= '</ul>';
return $html;
}
function pagination_item_active(&$item) {
$cls = '';
if ($item->text == JText::_('Next')) { $item->text = '»'; $cls = "next";}
if ($item->text == JText::_('Prev')) { $item->text = '«'; $cls = "previous";}
if ($item->text == JText::_('First')) { $cls = "first";}
if ($item->text == JText::_('Last')) { $cls = "last";}
return '<li class="page-item"><a class="page-link ' . $cls . '" href="' . $item->link . '" title="' . $item->text . '">' . $item->text . '</a></li>';
}
function pagination_item_inactive( &$item ) {
$cls = (int)$item->text > 0 ? 'active': 'disabled';
return '<li class="page-item ' . $cls . '"><a class="page-link">' . $item->text . '</a></li>';
}