예제 #1
0
function tampa_custom_home_listing_list($listing_html, $listing_data)
{
    // pls_dump($listing_data);
    ob_start();
    ?>
		<section class="list-unit">

			<section class="lu-left">
				<?php 
    if (isset($listing_data['images']) && is_array($listing_data['images'])) {
        ?>
		      	<?php 
        echo PLS_Image::load($listing_data['images'][0]['url'], array('resize' => array('w' => 144, 'h' => 93, 'method' => 'crop'), 'fancybox' => true));
        ?>
					<?php 
    } else {
        ?>
					<?php 
        echo PLS_Image::load('', array('resize' => array('w' => 144, 'h' => 93, 'method' => 'crop'), 'fancybox' => true));
        ?>
		     <?php 
    }
    ?>

     		<?php 
    if (isset($listing_data['rets']['mls_id']) && $listing_data['rets']['mls_id']) {
        ?>
       		<p class="mls"><span>MLS #:</span> <?php 
        echo $listing_data['rets']['mls_id'];
        ?>
</p>
       		<?php 
    }
    ?>

			</section>	

			<section class="lu-right">
				<div class="lu-address">
					<h4><a href="<?php 
    echo $listing_data['cur_data']['url'];
    ?>
"><?php 
    echo $listing_data['location']['address'];
    ?>
</a></h4>
					<p class="area"><?php 
    echo $listing_data['location']['locality'];
    ?>
, <?php 
    echo $listing_data['location']['region'];
    ?>
</p>
				</div><!--lu-address-->

				<div class="lu-price">
					<p class="price"><strong><?php 
    echo PLS_Format::number($listing_data['cur_data']['price'], array('abbreviate' => false, 'add_currency_sign' => true));
    ?>
</strong><?php 
    if ($listing_data['cur_data']['lse_trms'] != null) {
        echo $listing_data['cur_data']['lse_trms'];
    }
    ?>
</p>
					<p class="rent-label"><?php 
    if (isset($listing_data['purchase_types'][0])) {
        echo ucwords($listing_data['purchase_types'][0]);
    }
    ?>
</p>
				</div><!--lu-price-->

				<div class="lu-main">
				<?php 
    if (isset($listing_data['cur_data']['desc'])) {
        echo '<p>';
        if (strlen($listing_data['cur_data']['desc']) < 200) {
            echo $listing_data['cur_data']['desc'];
        } else {
            $position = strrpos(substr($listing_data['cur_data']['desc'], 0, 200), ' ');
            echo substr($listing_data['cur_data']['desc'], 0, $position) . '...';
        }
        echo '</p>';
    }
    ?>
					<p class="info"><span><?php 
    echo $listing_data['cur_data']['beds'];
    ?>
</span> Bedrooms | <span><?php 
    echo $listing_data['cur_data']['baths'];
    ?>
</span> Bathrooms 
						<?php 
    if ($listing_data['cur_data']['sqft'] != null) {
        echo '| <span>' . PLS_Format::number($listing_data['cur_data']['sqft'], array('abbreviate' => false, 'add_currency_sign' => false)) . '</span> sqft';
    }
    ?>
</p>
					<!-- <a class="fav" href="#">Add to Favorites</a> -->					
				<?php 
    $api_whoami = PLS_Plugin_API::get_user_details();
    ?>

				<?php 
    if (pls_get_option('pls-user-email')) {
        ?>
					<a class="info-bt" href="mailto:<?php 
        echo pls_get_option('pls-user-email');
        ?>
" target="_blank"><?php 
        _e('Request Information', 'tampa');
        ?>
</a>
				<?php 
    } else {
        ?>
					<a class="info-bt" href="mailto:<?php 
        echo $api_whoami['user']['email'];
        ?>
" target="_blank"><?php 
        _e('Request Information', 'tampa');
        ?>
</a>
				<?php 
    }
    ?>
					<a class="see-details-link details-bt" href="<?php 
    echo $listing_data['cur_data']['url'];
    ?>
"><?php 
    _e('See Details', 'tampa');
    ?>
</a>
				</div><!--lu-main-->
			</section><!--lu-right-->
    <?php 
    PLS_Listing_Helper::get_compliance(array('context' => 'inline_search', 'agent_name' => $listing_data['rets']['aname'], 'office_name' => $listing_data['rets']['oname'], 'office_phone' => PLS_Format::phone($listing_data['contact']['phone']), 'agent_license' => isset($listing_data['rets']['alicense']) ? $listing_data['rets']['alicense'] : false, 'co_agent_name' => isset($listing_data['rets']['aconame']) ? $listing_data['rets']['aconame'] : false, 'co_office_name' => isset($listing_data['rets']['oconame']) ? $listing_data['rets']['oconame'] : false));
    ?>
			<div class="clr"></div>

		</section><!--list-unit-->
     <?php 
    $listing_html = ob_get_clean();
    return $listing_html;
}
예제 #2
0
function custom_property_details_page($html, $listing)
{
    ob_start();
    ?>

<section id="lvl2">
	<div class="wrapper">
		<div id="property">
			<h2><?php 
    _e('Property Details', 'manchester');
    ?>
</h2>
				<section class="property-inf">
					<div class="property-title">
						<span class="blue"><b><?php 
    echo $listing['location']['full_address'];
    ?>
</b></span>
						<p><span><?php 
    echo $listing['cur_data']['beds'];
    ?>
 <?php 
    _e('Bedrooms', 'manchester');
    ?>
</span> <span><?php 
    echo $listing['cur_data']['baths'];
    ?>
 <?php 
    _e('Bathrooms', 'manchester');
    ?>
</span></p>
					</div>
		<div class="property-price">
			<span class="green"><b><?php 
    echo PLS_Format::number($listing['cur_data']['price'], array('abbreviate' => false, 'add_currency_sign' => true));
    ?>
</b></span>
		</div>
</section>

<section class="property-bin">
	<div class="property-img">
		<div class="img_box">
			<?php 
    if ($listing['images']) {
        ?>
				<?php 
        echo PLS_Image::load($listing['images'][0]['url'], array('resize' => array('w' => 600, 'h' => 250, 'method' => 'crop'), 'fancybox' => false, 'as_html' => true, 'html' => array('img_classes' => 'main-banner')));
        ?>
  
			<?php 
    } else {
        ?>
				<?php 
        echo PLS_Image::load(null, array('resize' => array('w' => 600, 'h' => 250, 'method' => 'crop'), 'fancybox' => false, 'as_html' => true, 'html' => array('img_classes' => 'main-banner')));
        ?>
  
			<?php 
    }
    ?>
		</div>
	</div>
</section>

<!-- sidebar container section -->
<section class="property-map">
	<div class="property-gmap">
		<?php 
    echo PLS_Map::dynamic($listing, array('lat' => $listing['location']['coords'][0], 'lng' => $listing['location']['coords'][1], 'zoom' => '14', 'width' => 338, 'height' => 230, 'canvas_id' => 'map_canvas', 'class' => 'custom_google_map', 'map_js_var' => 'pls_google_map', 'ajax_form_class' => false));
    ?>
	</div>

	<script type="text/javascript">
      jQuery(document).ready(function( $ ) {
        var map = new Map();
        var listing = new Listings({
          single_listing: <?php 
    echo json_encode($listing);
    ?>
,
          map: map
        });
        map.init({
          type: 'single_listing', 
          listings: listing,
          lat : <?php 
    echo json_encode($listing['location']['coords'][0]);
    ?>
,
          lng : <?php 
    echo json_encode($listing['location']['coords'][1]);
    ?>
,
          zoom : 14
        });
        listing.init();
      });
	</script>

	<div class="property-lnks">
		<!-- <section class="list-fav"><a href="#"><?php 
    _e('Add to favorites', 'manchester');
    ?>
</a></section> -->
		<section class="list-req"><a href="<?php 
    echo pls_get_option('pls-user-email');
    ?>
"><?php 
    _e('Request more info', 'manchester');
    ?>
</a></section>
	</div>
</section>

		<!-- </div>
	</div> end of wrapper
</section> -->


<section id="lvl4">
	<div class="wrapper">
		
		<section class="left-content">

			<section class="list2">
				<h5><?php 
    _e('DETAILS', 'manchester');
    ?>
</h5>
				
				<section class="list-item">
					<section class="list-details">

						<section class="list-details-1-2">
							<label><?php 
    _e('Zoning Type', 'manchester');
    ?>
</label>
							<p><?php 
    echo ucwords($listing['zoning_types'][0]);
    ?>
</p>
							<?php 
    if (isset($listing['purchase_types'][0])) {
        ?>
							<label><?php 
        _e('Listing Type', 'manchester');
        ?>
</label>
							<p><?php 
        echo ucwords($listing['purchase_types'][0]);
        ?>
</p>
							<?php 
    }
    ?>
							<?php 
    if ($listing['property_type']) {
        ?>
								<label><?php 
        _e('Property Type', 'manchester');
        ?>
</label>
								<p><?php 
        echo PLS_Format::translate_property_type($listing);
        ?>
</p>
							<?php 
    }
    ?>

							<?php 
    if (isset($listing['rets']['mls_id'])) {
        ?>
								<label><?php 
        _e('MLS#', 'manchester');
        ?>
</label>
								<p><?php 
        echo $listing['rets']['mls_id'];
        ?>
</p>
							<?php 
    } else {
        ?>
								<label><?php 
        _e('Ref #', 'manchester');
        ?>
</label>
								<p><?php 
        echo $listing['id'];
        ?>
</p>
							<?php 
    }
    ?>

						</section>

						<section class="list-details-2-2">
							<label><?php 
    _e('Bedrooms', 'manchester');
    ?>
</label>
							<p><?php 
    echo $listing['cur_data']['beds'];
    ?>
</p>
							<label><?php 
    _e('Bathrooms', 'manchester');
    ?>
</label>
							<p><?php 
    echo $listing['cur_data']['baths'];
    ?>
</p>
							<label><?php 
    _e('Half Baths', 'manchester');
    ?>
</label>
							<p><?php 
    echo $listing['cur_data']['half_baths'];
    ?>
</p>
						</section>

					</section>
				</section>

				<div class="separator-1-sma"></div>

				<?php 
    if ($listing['cur_data']['desc']) {
        ?>
					<h5><?php 
        _e('DESCRIPTION', 'manchester');
        ?>
</h5>
					<section class="list-item">
						<section class="list-details"><?php 
        echo $listing['cur_data']['desc'];
        ?>
</section>
					</section>
				<?php 
    }
    ?>

				<div class="separator-1-sma"></div>

				<?php 
    $amenities = PLS_Format::amenities_but($listing, array('half_baths', 'beds', 'baths', 'url', 'sqft', 'avail_on', 'price', 'desc'));
    ?>

				<?php 
    if (isset($amenities['list']) && $amenities['list'] != null) {
        ?>
					<?php 
        $amenities['list'] = PLS_Format::translate_amenities($amenities['list']);
        ?>
					<h5><?php 
        _e('PROPERTY AMENITIES', 'manchester');
        ?>
</h5>
						<section class="list-item">
							<section class="list-amenity">
								<?php 
        foreach ($amenities['list'] as $amenity => $value) {
            ?>
									<label><span><?php 
            echo $amenity;
            ?>
</span> <?php 
            echo $value;
            ?>
</label>
								<?php 
        }
        ?>
							</section>
						</section>

						<div class="separator-1-sma"></div>
				<?php 
    }
    ?>

				<?php 
    if (isset($amenities['ngb']) && $amenities['ngb'] != null) {
        ?>
					<?php 
        $amenities['ngb'] = PLS_Format::translate_amenities($amenities['ngb']);
        ?>
					<h5><?php 
        _e('NEIGHBORHOOD AMENITIES', 'manchester');
        ?>
</h5>
						<section class="list-item">
							<section class="list-amenity">
								<?php 
        foreach ($amenities['ngb'] as $amenity => $value) {
            ?>
									<label><span><?php 
            echo $amenity;
            ?>
</span> <?php 
            echo $value;
            ?>
</label>
								<?php 
        }
        ?>
							</section>
						</section>

						<div class="separator-1-sma"></div>
				<?php 
    }
    ?>

				<?php 
    if (isset($amenities['uncur']) && $amenities['uncur'] != null) {
        ?>
					<?php 
        $amenities['uncur'] = PLS_Format::translate_amenities($amenities['uncur']);
        ?>
					<h5><?php 
        _e('CUSTOM AMENITIES', 'manchester');
        ?>
</h5>
						<section class="list-item">
							<section class="list-amenity">
								<?php 
        foreach ($amenities['uncur'] as $amenity => $value) {
            ?>
									<label><span><?php 
            echo $amenity;
            ?>
</span> <?php 
            echo $value;
            ?>
</label>
								<?php 
        }
        ?>
							</section>
						</section>

						<div class="separator-1-sma"></div>
				<?php 
    }
    ?>

			</section><!-- /.list2 -->
		</section><!-- /.left-content -->


		<aside class="sidebar">
			<section class="side-bin2">

				<?php 
    if ($listing['images']) {
        ?>
				<h5><?php 
        _e('PHOTO GALLERY', 'manchester');
        ?>
</h5>
				<section class="gallery">
					<?php 
        foreach ($listing['images'] as $image) {
            ?>
							<?php 
            echo PLS_Image::load($image['url'], array('resize' => array('w' => 140, 'h' => 93, 'method' => 'crop'), 'fancybox' => true, 'as_html' => false));
            ?>
					<?php 
        }
        ?>
				</section>
				<?php 
    }
    ?>
			</section>
		</aside>

		<div class="clr"></div>
	
	</div><!-- end of wrapper -->
</section>


<section id="lvl5">
	<div class="wrapper">

		<section class="neighborhood">

			<h5><?php 
    _e('NEIGHBORHOOD', 'manchester');
    ?>
</h5>
			<section class="neighborhood-map">
				<?php 
    echo PLS_Map::dynamic($listing, array('lat' => $listing['location']['coords'][0], 'lng' => $listing['location']['coords'][1], 'zoom' => '13', 'width' => 960, 'height' => 258, 'canvas_id' => 'map_canvas_nbr', 'class' => 'custom_google_map_nbr', 'map_js_var' => 'pls_google_map_nbr', 'ajax_form_class' => false));
    ?>
			</section>

			<script type="text/javascript">
		        jQuery(document).ready(function( $ ) {
		          var map_nbr = new Map();
		          var listing_nbr = new Listings({
		            single_listing: <?php 
    echo json_encode($listing);
    ?>
,
		            map: map_nbr
		          });
		          map_nbr.init({
		            type: 'single_listing', 
		            dom_id: 'map_canvas_nbr',
		            listings: listing_nbr,
		            lat: <?php 
    echo json_encode($listing['location']['coords'][0]);
    ?>
,
		            lng: <?php 
    echo json_encode($listing['location']['coords'][1]);
    ?>
,
		            zoom: 14
		          });
		          listing_nbr.init();
		        });
			</script>
		
		</section>
		

		<?php 
    PLS_Listing_Helper::get_compliance(array('context' => 'listings', 'agent_name' => $listing['rets']['aname'], 'office_name' => $listing['rets']['oname'], 'office_phone' => PLS_Format::phone($listing['contact']['phone']), 'agent_license' => isset($listing['rets']['alicense']) ? $listing['rets']['alicense'] : false, 'co_agent_name' => isset($listing['rets']['aconame']) ? $listing['rets']['aconame'] : false, 'co_office_name' => isset($listing['rets']['oconame']) ? $listing['rets']['oconame'] : false));
    ?>
	</div><!-- end of wrapper -->
</section>

	<?php 
    return ob_get_clean();
}
예제 #3
0
function manchester_custom_home_listing_list($listing_html, $listing_data)
{
    // pls_dump($listing_data);
    ob_start();
    ?>

<section class="list-item">                                                  
	
	<section class="list-pic">

		<div class="thumbs">
			<?php 
    if (isset($listing_data['images']) && is_array($listing_data['images'])) {
        ?>
        	<?php 
        echo PLS_Image::load($listing_data['images'][0]['url'], array('resize' => array('w' => 144, 'h' => 93, 'method' => 'crop'), 'fancybox' => true));
        ?>
    	
				<?php 
    } else {
        ?>
				<?php 
        echo PLS_Image::load('', array('resize' => array('w' => 144, 'h' => 93, 'method' => 'crop'), 'fancybox' => true));
        ?>
       <?php 
    }
    ?>
		</div>

		<?php 
    if (isset($listing_data['rets']['mls_id'])) {
        ?>
  		<p class="nrm-txt"><?php 
        _e('MLS', 'manchester');
        ?>
 #: <?php 
        echo $listing_data['rets']['mls_id'];
        ?>
</p>
  	<?php 
    }
    ?>

	</section>

	<section class="list-txt">

		<section class="list-info">

			<h5><a href="<?php 
    echo $listing_data['cur_data']['url'];
    ?>
"><?php 
    echo $listing_data['location']['address'];
    ?>
</a></h5>
			<h6><?php 
    echo $listing_data['location']['locality'];
    ?>
, <?php 
    echo $listing_data['location']['region'];
    ?>
</h6>
				<?php 
    if (isset($listing_data['cur_data']['desc'])) {
        echo '<p class="nrm-txt">';
        if (strlen($listing_data['cur_data']['desc']) < 150) {
            echo $listing_data['cur_data']['desc'];
        } else {
            $position = strrpos(substr($listing_data['cur_data']['desc'], 0, 150), ' ');
            echo substr($listing_data['cur_data']['desc'], 0, $position) . '...';
        }
        echo '</p>';
    }
    ?>

			<p class="nrm-txt">
				<b><?php 
    echo $listing_data['cur_data']['beds'];
    ?>
</b> <span class="beds-n-baths"><?php 
    _e('Beds', 'manchester');
    ?>
</span> | 
				<b><?php 
    echo $listing_data['cur_data']['baths'];
    ?>
</b> <span class="beds-n-baths"><?php 
    _e('Baths', 'manchester');
    ?>
</span> 
				<?php 
    if (isset($listing_data['cur_data']['sqft'])) {
        echo '| <b>' . PLS_Format::number($listing_data['cur_data']['sqft'], array('abbreviate' => false, 'add_currency_sign' => false)) . '</b><span class="beds-n-baths"> ' . __('sqft', 'manchester') . '</span>';
    }
    ?>
			</p>

		</section><!-- /list-info -->

		<section class="list-price">
			
			<span class="green"><b><?php 
    echo PLS_Format::number($listing_data['cur_data']['price'], array('abbreviate' => false));
    ?>
</b>
			<?php 
    if ($listing_data['cur_data']['lse_trms'] != null) {
        // translate lease terms to human form
        echo PLS_Format::translate_lease_terms($listing_data);
    }
    ?>
			</span><br />
			
			<span class="nrm-txt">
				<?php 
    if ($listing_data['property_type'] == "fam_home") {
        echo __("Single Family Home", 'manchester');
    } else {
        $prop_type_frmttd = is_array($listing_data['property_type']) ? implode($listing_data['property_type']) : $listing_data['property_type'];
        echo ucwords($prop_type_frmttd);
    }
    ?>
			</span>

		</section><!-- /list-price -->

		<section class="list-links">

			<!-- <section class="list-fav"><a href="#">Add to favorites</a></section> -->
			<?php 
    $api_whoami = PLS_Plugin_API::get_user_details();
    if (pls_get_option('pls-user-email')) {
        ?>
			<section class="list-req">
				<a href="mailto:<?php 
        echo pls_get_option('pls-user-email');
        ?>
" target="_blank"><?php 
        _e('Request more info', 'manchester');
        ?>
</a>
			</section>
			<?php 
    } else {
        ?>
			<section class="list-req">
				<a href="mailto:<?php 
        echo $api_whoami['user']['email'];
        ?>
"><?php 
        _e('Request more info', 'manchester');
        ?>
</a>
			</section>
			<?php 
    }
    ?>

			<section class="list-btn1">
				<div class="img_btn">
					<a href="<?php 
    echo $listing_data['cur_data']['url'];
    ?>
"><input type="submit" Value="<?php 
    _e('See Details', 'manchester');
    ?>
" class="button b-blue medium" /></a>
				</div>
			</section>

		</section><!-- /list-links -->

	</section><!-- /list-text -->

    <?php 
    PLS_Listing_Helper::get_compliance(array('context' => 'inline_search', 'agent_name' => $listing_data['rets']['aname'], 'office_name' => $listing_data['rets']['oname'], 'office_phone' => PLS_Format::phone($listing_data['contact']['phone']), 'agent_license' => isset($listing_data['rets']['alicense']) ? $listing_data['rets']['alicense'] : false, 'co_agent_name' => isset($listing_data['rets']['aconame']) ? $listing_data['rets']['aconame'] : false, 'co_office_name' => isset($listing_data['rets']['oconame']) ? $listing_data['rets']['oconame'] : false));
    ?>
	
</section><!-- /list-item -->

<div class="separator-1-sma"></div>

<?php 
    // END FOR EACH
    ?>

     <?php 
    $listing_html = ob_get_clean();
    return $listing_html;
}
예제 #4
0
 *
 * This is the template for the About Us page
 *
 */
