GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/venice-restaurants.anqa.it/wp-content/themes/blogxer/template-parts/content-4.php
<?php
/**
 * @author  RadiusTheme
 * @since   1.0
 * @version 1.0
 */
$ul_class = $post_classes = '';

$blogxer_has_entry_meta  = ( ( !has_post_thumbnail() && BlogxerTheme::$options['blog_date'] ) || BlogxerTheme::$options['blog_author_name'] || BlogxerTheme::$options['blog_comment_num'] || BlogxerTheme::$options['blog_cats'] ) ? true : false;

$blogxer_has_entry_meta2  = ( BlogxerTheme::$options['blog_author_name'] || BlogxerTheme::$options['blog_date'] || BlogxerTheme::$options['blog_cats'] ) ? true : false;

$blogxer_time_html       = sprintf( '%s <span>%s</span>,<span> %s</span>',get_the_time( 'M' ), get_the_time( 'd' ), get_the_time( 'Y' ) );
$blogxer_time_html       = apply_filters( 'blogxer_single_time', $blogxer_time_html );
$blogxer_time_html_2     = apply_filters( 'blogxer_single_time_no_thumb', get_the_time( get_option( 'date_format' ) ) );

$blogxer_comments_number = number_format_i18n( get_comments_number() );
$blogxer_comments_html = $blogxer_comments_number == 1 ? esc_html__( 'Comment' , 'blogxer' ) : esc_html__( 'Comments' , 'blogxer' );
$blogxer_comments_html = $blogxer_comments_number . ' ' . $blogxer_comments_html;

$thumbnail = false;

$thumb_size = 'blogxer-size9';

