PluginProbe
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels / 1.6.0
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels v1.6.0
2.9.1 2.9.0 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 2.0.0 2.1.0 2.2.0 2.3.2 2.3.3 2.3.5 2.3.6 2.3.8 2.3.9 2.4.3 All 37 releases
automatic-youtube-gallery / public / templates / gallery-thumbnail.php

gallery-thumbnail.php in Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels 1.6.0, at public/templates/gallery-thumbnail.php

48 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Gallery: Thumbnail.
5 *
6 * @link https://plugins360.com
7 * @since 1.0.0
8 *
9 * @package Automatic_YouTube_Gallery
10 */
11
12 $title = ayg_get_gallery_thumb_title( $video, $attributes );
13 $excerpt = ayg_get_gallery_thumb_excerpt( $video, $attributes );
14 $description = ayg_get_player_description( $video, $attributes );
15
16 $container_class = 'ayg-thumbnail';
17
18 if ( ! empty( $title ) || ! empty( $excerpt ) ) {
19 $container_class .= ' ayg-has-caption';
20 }
21
22 if ( true === $is_active ) {
23 $container_class .= ' ayg-active';
24 }
25 ?>
26
27 <div class="<?php echo $container_class; ?>" data-id="<?php echo esc_attr( $video->id ); ?>" data-title="<?php echo esc_attr( $video->title ); ?>">
28 <div class="ayg-thumbnail-image-wrapper">
29 <img src="<?php echo esc_url( ayg_get_gallery_thumb_image( $video, $attributes ) ); ?>" class="ayg-thumbnail-image" />
30 <div class="ayg-thumbnail-play-icon"></div>
31 <div class="ayg-thumbnail-active" style="display: none;"><?php esc_html_e( 'active', 'automatic-youtube-gallery' ); ?></div>
32 </div>
33
34 <div class="ayg-thumbnail-caption">
35 <?php if ( ! empty( $title ) ) : ?>
36 <div class="ayg-thumbnail-title"><?php echo esc_html( $title ); ?></div>
37 <?php endif; ?>
38
39 <?php if ( ! empty( $excerpt ) ) : ?>
40 <div class="ayg-thumbnail-excerpt"><?php echo wp_kses_post( $excerpt ); ?></div>
41 <?php endif; ?>
42
43 <?php if ( ! empty( $description ) ) : ?>
44 <div class="ayg-thumbnail-description" style="display: none;"><?php echo wp_kses_post( make_clickable( $description ) ); ?></div>
45 <?php endif; ?>
46 </div>
47 </div>
48