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-availability-html.php

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

34 lines 726 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->availability == '' ) {
19 return;
20 }
21
22 $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
23
24 $style = '';
25 if ( ! empty( $atts['font_container'] ) && isset($atts['font_container']) )
26 {
27 $style = ph_extract_font_style_from_salient_font_container( $font_container );
28 }
29
30 echo '<div class="' . esc_attr( $css_class ) . '" ' . $style . '>';
31
32 echo esc_html($property->availability);
33
34 echo '</div>';