/var/www/hkosl.com/aga/wp-content/plugins/so-widgets-bundle/widgets/image-grid/tpl/default.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
 * @var $images array
 * @var $max_height int
 * @var $max_width int
 */
?>
<?php 
if( ! empty( $images ) ) : ?>
    <div class="sow-image-grid-wrapper"
        <?php if( !empty( $max_width ) ) echo 'data-max-width="' intval$max_width ) . '"' ?>
        <?php if( !empty( $max_height ) ) echo 'data-max-height="' intval$max_height ) . '"' ?>>
        <?php foreach( $images as $image ) : ?>
            <div class="sow-image-grid-image">
                <?php if ( ! empty( $image['url'] ) ) : ?>
                    <a href="<?php echo sow_esc_url$image['url'] ) ?>"
                    <?php foreach( $image['link_attributes'] as $att => $val ) : ?>
                        <?php if ( ! empty( $val ) ) : ?>
                            <?php echo $att.'="' esc_attr$val ) . '" '?>
                        <?php endif; ?>
                    <?php endforeach; ?>>
                <?php endif; ?>
                <?php echo $image['image_html']; ?>
                <?php if ( ! empty( $image['url'] ) ) : ?>
                    </a>
                <?php endif; ?>
            </div>
        <?php endforeach; ?>
    </div>
<?php endif; ?>