PluginProbe
Property Hive / 2.3.1
Property Hive v2.3.1
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 / templates / single-property / features.php

features.php in Property Hive 2.3.1, at templates/single-property/features.php

39 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Single Property Features
4 *
5 * @author PropertyHive
6 * @package PropertyHive/Templates
7 * @version 1.0.0
8 */
9
10 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
11
12 global $post, $property;
13
14 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone.
15 $features = $property->get_features();
16
17 if ( !empty($features) )
18 {
19 ?>
20 <div class="features">
21
22 <h4><?php echo esc_html(__( 'Property Features', 'propertyhive' )); ?></h4>
23
24 <ul>
25 <?php
26 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone.
27 foreach ($features as $feature)
28 {
29 ?>
30 <li><?php echo esc_html($feature); ?></li>
31 <?php
32 }
33 ?>
34 </ul>
35
36 </div>
37 <?php
38 }
39 ?>