gallery-justified.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | /** |
| 8 | * FooGallery Justified gallery template |
| 9 | */ |
| 10 | global $current_foogallery; |
| 11 | global $current_foogallery_arguments; |
| 12 | $lightbox = foogallery_gallery_template_setting_lightbox(); |
| 13 | $foogallery_justified_classes = foogallery_build_class_attribute_safe( $current_foogallery, 'foogallery-lightbox-' . $lightbox ); |
| 14 | $foogallery_justified_attributes = foogallery_build_container_attributes_safe( $current_foogallery, array( 'class' => $foogallery_justified_classes) ); |
| 15 | ?> |
| 16 | <div <?php echo $foogallery_justified_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>> |
| 17 | <?php foreach ( foogallery_current_gallery_attachments_for_rendering() as $attachment ) { |
| 18 | echo foogallery_attachment_html( $attachment ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 19 | } ?> |
| 20 | </div> |
| 21 |