Real_Current_Date( 'Y-m-d', '-0', $rangestart_utime ), $WP_Statistics->Real_Current_Date( 'Y-m-d', '-0', $rangeend_utime ) ); $count = 0; $stats = array(); foreach ( $uris as $uri ) { $count ++; for ( $i = $daysToDisplay; $i >= 0; $i -- ) { $stats[ $uri[0] ][] = wp_statistics_pages( '-' . ( $i + $daysInThePast ), $uri[0] ); } if ( $count > 4 ) { break; } } for ( $i = $daysToDisplay; $i >= 0; $i -- ) { $date[] = "'" . $WP_Statistics->Real_Current_Date( 'M j', '-' . $i, $rangeend_utime ) . "'"; } ?>

0 ) { // Instantiate pagination object with appropriate arguments $items_per_page = 10; $page = isset( $_GET['pagination-page'] ) ? abs( (int) $_GET['pagination-page'] ) : 1; $offset = ( $page * $items_per_page ) - $items_per_page; $start = $offset; $end = $offset + $items_per_page; $site_url = site_url(); $count = 0; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; foreach ( $uris as $uri ) { $count ++; if ( $count >= $start ) { //Check Pages Id exist if ( $uri[2] > 0 ) { $arg = array( 'page-id' => $uri[2] ); } else { $arg = array( 'page-uri' => $uri[0] ); } echo ""; echo ""; echo ""; echo ""; echo ""; } if ( $count == $start + 10 ) { break; } } echo "
" . __( 'ID', 'wp-statistics' ) . "" . __( 'Title', 'wp-statistics' ) . "" . __( 'Link', 'wp-statistics' ) . "" . __( 'Visits', 'wp-statistics' ) . "
" . $count . "" . $uri[3] . "" . htmlentities( urldecode( $uri[0] ), ENT_QUOTES ) . "" . number_format_i18n( $uri[1] ) . "
"; } ?>
0 ) { wp_statistics_paginate_links( array( 'item_per_page' => $items_per_page, 'total' => $total, 'current' => $page, ) ); } ?>