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/blogus/inc/ansar/hooks/hook-featured-ads-section.php
<?php if (!function_exists('blogus_featured_ads_section')) :
/**
 *  Header
 *
 * @since Blogus
 *
 */
function blogus_featured_ads_section()
{

if (is_front_page() || is_home()) {

$show_featured_links_section = get_theme_mod('show_featured_links_section',false);
$fatured_post_image_one = get_theme_mod('fatured_post_image_one'); 
$fatured_post_image_one_atc = wp_get_attachment_image($fatured_post_image_one);
$featured_post_one_btn_txt = get_theme_mod('featured_post_one_btn_txt');
$featured_post_one_url = get_theme_mod('featured_post_one_url');
$featured_post_one_url_new_tab = get_theme_mod('featured_post_one_url_new_tab', true);

$fatured_post_image_two = get_theme_mod('fatured_post_image_two');
$fatured_post_image_two_atc = wp_get_attachment_image($fatured_post_image_two);
$featured_post_two_btn_txt = get_theme_mod('featured_post_two_btn_txt');
$featured_post_two_url = get_theme_mod('featured_post_two_url');
$featured_post_two_url_new_tab = get_theme_mod('featured_post_two_url_new_tab', true);

$fatured_post_image_three = get_theme_mod('fatured_post_image_three');
$fatured_post_image_three_atc = wp_get_attachment_image($fatured_post_image_three);
$featured_post_three_btn_txt = get_theme_mod('featured_post_three_btn_txt');
$featured_post_three_url = get_theme_mod('featured_post_three_url');
$featured_post_three_url_new_tab = get_theme_mod('featured_post_three_url_new_tab', true);

if($show_featured_links_section == 'true') { 
?>
<div class="promoss mb-4">
  <div class="container">
    <div class="row">  
      <!-- /promo box -->        
      <div class="col-md-4">
                <div class="bs-widget promo bshre" style="background-image: url('<?php echo esc_url($fatured_post_image_one); ?>');">
                  <div class="inner-content">
                    <div class="text">
                     <h5><a <?php if($featured_post_one_url_new_tab) { ?> target="_blank" <?php } ?> href="<?php echo esc_url($featured_post_one_url); ?>"><?php echo esc_html($featured_post_one_btn_txt); ?></a>
                     </h5>
                  </div>
                </div>
              </div>
            </div>
          <!-- /promo box -->
          <!-- promo box -->
          <div class="col-md-4">
                <div class="bs-widget promo bshre" style="background-image: url('<?php echo esc_url($fatured_post_image_two); ?>');">
                  <div class="inner-content">
                    <div class="text">
                     <h5><a <?php if($featured_post_two_url_new_tab) { ?> target="_blank" <?php } ?> href="<?php echo esc_url($featured_post_two_url); ?>"><?php echo esc_html($featured_post_two_btn_txt); ?></a>
                     </h5>
                  </div>
                </div>
              </div>
            </div>
          <!-- /promo box -->
          <!-- promo box -->
          <div class="col-md-4">
                <div class="bs-widget promo bshre" style="background-image: url('<?php echo esc_url($fatured_post_image_three); ?>');">
                  <div class="inner-content">
                    <div class="text">
                     <h5><a <?php if($featured_post_three_url_new_tab) { ?> target="_blank" <?php } ?> href="<?php echo esc_url($featured_post_three_url); ?>"><?php echo esc_html($featured_post_three_btn_txt); ?></a>
                     </h5>
                  </div>
                </div>
              </div>
            </div>
          <!-- /promo box -->
      </div><!-- /row -->
    </div><!-- /container -->
</div>          


  
<?php 
} } }
endif;
add_action('blogus_action_featured_ads_section', 'blogus_featured_ads_section', 5);