HEX
Server: Apache/2.4.57 (Debian)
System: Linux web-server-k8s-e92jnr3j-6f99bff6b6-rp2wg 6.1.0-22-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.94-1 (2024-06-21) x86_64
User: apache (48)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: /var/www/sites/1250.info/wp-content/themes/blogai/hooks/blocks/block-banner-listthumb.php
<?php //Banner 4 Post 
if (is_front_page() || is_home()) {
       
        $number_of_posts = '4';
        $blogus_slider_category = blogus_get_option('select_recent_news_category');
        $blogus_all_posts_main = blogus_get_posts($number_of_posts, $blogus_slider_category);
        if ($blogus_all_posts_main->have_posts()) :
        while ($blogus_all_posts_main->have_posts()) : $blogus_all_posts_main->the_post();
        global $post;
        $blogus_url = blogus_get_freatured_image_url($post->ID, 'blogus-slider-full');
        ?>
                        
          <div class="col-md-6">
              <!-- // small-post -->
              <div class="bs-blog-post three sm back-img bshre" style="background-image: url('<?php echo esc_url($blogus_url); ?>');">
                   <a href="<?php the_permalink(); ?>" class="link-div"></a>
                <div class="inner">
                  <h4 class="title"> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
                </div>
              </div>
              <!-- // small-post -->
           </div>
<?php
    endwhile;
endif;
wp_reset_postdata();
?>
<?php }