From b931419d11427038583d48fbb099765939efb88a Mon Sep 17 00:00:00 2001 From: Cody Reichert Date: Thu, 5 May 2016 15:19:46 -0500 Subject: [PATCH 1/5] Add new lot size fields to listing details pages --- simply-rets-api-helper.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/simply-rets-api-helper.php b/simply-rets-api-helper.php index c16c5dd..6a3bbf2 100644 --- a/simply-rets-api-helper.php +++ b/simply-rets-api-helper.php @@ -606,6 +606,15 @@ public static function srResidentialDetailsGenerator( $listing ) { // lot size $listing_lotSize = $listing->property->lotSize; $lotsize_markup = SimplyRetsApiHelper::srDetailsTable($listing_lotSize, "Lot Size"); + // lot size area + $listing_lotSizeArea = $listing->property->lotSizeArea; + $lotsizearea_markup = SimplyRetsApiHelper::srDetailsTable($listing_lotSizeArea, "Lot Size Area"); + // lot size area units + $listing_lotSizeAreaUnits = $listing->property->lotSizeAreaUnits; + $lotsizeareaunits_markup = SimplyRetsApiHelper::srDetailsTable($listing_lotSizeAreaUnits, "Lot Size Area Units"); + // acres + $listing_acres = $listing->property->acres; + $acres_markup = SimplyRetsApiHelper::srDetailsTable($acres, "Acres"); // street address info $listing_postal_code = $listing->address->postalCode; $postal_code = SimplyRetsApiHelper::srDetailsTable($listing_postal_code, "Postal Code"); @@ -932,6 +941,11 @@ public static function srResidentialDetailsGenerator( $listing ) { $bathsTotal $style $lotsize_markup + + $lotsizearea_markup + $lotsizeareaunits_markup + $acres_markup + $stories $interiorFeatures $exteriorFeatures From 11127c06d89eaa1a9b67b0054bf7fc38b2b71b9b Mon Sep 17 00:00:00 2001 From: Cody Reichert Date: Thu, 5 May 2016 21:38:24 -0500 Subject: [PATCH 2/5] Add show agent/office contact option to adminn page --- simply-rets-admin.php | 12 ++++++++++++ simply-rets-utils.php | 15 +++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/simply-rets-admin.php b/simply-rets-admin.php index be509a0..7a8894a 100644 --- a/simply-rets-admin.php +++ b/simply-rets-admin.php @@ -29,6 +29,7 @@ function register_admin_settings() { register_setting('sr_admin_settings', 'sr_contact_page'); register_setting('sr_admin_settings', 'sr_show_listingmeta'); register_setting('sr_admin_settings', 'sr_show_listing_remarks'); + register_setting('sr_admin_settings', 'sr_show_agent_contact'); register_setting('sr_admin_settings', 'sr_listing_gallery'); register_setting('sr_admin_settings', 'sr_show_leadcapture'); register_setting('sr_admin_settings', 'sr_leadcapture_recipient'); @@ -191,6 +192,17 @@ function sr_admin_page() { + + + + +