| Server IP : 104.26.5.103 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/blueoceanprod/public_html/wp-content/themes/techkit/templates/ |
Upload File : |
<?php
/**
* Template Name: Blog 1
*
* @author RadiusTheme
* @since 1.0
* @version 1.0
*/
// Layout class
if ( TechkitTheme::$layout == 'full-width' ) {
$techkit_layout_class = 'col-sm-12 col-12';
}
else{
$techkit_layout_class = TechkitTheme_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 gutters-20">
<?php if ( TechkitTheme::$layout == 'left-sidebar' ) { get_sidebar(); } ?>
<div class="<?php echo esc_attr( $techkit_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 TechkitTheme_Helper::pagination();?></div>
<?php else:?>
<?php get_template_part( 'template-parts/content', 'none' );?>
<?php endif;?>
</main>
</div>
<?php if ( TechkitTheme::$layout == 'right-sidebar' ) { get_sidebar(); } ?>
</div>
</div>
</div>
<?php get_footer(); ?>