$company_details = PLS_Plugin_API::get_company_details();
$comma_str = $company_details['location']['locality'] && $company_details['location']['region'] ? ', ' : '';
?>

<div id="main">
	<div class="user-generated">
    <h2><?php 
printf(__('About %s', 'tampa'), stripslashes($company_details['name']));
?>
</h2>
    <p id="company-phone"><?php 
echo PLS_Format::phone($company_details['phone']);
?>
</p>
    <p id="company-address"><?php 
echo $company_details['location']['address'] . ' ' . $company_details['location']['unit'];
?>
</p>
    <p id="company-city-state">
    <?php 
printf('%s%s%s', $company_details['location']['locality'], $comma_str, $company_details['location']['region']);
?>
    </p>

		<p id="company-decription"><?php 
echo $company_details['description'];
?>
예제 #5
0
function custom_listings_search_list($listing_item_html, $listing, $context_var)
{
    // return $listing_item_html;
    /** Start output buffering. The buffered html will be returned to the filter. */
    ob_start();
    // pls_dump($listing);
    ?>

	<section class="list-item">
		<section class="list-pic">
			<div class="thumbs">
				<?php 
    if (is_array($listing['images'])) {
        ?>
					<?php 
        echo PLS_Image::load($listing['images'][0]['url'], array('resize' => array('w' => 144, 'h' => 93, 'method' => 'crop'), 'fancybox' => true, 'as_html' => true));
        ?>
    	
				<?php 
    } else {
        ?>
					<?php 
        echo PLS_Image::load('', array('resize' => array('w' => 144, 'h' => 93, 'method' => 'crop'), 'fancybox' => true, 'as_html' => true));
        ?>
    	
				<?php 
    }
    ?>
			</div>

			<?php 
    if (isset($listing['rets']['mls_id'])) {
        ?>
    		<p class="nrm-txt"><?php 
        _e('MLS', 'manchester');
        ?>
 #: <?php 
        echo $listing['rets']['mls_id'];
        ?>
</p>
    	<?php 
    }
    ?>

		</section>

		<section class="list-txt">                               
			<section class="list-info">
				<h5><a href="<?php 
    echo $listing['cur_data']['url'];
    ?>
"><?php 
    echo $listing['location']['address'];
    ?>
</a></h5>
				<h6><?php 
    echo $listing['location']['locality'] . ', ' . $listing['location']['region'];
    ?>
</h6>
				<p class="nrm-txt"><?php 
    echo substr($listing['cur_data']['desc'], 0, 300);
    ?>
</p>
				<p class="nrm-txt">
					<b><?php 
    echo $listing['cur_data']['beds'];
    ?>
</b> <span class="beds-n-baths"><?php 
    _e('Beds', 'manchester');
    ?>
</span> |
					<b><?php 
    echo $listing['cur_data']['baths'];
    ?>
</b> <span class="beds-n-baths"><?php 
    _e('Baths', 'manchester');
    ?>
</span>
					<?php 
    if ($listing['cur_data']['sqft'] != null) {
        ?>
 
						| <b><?php 
        echo PLS_Format::number($listing['cur_data']['sqft'], array('abbreviate' => false, 'add_currency_sign' => false));
        ?>
</b><span class="beds-n-baths"> <?php 
        _e('sqft', 'manchester');
        ?>
</span>
					<?php 
    }
    ?>
				</p>
			</section>

			<section class="list-price">
				<span class="green"><b><?php 
    echo PLS_Format::number($listing['cur_data']['price'], array('abbreviate' => false, 'add_currency_sign' => true));
    ?>
</b><?php 
    if (isset($listing['cur_data']['lse_trms'])) {
        echo $listing['cur_data']['lse_trms'];
    }
    ?>
</span><br />
				<?php 
    if (!empty($listing['property_type'])) {
        ?>
					<span class="nrm-txt"><?php 
        echo ucwords($listing['property_type']);
        ?>
</span>
				<?php 
    }
    ?>
			</section>

			<section class="list-links">
				<!-- <section class="list-fav"><a href="#"><?php 
    _e('Add to favorites', 'manchester');
    ?>
</a></section> -->
				<section class="list-req"><a href="mailto:<?php 
    echo pls_get_option('pls-user-email');
    ?>
"><?php 
    _e('Request more info', 'manchester');
    ?>
</a></section>
				<section class="list-btn1">
					<div class="img_btn"><a href="<?php 
    echo $listing['cur_data']['url'];
    ?>
"><input type="submit" value="<?php 
    _e('See Details', 'manchester');
    ?>
" class="button b-blue medium" /></a></div>
				</section>
			</section>
	</section>
	<?php 
    PLS_Listing_Helper::get_compliance(array('context' => 'inline_search', 'agent_name' => $listing['rets']['aname'], 'office_name' => $listing['rets']['oname'], 'office_phone' => PLS_Format::phone($listing['contact']['phone']), 'agent_license' => isset($listing['rets']['alicense']) ? $listing['rets']['alicense'] : false, 'co_agent_name' => isset($listing['rets']['aconame']) ? $listing['rets']['aconame'] : false, 'co_office_name' => isset($listing['rets']['oconame']) ? $listing['rets']['oconame'] : false));
    ?>

	<div class="separator-1-sma"></div>

<?php 
    $html = ob_get_clean();
    // current js build throws a fit when newlines are present
    // will need to strip them.
    // added EMCA tag will solve in the future.
    $html = preg_replace('/[\\n\\r\\t]/', ' ', $html);
    return $html;
}
예제 #6
0
 /**
  * Outputs and filters the widget.
  * 
  * The widget connects to the plugin using the framework plugin api class. 
  * If the class returns false, this means that either the plugin is 
  * missing, either the it has no API key set.
  *
  * @since 0.0.1
  */
 public function widget($args, $instance)
 {
     list($args, $instance) = self::process_defaults($args, $instance);
     /** Extract the arguments into separate variables. */
     extract($args, EXTR_SKIP);
     /** Get the agent information from the plugin. */
     $agent = PLS_Plugin_API::get_user_details();
     $agent_array = array();
     // pls_dump($agent);
     /** If the plugin is active, and has an API key set... */
     if ($agent) {
         /* Output the theme's $before_widget wrapper. */
         echo $before_widget;
         /* If a title was input by the user, display it. */
         $widget_title = '';
         if (!empty($instance['title'])) {
             $widget_title = $before_title . apply_filters('widget_title', $instance['title'], $instance, $this->id_base) . $after_title;
         }
         /** This array will hold the html for the agent info sections and will be passed to the filters. */
         $agent_html = $instance;
         unset($agent_html['title']);
         // Add Name
         if (!empty($instance['name_custom'])) {
             // if admin set custom name
             $agent_html['name'] = self::checkForCustom($instance, 'name');
             $agent_array['name'] = $instance['name_custom'];
         } else {
             // otherwise use admin's name
             if (!empty($instance['name']) && (!empty($agent['user']['first_name']) || !empty($agent['user']['last_name']))) {
                 $agent_html['name'] = pls_h_p(trim($agent['user']['first_name'] . ' ' . $agent['user']['last_name']), array('class' => 'fn h5', 'itemprop' => 'name'));
                 $agent_array['name'] = $agent['user']['first_name'] . ' ' . $agent['user']['last_name'];
             } else {
                 $agent_html['name'] = '';
                 $agent_array['name'] = '';
             }
         }
         // Add Email
         if (!empty($instance['email_custom'])) {
             // if admin set custom email
             $agent_html['email'] = self::checkForCustom($instance, 'email');
             $agent_array['email'] = $instance['email_custom'];
         } else {
             // otherwise use admin's email
             if (!empty($instance['email']) && !empty($agent['user']['email'])) {
                 $agent_html['email'] = pls_h_p(pls_h_a("mailto:{$agent['user']['email']}", $agent['user']['email']), array('class' => 'email', 'itemprop' => 'email'));
                 $agent_array['email'] = $agent['user']['email'];
             } else {
                 $agent_html['email'] = '';
                 $agent_array['email'] = '';
             }
         }
         // Add Phone
         if (!empty($instance['phone_custom'])) {
             // if admin set custom phone
             $agent_html['phone'] = self::checkForCustom($instance, 'phone');
             $agent_array['phone'] = $instance['phone_custom'];
         } else {
             // otherwise use admin's phone
             if (!empty($instance['phone']) && !empty($agent['user']['phone'])) {
                 $agent_html['phone'] = pls_h_p(PLS_Format::phone($agent['user']['phone']), array('class' => 'phone', 'itemprop' => 'phone'));
                 $agent_array['phone'] = PLS_Format::phone($agent['user']['phone'], array('class' => 'phone', 'itemprop' => 'phone'));
             } else {
                 $agent_html['phone'] = '';
                 $agent_array['phone'] = '';
             }
         }
         // Add Description
         if (!empty($instance['description_custom'])) {
             // if admin set custom description
             $agent_html['description'] = self::checkForCustom($instance, 'description');
             $agent_array['description'] = $instance['description_custom'];
         } else {
             // otherwise use admin's descriptions
             if (!empty($instance['description']) && pls_get_option('pls-user-description')) {
                 $agent_bio = pls_get_option('pls-user-description');
                 $agent_html['description'] = pls_h_p($agent_bio, array('class' => 'desc p4', 'itemprop' => 'description'));
                 $agent_array['description'] = $agent_bio;
             } else {
                 $agent_html['description'] = '';
                 $agent_array['description'] = '';
             }
         }
         // Add Photo
         if (!empty($instance['image_uri'])) {
             // if admin set custom photo
             self::checkForCustom($instance, 'photo');
             $agent_array['photo'] = $instance['image_uri'];
         } else {
             // otherwise use admin's photo
             $user_image_option = pls_get_option('pls-user-image');
             if (!empty($instance['photo']) && !empty($user_image_option)) {
                 $agent_html['photo'] = pls_h_img(@pls_get_option('pls-user-image'), trim($agent['user']['first_name'] . ' ' . $agent['user']['last_name']), array('class' => 'photo', 'itemprop' => 'image') + array() + array());
                 $agent_array['photo'] = $user_image_option;
             } else {
                 if (isset($agent['user']['headshot'])) {
                     $agent_html['photo'] = pls_h_img($agent['user']['headshot'], trim($agent['user']['first_name'] . ' ' . $agent['user']['last_name']), array('class' => 'photo', 'itemprop' => 'image') + array() + array());
                     $agent_array['photo'] = $agent['user']['headshot'];
                 } else {
                     $agent_array['photo'] = '';
                 }
             }
         }
         // Form the HTML elements
         // photo
         $agent_html['photo'] = '<img class="pls-agent-phone" src="' . esc_url($instance['image_uri']) . '" />';
         // texts
         $agent_info = array('name', 'email', 'phone', 'description');
         foreach ($agent_info as $value) {
             $agent_html[$value] = pls_h_p($agent_html[$value], array('class' => 'pls-agent-' . $value));
         }
         /** Combine the agent information. */
         $widget_body = $agent_html['photo'] . $agent_html['name'] . $agent_html['email'] . $agent_html['phone'] . $agent_html['description'];
         /** Wrap the agent information in a section element. */
         $widget_body = apply_filters('pls_widget_agent_inner', $widget_body, $agent_html, $agent_array, $instance, $agent, $widget_id);
         /** Apply a filter on the whole widget */
         echo apply_filters('pls_widget_agent', $widget_title . $widget_body, $widget_title, $before_title, $after_title, $widget_body, $agent_html, $agent, $instance, $widget_id);
         /* Close the theme's widget wrapper. */
         if ($args['clearfix']) {
             echo '<div class="clearfix"></div>';
         }
         echo $after_widget;
     } elseif (current_user_can('administrator')) {
         /** Display an error message if the user is admin. */
         // echo pls_get_no_plugin_placeholder( $widget_id );
     }
 }
