Hacked By AnonymousFox

Current Path : /proc/thread-self/root/home/allslyeo/Jekasbbq.com/wp-content/themes/mineral/
Upload File :
Current File : //proc/thread-self/root/home/allslyeo/Jekasbbq.com/wp-content/themes/mineral/template-blog.php

<?php
/**
 * Template Name: Blog page
 */
get_header();

if ( have_posts() ) {
	while ( have_posts() ) {
		the_post();
		//get all the page meta data (settings) needed (function located in functions/meta.php)
		$pexeto_page = pexeto_get_post_meta( $post->ID, array( 'slider', 'blog_layout', 
			'show_title', 'sidebar', 'post_number', 'exclude_cats' ) );

		if ( $pexeto_page['blog_layout']=='twocolumn' || $pexeto_page['blog_layout']=='threecolumn' ) {
			global $pexeto_scripts;
			$pexeto_masonry = true;
			$pexeto_scripts['blog_masonry']=true;
			$pexeto_scripts['blog_masonry_cols'] = $pexeto_page['blog_layout']=='twocolumn' ? 2 : 3;
			$pexeto_page['layout'] = 'full';
			$pexeto_page['columns'] = $pexeto_page['blog_layout']=='twocolumn' ? 2 : 3;
		}else {
			$pexeto_masonry = false;
			$pexeto_page['layout']=$pexeto_page['blog_layout'];
		}

		//include the before content template
		locate_template( array( 'includes/html-before-content.php' ), true, true );

		the_content();
	}
}

//set the main post arguments
$args = array(
	'post_type'=>'post',
	'posts_per_page'=>$pexeto_page['post_number']
);

if ( isset( $pexeto_page['exclude_cats'] ) && !empty( $pexeto_page['exclude_cats'] ) ) {
	$exclude_cats = explode( ',', $pexeto_page['exclude_cats'] );
	$args['category__not_in'] = $exclude_cats;
}

$paged = get_query_var( 'paged' );
if(empty($paged)){
	$paged = get_query_var( 'page' );
}
if(!empty($paged)){
	$args['paged'] = $paged;
}

$args = apply_filters('pexeto_blog_query_args', $args);

query_posts( $args );

if ( have_posts() ) {

	if ( $pexeto_masonry ) {
		//it is a multi-column layout, wrap the content into a masonry div
		?><div id="blog-masonry" class="page-masonry"><?php
	}
	while ( have_posts() ) {
		the_post();
		global $more;
		$more = 0;

		//include the post template
		locate_template( array( 'includes/post-template.php' ), true, false );
	}

	if ( $pexeto_masonry ) {
		?></div><?php
	}


	locate_template( array( 'includes/post-pagination.php' ), true, false );

}else {
	_e( 'No posts available', 'pexeto' );
}

//reset the inital page query
wp_reset_query();
wp_reset_postdata();

//include the after content template
locate_template( array( 'includes/html-after-content.php' ), true, true );

get_footer();
?>

Hacked By AnonymousFox1.0, Coded By AnonymousFox