Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if( have_rows('ts_pricing', 'options') ):
- $pricing = get_field('ts_pricing', 'options');
- $currency = "GB";
- $index = array_search($currency, array_column($pricing, 'currency'));
- ?>
- <?php if(isset($index)): ?>
- <div class="tabs-panel is-active" id="pricing-photo">
- <img src="<?php echo $pricing[$index]['photo_pricing']; ?>" />
- </div>
- <div class="tabs-panel" id="pricing-video">
- <img src="<?php echo $pricing[$index]['video_pricing']; ?>" class="tae"/>
- </div>
- <?php
- else:
- $defaul_pricing = get_field('p_default_pricing', 'options');
- ?>
- <div class="tabs-panel is-active" id="pricing-photo">
- <img src="<?php echo $defaul_pricing['photo_pricing']; ?>" />
- </div>
- <div class="tabs-panel" id="pricing-video">
- <img src="<?php echo $defaul_pricing['video_pricing']; ?>" />
- </div>
- <?php endif;
- else :
- endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement