Guest User

Untitled

a guest
May 28th, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. //if picture has caption & description
  2. $figcaption = '';
  3. if(!empty($image_attachment['caption']) or !empty($image_attachment['description']) or !empty($image_attachment_ulr)) {
  4. $figcaption = '<figcaption class = "td-slide-caption ' . $class_post_content . '">';
  5.  
  6. if(!empty($image_attachment['caption'])) {
  7. $figcaption .= '<div class = "td-gallery-slide-copywrite">' . $image_attachment['caption'] . '</div>';
  8. }
  9.  
  10. if(!empty($image_attachment['description'])) {
  11. $figcaption .= '<span>' . $image_attachment['description'] . '</span>';
  12.  
  13. }
  14.  
  15. if(!empty($image_attachment_ulr)) {
  16. $figcaption .= '<a href="' . $image_attachment_ulr . '">' . $photographer_name. '</a>';
  17. }
  18.  
  19. $figcaption .= '</figcaption>';
  20. }
Advertisement
Add Comment
Please, Sign In to add comment