$bur = "a";
} else {
$image_data = apply_filters('member_images',$memberID,true,'original');
+ if ( is_array($image_data) ) {
+ $image_data = $image_data[0];
+ }
$bur = "b";
}
if ($image_data) {
- 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; "';
+ 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 '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 ' 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')) {
$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 ' 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 '</div>';