Beispiel #1
0
 function training_wpo_woocommerce_pagination($per_page, $total)
 {
     ?>
     <div class="clearfix">
         <?php 
     training_wpo_pagination($prev = esc_html__('Previous', 'training'), $next = esc_html__('Next', 'training'), $pages = '', array('class' => 'pull-left pagination-sm'));
     ?>
         <?php 
     global $wp_query;
     ?>
         <div class="result-count pull-right">
             <?php 
     $paged = max(1, $wp_query->get('paged'));
     $first = $per_page * $paged - $per_page + 1;
     $last = min($total, $wp_query->get('posts_per_page') * $paged);
     if (1 == $total) {
         esc_html_e('Showing the single result', 'training');
     } elseif ($total <= $per_page || -1 == $per_page) {
         printf(esc_html__('Showing all %d results', 'training'), $total);
     } else {
         printf(_x('Showing %1$d &ndash; %2$d of %3$d results', '%1$d = first, %2$d = last, %3$d = total', 'training'), $first, $last, $total);
     }
     ?>
         </div>
     </div>
 <?php 
 }
 col-xs-12">
								<?php 
            get_template_part('templates/gallery/item');
            ?>
					
							</div>
						<?php 
        }
        ?>

					<?php 
    }
    ?>
					<div class="clearfix"></div>
					<?php 
    training_wpo_pagination();
    ?>
				</div>	
        <?php 
} else {
    ?>
            <?php 
    get_template_part('templates/elements/none');
    ?>
        <?php 
}
do_action('training_wpo_layout_template_after');
?>

<?php 
get_footer();