HEX
Server: LiteSpeed
System: Linux premium221.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: //home/madepabj/www/wp-content/themes/rehub-theme/content-egg-templates/GoogleNews/data_grid.php
<?php
/*
  Name: News grid
 */
?>
<?php if (isset($title) && $title): ?>
    <h3 class="cegg-shortcode-title"><?php echo esc_html($title); ?></h3>
<?php endif; ?>
<div class="col_wrap_three rh-flex-eq-height compact_rel_grid">
    <?php foreach ($items as $item): ?>
        <?php 
            $title = (!empty($item['title'])) ? esc_html($item['title']) : '';
            $url = (!empty($item['url'])) ? esc_url($item['url']) : '';
            $img = (!empty($item['img'])) ? esc_html($item['img']) : '';
        ?>
        <div class="col_item">
            <?php if ($img): ?>
                <div class="medianews-img floatleft mr20 rtlml20">
                    <?php WPSM_image_resizer::show_static_resized_image(array('src'=> $img, 'width'=> 80, 'title' => $title));?>                     
                </div>
            <?php endif; ?>
            <div class="medianews-body floatright width-100-calc">
                <div class="rehub-main-font font90 lineheight20 mb10 mt0">
                    <?php echo wpsm_hidelink_shortcode(array('link'=>$url, 'text'=>$title));?>
                </div>
                <div class="font70 lineheight15">
                    <?php echo date(get_option('date_format'), $item['extra']['date']); ?> -
                    <?php echo wpsm_hidelink_shortcode(array('link'=>$url, 'text'=>$item['extra']['source']));?>
                </div>
            </div>
        </div>
    <?php endforeach; ?>
</div>