PluginProbe
WP Directory Kit / 1.3.1
WP Directory Kit v1.3.1
1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 1.4.0 1.4.1 All 35 releases
wpdirectorykit / elementor-elements / views / wdk-field-images.php

wdk-field-images.php in WP Directory Kit 1.3.1, at elementor-elements/views/wdk-field-images.php

53 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The template for Element Listing Images.
4 * This is the template that elementor element images, results
5 *
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit; // Exit if accessed directly.
10 }
11
12 ?>
13 <div class="wdk-element" id="wdk_el_<?php echo esc_html($id_element);?>">
14 <div class="wdk-field-images <?php if(wmvc_show_data('enable_js_gallery', $settings, false, TRUE, TRUE)):?> wdk_js_gallery <?php endif;?>">
15 <div class="wdk-row">
16 <?php if(count($images)>0):?>
17 <?php foreach($images as $image):?>
18 <?php if(!wmvc_show_data('wdk_listing_video_disabled',$settings, false) && wdk_file_extension_type(wmvc_show_data('src',$image)) == 'video'):?>
19 <div class="wdk-col">
20 <?php if(wmvc_show_data('enable_js_gallery', $settings, false, TRUE, TRUE)):?>
21 <a class="wdk-listing-image-card" href="<?php echo esc_url($image);?>">
22 <?php else:?>
23 <div class="wdk-listing-image-card">
24 <?php endif;?>
25 <video controls src="<?php echo esc_url(wmvc_show_data('src',$image));?>" alt="<?php echo esc_attr(wmvc_show_data('alt',$image));?>" class="wdk-listing-image-card wdk-listing-image <?php if($settings['enable_fixed_height']!='yes'):?> auto_height <?php endif;?>"></video>
26 <?php if(wmvc_show_data('enable_js_gallery', $settings, false, TRUE, TRUE)):?>
27 </a>
28 <?php else:?>
29 </div>
30 <?php endif;?>
31 </div>
32 <?php elseif(wdk_file_extension_type(wmvc_show_data('src',$image)) == 'image'):?>
33 <div class="wdk-col">
34 <?php if(wmvc_show_data('enable_js_gallery', $settings, false, TRUE, TRUE)):?>
35 <a class="wdk-listing-image-card" href="<?php echo esc_url($image);?>">
36 <?php else:?>
37 <div class="wdk-listing-image-card">
38 <?php endif;?>
39 <img src="<?php echo esc_url($image);?>" class="wdk-listing-image <?php if($settings['enable_fixed_height']!='yes'):?> auto_height <?php endif;?>" alt="<?php echo esc_attr__('thumb', 'wpdirectorykit');?>">
40 <?php if(wmvc_show_data('enable_js_gallery', $settings, false, TRUE, TRUE)):?>
41 </a>
42 <?php else:?>
43 </div>
44 <?php endif;?>
45 </div>
46 <?php endif;?>
47 <?php endforeach;?>
48 <?php endif;?>
49 </div>
50 </div>
51 </div>
52
53