當前位置: 首頁>>代碼示例>>PHP>>正文


PHP WP_List_Table::pagination方法代碼示例

本文整理匯總了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);
     }
 }
開發者ID:vpatrinica,項目名稱:jfdesign,代碼行數:8,代碼來源:class-wp-ms-users-list-table.php

示例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);
     }
 }
開發者ID:rlgod,項目名稱:WordPress,代碼行數:12,代碼來源:class-wp-posts-list-table.php

示例3: pagination

 function pagination($which)
 {
     global $post_type_object, $mode;
     parent::pagination($which);
     if ('top' == $which && !$post_type_object->hierarchical) {
         $this->view_switcher($mode);
     }
 }
開發者ID:vivekkodira1,項目名稱:wordpress,代碼行數:8,代碼來源:class-wp-posts-list-table.php

示例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);
 }
開發者ID:sb-xs,項目名稱:que-pour-elle,代碼行數:7,代碼來源:class-wp-media-list-table.php

示例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;
 }
開發者ID:dreamteam111,項目名稱:dreamteam,代碼行數:15,代碼來源:purchase-log-list-table-class.php

示例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);
 }
開發者ID:WestBayResidential,項目名稱:wbrsorg,代碼行數:9,代碼來源:wpgform-logging.php

示例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;
 }
開發者ID:rongandat,項目名稱:best-picture,代碼行數:15,代碼來源:class-mla-list-table.php

示例9: pagination

 /**
  * @global string $mode
  * @param string $which
  */
 protected function pagination($which)
 {
     global $mode;
     parent::pagination($which);
 }
開發者ID:Nikschavan,項目名稱:WordPress-1,代碼行數:9,代碼來源:class-wp-posts-list-table.php


注:本文中的WP_List_Table::pagination方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。