PluginProbe
Property Hive / 2.2.3
Property Hive v2.2.3
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-availability-preview.php

property-availability-preview.php in Property Hive 2.2.3, at includes/avada-widgets/property-availability-preview.php

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