本文整理汇总了PHP中WP_List_Table::pagination方法的典型用法代码示例。如果您正苦于以下问题:PHP WP_List_Table::pagination方法的具体用法?PHP WP_List_Table::pagination怎么用?PHP WP_List_Table::pagination使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WP_List_Table
的用法示例。
在下文中一共展示了WP_List_Table::pagination方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pagination
function pagination($which)
{
global $mode;
parent::pagination($which);
if ('top' == $which) {
$this->view_switcher($mode);
}
}
示例2: pagination
/**
* @global string $mode
* @param string $which
*/
protected function pagination($which)
{
global $mode;
parent::pagination($which);
if ('top' == $which && !is_post_type_hierarchical($this->screen->post_type)) {
$this->view_switcher($mode);
}
}
示例3: pagination
function pagination($which)
{
global $post_type_object, $mode;
parent::pagination($which);
if ('top' == $which && !$post_type_object->hierarchical) {
$this->view_switcher($mode);
}
}
示例4: pagination
function pagination($which)
{
parent::pagination($which);
}
开发者ID:Benrajalu,项目名称:philRaj,代码行数:4,代码来源:class-wpfront-user-role-editor-login-redirect-list-table.php
示例5: pagination
/**
* @param string $which
*/
protected function pagination($which)
{
parent::pagination($which);
}
示例6: pagination
public function pagination($which)
{
ob_start();
parent::pagination($which);
$output = ob_get_clean();
if ($this->status == 'all') {
$string = _x('Total (excluding Incomplete and Declined): %s', 'sales log page total', 'wpsc');
} else {
$string = _x('Total: %s', 'sales log page total', 'wpsc');
}
$total_amount = ' - ' . sprintf($string, wpsc_currency_display($this->total_amount));
$total_amount = str_replace('$', '\\$', $total_amount);
$output = preg_replace('/(<span class="displaying-num">)([^<]+)(<\\/span>)/', '${1}${2}' . ' ' . $total_amount . '${3}', $output);
echo $output;
}
示例7: pagination
/**
* Overload of parent class in order to make the pagination work with the Custom Post Type
*
*/
function pagination($which)
{
$_SERVER['REQUEST_URI'] = add_query_arg(array('post_type' => WPGFORM_CPT_FORM, 'page' => 'wpgform-entry-log-page'), $_SERVER['REQUEST_URI']);
parent::pagination($which);
}
示例8: pagination
/**
* Display the pagination, adding view, search and filter arguments
*
* @since 1.42
*
* @param string 'top' | 'bottom'
* @return void
*/
function pagination($which)
{
$save_uri = $_SERVER['REQUEST_URI'];
$_SERVER['REQUEST_URI'] = add_query_arg(self::mla_submenu_arguments(), $save_uri);
parent::pagination($which);
$_SERVER['REQUEST_URI'] = $save_uri;
}
示例9: pagination
/**
* @global string $mode
* @param string $which
*/
protected function pagination($which)
{
global $mode;
parent::pagination($which);
}