| 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 |
|