這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Styled Pagination

描述

This plugin allows you to add simple pagination to your site using images for the previous and next links. Allows you the ability to display the current page and the total number of pages. Works with any template page (i.e. index.php, search.php, archvie.php).

Features include:
1. Use images in place of the previous and next links
2. Easily style the pagination display with CSS
3. Customize the display text of the Pages
4. Choose between just displaying Current Page and Total Pages, or having pagination

How to use

  • <?php echo rb_pages(); ?> //Displays text only (i.e. PAGE 2 OF 11)
  • <?php echo rb_pagination(); ?> //Displays text and navigation arrows

Style the display using the following tags:

  • #rb-page-prev – Styles the previous link
  • #rb-page-next – Styles the next link
  • #rb-page-pages – Style the Text and Page Numbers

NOTE: Currently the previous and next links must be in the form of images.

螢幕截圖

  • Arrow images and default text

安裝

  1. Upload the ‘styled-pagination’ folder to the ‘/wp-content/plugins/’ directory
  2. Activate the Styled Pagination plugin through the ‘Plugins’ menu in WordPress
  3. Add the proper tag to your wordpress template See description for tags.

常見問題

What parameter can I use?

The rb_pagination() fucntion accepts 4 parameters. Use as follows:

     <?php echo rb_pagination('PAGE', 'OF', 'images/prev.jpg', 'images/next.jpg'); ?>

The rb_pages(); function accepts 2 parameters. Use as follows:

     <?php echo rb_pages('PAGE', 'OF'); ?>

The first 2 parameters in each function supply the text for the display. For example:

     <?php echo rb_pages('LOOKING AT', 'OUT OF'); ?>

This would display Looking AT 2 OUT OF 21

The last 2 parameters are the location of the previous and next image files.

The functions have default value you can use which are:

     <?php echo rb_pagination('PAGE', 'OF', 'images/icon-pageprev.jpg', 'images/icon-pagenext.jpg'); ?>

The images must be located in or in a sub folder of your themes directory.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Styled Pagination” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Styled Pagination 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

v1.0 – Initial Release