| 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-features-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>Features</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-features-preview"> |
| 48 |
{{{titleHTML}}} |
| 49 |
<ul style="{{{ styleTag }}}"> |
| 50 |
<li>Four bedrooms</li> |
| 51 |
<li>Private south facing garden</li> |
| 52 |
<li>Fireplace</li> |
| 53 |
<li>En-suite</li> |
| 54 |
<li>Cul-de-sac location</li> |
| 55 |
</ul> |
| 56 |
</div> |
| 57 |
|
| 58 |
</script> |
| 59 |
|