if (  BlogxerTheme::$layout == 'right-sidebar' || BlogxerTheme::$layout == 'right-sidebar' ){
	$post_classes = array( 'col-12 blog-layout-4' );
	$ul_class = 'side_bar';
} else {
	$post_classes = array( 'col-12 blog-layout-4' );
	$ul_class = '';
}
$id = get_the_ID();
$content = get_the_content();
$content = apply_filters( 'the_content', $content );
$content = wp_trim_words( $content, BlogxerTheme::$options['post_content_limit'], '' );	
?>
<div id="post-<?php the_ID(); ?>" <?php post_class( $post_classes ); ?>>
	<div class="blog-box">
		<div class="row no-gutters">
			<?php if ( $i % 2 == 1 ) { ?>
			<div class="col-lg-6 entry-content order2">
				<div class="inner-content">
				<?php if ( $blogxer_has_entry_meta2 ) { ?>
				<ul>
					<?php if ( BlogxerTheme::$options['blog_author_name'] ) { ?>
					<li><?php the_author_posts_link(); ?></li>
					<?php } if ( BlogxerTheme::$options['blog_date'] ) { ?>
					<li><?php echo get_the_date(); ?></li>
					<?php } if ( BlogxerTheme::$options['blog_cats'] ) { ?>			
					<li class="blog-cat"><?php echo the_category( ', ' );?></li>
					<?php } if ( BlogxerTheme::$options['blog_length'] && function_exists( 'blogxer_reading_time' ) ) { ?>
					<li class="meta-reading-time meta-item"> <?php echo blogxer_reading_time(); ?></li>
					<?php } ?>
				</ul>
				<?php } ?>
				<h3><a href="<?php the_permalink();?>"><?php the_title();?></a></h3>
				<div class="blog-text"><p><?php echo wp_kses_post( $content ); ?></p></div>
				<?php if ( BlogxerTheme::$options['blog_view'] && function_exists( 'blogxer_views' ) || BlogxerTheme::$options['blog_comment_num']) { ?>
				<div class="comm-views">
					<ul>
						<?php if ( BlogxerTheme::$options['blog_view'] && function_exists( 'blogxer_views' ) ) { ?>
						<li><span class="meta-views meta-item "><?php echo blogxer_views(); ?></span></li>
						<?php } if ( BlogxerTheme::$options['blog_comment_num'] ) { ?>
						<li><a href="<?php echo get_comments_link( get_the_ID() ); ?>"><?php echo esc_html( $blogxer_comments_html );?></a></li>
						<?php } ?>
					</ul>
				</div>
				<?php } ?>
				<a class="item-btn" href="<?php the_permalink(); ?>"><span><?php esc_html_e( 'READ MORE', 'blogxer' ); ?></span><?php if ( is_rtl() ) { ?><i class="fa fa-arrow-right" aria-hidden="true"></i><?php } else { ?><i class="fa fa-arrow-right" aria-hidden="true"></i><?php } ?></a>
				</div>
			</div>
			<?php } ?>
			
			<?php if ( has_post_thumbnail() || BlogxerTheme::$options['display_no_preview_image'] == '1'  ) { ?>
			<div class="col-lg-6 entry-image">
				<div class="entry-thumbnail-area">
				<a href="<?php the_permalink(); ?>" class="img-opacity-hover"><?php if ( has_post_thumbnail() ) { ?>
					<?php the_post_thumbnail( 'blogxer-size9', ['class' => 'img-responsive'] ); ?>
						<?php } else {
						if ( BlogxerTheme::$options['display_no_preview_image'] == '1' ) {
							if ( !empty( BlogxerTheme::$options['no_preview_image']['id'] ) ) {
								$thumbnail = wp_get_attachment_image( BlogxerTheme::$options['no_preview_image']['id'], $thumb_size );						
							}
							elseif ( empty( BlogxerTheme::$options['no_preview_image']['id'] ) ) {
								$thumbnail = '<img class="wp-post-image" src="'.BLOGXER_IMG_URL.'noimage_450X330.jpg" alt="'. the_title_attribute( array( 'echo'=> false ) ) .'">';
							}
							echo wp_kses_post( $thumbnail );				
						}
					}
					?>
				</a>
				</div>
			</div>
			<?php } ?>
		
			
			<?php if ( $i % 2 == 0 ) { ?>
			<div class="col-lg-6 entry-content order2">
				<div class="inner-content">
				<?php if ( $blogxer_has_entry_meta2 ) { ?>
				<ul>
					<?php if ( BlogxerTheme::$options['blog_author_name'] ) { ?>
					<li><?php the_author_posts_link(); ?></li>
					<?php } if ( BlogxerTheme::$options['blog_date'] ) { ?>
					<li><?php echo get_the_date(); ?></li>
					<?php } if ( BlogxerTheme::$options['blog_cats'] ) { ?>			
					<li class="blog-cat"><?php echo the_category( ', ' );?></li>
					<?php } if ( BlogxerTheme::$options['blog_length'] && function_exists( 'blogxer_reading_time' ) ) { ?>
					<li class="meta-reading-time meta-item"> <?php echo blogxer_reading_time(); ?></li>
					<?php } ?>
				</ul>
				<?php } ?>
				<h3><a href="<?php the_permalink();?>"><?php the_title();?></a></h3>
				<div class="blog-text"><p><?php echo wp_kses_post( $content ); ?></p></div>
				<?php if ( BlogxerTheme::$options['blog_view'] && function_exists( 'blogxer_views' ) || BlogxerTheme::$options['blog_comment_num']) { ?>
				<div class="comm-views">
					<ul>
						<?php if ( BlogxerTheme::$options['blog_view'] && function_exists( 'blogxer_views' ) ) { ?>
						<li><span class="meta-views meta-item "><?php echo blogxer_views(); ?></span></li>
						<?php } if ( BlogxerTheme::$options['blog_comment_num'] ) { ?>
						<li><a href="<?php echo get_comments_link( get_the_ID() ); ?>"><?php echo esc_html( $blogxer_comments_html );?></a></li>
						<?php } ?>
					</ul>
				</div>
				<?php } ?>
				<a class="item-btn" href="<?php the_permalink(); ?>"><span><?php esc_html_e( 'READ MORE', 'blogxer' ); ?></span><?php if ( is_rtl() ) { ?><i class="fa fa-arrow-right" aria-hidden="true"></i><?php } else { ?><i class="fa fa-arrow-right" aria-hidden="true"></i><?php } ?></a>
				</div>
			</div>
			<?php } ?>
		</div>
	</div>
</div>