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/hook-front-page-ticker-section.php
<?php
if (!function_exists('blogai_front_page_ticker_section')) :
    /**
     *
     * @since Blogus
     *
     */
    function blogai_front_page_ticker_section()
    {
       
            
            $enable_ticker = get_theme_mod('enable_news_ticker',1);
            $ticker_title = get_theme_mod('news_ticker_title','Trending');
            $ticker_category = get_theme_mod('news_ticker_category');
            if($enable_ticker == 1) {
            ?>
                 
            <div class="bs-news-ticker">
                <div class="container">    
		        <div class="bs-latest-news"> 
                    <div class="bs-latest-title">
                        <h4 class="bs-latest-heading">
                            <i class="fas fa-bolt"></i>
                            <span><?php echo esc_html($ticker_title); ?></span>
                        </h4> 
                    </div>
                    <div class="bs-latest-news-inner">
                        <div class="bs-latest-news-slider">
                            <?php
                            $number_of_posts = '5';
                            $blogus_all_posts_main = blogus_get_posts($number_of_posts, $ticker_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');?>
  
                            <a class="bs-latest-list bs-blog-ticker-title" href=<?php the_permalink(); ?> title="<?php the_title(); ?>">
								<img decoding="async" src="<?php echo esc_url($blogus_url); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" class="bs-latest-img bs-blog-ticker-image">
                                <span><?php the_title(); ?></span>
                            </a>
                            <?php
                                endwhile;
                                endif;
                                wp_reset_postdata();
                            ?>	
                        </div>
                    </div>

                    <div class="bs-latest-play ">
                        <span><i class="fas fa-pause"></i></span>
                    </div>  
                </div>
                </div>
            </div>
        <?php } }
    
endif;
add_action('blogai_action_front_page_ticker_section', 'blogai_front_page_ticker_section', 40);