Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php if( !empty($thumb) && isset($thumb) ){
  2. $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID),'');
  3. ?>
  4. <div class="innerImage" style="background-image:url(<?php echo $thumb[0]; ?>)">
  5. </div>
  6.  
  7. <?php } else { ?>
  8. <div class="innerImage" style="background: url(<?php echo $mts_options['dm_inner_image']; ?>) no-repeat center center / cover;"></div>
  9.  
  10. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement