Guest User

Untitled

a guest
Jan 26th, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <div class="td-header-rec-wrap">
  2. <?php
  3. $tds_header_ad_title = td_util::get_option('tds_header_title');
  4.  
  5. // show the header ad spot
  6. if (is_category('Fashion')){
  7. echo td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'custom_ad_1', 'spot_title' => 'your custom title text'));
  8. } else {
  9. echo td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'header', 'spot_title' => $tds_header_ad_title));
  10. }
  11. ?>
  12.  
  13. </div>
Advertisement
Add Comment
Please, Sign In to add comment