Guest User

Untitled

a guest
Sep 2nd, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. else {
  2.  
  3. $use_small_post_format_icon_size = false;
  4. // search in all the thumbs for the one that we are currently using here and see if it has post_format_icon_size = small
  5. foreach (td_api_thumb::get_all() as $thumb_from_thumb_list) {
  6. if ($thumb_from_thumb_list['name'] == $thumbType and $thumb_from_thumb_list['post_format_icon_size'] == 'small') {
  7. $use_small_post_format_icon_size = true;
  8. break;
  9. }
  10. }
  11.  
  12. if ($use_small_post_format_icon_size === true) {
  13. $buffy .= '<span class="td-video-play-ico td-video-small"><img width="20" class="td-retina" src="' . get_template_directory_uri() . '/images/icons/icon-camera.png' . '" alt="video"/></span>';
  14. } else {
  15. $buffy .= '<span class="td-video-play-ico"><img width="40" class="td-retina" src="' . get_template_directory_uri() . '/images/icons/icon-camera.png' . '" alt="video"/></span>';
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment