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_4.php
<?php
$image_size = '360x250';
if( $i === 1 || ( ( ( ( $i + 1 ) % 3 ) === 0 ) && $i !== 2 ) ) {
    $image_size = '360x403';
}
elseif( $i === 2 || ( ( $i + 2 ) % 3 ) === 0 ) {
    $image_size = '360x283';
}
$attachment_id = get_post_thumbnail_id( get_the_ID() );
if( !empty( $attachment_id ) ) {
    $thumbnail = consulting_get_image($attachment_id, $image_size);
}
$post_url = get_the_permalink();
?>
<?php if( has_post_thumbnail() ): ?>
    <li class="view_style_4 news_item">
        <div class="post_item">
            <a href="<?php echo esc_url( $post_url ); ?>" class="image">
                <div class="post_date third_bg_color base_font_color">
                    <?php echo get_the_date(); ?>
                </div>
                <?php
                echo wp_kses_post( $thumbnail );
                ?>
                <h5><?php the_title(); ?></h5>
            </a>
        </div>
    </li>
<?php endif; ?>