| Server IP : 170.10.162.208 / Your IP : 216.73.216.38 Web Server : LiteSpeed System : Linux altar19.supremepanel19.com 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64 User : deltahospital ( 1806) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/home/deltahospital/www/wp-content/themes/imedica/ |
Upload File : |
<?php global $post, $posts, $cls, $blog_layout, $imedica_opts;
$thumbnail_size = $blog_layout !== "" ? $blog_layout : 'post-thumbnails';
$post_id = get_the_ID();
$new_cls = '';
if ( is_sticky( $post_id ) ) {
$new_cls .= 'sticky';
} else {
$new_cls = '';
}
$var = '';
if ( isset( $imedica_opts['blog-appear-animation'] ) && $imedica_opts['blog-appear-animation'] == 1 ) {
$appear_animation = isset( $imedica_opts['blog-appear-animation-select'] ) ? $imedica_opts['blog-appear-animation-select'] : '';
$animation_delay = isset ( $imedica_opts['imedica-blog-animation-delay'] ) ? $imedica_opts['imedica-blog-animation-delay'] : '';
$animation_duration = isset( $imedica_opts['imedica-blog-animation-duration'] ) ? $imedica_opts['imedica-blog-animation-duration'] : '';
$var = 'data-animate=' . esc_attr( $appear_animation ) . ' data-animation-delay=' . esc_attr( $animation_delay ) . ' data-animation-duration=' . esc_attr( $animation_duration ) . '';
}
?>
<article id="post-<?php the_ID(); ?>" data-x="<?php echo esc_attr( $post_id ); ?>" <?php post_class( array(
$cls,
$new_cls,
'post-item',
'post'
) ); ?> <?php echo esc_attr( $var ); ?> >
<?php
$img_class = '';
$post_id = $post->ID;
if ( get_the_post_thumbnail( $post_id ) != '' ) {
$img_class = 'imd_has_featured_image';
}
?>
<header class="entry-header">
<div class="post-thumb text-center <?php echo esc_attr( $img_class ); ?>">
<?php
if ( ! post_password_required() && ! is_attachment() && ! has_post_format( 'gallery' ) && ! has_post_format( 'aside' ) && ! has_post_format( 'image' ) && ! has_post_format( 'quote' ) ) :
// echo '<div class="img-overlay"></div>';
$post_id = $post->ID;
if ( get_the_post_thumbnail( $post_id ) != '' ) {
echo "<a href='".get_permalink($post_id)."'>";
the_post_thumbnail( $thumbnail_size );
echo "</a>";
}
endif;
if ( has_post_format( 'image' ) ) {
echo "<a href='".get_permalink($post_id)."'>";
echo '<img src="' . imedica_post_img_grid( $thumbnail_size ) . '">';
echo "</a>";
}
if ( has_post_format( 'gallery' ) ):
$gallery = get_post_gallery( $post_id, false );
endif;
if ( has_post_format( 'video' ) ) :
echo imedica_post_video_grid();
endif;
if ( has_post_format( 'audio' ) ) :
echo do_shortcode( grid_audio_files() );
endif;
?>
</div>
<h2 class="entry-title">
<?php if ( is_single() ) : ?>
<?php the_title(); ?>
<?php else : ?>
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
<?php endif; // is_single() ?>
</h2>
<div class="clearfix"></div>
</header>
<!-- .entry-header -->
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
<!-- .entry-summary -->
<p class="post-meta">
<?php
global $imedica_opts;
$blog_meta = $imedica_opts['imedica-blog-meta']['enabled'];
if ( $blog_meta ):
foreach ( $blog_meta as $meta => $val ) {
switch ( $meta ) {
case 'author':
echo __( 'By ', 'imedica' );
esc_url( the_author_posts_link() );
echo ' | ';
break;
case 'date':
echo esc_attr( get_the_date() );
echo ' | ';
break;
case 'like':
echo getPostLikeLink( get_the_ID(), 'span' );
echo ' | ';
break;
case 'comments':
if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
echo comments_popup_link( __( 'Leave a comment', 'imedica' ), __( '1 Comment ', 'imedica' ), __( '% Comments ', 'imedica' ) );
echo ' | ';
endif;
break;
case 'category':
$cat = get_the_category_list();
if ( $cat ) {
echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'imedica' ) );
echo ' | ';
}
break;
case 'tag':
$tags = get_the_tag_list();
if ( $tags ) {
echo get_the_tag_list( '', __( ', ', 'imedica' ) );
echo ' | ';
}
break;
}
}
if ( is_user_logged_in() ) {
edit_post_link( __( 'Edit', 'imedica' ), '<span class="edit-link">', '</span>' );
echo ' | ';
}
endif;
?>
</p>
<!-- .post-meta -->
</article><!-- #post -->