From 93c22ed5eb5bd277ca54f0a6370e82de799d4e94 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Mon, 8 Jan 2018 12:03:22 -0500 Subject: [PATCH] Adding test data to find out why member detail pages aren't showing featured images (even the default) on dev55 --- functions.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 ''; -- 2.17.1