| Server IP : 144.76.79.100 / Your IP : 216.73.216.103 [ Web Server : Apache System : Linux ch05.wehostwebserver.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64 User : razzlestore ( 1092) PHP Version : 8.2.29 Disable Function : NONE Domains : 343 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/razzlestore/public_html/wp-content/themes/zugan/templates/ |
Upload File : |
<?php
/**
* Template Name: Blog 1
*
* @author RadiusTheme
* @since 1.0
* @version 1.0
*/
// Layout class
if ( ZuganTheme::$layout == 'full-width' ) {
$zugan_layout_class = 'col-sm-12 col-12';
}
else{
$zugan_layout_class = ZuganTheme_Helper::has_active_widget();
}
$args = array(
'post_type' => "post",
);
if ( get_query_var('paged') ) {
$args['paged'] = get_query_var('paged');
}
elseif ( get_query_var('page') ) {
$args['paged'] = get_query_var('page');
}
else {
$args['paged'] = 1;
}
$query = new WP_Query( $args );
global $wp_query;
$wp_query = NULL;
$wp_query = $query;
get_header(); ?>
<div id="primary" class="content-area">
<div class="container">
<div class="row">
<?php if ( ZuganTheme::$layout == 'left-sidebar' ) { get_sidebar(); } ?>
<div class="<?php echo esc_attr( $zugan_layout_class );?>">
<main id="main" class="site-main">
<?php if ( have_posts() ) :?>
<?php
echo '<div class="blog-layout-1 row rt-masonry-grid">';
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content-1', get_post_format() );
endwhile;
echo '</div>';
?>
<div class="mt50"><?php ZuganTheme_Helper::pagination();?></div>
<?php else:?>
<?php get_template_part( 'template-parts/content', 'none' );?>
<?php endif;?>
</main>
</div>
<?php if ( ZuganTheme::$layout == 'right-sidebar' ) { get_sidebar(); } ?>
</div>
</div>
</div>
<?php get_footer(); ?>