Exemple #1
0
 function x_get_featured_image_with_fallback_url($size = 'full')
 {
     $featured_image_url = x_get_featured_image_url($size);
     $social_fallback_image_url = get_option('x_social_fallback_image');
     if ($featured_image_url != NULL) {
         $image_url = $featured_image_url;
     } else {
         $image_url = $social_fallback_image_url;
     }
     return $image_url;
 }
Exemple #2
0
 function x_ethos_entry_cover_background_image_style()
 {
     $featured_image = x_get_featured_image_url('full');
     $background_image = $featured_image != '' ? 'background-image: url(' . $featured_image . ');' : 'background-image: none;';
     return $background_image;
 }
Exemple #3
0
 function x_ethos_entry_cover_background_image_style()
 {
     $featured_image = x_make_protocol_relative(x_get_featured_image_url());
     $background_image = $featured_image != '' ? 'background-image: url(' . $featured_image . ');' : 'background-image: none;';
     return $background_image;
 }