From: Anthony Talarico Date: Thu, 2 Nov 2017 20:47:07 +0000 (-0400) Subject: changing hover effects on hover map X-Git-Tag: v1.0.0^2~69 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=b911ee54d991adf3b39a97bdfe38c719166f3da0;p=WP-Themes%2Fmeetingsmichigan.git changing hover effects on hover map adding hover effects for dropdown map and styles for member detail page --- diff --git a/functions.php b/functions.php index c916f36..7bc22b0 100644 --- a/functions.php +++ b/functions.php @@ -73,12 +73,12 @@ function glm_site_scripts() function glm_get_header() { global $post; echo 'post_type == 'page') { + if (has_post_thumbnail() && $post->post_type == 'page'&& !is_page('member-detail')) { $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:22%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px; "'; - } else { + } else if (!is_page('member-detail')) { echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.jpg);height:0;padding:0;padding-bottom:22%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px; "'; - } + } echo '>'; echo ''; echo '
'; diff --git a/glm-member-db/views/front/members/detail.html b/glm-member-db/views/front/members/detail.html index 16d694d..4b8facd 100644 --- a/glm-member-db/views/front/members/detail.html +++ b/glm-member-db/views/front/members/detail.html @@ -9,38 +9,6 @@
(map loads here)
--> {/if} - {if $settings.detail_show_directions} - - {/if} @@ -156,6 +124,7 @@
{apply_filters('glm-member-db-front-members-detail-attributesTop', '', $member.id)} + {if $featuredImage}