Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/walla3t.corals.io/wp-content/themes/apper/partials/entry/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/walla3t.corals.io/wp-content/themes/apper/partials/entry/columns.php
<?php
/**
 * Default post entry layout
 *
 * @package Apper WordPress theme
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

global $post;

// Get post format
$get_post_format = get_post_format();
$settings = acmthemes_settings();

//default number of post columns
if ( is_active_sidebar( 'blog_sidebar' ) ) {
	$get_columns = 2;
}
else {
	$get_columns = 3;
}

//get columns count from theme settings
if ( ! empty( $settings['blog_col_layout'] ) ) {
	if( $settings['blog_col_layout'] < 2 )
		$get_columns = 3;
	else
		$get_columns = $settings['blog_col_layout'];
}

$resp_col_classes = ( function_exists( 'acmthemes_get_custom_col' ) ) ? acmthemes_get_custom_col( $get_columns ) : '';
?>

<?php

//featured posts
$sticky = get_option( 'sticky_posts' );
$args = array(
'post__in'  => $sticky,
'ignore_sticky_posts' => 1
);

$sticky_posts = count($sticky);

if( $sticky_posts > 0 ) {
$query = new WP_Query( $args );

	if ( $query->have_posts() ) {

		while ( $query->have_posts() ) {
			$query->the_post();
			get_template_part( 'partials/entry/columns-content-featured' );
		}
		wp_reset_postdata();

	}

}

?>

<div id="blog-entries" class="blog-column multi-columns <?php acmthemes_blog_wrap_classes(); ?>">

	<div class="acm-row acm-flex-wrap multi-column-grid">

		<?php
		$acmthemes_count = 0;
		// Loop through posts
		while ( have_posts() ) : the_post();
		$acmthemes_count++;

		if( is_sticky( $post->ID ) )
			continue;
		?>
		<div class="acm-col <?php echo esc_attr( $resp_col_classes ) ; ?> match-grids">

			<?php
			//article content
				get_template_part( 'partials/entry/columns-content' );
			?>

		</div>

	<?php
	// Reset counter to clear floats
	if ( acmthemes_blog_entry_columns() == $acmthemes_count ) {
		$acmthemes_count=0;
	}
	endwhile;
	?>

	</div>
</div>

Spamworldpro Mini