<?php 
    echo $video;
    ?>
    
    <?php 
    // Otherwise display post thumbnail
} elseif ($thumbnail) {
    ?>

        <?php 
    // Load lightbox styles
    wpex_enqueue_ilightbox_skin();
    ?>

        <a href="<?php 
    wpex_lightbox_image();
    ?>
" title="<?php 
    wpex_esc_title();
    ?>
" class="wpex-lightbox">
            <?php 
    echo $thumbnail;
    ?>
        </a>

    <?php 
}
?>

</div><!-- .portfolio-entry-media -->
Пример #2
0
                $lightbox_data_attributes = ' data-type="image"';
                if ($lightbox_title && 'none' != $lightbox_title) {
                    if ('title' == $lightbox_title && $attachment_data['title']) {
                        $lightbox_data_attributes = ' data-title="' . $attachment_data['title'] . '"';
                    } elseif (esc_attr($attachment_data['alt'])) {
                        $lightbox_data_attributes = ' data-title="' . esc_attr($attachment_data['alt']) . '"';
                    }
                }
                // Caption data
                if ($attachment_data['caption'] && 'false' != $lightbox_caption) {
                    $lightbox_data_attributes = ' data-caption="' . str_replace('"', "'", $attachment_data['caption']) . '"';
                }
                ?>

								<a href="<?php 
                wpex_lightbox_image($attachment);
                ?>
" title="<?php 
                echo esc_url($attachment_data['title']);
                ?>
" class="vcex-flexslider-entry-img wpex-lightbox-group-item"<?php 
                echo $lightbox_data_attributes;
                ?>
>
									<?php 
                echo $attachment_img;
                ?>
								</a>
							
							<?php 
            } elseif ('custom_link' == $thumbnail_link) {