예제 #7
0
function custom_property_details_page($html, $listing)
{
    ob_start();
    // pls_dump($listing);
    ?>
<div id="main">
	
	<section class="property-banner">
		<?php 
    if ($listing['images']) {
        ?>
      <?php 
        echo PLS_Image::load($listing['images'][0]['url'], array('resize' => array('w' => 625, 'h' => 292, 'method' => 'crop'), 'fancybox' => false, 'as_html' => true, 'html' => array('img_classes' => 'main-banner')));
        ?>
  
    <?php 
    } else {
        ?>
      <?php 
        echo PLS_Image::load(null, array('resize' => array('w' => 625, 'h' => 292, 'method' => 'crop'), 'fancybox' => false, 'as_html' => true, 'html' => array('img_classes' => 'main-banner')));
        ?>
    <?php 
    }
    ?>
  	<p class="state"><?php 
    echo $listing['location']['full_address'];
    ?>
 <span class="rent"><?php 
    echo PLS_Format::number($listing['cur_data']['price'], array('abbreviate' => false, 'add-currency-sign' => true));
    ?>
<em></em></span><br><span class="details"><?php 
    echo $listing['cur_data']['beds'];
    ?>
 <?php 
    _e('Bedrooms', 'tampa');
    ?>
 | <?php 
    echo $listing['cur_data']['baths'];
    ?>
 <?php 
    _e('Bathrooms', 'tampa');
    ?>
</span></p>
  </section>

	<section class="user-generated">
		<h3><?php 
    _e('Details', 'tampa');
    ?>
</h3>
		<ul class="list-half">
			<li><?php 
    _e('Listing Type', 'tampa');
    ?>
 <span><?php 
    echo ucwords($listing['purchase_types'][0]);
    ?>
</span></li>
			<li><?php 
    _e('Bedrooms', 'tampa');
    ?>
 <span><?php 
    echo $listing['cur_data']['beds'];
    ?>
</span></li>
			<li><?php 
    _e('Property Type', 'tampa');
    ?>
				<span><?php 
    echo PLS_Format::translate_property_type($listing);
    ?>
</span>
			</li>
			<li><?php 
    _e('Bathrooms', 'tampa');
    ?>
 <span><?php 
    echo $listing['cur_data']['baths'];
    ?>
</span></li>
		  <?php 
    if (isset($listing['rets']['mls_id'])) {
        ?>
		    <li><?php 
        _e('MLS #', 'tampa');
        ?>
    		<span><?php 
        echo $listing['rets']['mls_id'];
        ?>
</span>
        </li>
    	<?php 
    }
    ?>
			<li><?php 
    _e('Half Baths', 'tampa');
    ?>
 <span><?php 
    echo $listing['cur_data']['half_baths'];
    ?>
</span></li>                                                            
		</ul><!--list-half-->
		<div class="clr"></div>
	</section><!--user-generated-->

	<?php 
    if ($listing['cur_data']['desc']) {
        ?>
		<section class="user-generated">
			<h3><?php 
        _e('Description', 'tampa');
        ?>
</h3>
			<p><?php 
        echo $listing['cur_data']['desc'];
        ?>
</p>
		</section>
	<?php 
    }
    ?>

	<?php 
    $amenities = PLS_Format::amenities_but($listing, array('half_baths', 'beds', 'baths', 'url', 'sqft', 'avail_on', 'price', 'desc'));
    ?>

	<?php 
    if (isset($amenities['list']) && $amenities['list'] != null) {
        ?>
		<section class="user-generated">
			<h3><?php 
        _e('Property Amenities', 'tampa');
        ?>
</h3>
			<ul class="list-third">
				<?php 
        $amenities['list'] = PLS_Format::translate_amenities($amenities['list']);
        ?>
				<?php 
        foreach ($amenities['list'] as $amenity => $value) {
            ?>
					<li><span><?php 
            echo $amenity;
            ?>
</span> <?php 
            echo $value;
            ?>
</li>
				<?php 
        }
        ?>
			</ul>
			<div class="clr"></div>
		</section>
	<?php 
    }
    ?>

	<?php 
    if (isset($amenities['ngb']) && $amenities['ngb'] != null) {
        ?>
		<section class="user-generated">
			<h3><?php 
        _e('Neighborhood Amenities', 'tampa');
        ?>
</h3>
			<ul class="list-third">
				<?php 
        $amenities['ngb'] = PLS_Format::translate_amenities($amenities['ngb']);
        ?>
				<?php 
        foreach ($amenities['ngb'] as $amenity => $value) {
            ?>
					<li><span><?php 
            echo $amenity;
            ?>
</span> <?php 
            echo $value;
            ?>
</li>
				<?php 
        }
        ?>
			</ul>
			<div class="clr"></div>
		</section>
	<?php 
    }
    ?>

	<?php 
    if (isset($amenities['uncur']) && $amenities['uncur'] != null) {
        ?>
		<section class="user-generated">
			<h3><?php 
        _e('Property Amenities', 'tampa');
        ?>
</h3>
			<ul class="list-third">
			<?php 
        $amenities['uncur'] = PLS_Format::translate_amenities($amenities['uncur']);
        ?>
				<?php 
        foreach ($amenities['uncur'] as $amenity => $value) {
            ?>
					<li><span><?php 
            echo $amenity;
            ?>
</span> <?php 
            echo $value;
            ?>
</li>
				<?php 
        }
        ?>
			</ul>
			<div class="clr"></div>
		</section>
	<?php 
    }
    ?>


</div><!--main-->
  
<aside>
	<section id="single-property-mini-map">
		<h3><php _e('Location', 'tampa'); ?></h3>
		<?php 
    echo PLS_Map::dynamic($listing, array('lat' => $listing['location']['coords'][0], 'lng' => $listing['location']['coords'][1], 'zoom' => '14', 'width' => 288, 'height' => 217, 'canvas_id' => 'map_canvas', 'class' => 'custom_google_map', 'map_js_var' => 'pls_google_map', 'ajax_form_class' => false));
    ?>

		<script type="text/javascript">
	      jQuery(document).ready(function( $ ) {
	        var map = new Map();
	        var listing = new Listings({
	          single_listing: <?php 
    echo json_encode($listing);
    ?>
,
	          map: map
	        });
	        map.init({
	          type: 'single_listing', 
	          listings: listing,
	          lat : <?php 
    echo json_encode($listing['location']['coords'][0]);
    ?>
,
	          lng : <?php 
    echo json_encode($listing['location']['coords'][1]);
    ?>
,
	          zoom : 14
	        });
	        listing.init();
	      });
    	</script>

	    <div class="map-bar">
	    	<!-- <a class="fav-org" href="#">Add to Favorites</a> -->
	      	<a class="info-org" href="mailto:<?php 
    echo pls_get_option('pls-user-email');
    ?>
"><?php 
    _e('Request More Info', 'tampa');
    ?>
</a>
	      	<div class="clr"></div>
	    </div><!--map-bar-->
	</section>

	<?php 
    if ($listing['images']) {
        ?>
		<section id="gallery">
			<h3><?php 
        _e('Photo Gallery', 'tampa');
        ?>
</h3>    
			<?php 
        foreach ($listing['images'] as $image) {
            ?>
					<?php 
            echo PLS_Image::load($image['url'], array('resize' => array('w' => 120, 'h' => 95, 'method' => 'crop'), 'fancybox' => true, 'as_html' => false));
            ?>
 
			<?php 
        }
        ?>
		</section><!--gallery-->
	<?php 
    }
    ?>

</aside>

<div class="clr"></div>

<section id="full">
  	<section class="user-generated">
	    <h3><?php 
    _e('Neighborhood', 'tampa');
    ?>
</h3>      
	    <?php 
    echo PLS_Map::dynamic($listing, array('lat' => $listing['location']['coords'][0], 'lng' => $listing['location']['coords'][1], 'zoom' => '14', 'width' => 930, 'height' => 260, 'canvas_id' => 'map_canvas_nbr', 'class' => 'custom_google_map_nbr', 'map_js_var' => 'pls_google_map_nbr', 'ajax_form_class' => false));
    ?>
  	</section>

  	<script type="text/javascript">
        jQuery(document).ready(function( $ ) {
          var map_nbr = new Map();
          var listing_nbr = new Listings({
            single_listing: <?php 
    echo json_encode($listing);
    ?>
,
            map: map_nbr
          });
          map_nbr.init({
            type: 'single_listing', 
            dom_id: 'map_canvas_nbr',
            listings: listing_nbr,
            lat: <?php 
    echo json_encode($listing['location']['coords'][0]);
    ?>
,
            lng: <?php 
    echo json_encode($listing['location']['coords'][1]);
    ?>
,
            zoom: 14
          });
          listing_nbr.init();
        });
	</script>
  
	<?php 
    if (isset($listing['cur_data']['mls_number']) && isset($listing['mls_logo'])) {
        ?>
		<section class="user-generated">
		    <h3><?php 
        _e('Listing Supply Source', 'tampa');
        ?>
</h3>
				<p class="p-supply"><?php 
        _e('MLS #', 'tampa');
        ?>
: <?php 
        echo $listing['cur_data']['mls_number'];
        ?>
</p>
		    <div class="clr"></div>
	  	</section>
	<?php 
    }
    ?>
	
	<?php 
    PLS_Listing_Helper::get_compliance(array('context' => 'listings', 'agent_name' => $listing['rets']['aname'], 'office_name' => $listing['rets']['oname'], 'office_phone' => PLS_Format::phone($listing['contact']['phone']), 'agent_license' => isset($listing['rets']['alicense']) ? $listing['rets']['alicense'] : false, 'co_agent_name' => isset($listing['rets']['aconame']) ? $listing['rets']['aconame'] : false, 'co_office_name' => isset($listing['rets']['oconame']) ? $listing['rets']['oconame'] : false));
    ?>
</section><!--full-->

<?php 
    return ob_get_clean();
}
예제 #8
0
function custom_listings_search_list($listing_item_html, $listing, $context_var)
{
    // return $listing_item_html;
    /** Start output buffering. The buffered html will be returned to the filter. */
    ob_start();
    // pls_dump($listing);
    ?>

<section class="list-unit">

	<section class="lu-left">
		<?php 
    if (!empty($listing['images'])) {
        ?>
			<?php 
        echo PLS_Image::load($listing['images'][0]['url'], array('resize' => array('w' => 149, 'h' => 90, 'method' => 'crop'), 'fancybox' => true, 'as_html' => true));
        ?>
		<?php 
    } else {
        ?>
			<?php 
        echo PLS_Image::load('', array('resize' => array('w' => 149, 'h' => 90, 'method' => 'crop'), 'fancybox' => true, 'as_html' => true));
        ?>
    	
		<?php 
    }
    ?>
	

		<?php 
    if (isset($listing['rets']['mls_id'])) {
        ?>
  		<p class="mls"><span><?php 
        _e('MLS #', 'tampa');
        ?>
:</span> <?php 
        echo $listing['rets']['mls_id'];
        ?>
</p>
  	<?php 
    }
    ?>

	</section><!--lu-left-->

	<section class="lu-right">
		<div class="lu-address">
			<h4><a href="<?php 
    echo $listing['cur_data']['url'];
    ?>
"><?php 
    echo $listing['location']['address'];
    ?>
</a></h4>
			<p class="area"><?php 
    echo $listing['location']['locality'];
    ?>
, <?php 
    echo $listing['location']['region'];
    ?>
</p>
		</div><!--lu-address-->

		<div class="lu-price">
			<p class="price"><?php 
    echo PLS_Format::number($listing['cur_data']['price'], array('abbreviate' => false, 'add_currency_sign' => true));
    ?>
</p>
			<p class="month"><?php 
    echo ucwords($listing['purchase_types'][0]);
    ?>
</p>
		</div><!--LU PRICE-->

		<div class="lu-main">
			<p><?php 
    echo substr($listing['cur_data']['desc'], 0, 300);
    ?>
</p>
			<p class="info"><span><?php 
    echo $listing['cur_data']['beds'];
    ?>
</span> <?php 
    _e('Bedrooms', 'tampa');
    ?>
 | <span><?php 
    echo $listing['cur_data']['baths'];
    ?>
</span> <?php 
    _e('Bathrooms', 'tampa');
    ?>
 <?php 
    if ($listing['cur_data']['sqft'] != null) {
        echo '| <span>' . PLS_Format::number($listing['cur_data']['sqft'], array('abbreviate' => false, 'add_currency_sign' => false)) . '</span> ' . __('sqft', 'tampa');
    }
    ?>
</p>
			<!-- <a class="fav" href="#"><?php 
    _e('Add to Favorites', 'tampa');
    ?>
</a> -->
			<a class="info-bt" href="mailto:<?php 
    echo pls_get_option('pls-user-email');
    ?>
"><?php 
    _e('Request Information', 'tampa');
    ?>
</a>
			<a class="see-details-link details-bt" href="<?php 
    echo $listing['cur_data']['url'];
    ?>
"><?php 
    _e('See Details', 'tampa');
    ?>
</a>
		</div><!--lu-main-->
		
	</section><!--LU-RIGHT-->
	<?php 
    PLS_Listing_Helper::get_compliance(array('context' => 'inline_search', 'agent_name' => $listing['rets']['aname'], 'office_name' => $listing['rets']['oname'], 'office_phone' => PLS_Format::phone($listing['contact']['phone']), 'agent_license' => isset($listing['rets']['alicense']) ? $listing['rets']['alicense'] : false, 'co_agent_name' => isset($listing['rets']['aconame']) ? $listing['rets']['aconame'] : false, 'co_office_name' => isset($listing['rets']['oconame']) ? $listing['rets']['oconame'] : false));
    ?>
	<div class="clearfix"></div>

</section><!--LIST UNIT-->

<?php 
    $html = ob_get_clean();
    // current js build throws a fit when newlines are present
    // will need to strip them.
    // added EMCA tag will solve in the future.
    $html = preg_replace('/[\\n\\r\\t]/', ' ', $html);
    return $html;
}
function custom_manchester_widget_html_filter($listing_html, $listing_data)
{
    // pls_dump($listing_data);
    ob_start();
    ?>
		<section class="listing-item">
			<h4>
				<a href="<?php 
    echo $listing_data['cur_data']['url'];
    ?>
"><?php 
    echo $listing_data['location']['address'];
    ?>
</a>
			</h4>
			<section class="details">
				<span class="bed"><strong><?php 
    echo $listing_data['cur_data']['beds'];
    ?>
</strong> <?php 
    _e('Beds', 'manchester');
    ?>
</span>
				<span class="bath"><strong><?php 
    echo $listing_data['cur_data']['baths'];
    ?>
</strong> <?php 
    _e('Baths', 'manchester');
    ?>
</span>
				<span class="area"><strong><?php 
    echo PLS_Format::number($listing_data['cur_data']['sqft'], array('abbreviate' => false, 'add_currency_sign' => false));
    ?>
</strong> <?php 
    _e('sqft', 'manchester');
    ?>
</span>
			</section>
			<section class="featured-image">
				<?php 
    if (isset($listing_data['images']) && is_array($listing_data['images'])) {
        ?>
					<a href="<?php 
        echo $listing_data['cur_data']['url'];
        ?>
">
			  		<?php 
        echo PLS_Image::load($listing_data['images'][0]['url'], array('resize' => array('w' => 280, 'h' => 170, 'method' => 'crop'), 'fancybox' => true));
        ?>
					</a>
				<?php 
    }
    ?>
			</section>
			<?php 
    if (isset($listing_data['rets']['mls_id'])) {
        ?>
    		<p class="mls"><?php 
        _e('MLS', 'manchester');
        ?>
 #: <?php 
        echo $listing_data['rets']['mls_id'];
        ?>
</p>
    	<?php 
    }
    ?>
			<a class="learn-more" href="<?php 
    echo $listing_data['cur_data']['url'];
    ?>
"><?php 
    _e('Learn More', 'manchester');
    ?>
</a>
    <?php 
    PLS_Listing_Helper::get_compliance(array('context' => 'listings_widget', 'agent_name' => $listing_data['rets']['aname'], 'office_name' => $listing_data['rets']['oname'], 'office_phone' => PLS_Format::phone($listing_data['contact']['phone']), 'agent_license' => isset($listing_data['rets']['alicense']) ? $listing_data['rets']['alicense'] : false, 'co_agent_name' => isset($listing_data['rets']['aconame']) ? $listing_data['rets']['aconame'] : false, 'co_office_name' => isset($listing_data['rets']['oconame']) ? $listing_data['rets']['oconame'] : false));
    ?>
			<div class="clearfix"></div>
		</section>
     <?php 
    $listing_html = ob_get_clean();
    return $listing_html;
}
예제 #10
0
function custom_tampa_widget_html_filter($listing_html, $listing_data)
{
    // pls_dump($listing_data);
    ob_start();
    ?>

	<div class="featured-slot">
			<?php 
    if (isset($listing_data['images']) && is_array($listing_data['images'])) {
        ?>
				<?php 
        echo PLS_Image::load($listing_data['images'][0]['url'], array('resize' => array('w' => 120, 'h' => 90, 'method' => 'crop'), 'fancybox' => true, 'as_html' => false));
        ?>
			<?php 
    } else {
        ?>
				<?php 
        echo PLS_Image::load('', array('resize' => array('w' => 120, 'h' => 90, 'method' => 'crop'), 'fancybox' => false, 'as_html' => true));
        ?>
    	
			<?php 
    }
    ?>
			<h4>
				<a href="<?php 
    echo $listing_data['cur_data']['url'];
    ?>
"><?php 
    echo $listing_data['location']['full_address'];
    ?>
</a>
			</h4>
			<p class="rent-label">
				<span>
					<?php 
    echo PLS_Format::number($listing_data['cur_data']['price'], array('abbreviate' => false, 'add_currency_sign' => true));
    ?>
					<?php 
    if ($listing_data['cur_data']['lse_trms'] != null) {
        echo '<em>' . $listing_data['cur_data']['lse_trms'] . '</em>';
    }
    ?>
				</span>
					<?php 
    echo ucwords($listing_data['purchase_types'][0]);
    ?>
			</p>
			<?php 
    if (isset($listing_data['rets']['mls_id'])) {
        ?>
    		<p class="mls"><?php 
        _e('MLS #', 'tampa');
        ?>
: <?php 
        echo $listing_data['rets']['mls_id'];
        ?>
</p>
    	<?php 
    }
    ?>
    <?php 
    PLS_Listing_Helper::get_compliance(array('context' => 'listings_widget', 'agent_name' => $listing_data['rets']['aname'], 'office_name' => $listing_data['rets']['oname'], 'office_phone' => PLS_Format::phone($listing_data['contact']['phone']), 'agent_license' => isset($listing_data['rets']['alicense']) ? $listing_data['rets']['alicense'] : false, 'co_agent_name' => isset($listing_data['rets']['aconame']) ? $listing_data['rets']['aconame'] : false, 'co_office_name' => isset($listing_data['rets']['oconame']) ? $listing_data['rets']['oconame'] : false));
    ?>
  		
		<div class="clearfix"></div>
	</div><!--featured-slot-->
    
     <?php 
    $listing_html = ob_get_clean();
    return $listing_html;
}