403Webshell
Server IP : 198.38.94.67  /  Your IP : 216.73.217.142
Web Server : LiteSpeed
System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
User : azfilmst ( 1070)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/azfilmst/alizamani.com/wp-content/themes/scena/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/azfilmst/alizamani.com/wp-content/themes/scena/templates/template-blog.php
<?php
/**
 * Template Name: Blog
 */

get_header();

$style = themerain_meta( 'blog_style' );
$count = get_option( 'posts_per_page' );
$cats  = themerain_meta( 'blog_cats' );
$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : ( get_query_var( 'page' ) ? get_query_var( 'page' ) : 1 );

$args = array(
	'post_type'      => 'post',
	'posts_per_page' => $count,
	'paged'          => $paged
);

if ( $cats ) {
	$args['tax_query'] = array( array( 'taxonomy' => 'category', 'terms' => $cats ) );
}

$query = new WP_Query( $args );

echo '<div class="area blog-area ' . esc_attr( $style ) . '">';
	while ( $query->have_posts() ) :
		$query->the_post();
		set_query_var( 'blog_style', $style );

		get_template_part( 'template-parts/content', 'post' );
	endwhile;
echo '</div>';

themerain_loadmore( array(
	'post_type'    => 'post',
	'count'        => $count,
	'current_page' => $paged,
	'max_pages'    => $query->max_num_pages,
	'style'        => $style,
	'cats'         => ( is_array( $cats ) ) ? implode( ',', $cats ) : ''
) );

wp_reset_postdata();

get_footer();

Youez - 2016 - github.com/yon3zu
LinuXploit