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 / default / gallery-default.php
foogallery / extensions / default-templates / default Last commit date
js 2 months ago class-default-gallery-template.php 2 months ago gallery-default.php 2 months ago
gallery-default.php
20 lines
1 <?php
2 /**
3 * FooGallery default responsive gallery template
4 */
5 global $current_foogallery;
6
7 $lightbox = foogallery_gallery_template_setting_lightbox();
8 $mobile_columns = foogallery_gallery_template_setting( 'mobile_columns', '' );
9 $alignment = foogallery_gallery_template_setting( 'alignment', 'fg-center' );
10 $layout = foogallery_gallery_template_setting( 'layout', '' );
11
12 $foogallery_default_classes = foogallery_build_class_attribute_safe( $current_foogallery, 'foogallery-lightbox-' . $lightbox, $alignment, $mobile_columns, $layout );
13 $foogallery_default_attributes = foogallery_build_container_attributes_safe( $current_foogallery, array( 'class' => $foogallery_default_classes ) );
14
15 ?><div <?php echo $foogallery_default_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
16 <?php foreach ( foogallery_current_gallery_attachments_for_rendering() as $attachment ) {
17 echo foogallery_attachment_html( $attachment ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
18 } ?>
19 </div>
20