| Server IP : 172.67.162.67 / Your IP : 216.73.217.154 Web Server : Apache System : Linux vps42439 6.8.0-136-generic #136~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 3 16:29:11 UTC x86_64 User : dh_7hi3h9 ( 6349477) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/dh_7hi3h9/regalflower.com/wp-content/themes/ecode...../ |
Upload File : |
<?php
/**
* The template for displaying posts in the Aside post format
*
* @package WordPress
* @subpackage TemplateMela
* @since TemplateMela 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-main-content">
<?php if ( is_search() || !is_single()) : // Only display Excerpts for Search and not single pages ?>
<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
<div class="entry-thumbnail">
<?php
the_post_thumbnail('tmpmela-blog-posts-list');
$postImage = wp_get_attachment_url( get_post_thumbnail_id(get_the_ID()) );
?>
<?php
if(!empty($postImage)): ?>
<div class="block_hover">
<div class="links">
<a href="<?php echo esc_url($postImage); ?>" title="<?php esc_html_e( 'Click to view Full Image', 'ecode' );?>" data-lightbox="example-set" class="icon mustang-gallery"><i class="fa fa-plus"></i></a> <a href="<?php echo esc_url(get_permalink()); ?>" title="<?php esc_html_e( 'Click to view Read More', 'ecode' );?>" class="icon readmore"><i class="fa fa-link"></i></a>
</div>
</div>
<?php endif; ?>
</div>
<?php else : ?>
<?php if ($postImage = tmpmela_get_first_post_images(get_the_ID())):?>
<div class="entry-thumbnail">
<span class="blog-posts-list"><img src="<?php echo esc_url($postImage); ?>"></span>
<?php
if(!empty($postImage)): ?>
<div class="block_hover">
<div class="links">
<a href="<?php echo esc_url($postImage); ?>" title="<?php esc_html_e( 'Click to view Full Image', 'ecode' );?>" data-lightbox="example-set" class="icon mustang-gallery"><i class="fa fa-plus"></i></a> <a href="<?php echo esc_url(get_permalink()); ?>" title="<?php esc_html_e( 'Click to view Read More', 'ecode' );?>" class="icon readmore"><i class="fa fa-link"></i></a>
</div>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="post-info <?php if(empty($postImage)): ?> non <?php endif; ?>"><!-- post-info -->
<div class="entry-main-header post-header">
<div class="blog-header"><!-- blog-header -->
<div class="entry-content-date">
<?php tmpmela_post_entry_date(); ?>
</div>
<?php
if( $post->post_title == '' ) :
$entry_meta_class = "empty-entry-header";
else :
$entry_meta_class = "";
endif; ?>
<header class="entry-header <?php echo esc_attr($entry_meta_class); ?>">
<h1 class="entry-title"> <a href="<?php esc_url(the_permalink()); ?>" rel="bookmark">
<?php the_title(); ?>
</a><?php tmpmela_sticky_post(); ?> </h1>
</header><!-- .entry-header -->
</div><!-- blog-header -->
</div><!-- .entry-main-header -->
<?php endif; ?>
<div class="entry-content-other">
<?php if ( is_search() || !is_single()) : // Only display Excerpts for Search and not single pages ?>
<div class="entry-summary">
<div class="excerpt"> <?php echo tmpmela_posts_short_description(); ?> </div>
</div><!-- .entry-summary -->
</div><!-- post-info -->
<a href="<?php esc_url(the_permalink()); ?>" rel="bookmark"><span class="blog-icon"></span></a>
<?php else : ?>
<div class="entry-main-header">
<?php
if( $post->post_title == '' ) :
$entry_meta_class = "empty-entry-header";
else :
$entry_meta_class = "";
endif; ?>
<header class="entry-header <?php echo esc_attr($entry_meta_class); ?>">
<h1 class="entry-title">
<?php the_title(); ?>
<?php tmpmela_sticky_post(); ?> </h1>
</header><!-- .entry-header -->
<div class="entry-content-inner">
<div class="entry-meta-inner">
<div class="entry-meta">
<?php tmpmela_author_link(); ?>
<?php edit_post_link( esc_html__( 'Edit', 'ecode' ), '<span class="edit-link"><i class="fa fa-pencil"></i>', '</span>' ); ?>
<?php tmpmela_comments_link(); ?>
<?php tmpmela_tags_links(); ?>
<?php tmpmela_categories_links(); ?>
</div><!-- .entry-meta -->
</div><!-- .entry-meta-inner -->
</div><!-- .entry-content-inner -->
</div><!-- .entry-main-header -->
<div class="entry-content">
<?php
the_post_thumbnail('tmpmela-blog-posts-list');
$postImage = wp_get_attachment_url( get_post_thumbnail_id(get_the_ID()) );
?>
<?php the_content( wp_kses( __('Continue reading <span class="meta-nav">→</span>', 'ecode' ),tmpmela_allowed_html())); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'ecode' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
</div> <!-- entry-content-other -->
</div>
</article>
<!-- #post -->