From: Laury GvR Date: Mon, 8 Jan 2018 17:03:22 +0000 (-0500) Subject: Adding test data to find out why member detail pages aren't showing featured images... X-Git-Tag: v1.0.0^2~13 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=93c22ed5eb5bd277ca54f0a6370e82de799d4e94;p=WP-Themes%2Fvisitescanaba.git Adding test data to find out why member detail pages aren't showing featured images (even the default) on dev55 --- diff --git a/functions.php b/functions.php index 37d0cc7..aa2c5d5 100644 --- a/functions.php +++ b/functions.php @@ -80,17 +80,19 @@ function glm_get_header($memberID = false) { if(!$memberID){ $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); $image_data = $image_data[0]; - + $bur = "a"; } else { $image_data = apply_filters('member_images',$memberID,true,'original'); + $bur = "b"; } if ($image_data) { - echo ' style="background-image: url('.$image_data.');height:0;padding:0;padding-bottom:22%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px; "'; + echo 'bur="'.$bur.'" style="background-image: url('.$image_data.');height:0;padding:0;padding-bottom:22%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px; "'; } else { - echo ' style="background-image: url('.get_template_directory_uri().'/assets/default.jpg);height:0;padding:0;padding-bottom:22%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px; "'; + echo 'bur="'.$bur.'" style="background-image: url('.get_template_directory_uri().'/assets/default.jpg);height:0;padding:0;padding-bottom:22%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px; "'; } } else if (!is_page('member-detail')) { - echo ' style="background-image: url('.get_template_directory_uri().'/assets/default.jpg);height:0;padding:0;padding-bottom:22%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px; "'; + $bur = "c"; + echo 'bur="'.$bur.'" style="background-image: url('.get_template_directory_uri().'/assets/default.jpg);height:0;padding:0;padding-bottom:22%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px; "'; } echo '>'; echo '';