PluginProbe
Property Hive / 2.3.1
Property Hive v2.3.1
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 / includes / avada-widgets / property-meta-preview.php

property-meta-preview.php in Property Hive 2.3.1, at includes/avada-widgets/property-meta-preview.php

57 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7 /**
8 * Underscore.js template.
9 *
10 * @package fusion-builder
11 */
12
13 ?>
14 <script type="text/template" id="fusion-builder-block-module-property-meta-preview-template">
15
16 <#
17 var text_color = params.text_color,
18 text_transform = '' !== params.text_transform ? params.text_transform : '',
19 styleTag = '';
20
21 if ( 'none' !== text_transform ) {
22 styleTag += 'text-transform: ' + text_transform + ';';
23 }
24
25 if ( text_color && ( -1 !== text_color.indexOf( 'var(--' ) ) ) {
26 text_color = getComputedStyle( document.documentElement ).getPropertyValue( text_color.replace( 'var(', '' ).replace( ')', '' ) );
27 }
28
29 if ( text_color && ( -1 !== text_color.replace( /\s/g, '' ).indexOf( 'rgba(255,255,255' ) || '#ffffff' === text_color ) ) {
30 text_color = '#dddddd';
31 }
32
33 if ( params.content_align && '' !== params.content_align ) {
34 styleTag += 'text-align: ' + params.content_align + ';';
35 }
36
37 if ( params.sep_color && '' !== params.sep_color ) {
38 styleTag += 'border-color: ' + params.sep_color + ';';
39 }
40
41 if ( text_color ) {
42 styleTag += 'color: ' + text_color + ';';
43 }
44 #>
45
46 <div class="fusion-module-property-meta-preview">
47 <ul style="{{{ styleTag }}}">
48 <li><span>Reference:</span> 001-ABC</li>
49 <li><span>Availability:</span> For Sale</li>
50 <li><span>Property Type:</span> Detached House</li>
51 <li><span>Bedrooms:</span> 3</li>
52 <li><span>Bathrooms:</span> 1</li>
53 </ul>
54 </div>
55
56 </script>
57