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_2.php
<?php
$attachment_id = get_post_thumbnail_id( get_the_ID() );
$thumbnail = consulting_get_image($attachment_id, $settings['img_size']);
$post_url = get_the_permalink();
?>
<li class="view_style_2">
    <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; ?>
        <div class="content">
            <a href="<?php echo esc_url($post_url); ?>" class="title">
                <h5><?php the_title(); ?></h5>
            </a>
            <a href="<?php echo esc_url($post_url); ?>" class="read_more">
                <i class="stm-lnr-arrow-right third_bg_color base_bg_color_hv"></i>
                <span>
                <?php esc_html_e('Read more', 'consulting'); ?>
                </span>
            </a>
        </div>
    </div>
</li>