WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
Leetpress installation (1 post)

  1. fenomeno0chris
    Member
    Posted 1 year ago #

    Hello, I tried to install WP-Page Navi for my homepage, which is based on the leetpress theme.

    But I couldn´t find the lines which I should replace.

    This is the pagination.php:

    <?php
    function kriesi_pagination($pages = '', $range = 6)
    {
    $showitems = ($range * 2)+1;

    global $paged;
    if(empty($paged)) $paged = 1;

    if($pages == '')
    {
    global $wp_query;
    $pages = $wp_query->max_num_pages;
    if(!$pages)
    {
    $pages = 1;
    }
    }

    if(1 != $pages)
    {
    echo "<div class='pagination'>";
    if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "«";
    if($paged > 1 && $showitems < $pages) echo "";

    for ($i=1; $i <= $pages; $i++)
    {
    if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
    {
    echo ($paged == $i)? "<span class='current'>".$i."</span>":"".$i."";
    }
    }

    if ($paged < $pages && $showitems < $pages) echo "";
    if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "»";
    echo "</div>\n";
    }
    }
    ?>

    It would be nice, if you could help me. My site name is:
    http://www.psvsource.de

    cheers Christian

    http://wordpress.org/extend/plugins/wp-pagenavi/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags