PluginProbe
Property Hive / 2.4.0
Property Hive v2.4.0
2.4.0 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 All 262 releases
propertyhive / templates / emails / applicant-match-property.php

applicant-match-property.php in Property Hive 2.4.0, at templates/emails/applicant-match-property.php

39 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" style="margin-bottom:10px;">
2 <tr>
3 <td width="25%"><?php
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 exit;
7 }
8
9 // 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.
10 $image = $property->get_main_photo_src();
11 if ($image !== FALSE)
12 {
13 ?>
14 <a href="<?php echo esc_url( get_the_permalink( $property->id ) ); ?>"><img src="<?php echo esc_url( $image ); ?>" style="max-width:100%" alt="<?php echo esc_attr( get_the_title( $property->id ) ); ?>"></a>
15 <?php
16 }
17 ?></td>
18 <td>
19 <h2><a href="<?php echo esc_url( get_the_permalink( $property->id ) ); ?>"><?php echo esc_html( get_the_title( $property->id ) ); ?></a></h2>
20 <p>
21 <strong><?php echo wp_kses_post( $property->get_formatted_price() ); ?></strong><?php
22 if ( $property->price_qualifier != '' )
23 {
24 echo ' <span class="price-qualifier">' . esc_html( $property->price_qualifier ) . '</span>';
25 }
26 ?> | <?php
27 if ( $property->department != 'commercial' && ph_get_custom_department_based_on( $property->department ) != 'commercial' )
28 {
29 echo esc_html( $property->bedrooms ) . ' bed ';
30 }
31 else
32 {
33 echo wp_kses_post( $property->get_formatted_floor_area() ) . ' | ';
34 }
35 echo esc_html( $property->get_property_type() ); ?> | <?php echo esc_html( $property->get_availability() ); ?></p>
36 <p><?php echo wp_kses_post( $property->post_excerpt ); ?></p>
37 </td>
38 </tr>
39 </table>