Ejemplo n.º 1
0
 function widget($args, $instance)
 {
     $properties = PropertiesManager::getProperties($instance['listing_type'], $instance['order_way'], $instance['items_count']);
     require_once COMPONENTS_PATH . '/widgets/properties.php';
 }
Ejemplo n.º 2
0
<?php

$propMgr = new PropertiesManager();
$properties = $propMgr->getProperties(null, null, 1000000);
$properties_map_index = 1;
?>

<div class="train-railing separator">
	<div class="railing"></div>
	<h3 class="train"><?php 
echo $title;
?>
</h3>
	<div class="railing"></div>
</div>

<?php 
estetico_load_component('common/properties_view_map', array('list_style' => 'map', 'properties' => $properties, 'properties_map_index' => $properties_map_index, 'options' => array('show_legend' => false, 'show_places' => false, 'show_fullscreen' => false)));
Ejemplo n.º 3
0
<?php

$propMgr = new PropertiesManager();
$properties = $propMgr->getProperties('featured');
if (empty($properties)) {
    return;
}
$div_id = 'properties-carousel-' . rand();
?>
<div class="train-railing separator m10">
	<div class="railing"></div>
	<h3 class="train"><?php 
echo $title;
?>
</h3>
	<div class="railing"></div>
</div>

<div class="offers slide use-box-sizing-content-box" id="<?php 
echo $div_id;
?>
">
	<ul class="items grid">

	<?php 
foreach ($properties as $property) {
    extract($property->vars());
    ?>

		<li>
			<?php