Skip to content

Commit

Permalink
Issue #131 - improve styling capability for bw_navi
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Jun 3, 2019
1 parent 648c117 commit 21f9109
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions shortcodes/oik-navi.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php // (C) Copyright Bobbing Wide 2014-2017
<?php // (C) Copyright Bobbing Wide 2014-2019

/**
* Return the next unique shortcode ID
Expand Down Expand Up @@ -69,7 +69,7 @@ function bw_check_paged_shortcode( $bwscid ) {
* @param array $atts
*/
function oik_navi_lazy_paginate_links( $atts ) {
bw_trace2();
// bw_trace2();
$bwscid = bw_array_get( $atts, "bwscid", null );
$bwscpage = bw_array_get( $atts, "paged", null );
$bw_query = bw_array_get( $atts, "bw_query", null );
Expand Down Expand Up @@ -122,6 +122,7 @@ function bw_navi_paginate_links( $id, $page, $pages ) {
, "before_page_number" => "["
, "after_page_number" => "]"
, "add_args" => false
, "type" => "plain"
);
// We don't need to worry about these yet
// 'show_all' => false,
Expand All @@ -136,7 +137,9 @@ function bw_navi_paginate_links( $id, $page, $pages ) {
$links = paginate_links( $args );
//bw_trace2( $args, "args" );
//bw_trace2( $links, "links", false );
e( $links );
sdiv( "page-numbers pagination");
e( $links );
ediv();
$_SERVER['REQUEST_URI'] = $saved_request_uri;
}

Expand Down Expand Up @@ -185,9 +188,9 @@ function bw_navi_s2eofn( $start, $end, $count, $prefix=null ) {
if ( $prefix ) {
BW_::br( $prefix );
}
span( "bw_s2eofn" );
sdiv( "bw_s2eofn" );
e( sprintf( __( '%1$s to %2$s of %3$s', 'oik') , $start, $end, $count ) );
epan();
ediv();
}
}

Expand Down

0 comments on commit 21f9109

Please sign in to comment.