LittleDemon WebShell


Linux server27.hostingraja.org 2.6.32-954.3.5.lve1.4.93.el6.x86_64 #1 SMP Wed Oct 4 17:04:29 UTC 2023 x86_64
Path : /home/udaipurk/www/websites/bombay-corner/wp-content/themes/panpie/template-parts/
File Upload :
Command :
Current File : //home/udaipurk/www/websites/bombay-corner/wp-content/themes/panpie/template-parts/content-1.php

<?php
/**
 * @author  RadiusTheme
 * @since   1.0
 * @version 1.0
 */
$ul_class = $post_classes = '';

$thumb_size = 'panpie-size7';

$panpie_has_entry_meta  = ( PanpieTheme::$options['blog_date'] || PanpieTheme::$options['blog_author_name'] || PanpieTheme::$options['blog_cats'] || PanpieTheme::$options['blog_comment_num'] || PanpieTheme::$options['blog_length'] && function_exists( 'panpie_reading_time' ) || PanpieTheme::$options['blog_view'] && function_exists( 'panpie_views' ) ) ? true : false;

$panpie_time_html = sprintf( '<span>%s</span> <span>%s</span>', get_the_time( 'd' ), get_the_time( 'M' ), get_the_time( 'Y' ) );

$panpie_comments_number = number_format_i18n( get_comments_number() );
$panpie_comments_html = $panpie_comments_number == 1 ? esc_html__( 'Comment: ' , 'panpie' ) : esc_html__( 'Comments: ' , 'panpie' );
$panpie_comments_html = $panpie_comments_html . '<span class="comment-number">'. $panpie_comments_number .'</span> ';

$thumbnail = false;

if (  PanpieTheme::$layout == 'right-sidebar' || PanpieTheme::$layout == 'right-sidebar' ){
	$post_classes = array( 'col-lg-6 col-md-6 col-sm-6 col-12 rt-grid-item blog-layout-1' );
	$ul_class = 'side_bar';
} else {
	$post_classes = array( 'col-lg-4 col-md-4 col-sm-4 col-12 rt-grid-item blog-layout-1' );
	$ul_class = '';
}

if ( empty(has_post_thumbnail() ) ) {
	$img_class ='no_image';
}else {
	$img_class ='show_image';
}

$id = get_the_ID();
$content = get_the_content();
$content = apply_filters( 'the_content', $content );
$content = wp_trim_words( get_the_excerpt(), PanpieTheme::$options['post_content_limit'], '' );
	
?>
<div id="post-<?php the_ID(); ?>" <?php post_class( $post_classes ); ?>>
	<div class="blog-box <?php echo esc_attr($img_class); ?>">
		<?php if ( has_post_thumbnail() || PanpieTheme::$options['display_no_preview_image'] == '1'  ) { ?>
		<div class="blog-img-holder">
			<div class="blog-img">
				<a href="<?php the_permalink(); ?>" class="img-opacity-hover"><?php if ( has_post_thumbnail() ) { ?>
					<?php the_post_thumbnail( $thumb_size, ['class' => 'img-responsive'] ); ?>
						<?php } else {
						if ( PanpieTheme::$options['display_no_preview_image'] == '1' ) {
							if ( !empty( PanpieTheme::$options['no_preview_image']['id'] ) ) {
								$thumbnail = wp_get_attachment_image( PanpieTheme::$options['no_preview_image']['id'], $thumb_size );						
							}
							elseif ( empty( PanpieTheme::$options['no_preview_image']['id'] ) ) {
								$thumbnail = '<img class="wp-post-image" src="'.PANPIE_IMG_URL.'noimage_420X435.jpg" alt="'. the_title_attribute( array( 'echo'=> false ) ) .'">';
							}
							echo wp_kses( $thumbnail , 'alltext_allow' );
						}
					}
					?>
				</a>
			</div>
		</div>
		<?php } ?>
		<div class="entry-content">
			<?php if ( $panpie_has_entry_meta ) { ?>
			<ul>
				<?php if ( PanpieTheme::$options['blog_date'] ) { ?>	
				<li class="blog-date"><i class="far fa-calendar"></i><?php echo get_the_date(); ?></li>
				<?php } if ( PanpieTheme::$options['blog_author_name'] ) { ?>
				<li class="item-author"><i class="fas fa-user"></i><?php esc_html_e( 'by ', 'panpie' );?><?php the_author_posts_link(); ?></li>
				<?php } if ( PanpieTheme::$options['blog_cats'] ) { ?>
				<li class="blog-cat"><i class="fas fa-tag"></i><?php echo the_category( ', ' );?></li>
				<?php } if ( PanpieTheme::$options['blog_comment_num'] ) { ?>
				<li class="blog-comment"><i class="fas fa-comment"></i><a href="<?php echo get_comments_link( get_the_ID() ); ?>"><?php echo wp_kses( $panpie_comments_html , 'alltext_allow' );?></a></li>
				<?php } if ( PanpieTheme::$options['blog_length'] && function_exists( 'panpie_reading_time' ) ) { ?>
				<li class="meta-reading-time meta-item"><i class="far fa-clock"></i><?php echo panpie_reading_time(); ?></li>
				<?php } if ( PanpieTheme::$options['blog_view'] && function_exists( 'panpie_views' ) ) { ?>
				<li><span class="meta-views meta-item "><i class="fas fa-signal"></i><?php echo panpie_views(); ?></span></li>
				<?php } ?>
			</ul>
			<?php } ?>
			<h3><a href="<?php the_permalink();?>"><?php the_title();?></a></h3>
			<?php if ( PanpieTheme::$options['blog_content'] ) { ?>
			<div class="blog-text"><p><?php echo wp_kses( $content , 'alltext_allow' ); ?></p></div>
			<?php } ?>
			<a class="blog-btn" href="<?php the_permalink();?>"><?php esc_html_e( 'READ MORE', 'panpie' );?><i class="fas fa-arrow-right"></i></a>
		</div>
	</div>
</div>

LittleDemon - FACEBOOK
[ KELUAR ]