Simplistic page navi

Descripció

This plugin’s pagenation list has input-box for direct jump to input number and push enter-key.

You can select reverse list and you can specify style-sheet and some options at each page.

Arbitrary section 1

Captures

  • page list styling samples.
  • reverse list and minimum list.
  • Option page english.

Instal·lació

  1. Upload “simplistic_pagenavi” folder which include “simplistic_pagenavi.php” to the “/wp-content/plugins/” directory
  2. Activate the plugin through the “Plugins” menu in WordPress
  3. Go to “WP-Admin -> Settings -> Simplistic Page-navi Option” to configure the plugin options
  4. Add a template tag “splcpn_echopager” to the place where you would like to display page-navigation in your theme.

Usage is as follows.

<?php
    if ( function_exists( 'splcpn_echopager' ) ) {
        splcpn_echopager( 1 );
    }
?>

In this case, HTML will be generated as follows when you set 1 in a parameter.

<nav id="toppagelink"><div class="pagenavilist">

If you set 0 or if you omit it ( optional in the case because 0 is default value) is as follows.

<nav id="bottompagelink"><div class="pagenavilist">

If you want to display this twice in the same page, you can setting of position in detail for each.

For other parameters (the same as the option) is specified by an array as the second argument as follows.

You describe the only necessary items and you can not omit the first argument.

If you specify the parameters by an array, you can be a different display even in the same page.

The last parameter “max_page_num” is not an option value. For example, when you get a list of the specific category post using the WP_Query at a “static” page, there is a case where “$wp_query->max_num_pages” is no value. In that case, pagenation will be not displayed. You should specified in this parameter by getting the total number of pages in some way.

<?php
    if ( function_exists( 'splcpn_echopager' ) ) {
        $args = array(
            'reverse' => '0', // 0:normal 1:reverse
            'above' => '7', // Display of direct Jump box, default:7
            'minimum_unit' => '1', // 0:minimum-list 1:full-list
            'adjacent_num'=> '3',// Number of pages that adjacent to current page to display list 1-5
            'larger_page'=> '3',// Maximum number of larger page to display list 0-5
            'top_label' => 'Top',
            'last_label' => 'Last',
            'connection_str'=>'~',// Connection string, empty is disable.
            'div_id'=>'pagenavilist',// Id strings of parent div tag.
            'font_size'=>'0',//specify font size. -10~10, set 0 to disable.
            'top_text_align'=>'0',// Text-align of id="toppagelink" of "nav" tag. 0 : disable, 1:left, 2: right, 3:center.
            'top_margin'=>'',// Margin of  id="toppagelink" of "nav" tag. Empty is disable, top:right:bottom:left. This value can have from one to four values same as the format of css.
            'max_page_num'=>$wp_query->max_num_pages,// The total number of pages. This value is required when value of $wp_query->max_num_pages is empty.
        );
        splcpn_echopager( 0, $args );
    }
?>

In addition, when you want to change the style by the page.

You set the “Load style sheet” of the option to 0, and calling the function of “direct_splcpn_style” before wp_head () in header.php.

You can specify the style sheet to be loaded for each page.

For example, if in the following manner, you can randomly change the style at load page.

<?php
    $splcpn_num = rand( 1, 6 );
    direct_splcpn_style( $splcpn_num );
    wp_head();
?>

PMF

Installation Instructions
  1. Upload “simplistic_pagenavi” folder which include “simplistic_pagenavi.php” to the “/wp-content/plugins/” directory
  2. Activate the plugin through the “Plugins” menu in WordPress
  3. Go to “WP-Admin -> Settings -> Simplistic Page-navi Option” to configure the plugin options
  4. Add a template tag “splcpn_echopager” to the place where you would like to display page-navigation in your theme.

Usage is as follows.

<?php
    if ( function_exists( 'splcpn_echopager' ) ) {
        splcpn_echopager( 1 );
    }
?>

In this case, HTML will be generated as follows when you set 1 in a parameter.

<nav id="toppagelink"><div class="pagenavilist">

If you set 0 or if you omit it ( optional in the case because 0 is default value) is as follows.

<nav id="bottompagelink"><div class="pagenavilist">

If you want to display this twice in the same page, you can setting of position in detail for each.

For other parameters (the same as the option) is specified by an array as the second argument as follows.

You describe the only necessary items and you can not omit the first argument.

If you specify the parameters by an array, you can be a different display even in the same page.

The last parameter “max_page_num” is not an option value. For example, when you get a list of the specific category post using the WP_Query at a “static” page, there is a case where “$wp_query->max_num_pages” is no value. In that case, pagenation will be not displayed. You should specified in this parameter by getting the total number of pages in some way.

<?php
    if ( function_exists( 'splcpn_echopager' ) ) {
        $args = array(
            'reverse' => '0', // 0:normal 1:reverse
            'above' => '7', // Display of direct Jump box, default:7
            'minimum_unit' => '1', // 0:minimum-list 1:full-list
            'adjacent_num'=> '3',// Number of pages that adjacent to current page to display list 1-5
            'larger_page'=> '3',// Maximum number of larger page to display list 0-5
            'top_label' => 'Top',
            'last_label' => 'Last',
            'connection_str'=>'~',// Connection string, empty is disable.
            'div_id'=>'pagenavilist',// Id strings of parent div tag.
            'font_size'=>'0',//specify font size. -10~10, set 0 to disable.
            'top_text_align'=>'0',// Text-align of id="toppagelink" of "nav" tag. 0 : disable, 1:left, 2: right, 3:center.
            'top_margin'=>'',// Margin of  id="toppagelink" of "nav" tag. Empty is disable, top:right:bottom:left. This value can have from one to four values same as the format of css.
            'max_page_num'=>$wp_query->max_num_pages,// The total number of pages. This value is required when value of $wp_query->max_num_pages is empty.
        );
        splcpn_echopager( 0, $args );
    }
?>

In addition, when you want to change the style by the page.

You set the “Load style sheet” of the option to 0, and calling the function of “direct_splcpn_style” before wp_head () in header.php.

You can specify the style sheet to be loaded for each page.

For example, if in the following manner, you can randomly change the style at load page.

<?php
    $splcpn_num = rand( 1, 6 );
    direct_splcpn_style( $splcpn_num );
    wp_head();
?>
What web browsers are supported?

The supporting Web browser has to be HTML5 and CSS3.

What is the supporting language?

Japanese and English supports it.
But I am poor in English. English part needs improvement.

After having deleted the plugin, how does the stored optional value turn out?

The stored optional value is deleted if you delete plugin in WP-Admin->plugins menu.

Col·laboradors i desenvolupadors

"Simplistic page navi" és programari de codi obert. La següent gent ha contribuït en aquesta extensió.

Contribuïdors

Tradueix “Simplistic page navi” a la teva llengua.

Interessats en el desenvolupament?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Registre de canvis

August 23,2017

  • Changed : change default value of madia query max-width for narrow screen.

2.1 – August 16,2016

  • Fixed : Minor update for function of make_pagenumlink.

2.0 – August 12,2016

  • Improved function of generate number-link to speed up.
  • Bug fixed : display 1 page in minimum list.
  • Test for WordPress 4.6.

1.0 – July 1,2016

  • Simplistic page navi release.