PluginProbe
Property Hive / 2.4.0
Property Hive v2.4.0
2.4.0 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 All 262 releases
propertyhive / includes / avada-widgets / property-price-preview.php

property-price-preview.php in Property Hive 2.4.0, at includes/avada-widgets/property-price-preview.php

56 lines 1.4 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-price-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 if ( params.show_price_qualifier && params.show_price_qualifier != 'on' )
46 {
47 // dont need to do anything here as no price qualifier in preview
48 }
49 #>
50
51 <div class="fusion-module-property-price-preview" style="{{{ styleTag }}}">
52 &pound;450,000
53 </div>
54
55 </script>
56