Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //if picture has caption & description
- $figcaption = '';
- if(!empty($image_attachment['caption']) or !empty($image_attachment['description']) or !empty($image_attachment_ulr)) {
- $figcaption = '<figcaption class = "td-slide-caption ' . $class_post_content . '">';
- if(!empty($image_attachment['caption'])) {
- $figcaption .= '<div class = "td-gallery-slide-copywrite">' . $image_attachment['caption'] . '</div>';
- }
- if(!empty($image_attachment['description'])) {
- $figcaption .= '<span>' . $image_attachment['description'] . '</span>';
- }
- if(!empty($image_attachment_ulr)) {
- $figcaption .= '<a href="' . $image_attachment_ulr . '">' . $photographer_name. '</a>';
- }
- $figcaption .= '</figcaption>';
- }
Advertisement
Add Comment
Please, Sign In to add comment