File "blog.php"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/kapee-extensions/templates/shortcodes/blog.php
File size: 1.85 KB
MIME-type: text/x-php
Charset: utf-8

<?php 
/**
 * Blog Template
 */
?>
<div id="<?php echo esc_attr( $id );?>" class="<?php echo esc_attr( $class );?>">
	<?php
	kapee_post_loop_start();	
		while ( $query->have_posts() ) :
			$query->the_post();			
			// Include the loop post content template.
			get_template_part( 'template-parts/post-loop/layout', get_post_format() );
		endwhile;
		
	kapee_post_loop_end();
	
	if( $show_pagination ) { ?>
		<nav class="kapee-pagination">
			<?php		
			if ( $pagination != 'default' ){
				$load_more_label 		= kapee_get_loop_prop( 'blog-pagination-load-more-button-text' );
				$loading_finished_msg 	= kapee_get_loop_prop( 'blog-pagination-finished-message' );
			?>
			<div class="kapee-blog-load-more" data-pagination_style = "<?php echo esc_attr( $pagination );?>" data-total="<?php echo esc_attr( $total );?>">
				<a data-attribute="<?php echo base64_encode( $atts ); ?>" data-page="2" href="javascript:void(0);" class="button kapee-load-more <?php echo esc_attr( $pagination ); ?>"
				data-pagination_style = "<?php echo esc_attr( $pagination );?>" data-total="<?php echo esc_attr( $total );?>" 
				data-load_more_label="<?php echo esc_html( $load_more_label ); ?>"
				data-loading_finished_msg="<?php echo esc_html( $loading_finished_msg ); ?>">
					<?php echo esc_html( $load_more_label ); ?>
				</a>
				</div>
			<?php }else{
				echo paginate_links( apply_filters( 'kapee_pagination_args', array(
					'base'         => $base,
					'format'       => $format,
					'add_args'     => false,
					'current'      => max( 1, $current ),
					'total'        => $total,
					'prev_text'    => esc_html__( 'Previous', 'kapee-extensions' ),
					'next_text'    => esc_html__( 'Next', 'kapee-extensions' ),
					'type'         => 'list',
					'end_size'     => 2,
					'mid_size'     => 2,
				) ) );
			}
		?>
		</nav>
	<?php }
	wp_reset_postdata();
	kapee_reset_loop();
	?>
</div>