| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 4 |
|
| 5 |
$css = ''; |
| 6 |
|
| 7 |
extract(shortcode_atts(array( |
| 8 |
"show_title" => "yes", |
| 9 |
"css" => "", |
| 10 |
"font_container" => "", |
| 11 |
), $atts)); |
| 12 |
|
| 13 |
global $property; |
| 14 |
|
| 15 |
if ( !isset($property->id) ) { |
| 16 |
return; |
| 17 |
} |
| 18 |
|
| 19 |
if ( isset($atts['show_title']) && $atts['show_title'] != 'yes' ) |
| 20 |
{ |
| 21 |
?> |
| 22 |
<style type="text/css"> |
| 23 |
.summary h4 { display:none; } |
| 24 |
</style> |
| 25 |
<?php |
| 26 |
} |
| 27 |
|
| 28 |
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts ); |
| 29 |
|
| 30 |
$style = ''; |
| 31 |
if ( ! empty( $atts['font_container'] ) && isset($atts['font_container']) ) |
| 32 |
{ |
| 33 |
$style = ph_extract_font_style_from_salient_font_container( $font_container ); |
| 34 |
} |
| 35 |
|
| 36 |
echo '<div class="' . esc_attr( $css_class ) . '" ' . $style . '>'; |
| 37 |
|
| 38 |
propertyhive_template_single_summary(); |
| 39 |
|
| 40 |
echo '</div>'; |