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