# meow-gallery/5.5.0/classes/builders/cell.tpl.php

Meow Gallery, version 5.5.0. 56 lines.

- Page: https://pluginprobe.com/plugins/meow-gallery/5.5.0/code/classes/builders/cell.tpl.php
- Raw: https://pluginprobe.com/plugins/meow-gallery/5.5.0/raw/classes/builders/cell.tpl.php
- Modified: 2025-05-01T01:26:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/meow-gallery/5.5.0/code/classes/builders/cell.tpl.php#L10-L20`.

```php
<figure class="mgl-item"<?php echo wp_kses_post( $attributes ) ?>>
	<div class="mgl-icon">
		<div class="mgl-img-container">
			<?php if ( !$isPreview && $linkUrl ): ?>
				<a href="<?php echo esc_url( $linkUrl ) ?>">
						<?= 
							wp_kses( $imgSrc, [ 
								'img' => [
									'src'      => true,
									'srcset'   => true,
									'loading'	 => true,
									'sizes'    => true,
									'class'    => true,
									'id'       => true,
									'width'    => true,
									'height'   => true,
									'alt'      => true,
									'align'    => true,
									]
								] 
							);
						?>
				</a>
			<?php else: ?>
				<?= 
					wp_kses( $imgSrc, [ 
						'img' => [
							'src'      => true,
							'srcset'   => true,
							'loading'	 => true,
							'sizes'    => true,
							'class'    => true,
							'id'       => true,
							'width'    => true,
							'height'   => true,
							'alt'      => true,
							'align'    => true,
							]
						] 
					);
				?>
			<?php endif; ?>
		</div>
	</div>
	<?php if ( !empty( $caption ) ): ?>
	<figcaption class="mgl-caption">
		<p><?php echo wp_kses($caption, [
			'strong' => [], // Bold
			'b' => [],      // Bold alternative
			'em' => [],     // Italic
			'i' => []       // Italic alternative
		]) ?></p>
	</figcaption>
	<?php endif; ?>
</figure>

```
