Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.10 KB | None | 0 0
  1. if( have_rows('ts_pricing', 'options') ):
  2.        
  3.             $currencies = get_field('ts_pricing', 'options');
  4.        
  5.                             if(in_array( 'AUD', $currencies )): ?>
  6.                                     <?php echo 'success cad'; ?>
  7.                                    
  8. <!--
  9.                                   <div class="tabs-panel is-active" id="pricing-photo">
  10.                                       test
  11.                                       <img src="<?php //echo get_sub_field('photo_pricing'); ?>" />
  12.                                   </div>
  13.                                   <div class="tabs-panel" id="pricing-video">
  14.                                        <img src="<?php //echo get_sub_field('video_pricing'); ?>" class="tae"/>
  15.                                   </div>
  16. -->
  17.                            
  18.        
  19.                             <?php else:
  20.  
  21.                             $defaul_pricing = get_field('p_default_pricing', 'options');
  22.                            
  23.                                 echo 'fail cad';
  24.                             ?>
  25. <!--
  26.                                   <div class="tabs-panel is-active" id="pricing-photo">
  27.                                       else
  28.                                       <img src="<?php //echo //$defaul_pricing['photo_pricing']; ?>" />
  29.                                   </div>
  30.                                   <div class="tabs-panel" id="pricing-video">
  31.                                        <img src="<?php //echo $defaul_pricing['video_pricing']; ?>" />
  32.                                   </div>
  33. -->
  34.                                
  35.                             <?php
  36.                         endif;
  37.             var_dump($currencies);
  38.        
  39.         else :
  40.  
  41.         endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement