PluginProbe
Property Hive / 2.2.2
Property Hive v2.2.2
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-summary-description-preview.php

property-summary-description-preview.php in Property Hive 2.2.2, at includes/avada-widgets/property-summary-description-preview.php

53 lines 1.6 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-summary-description-preview-template">
10
11 <#
12 var text_color = params.text_color,
13 text_transform = '' !== params.text_transform ? params.text_transform : '',
14 styleTag = '',
15 titleHTML = '';
16
17 if ( params.show_title && params.show_title == 'yes' )
18 {
19 titleHTML = '<h4>Summary Description</h4>';
20 }
21
22 if ( 'none' !== text_transform ) {
23 styleTag += 'text-transform: ' + text_transform + ';';
24 }
25
26 if ( text_color && ( -1 !== text_color.indexOf( 'var(--' ) ) ) {
27 text_color = getComputedStyle( document.documentElement ).getPropertyValue( text_color.replace( 'var(', '' ).replace( ')', '' ) );
28 }
29
30 if ( text_color && ( -1 !== text_color.replace( /\s/g, '' ).indexOf( 'rgba(255,255,255' ) || '#ffffff' === text_color ) ) {
31 text_color = '#dddddd';
32 }
33
34 if ( params.content_align && '' !== params.content_align ) {
35 styleTag += 'text-align: ' + params.content_align + ';';
36 }
37
38 if ( params.sep_color && '' !== params.sep_color ) {
39 styleTag += 'border-color: ' + params.sep_color + ';';
40 }
41
42 if ( text_color ) {
43 styleTag += 'color: ' + text_color + ';';
44 }
45 #>
46
47 <div class="fusion-module-property-summary-description-preview">
48 {{{titleHTML}}}
49 Nestled in a quiet, family-friendly neighborhood, this beautifully updated 3-bedroom, 2-bathroom home blends charm with modern convenience. With a spacious backyard, natural light throughout, and thoughtful design touches, it's move-in ready and waiting for you.
50 </div>
51
52 </script>
53