Skip to content

Commit

Permalink
better handling of photo cdn urls
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyReichert committed Jan 21, 2015
1 parent 85452bd commit c4ca44a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simply-rets-api-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,15 +393,15 @@ public static function srResidentialResultsGenerator( $response ) {
if( empty( $listingPhotos ) ) {
$listingPhotos[0] = 'http://placehold.it/250x175.jpg';
}
$main_photo = $listingPhotos[0];
$main_photo = trim($listingPhotos[0]);

$listing_link = get_home_url() . "/?sr-listings=sr-single&listing_id=$listing_uid&listing_price=$listing_price&listing_title=$address";
// append markup for this listing to the content
$cont .= <<<HTML
<hr>
<div class="sr-listing">
<a href="$listing_link">
<div class="sr-photo" style="background-image:url($main_photo);">
<div class="sr-photo" style="background-image:url('$main_photo');">
</div>
</a>
<div class="sr-primary-data">
Expand Down

0 comments on commit c4ca44a

Please sign in to comment.