From: Laury GvR Date: Fri, 3 Nov 2017 21:07:57 +0000 (-0400) Subject: Moving news featured image onto master to have it included in hotfox X-Git-Tag: v1.0.18^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=5767f1ffe4e48a601c22aa9f8e26c9d35828ca0c;p=WP-Themes%2Fgreatlakescfa.git Moving news featured image onto master to have it included in hotfox --- diff --git a/assets/slideshow-exterior-night.png b/assets/slideshow-exterior-night.png new file mode 100644 index 0000000..429a10a Binary files /dev/null and b/assets/slideshow-exterior-night.png differ diff --git a/functions.php b/functions.php index 6c64a6d..092ae11 100644 --- a/functions.php +++ b/functions.php @@ -83,6 +83,9 @@ function glm_get_header() { if (has_post_thumbnail() && is_post_type('page')) { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); echo ' style="background-image: url('.$image_data[0].');height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;overflow-y: hidden; "'; + } else if(is_home()) { + echo ' style="background-image: url('.get_template_directory_uri().'/assets/slideshow-exterior-night.png);height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;overflow-y: hidden;"'; + echo ' class="no-featured"'; } else if(is_post_type('post') ){ echo ' style="background-image: url('.get_template_directory_uri().'/assets/blog-default.png);height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;overflow-y: hidden;"'; echo ' class="no-featured"';