PluginProbe ʕ •ᴥ•ʔ
Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel / trunk
Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel vtrunk
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 / simple-portfolio / gallery-simple_portfolio.php
foogallery / extensions / default-templates / simple-portfolio Last commit date
class-simple-portfolio-gallery-template.php 8 months ago gallery-simple_portfolio.php 8 months ago
gallery-simple_portfolio.php
20 lines
1 <?php
2 /**
3 * FooGallery portfolio gallery template
4 */
5 global $current_foogallery;
6 global $current_foogallery_arguments;
7
8 $lightbox = foogallery_gallery_template_setting_lightbox();
9 $caption_position = foogallery_gallery_template_setting( 'caption_position', '' );
10 if ( 'none' == foogallery_gallery_template_setting( 'caption_title_source' ) && 'none' == foogallery_gallery_template_setting( 'caption_desc_source' ) ) {
11 $current_foogallery_arguments['caption_preset'] = 'none';
12 }
13 $foogallery_portfolio_classes = foogallery_build_class_attribute_safe( $current_foogallery, $caption_position, 'foogallery-lightbox-' . $lightbox );
14 $foogallery_portfolio_attributes = foogallery_build_container_attributes_safe( $current_foogallery, array( 'class' => $foogallery_portfolio_classes ) );
15
16 ?><div <?php echo $foogallery_portfolio_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>