# propertyhive/2.2.2/includes/salient-widgets/property-features-html.php

Property Hive, version 2.2.2. 40 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/2.2.2/code/includes/salient-widgets/property-features-html.php
- Raw: https://pluginprobe.com/plugins/propertyhive/2.2.2/raw/includes/salient-widgets/property-features-html.php
- Modified: 2024-04-11T11:02:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/propertyhive/2.2.2/code/includes/salient-widgets/property-features-html.php#L10-L20`.

```php
<?php 

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

$css = '';

extract(shortcode_atts(array(
	"show_title" => "yes", 
	"css" => "", 
	"font_container" => "", 
), $atts));

global $property;

if ( !isset($property->id) ) {
	return;
}

if ( isset($atts['show_title']) && $atts['show_title'] != 'yes' )
{
?>
<style type="text/css">
.features h4 { display:none; }
</style>
<?php
}

$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );

$style = '';
if ( ! empty( $atts['font_container'] ) && isset($atts['font_container']) ) 
{
	$style = ph_extract_font_style_from_salient_font_container( $font_container );
}

echo '<div class="' . esc_attr( $css_class ) . '" ' . $style . '>';

	propertyhive_template_single_features();

echo '</div>';
```
