HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/doccure-wp/wp-content/themes/doccure/template-parts/post/styles/style-default.php
<?php
/**
 * Template part for displaying posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package doccure
 */
$post_format = get_post_format();
$format_no_thumb = ['audio', 'quote', 'link', 'gallery', 'image'];
$format_no_content = ['quote', 'link'];
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('doccure_post style-7'); ?> >
    <?php if (has_post_thumbnail() && !in_array($post_format, $format_no_thumb)) { ?>
        <div class="doccure_post-thumb doccure-filter-img-wrapper">
            <a href="<?php the_permalink(); ?>"><?php DoccureBase_Lazy_Load::show_lazy_load_post_image(); ?></a>
            <?php
            if ($post_format == 'video') {
                DoccureBase_Blog::get_format_markup($post_format);
            }
            ?>
        </div>
    <?php }
    if ($post_format == 'video' && !has_post_thumbnail()) {
        DoccureBase_Blog::get_format_markup($post_format);
    }
    if ($post_format == 'audio') {
        DoccureBase_Blog::get_format_markup($post_format);
    }
    if ($post_format == 'quote') {
        DoccureBase_Blog::get_format_markup($post_format);
    }
    if ($post_format == 'link') {
        DoccureBase_Blog::get_format_markup($post_format);
    }
    if ($post_format == 'image') {
        DoccureBase_Blog::get_format_markup($post_format, 'full');
    }
    if ($post_format == 'gallery') {
        DoccureBase_Blog::get_format_markup($post_format, 'full');
    }
    ?>

    <?php if (!in_array($post_format, $format_no_content)) { ?>
        <div class="doccure_post-body">
                 <div class="doccure_post-meta">
                    <?php  
                        DoccureBase_Blog::get_posts_author();
                    
                  
                        DoccureBase_Blog::get_post_date();
                   
				 
						DoccureBase_Blog::show_posts_comments();
                  
					 if (  has_post_thumbnail()) {
						DoccureBase_Blog::get_posts_categories();
					}
                    ?>
                </div>
           
            <div class="doccure_post-content">
                <h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
                
                    <p class="m-0"><?php echo wp_trim_words(get_the_excerpt(), 30, '...'); ?></p>
             
                 
                    <a href="<?php echo esc_url(get_the_permalink()); ?>" class="btn-link">
                        <?php esc_html_e('Read More', 'doccure'); ?> <i class="fas fa-angle-right"></i>
                    </a>
                 
            </div>
        </div>
    <?php } ?>
</article>