HEX
Server: Apache
System: Linux vps.rockyroadprinting.net 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: rockyroadprintin (1011)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/rockyroadprintin/www/wp-content/themes/consulting/vc_templates/stm_news/style_5.php
<?php
if (empty($img_size)) {
    $img_size = '360x190';
}
$attachment_id = get_post_thumbnail_id(get_the_ID());
if (!empty($attachment_id)) {
    $thumbnail = consulting_get_image($attachment_id, $img_size);
}
$post_url = get_the_permalink();
?>
<li class="view_style_5 news_item">
    <div class="post_item">
        <?php if (has_post_thumbnail()): ?>
            <a href="<?php echo esc_url($post_url); ?>" class="image">
                <?php echo wp_kses_post($thumbnail); ?>
            </a>
        <?php endif; ?>
        <a href="<?php echo esc_url( $post_url ); ?>" class="title base_font_color">
            <h5 class="secondary_font_color_hv"><?php the_title(); ?></h5>
        </a>
        <a href="<?php echo esc_url( $post_url ); ?>" class="read_more_arrow base_font_color">
            <i class="stm-lnr-arrow-right"></i>
            <?php esc_html_e('Read more', 'consulting'); ?>
        </a>
    </div>
</li>