PluginProbe ʕ •ᴥ•ʔ
Gallery : FooGallery / 3.1.36
Gallery : FooGallery v3.1.36
3.3.2 3.3.3 3.3.0 3.1.31 3.1.32 3.1.34 3.1.36 3.2.0 3.2.6 trunk 1.10.3 2.0.24 2.1.34 2.2.44 2.3.3 2.4.32 3.0.6 3.1.11 3.1.12 3.1.13 3.1.20 3.1.25 3.1.26 3.1.26.1 3.1.26.2
foogallery / extensions / default-templates / carousel / gallery-carousel.php
foogallery / extensions / default-templates / carousel Last commit date
class-carousel-gallery-template.php 2 months ago gallery-carousel.php 2 months ago
gallery-carousel.php
32 lines
1 <?php
2 /**
3 * FooGallery default responsive gallery template
4 */
5 global $current_foogallery;
6
7 $text_prev = foogallery_get_setting( 'language_carousel_previous_text', __( 'Previous', 'foogallery' ) );
8 $text_next = foogallery_get_setting( 'language_carousel_next_text', __( 'Next', 'foogallery' ) );
9
10 $lightbox = foogallery_gallery_template_setting_lightbox();
11 $inverted = foogallery_gallery_template_setting( 'inverted', '' );
12 $show_nav_arrows = foogallery_gallery_template_setting( 'show_nav_arrows', '' );
13 $show_pagination = foogallery_gallery_template_setting( 'show_pagination', '' );
14 $show_progress = foogallery_gallery_template_setting( 'show_progress', '' );
15 $foogallery_default_classes = foogallery_build_class_attribute_safe( $current_foogallery, 'foogallery-lightbox-' . $lightbox, $inverted, $show_nav_arrows, $show_pagination, $show_progress );
16 $foogallery_default_attributes = foogallery_build_container_attributes_safe( $current_foogallery, array( 'class' => $foogallery_default_classes ) );
17 $foogallery_active_class = 'fg-item-active';
18 $args = foogallery_gallery_template_arguments();
19 ?><div <?php echo $foogallery_default_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
20 <button type="button" class="fg-carousel-prev" title="<?php echo esc_attr( $text_prev ); ?>"></button>
21 <div class="fg-carousel-inner">
22 <div class="fg-carousel-center"></div>
23 <?php foreach ( foogallery_current_gallery_attachments_for_rendering() as $attachment ) {
24 $args['class'] = $foogallery_active_class;
25 echo foogallery_attachment_html( $attachment, $args ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
26 $foogallery_active_class = '';
27 } ?>
28 </div>
29 <div class="fg-carousel-bottom"></div>
30 <div class="fg-carousel-progress"></div>
31 <button type="button" class="fg-carousel-next" title="<?php echo esc_attr( $text_next ); ?>"></button>
32 </div>