PluginProbe
Property Hive / 2.2.4
Property Hive v2.2.4
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 / salient-widgets / property-address-postcode-html.php

property-address-postcode-html.php in Property Hive 2.2.4, at includes/salient-widgets/property-address-postcode-html.php

33 lines 733 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }