function pagination($which) { global $mode; parent::pagination($which); if ('top' == $which) { $this->view_switcher($mode); } }
/** * @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); } }
function pagination($which) { global $post_type_object, $mode; parent::pagination($which); if ('top' == $which && !$post_type_object->hierarchical) { $this->view_switcher($mode); } }
function pagination($which) { parent::pagination($which); }
/** * @param string $which */ protected function pagination($which) { parent::pagination($which); }
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; }
/** * 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); }
/** * 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; }
/** * @global string $mode * @param string $which */ protected function pagination($which) { global $mode; parent::pagination($which); }