PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 12.7.3
Jetpack – WP Security, Backup, Speed, & Growth v12.7.3
16.3 16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 All 508 releases
jetpack / modules / tiled-gallery / tiled-gallery / templates / rectangular-layout.php

rectangular-layout.php in Jetpack – WP Security, Backup, Speed, & Growth 12.7.3, at modules/tiled-gallery/tiled-gallery/templates/rectangular-layout.php

39 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Rectangular layout Tiled Gallery template.
4 *
5 * @package automattic/jetpack
6 */
7
8 foreach ( $context['rows'] as $row ) : // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
9 ?>
10 <div
11 class="gallery-row"
12 style="width: <?php echo esc_attr( $row->width ); ?>px; height: <?php echo esc_attr( $row->height ); ?>px;"
13 data-original-width="<?php echo esc_attr( $row->width ); ?>"
14 data-original-height="<?php echo esc_attr( $row->height ); ?>"
15
16 >
17 <?php foreach ( $row->groups as $group ) : ?>
18 <div
19 class="gallery-group images-<?php echo esc_attr( is_countable( $group->images ) ? count( $group->images ) : 0 ); ?>"
20 style="width: <?php echo esc_attr( $group->width ); ?>px; height: <?php echo esc_attr( $group->height ); ?>px;"
21 data-original-width="<?php echo esc_attr( $group->width ); ?>"
22 data-original-height="<?php echo esc_attr( $group->height ); ?>"
23 >
24 <?php
25 foreach ( $group->items( $context['needs_attachment_link'], $context['grayscale'] ) as $item ) : // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
26 $this->partial( // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
27 'item',
28 array(
29 'item' => $item,
30 'link' => $context['link'], // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
31 )
32 );
33 ?>
34 <?php endforeach; ?>
35 </div> <!-- close group -->
36 <?php endforeach; ?>
37 </div> <!-- close row -->
38 <?php endforeach; ?>
39