本文整理匯總了PHP中EEH_Template::get_paging_html方法的典型用法代碼示例。如果您正苦於以下問題:PHP EEH_Template::get_paging_html方法的具體用法?PHP EEH_Template::get_paging_html怎麽用?PHP EEH_Template::get_paging_html使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類EEH_Template
的用法示例。
在下文中一共展示了EEH_Template::get_paging_html方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _get_applies_to_items_paging
/**
* Get paging for the selector
*
* @since 1.0.0
*
* @param int $total_items count of total items retrieved in the query.
* @return string Paging html
*/
protected function _get_applies_to_items_paging($total_items)
{
EE_Registry::instance()->load_helper('Template');
$current_page = isset($_REQUEST['paged']) ? $_REQUEST['paged'] : 1;
$perpage = isset($_REQUEST['perpage']) ? $_REQUEST['perpage'] : $this->_per_page;
$url = isset($_REQUEST['redirect_url']) ? $_REQUEST['redirect_url'] : $_SERVER['REQUEST_URI'];
return '<span class="spinner"></span> ' . EEH_Template::get_paging_html($total_items, $current_page, $perpage, $url);
}