PluginProbe
Property Hive / 1.4.62
Property Hive v1.4.62
2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 All 261 releases
propertyhive / templates / single-property / property-thumbnails.php

property-thumbnails.php in Property Hive 1.4.62, at templates/single-property/property-thumbnails.php

48 lines 1023 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Single Property Thumbnails
4 *
5 * @author PropertyHive
6 * @package PropertyHive/Templates
7 * @version 1.0.0
8 */
9
10 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
11
12 global $post, $propertyhive, $property;
13
14 if ( isset($images) && is_array($images) && !empty($images) ) {
15
16 ?>
17 <div class="thumbnails flexslider" id="carousel">
18
19 <ul class="slides">
20 <?php
21
22 $loop = 0;
23 $columns = apply_filters( 'propertyhive_property_thumbnails_columns', 3 );
24
25 foreach ($images as $image)
26 {
27
28 $classes = array();
29
30 if ( $loop == 0 || $loop % $columns == 0 )
31 $classes[] = 'first';
32
33 if ( ( $loop + 1 ) % $columns == 0 )
34 $classes[] = 'last';
35
36 $image_class = esc_attr( implode( ' ', $classes ) );
37
38 echo '<li>' . apply_filters( 'propertyhive_single_property_image_thumbnail_html', $image['image'], ( isset($image['attachment_id']) ? $image['attachment_id'] : '' ) , $post->ID, $image_class ) . '</li>';
39
40 ++$loop;
41 }
42
43 ?>
44 </ul>
45
46 </div>
47 <?php
48 }