HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/shootinschool/wp-content/themes/splash-child/partials/loop/content-news-grid.php
<div class="stm-latest-news-single">
    <div <?php post_class('stm-single-post-loop'); ?>>
        <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">

            <?php if(has_post_thumbnail() and !is_search()): ?>
                <div class="image <?php echo esc_html(get_post_format(get_the_ID())); ?>">
                    <?php the_post_thumbnail('stm-350-250', array('class' => 'img-responsive')); ?>
                    <?php if(is_sticky(get_the_id())): ?>
                        <div class="stm-sticky-post heading-font"><?php esc_html_e('Sticky Post','splash'); ?></div>
                    <?php endif; ?>
                </div>
            <?php else: ?>
                <?php if(is_sticky(get_the_id())): ?>
                    <div class="stm-sticky-post stm-sticky-no-image heading-font"><?php esc_html_e('Sticky Post','splash'); ?></div>
                <?php endif; ?>
            <?php endif; ?>
        </a>

        <div class="stm-news-data-wrapp">
            <div class="date <?php echo (!is_layout("af")) ? "heading-font" : "normal_font"; ?> clear">
                <?php echo esc_attr(get_the_date()); ?>
            </div>
    
            <div class="title heading-font clear">
                <a href="<?php the_permalink() ?>">
                    <?php the_title(); ?>
                </a>
            </div>           
    
            <div class="post-meta <?php echo (is_layout("bb")) ? "heading-font" : "normal_font"; ?> clear">
                <div class="news-category">
                    <i class="fa fa-folder-o" aria-hidden="true"></i>
                    <?php $categ = get_the_category(get_the_ID()); echo $categ[0]->cat_name; ?>
                </div>
                <?php $comments_num = get_comments_number(get_the_id()); ?>
                <?php if($comments_num): ?>
                    <div class="comments-number">
                        <a href="<?php the_permalink() ?>#comments">
                            <i class="fa fa-comment-o" aria-hidden="true"></i>
                            <span><?php echo esc_attr($comments_num); ?></span>
                        </a>
                    </div>
                <?php else: ?>
                    <div class="comments-number">
                        <a href="<?php the_permalink() ?>#comments">
                            <i class="fa fa-comment-o" aria-hidden="true"></i>
                            <span>0</span>
                        </a>
                    </div>
                <?php endif; ?>
            </div>
        </div>
    </div>
</div>