'; } } add_action( 'wp_head', 'santamas_pingback_header' ); function santamas_dynamic_styles() { $banner_image = get_theme_mod( 'santamas_banner_image', get_template_directory_uri() . '/images/city.jpg' ); $banner_overlay_color = get_theme_mod( 'santamas_banner_overlay_color', 'rgba( 0, 0, 0, 0.1)' ); $banner_caption_color = get_theme_mod( 'santamas_banner_caption_color', '#FFFFFF' ); $custom_css = " .banner-section{ background-image: url({$banner_image}); }"; $custom_css .= " .banner-section:before{ background: {$banner_overlay_color}; }"; $custom_css .= " .banner-caption h2, .banner-caption p{ color: {$banner_caption_color}; }"; if( !is_page_template('template-home.php') ){ $banner_image = get_header_image(); $custom_css = " .header-banner{ background-image: url({$banner_image}); }"; } wp_add_inline_style( 'santamas-style', $custom_css ); } add_action( 'wp_enqueue_scripts', 'santamas_dynamic_styles' ); add_action( 'santamas_home_section', 'santamas_home_banner' ); add_action( 'santamas_home_section', 'santamas_about_section' ); add_action( 'santamas_home_section', 'santamas_event_countdown' ); add_action( 'santamas_home_section', 'santamas_featured_section' ); add_action( 'santamas_home_section', 'santamas_blog_section' ); add_action( 'santamas_home_section', 'santamas_gallery_section' ); function santamas_home_banner(){ ?>