PluginProbe
WP Directory Kit / 1.2.3
WP Directory Kit v1.2.3
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-listings-list.php

wdk-listings-list.php in WP Directory Kit 1.2.3, at elementor-elements/views/wdk-listings-list.php

79 lines 5.2 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 Listings list.
4 * This is the template that elementor element listings, list
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-listings-list">
15 <div class="wdk-row">
16 <?php if(!empty($results)):?>
17 <?php foreach($results as $listing):?>
18 <?php
19 $url = get_permalink($listing);
20 $title_post = wdk_resultitem_fields_section_value(1, 2, $listing);
21 $title_part = wdk_resultitem_fields_section_value(1, 2, $listing);
22 $price_part = wdk_resultitem_fields_section_value(1, 5, $listing);
23 ?>
24 <div class="wdk-col">
25 <div class="listing-item">
26 <div class="listing-img-sec">
27 <a href="<?php echo esc_url($url);?>" title="<?php echo esc_attr(wdk_show_data('post_title', $listing, '', TRUE, TRUE));?>">
28 <img src="<?php echo esc_url(wdk_image_src($listing, 'full'));?>" alt="<?php echo esc_attr(wdk_show_data('post_title', $listing, '', TRUE, TRUE));?>">
29 </a>
30 </div><!--prop-img-sec enf-->
31 <div class="listing-inf-sec">
32 <?php if(!empty($title_part)):?>
33 <h3 class="title">
34 <a href="<?php echo esc_url($url);?>">
35 <?php foreach ($title_part as $key => $field):?>
36 <span>
37 <?php echo wmvc_show_data('prefix', $field).wdk_filter_decimal(wmvc_show_data('value', $field)).wmvc_show_data('suffix', $field);?>
38 </span>
39 <?php endforeach;?>
40 </a>
41 </h3>
42 <?php endif;?>
43 <?php if(!empty($price_part)):?>
44 <div class="price">
45 <?php foreach ($price_part as $key => $field):?>
46 <span>
47 <?php echo esc_html(apply_filters( 'wpdirectorykit/listing/field/prefix', wmvc_show_data('prefix', $field), wmvc_show_data('field_id', $field)));?>
48 <?php if(function_exists('run_wdk_currency_conversion')):?>
49 <?php
50 $value = strip_tags(apply_filters( 'wpdirectorykit/listing/field/value', wdk_filter_decimal(wmvc_show_data('value', $field)), wmvc_show_data('field_id', $field), FALSE));
51 echo esc_html(wdk_number_format_i18n($value));
52 ?>
53 <?php else:?>
54 <?php if(wdk_field_option(wmvc_show_data('field_id', $field), 'is_price_format') && wdk_field_option(wmvc_show_data('field_id', $field), 'field_type') == 'NUMBER'):?>
55 <?php
56 $value = strip_tags(apply_filters( 'wpdirectorykit/listing/field/value', wdk_filter_decimal(wmvc_show_data('value', $field)), wmvc_show_data('field_id', $field), FALSE));
57 echo esc_html(wdk_number_format_i18n($value));
58 ?>
59 <?php else:?>
60 <?php echo esc_html(strip_tags(apply_filters( 'wpdirectorykit/listing/field/value', (wdk_filter_decimal(wmvc_show_data('value', $field))), wmvc_show_data('field_id', $field))));?>
61 <?php endif;?>
62 <?php endif;?>
63 <?php echo esc_html(apply_filters( 'wpdirectorykit/listing/field/suffix', wmvc_show_data('suffix', $field), wmvc_show_data('field_id', $field)));?>
64 </span>
65 <?php endforeach;?>
66 </div>
67 <?php endif;?>
68 </div><!--prop-inf-sec enf-->
69 </div>
70 </div>
71 <?php endforeach;?>
72 <?php else:?>
73 <p class="wdk_alert wdk_alert-danger"><?php echo esc_html__('Results not found', 'wpdirectorykit');?></p>
74 <?php endif;?>
75 </div>
76 </div>
77 </div>
78
79