- md5
- c3f010c5577564b9dbb9f012ff8d48c7
- sha1
- 53ee3762ea4fca5ae5062bba2807357e618a7f7a
- sha256
- 3f340b0f10d91b5dc409aaef101ad30f342a15c174d5f17e2198d3c4c9a4ef6f
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
<?php
/**
* @package Joomla.Administrator
* @subpackage Templates.bluestork
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// no direct access
defined('_JEXEC') or die;
/**
* This is a file to add template specific chrome to pagination rendering.
*
* pagination_list_footer
* Input variable $list is an array with offsets:
* $list[prefix] : string
* $list[limit] : int
* $list[limitstart] : int
* $list[total] : int
* $list[limitfield] : string
* $list[pagescounter] : string
* $list[pageslinks] : string
*
* pagination_list_render
* Input variable $list is an array with offsets:
* $list[all]
* [data] : string
* [active] : boolean
* $list[start]
* [data] : string
* [active] : boolean
* $list[previous]
* [data] : string
* [active] : boolean
* $list[next]
* [data] : string
* [active] : boolean
* $list[end]
* [data] : string
* [active] : boolean
* $list[pages]
* [{PAGE}][data] : string
* [{PAGE}][active] : boolean
*
* pagination_item_active
* Input variable $item is an object with fields:
* $item->base : integer
* $item->prefix : string
* $item->link : string
* $item->text : string
*
* pagination_item_inactive
* Input variable $item is an object with fields:
* $item->base : integer
* $item->prefix : string
* $item->link : string
* $item->text : string
*
* This gives template designers ultimate control over how pagination is rendered.
*
* NOTE: If you override pagination_item_active OR pagination_item_inactive you MUST override them both
*/
function pagination_list_footer($list)
{
// Initialise variables.
$lang = JFactory::getLanguage();
$html = "<div class=\"container\"><div class=\"pagination\">\n";
$html .= "\n<div class=\"limit\">".JText::_('JGLOBAL_DISPLAY_NUM').$list['limitfield']."</div>";
$html .= $list['pageslinks'];
$html .= "\n<div class=\"limit\">".$list['pagescounter']."</div>";
$html .= "\n<input type=\"hidden\" name=\"" . $list['prefix'] . "limitstart\" value=\"".$list['limitstart']."\" />";
$html .= "\n</div></div>";
return $html;
}
function pagination_list_render($list)
{
// Initialise variables.
$lang = JFactory::getLanguage();
$html = null;
if ($list['start']['active']) {
$html .= "<div class=\"button2-right\"><div class=\"start\">".$list['start']['data']."</div></div>";
} else {
$html .= "<div class=\"button2-right off\"><div class=\"start\">".$list['start']['data']."</div></div>";
}
if ($list['previous']['active']) {
$html .= "<div class=\"button2-right\"><div class=\"prev\">".$list['previous']['data']."</div></div>";
} else {
$html .= "<div class=\"button2-right off\"><div class=\"prev\">".$list['previous']['data']."</div></div>";
}
$html .= "\n<div class=\"button2-left\"><div class=\"page\">";
foreach($list['pages'] as $page) {
$html .= $page['data'];
}
$html .= "\n</div></div>";
if ($list['next']['active']) {
$html .= "<div class=\"button2-left\"><div class=\"next\">".$list['next']['data']."</div></div>";
} else {
$html .= "<div class=\"button2-left off\"><div class=\"next\">".$list['next']['data']."</div></div>";
}
if ($list['end']['active']) {
$html .= "<div class=\"button2-left\"><div class=\"end\">".$list['end']['data']."</div></div>";
} else {
$html .= "<div class=\"button2-left off\"><div class=\"end\">".$list['end']['data']."</div></div>";
}
return $html;
}
function pagination_item_active(&$item)
{
if ($item->base>0)
return "<a href=\"#\" title=\"".$item->text."\" onclick=\"document.adminForm." . $item->prefix . "limitstart.value=".$item->base."; Joomla.submitform();return false;\">".$item->text."</a>";
else
return "<a href=\"#\" title=\"".$item->text."\" onclick=\"document.adminForm." . $item->prefix . "limitstart.value=0; Joomla.submitform();return false;\">".$item->text."</a>";
}
function pagination_item_inactive(&$item)
{
return "<span>".$item->text."</span>";
}
?>
The same content is in 8 releases, Joomla 2.5.9 to 2.5.17. See them all, or every version of this file.