gallery-default.php
19 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 | |
| 11 | $foogallery_default_classes = foogallery_build_class_attribute_safe( $current_foogallery, 'foogallery-lightbox-' . $lightbox, $alignment, $mobile_columns ); |
| 12 | $foogallery_default_attributes = foogallery_build_container_attributes_safe( $current_foogallery, array( 'class' => $foogallery_default_classes ) ); |
| 13 | |
| 14 | ?><div <?php echo $foogallery_default_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>> |
| 15 | <?php foreach ( foogallery_current_gallery_attachments_for_rendering() as $attachment ) { |
| 16 | echo foogallery_attachment_html( $attachment ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 17 | } ?> |
| 18 | </div> |
| 19 |