From dd94ef92b436ffe237508659b676c7fd46e0731f Mon Sep 17 00:00:00 2001 From: Cody Reichert Date: Mon, 18 Jan 2021 10:21:15 -0600 Subject: [PATCH] Use better HTML for images in sr_listings/sr_listings_slider --- src/assets/css/simply-rets-client.css | 14 ++++---------- src/simply-rets-api-helper.php | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/assets/css/simply-rets-client.css b/src/assets/css/simply-rets-client.css index e5614b1b..8520a402 100644 --- a/src/assets/css/simply-rets-client.css +++ b/src/assets/css/simply-rets-client.css @@ -59,15 +59,11 @@ of the image, use this class. ``` */ -.sr-photo { - position: relative; +img.sr-photo { display: inline-block; height: 155px; width: 30%; overflow: hidden; - background-size: contain; - background-position: center center; - background-repeat: no-repeat; } @@ -918,11 +914,9 @@ elsewhere, this should be a breeze. text-align: center; } -.sr-listing-slider-item-img { - height: 170px; - background-size: contain; - background-position: center; - background-repeat: no-repeat; +img.sr-listing-slider-item-img { + height: 150px; + object-fit: cover; } .sr-listing-slider-item-address { diff --git a/src/simply-rets-api-helper.php b/src/simply-rets-api-helper.php index 882d8414..fbe7fe6e 100644 --- a/src/simply-rets-api-helper.php +++ b/src/simply-rets-api-helper.php @@ -1538,8 +1538,12 @@ public static function srResidentialResultsGenerator( $response, $settings ) {
-
-
+ $full_address - $listing_USD
@@ -1849,7 +1853,12 @@ public static function srListingSliderGenerator( $response, $settings ) { $inner .= << -
+ $address - $priceUSD

$address $priceUSD