HEX
Server: Apache
System: Linux server-674799.igrow.ws 5.14.0-611.30.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 11 06:42:00 EST 2026 x86_64
User: elrashedytravel (1025)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/elrashedytravel/www/wp-content/themes/reviewnews/inc/hooks/blocks/block-post-latest.php
<?php
    /**
     * List block part for displaying latest posts in footer.php
     *
     * @package ReviewNews
     */
    
    $reviewnews_latest_posts_title = reviewnews_get_option('frontpage_latest_posts_section_title');
    $reviewnews_latest_posts_subtitle = reviewnews_get_option('frontpage_latest_posts_section_subtitle');
    $reviewnews_number_of_posts = reviewnews_get_option('number_of_frontpage_latest_posts');
    $reviewnews_all_posts = reviewnews_get_posts($reviewnews_number_of_posts);
?>
<div class="af-main-banner-latest-posts grid-layout reviewnews-customizer">
    <div class="container-wrapper">
        <div class="widget-title-section">
            <?php if (!empty($reviewnews_latest_posts_title)): ?>
                <?php reviewnews_render_section_title($reviewnews_latest_posts_title); ?>
            <?php endif; ?>
        </div>
        <div class="af-container-row clearfix">
            <?php
                if ($reviewnews_all_posts->have_posts()) :
                    while ($reviewnews_all_posts->have_posts()) : $reviewnews_all_posts->the_post();
                        global $post;

                        ?>
                        <div class="col-4 pad float-l">
                            <?php do_action('reviewnews_action_loop_grid', $post->ID); ?>
                        </div>
                    <?php
                    endwhile; ?>
                <?php
                endif;
                wp_reset_postdata();
            ?>
        </div>
    </div>
</div>