On events pages that meet the first conditional statement (first segment is 'events' and second segment is 'not empty') the image parses as expected. However, when the first segment is 'member-directory' and the second segment is NOT '', the last conditional (if:else) is parsed.
I've tried stripping out tags and replacing them with (A,B,C) and can confirm that it is parsing the (last) if:else when second conditional seemingly should be met.
{exp:ifelse parse="inward"}
{if segment_1 == 'events' AND segment_2 != ''}
{exp:ce_img:pair src="{event_masthead}" height="270" min_width="1600" max_width="1600" fallback_src="{lv_fallback_banner}" crop="yes" allow_scale_larger="yes" filter="brightness,-80|grayscale|colorize,80,39,9,10"}style="background:url('{made}') no-repeat 50% 0; height: 270px;"
{/exp:ce_img:pair}
{if:elseif segment_1 == 'member-directory' AND segment_2 != ''}
{member_photo_gallery limit="1"}
{exp:ce_img:pair src="{url}" height="270" min_width="1600" max_width="1600" crop="yes" fallback_src="{lv_fallback_banner}" allow_scale_larger="yes" filter="brightness,-80|grayscale|colorize,80,39,9,10"}style="background:url('{made}') no-repeat 50% 0; height: 270px width: 1600px;"
{/exp:ce_img:pair}
{/member_photo_gallery}
{if:else}
{exp:ce_img:pair src="{masthead}" height="270" min_width="1600" max_width="1600" fallback_src="{lv_fallback_banner}" crop="yes" allow_scale_larger="yes" filter="brightness,-80|grayscale|colorize,80,39,9,10"}style="background:url('{made}') no-repeat 50% 0; height: 270px;"
{/exp:ce_img:pair}
{/if}
{/exp:ifelse}
Here is my fallback test that is showing that the second conditional is not being met.
{exp:ifelse parse="inward"}
{if segment_1 == 'events' AND segment_2 != ''}
A
{if:elseif segment_1 == 'member-directory' AND segment_2 != ''}
B
{if:else}
C
{/if}
{/exp:ifelse}
This works. I am wondering why Croxtons doesn't. I am using the latest version.
{if segment_1 == 'member-directory' AND segment_2 != ''}
{member_photo_gallery limit="1"}
{exp:ce_img:pair src="{url}" height="270" min_width="1600" max_width="1600" crop="yes" fallback_src="{lv_fallback_banner}" allow_scale_larger="yes" filter="brightness,-80|grayscale|colorize,80,39,9,10"}style="background:url('{made}') no-repeat 50% 0; height: 270px; width: 1600px;"
{/exp:ce_img:pair}
{/member_photo_gallery}
{/if}
The snippet is used like so:
{!-- Masthead --}
{exp:stash:set name="masthead" parse_tags="yes"}
{snippet:masthead_background_image}
{/exp:stash:set}
{!-- /Masthead --}