<!-- Feature Properties -->
<section id="feature-property" class="feature-property bgc-f7">
<div class="container">
<div class="row">
<div class="col-lg-12">
<a href="#feature-property">
<div class="mouse_scroll">
<div class="icon">
<h4>Scroll Down</h4>
<p>to discover more</p>
</div>
<div class="thumb">
<img src="images/resource/mouse.png" alt="mouse.png">
</div>
</div>
</a>
</div>
</div>
</div>
<div class="container ovh">
<div class="row">
<div class="col-lg-6 offset-lg-3">
<div class="main-title text-center mb40">
<h2>Featured Properties</h2>
<p>Handpicked properties by our team.</p>
</div>
</div>
<div class="col-lg-12">
<div class="feature_property_slider">
{% set annoncevue = 0 %}
{% set nbr = 0 %}
{% for propositions in propositions %}
{% set nbr = nbr + 1 %}
{% for visiteurs in visiteurs %}
{% if visiteurs.annonce.id == propositions.id %} {% set annoncevue = 1 %} {% endif %}
{% endfor %}
<div class="item">
<div class="feat_property">
<div class="thumb">
<img {% if annoncevue == '0' %} class="img-whp"{% else %}style="width: 100% !important; filter: opacity(0.5)"{% endif %} src="{{ asset('https://{{propositions.domaine}}/uploads/' ~ propositions.image) | imagine_filter('mini') }}" alt="fp1.jpg">
<div class="thmb_cntnt">
<ul class="tag mb0">
<li class="list-inline-item"><a href="#">For Rent</a></li>
<li class="list-inline-item"><a href="#">Featured</a></li>
</ul>
<ul class="icon mb0">
<li class="list-inline-item"><a href="#null" onclick="javascript:open_infos{{ nbr }}();"><span class="flaticon-share"></span></a></li>
<li class="list-inline-item"><a href="{{ path('post_like', {'id':propositions.id})}}" class="js-like">
{% set like = 0 %}
{% for post in post %}
{% if post.annonce.id == propositions.id %} {% set like = 1 %} {% endif %}
{% endfor %}
{% if like == '1' %} {{ propositions.Postlikes | length }} <span class="flaticon-heart"style="color: red;"></span>
{% else %}
{{ propositions.Postlikes | length }} <span class="flaticon-heart"></span>
{% endif %}
</a></li>
</ul>
<a class="fp_price" href="#">{{ propositions.prix }} €
{% if propositions.transaction == 2 %}
<small>/mo</small>
{% endif %}
</a>
</div>
</div>
<a href="logement/{{ propositions.slug }}">
<div class="details">
<div class="tc_content">
<p class="text-thm">
{% if propositions.logement == 0 %}
Maison
{% endif %}
{% if propositions.logement == 1 %}
Appartement
{% endif %}
</p>
<h4 {% if annoncevue == '1' %}
style="color:#C0C0C0; "
{% endif %}>{{ propositions.titre }} </h4>
<p><span class="flaticon-placeholder"></span> 1421 San Pedro St, Los Angeles, CA 90015</p>
<ul class="prop_details mb0">
<li class="list-inline-item"><a href="#">Beds: 4</a></li>
<li class="list-inline-item"><a href="#">Baths: 2</a></li>
<li class="list-inline-item"><a href="#">Sq Ft: 5280</a></li>
</ul>
</div>
</a>
<div class="fp_footer">
<ul class="fp_meta float-left mb0">
{% set profil = 0 %}
{% if propositions.agence == true %}
{% set profil = 1 %}
<li class="list-inline-item"><a href="/profil/profil/agence/{{ propositions.agence.id }}"><img src="
{% if propositions.agence.image == true %}
{{ asset('uploads/' ~ propositions.agence.image) | imagine_filter('profilmini') }}
{% else %}
images/property/pposter1.png
{% endif %}
" alt="pposter1.png"></a></li>
<li class="list-inline-item">
<a href="/profil/profil/agence/{{ propositions.agence.id }}">
{{ propositions.agence.nom }}
</a>
{% endif %}
{% if propositions.hotel == true %}
{% set profil = 1 %}
<li class="list-inline-item"><a href="/profil/profil/hotel/{{ propositions.hotel.id }}"><img src="
{% if propositions.hotel.image == true %}
{{ asset('uploads/' ~ propositions.hotel.image) | imagine_filter('profilmini') }}
{% else %}
images/property/pposter1.png
{% endif %}
" alt="pposter1.png"></a></li>
<li class="list-inline-item">
<a href="/profil/profil/hotel/{{ propositions.hotel.id }}">
{{ propositions.hotel.nom }}
</a>
{% endif %}
{% if profil == 0 %}
<li class="list-inline-item"><a href="/profil/profil/profil/{{ propositions.user.id }}"><img src="
{% if propositions.user.image == true %}
{{ asset('uploads/' ~ propositions.user.image) | imagine_filter('profilmini') }}
{% else %}
images/property/pposter1.png
{% endif %}
" alt="pposter1.png"></a></li>
<li class="list-inline-item">
<a href="/profil/profil/profil/{{ propositions.user.id }}">
{{ propositions.user.nom }}
</a>
{% endif %}
</li>
</ul>
<div class="fp_pdate float-right">
{% set difference = date(date(date)).diff(date(propositions.createdAt|date)) %}
{% set leftDays = difference.days %}
{% if leftDays == '0' %}
Publier aujourd'hui
{% else %}
{% if leftDays == '1' %}
Publier hier
{% else %}
Il y a {{ leftDays }} jours.
{% endif %}
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</section>
{% set nbr = 0 %}
{% for propositions in propositions %}
{% set nbr = nbr + 1 %}
<script type="text/javascript">
<!--
function open_infos{{ nbr }}()
{
width = 300;
height = 200;
if(window.innerWidth)
{
var left = (window.innerWidth-width)/2;
var top = (window.innerHeight-height)/2;
}
else
{
var left = (document.body.clientWidth-width)/2;
var top = (document.body.clientHeight-height)/2;
}
window.open('/partage/{{ propositions.slug }} ','nom_de_ma_popup','menubar=no, scrollbars=no, top='+top+', left='+left+', width='+width+', height='+height+'');
}
-->
</script>
{% endfor %}