| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Theme: Classic. |
| 5 |
* |
| 6 |
* @link https://plugins360.com |
| 7 |
* @since 1.0.0 |
| 8 |
* |
| 9 |
* @package Automatic_YouTube_Gallery |
| 10 |
*/ |
| 11 |
|
| 12 |
$player_width = ! empty( $attributes['player_width'] ) ? (int) $attributes['player_width'] . 'px' : '100%'; |
| 13 |
|
| 14 |
$featured = $videos[0]; // Featured Video |
| 15 |
?> |
| 16 |
<div id="ayg-<?php echo esc_attr( $attributes['uid'] ); ?>" class="ayg ayg-theme ayg-theme-single"> |
| 17 |
<div class="ayg-player"> |
| 18 |
<div class="ayg-player-container" style="max-width: <?php echo $player_width; ?>;"> |
| 19 |
<?php the_ayg_player( $featured, $attributes ); ?> |
| 20 |
</div> |
| 21 |
<div class="ayg-player-caption"> |
| 22 |
<?php if ( ! empty( $attributes['player_title'] ) ) : ?> |
| 23 |
<h2 class="ayg-player-title"><?php echo esc_html( $featured->title ); ?></h2> |
| 24 |
<?php endif; ?> |
| 25 |
<?php if ( ! empty( $attributes['player_description'] ) && ! empty( $featured->description ) ) : ?> |
| 26 |
<ayg-description class="ayg-player-description"><?php echo wp_kses_post( ayg_get_player_description( $featured, $attributes ) ); ?></ayg-description> |
| 27 |
<?php endif; ?> |
| 28 |
</div> |
| 29 |
</div> |
| 30 |
</div> |
| 31 |
|