{% extends 'TroikaRealEstateBundle:Default:layout.html.twig' %}
{% if keywords is defined %}
{% block keywords %} {{ keywords }} {% endblock %}
{% endif %}
{% if description is defined %}
{% block description %} {{ description }} {% endblock %}
{% endif %}
{% if title is defined %}
{% block title %} {{ title }} {% endblock %}
{% endif %}
{% block main %}
<div id="card-map" class="map map__catalog" style="background-color: #fff;">
</div>
<script src="https://api-maps.yandex.ru/2.1/?apikey=b768297a-39c6-4852-9956-1d07c2261d8f&lang=ru_RU"
type="text/javascript"></script>
<div class="controls controls__double pull-left-on-mobile hide__phone pull-right yamapfix-1 yamapfix-2">
<input type="radio" name="view" class="hide" id="view-list" checked>
<label class="btn btn__white btn__small nobr" for="view-list">
<i class="fa fa-list"></i>
<span class="show__desktop__inline"> списком</span>
</label>
<input type="radio" name="view" class="hide" id="view-map">
<label class="btn btn__white btn__small nobr" for="view-map">
<i class="fa fa-map-marker"></i>
<span class="show__desktop__inline"> на карте</span>
</label>
</div>
<div id="content" class="content content__catalog">
<div class="wrapper mhuck-vverkh">
<ul class="hb hide__phone hide__tablet hbtmfix">
<li><a href="/">Элитная недвижимость</a></li>
<li class="current">
{% if h1 is defined and h1 is not empty %} {{ h1 }} {% else %}
{% if filterpreset is defined %}
{#{ filterpreset['h1'] }#}
{% else %}
{% if app.request.uri ends with "arenda" %}
Аренда
{% else %}
Продажа
{% endif %}
{% if app.request.attributes.get('_route') starts with "elit_kvartiry" %}
городской недвижимости
{% elseif app.request.attributes.get('_route') starts with "zagorodnaya_nedvizhimost" %}
загородной недвижимости
{% elseif app.request.attributes.get('_route') starts with "commercial_nedvigimost" %}
коммерческой недвижимости
{% elseif app.request.attributes.get('_route') starts with "zarubeznaya_nedvigimost" %}
зарубежной недвижимости
{% endif %}
{% endif %}
{% endif %}</li>
</ul>
<div class="seo_block elit {% block pg %}{% endblock %}">
{% block seo_infoblock1 %}
{% endblock %}
</div>
<div id="layout" class="layout layout__catalog layout__column-left">
<div class="layout-column-left">
{% block sort %}
{% endblock %}
<div class="controls controls__double pull-left-on-mobile hide__phone pull-right yamapfix-1 "
style="display: block;">
<input type="radio" name="view" class="hide" id="view-list" checked><label
class="btn btn__white btn__small nobr"
for="view-list"><i
class="fa fa-list"></i><span class="show__desktop__inline"> списком</span></label>
<input type="radio" name="view" class="hide" id="view-map"><label class="btn btn__white btn__small nobr"
for="view-map"><i
class="fa fa-map-marker"></i><span class="show__desktop__inline"> на карте</span></label>
</div>
{# <div class="dropdown pull-right-on-mobile pull-left hide__tablet"> #}
{# <div class="dropdown-value "><span class="show__desktop__inline">сортировать</span><span class="show__phone"><i class="fa fa-gears"></i></span></div> #}
{# <div class="dropdown-menu"> #}
{# <div class="controls controls__double"> #}
{# <input type="radio" class="hide" id="dollars" value="dollars" checked><label class="btn btn__white btn__tiny" for="dollars">Доллары</label> #}
{# <input type="radio" class="hide" value="euro" id="euro"><label class="btn btn__white btn__tiny" for="euro">Евро</label> #}
{# </div> #}
{# {% if app.request.attributes.get('_route') ends with "sale" %} #}
{# <div class="controls controls__double"> #}
{# <input type="radio" class="hide" id="square" value="square" checked><label class="btn btn__white btn__tiny" for="square">Площадь</label> #}
{# <input type="radio" class="hide" value="meters" id="meters"><label class="btn btn__white btn__tiny" for="meters">{% if app.request.attributes.get('_route') starts with "zagorodnaya_nedvizhimost_doma" %}сот.{% else %}м<sup>2</sup>{% endif %}</label> #}
{# </div> #}
{# {% endif %} #}
{# {% if app.request.attributes.get('_route') ends with "arenda" %} #}
{# <div class="controls controls__double"> #}
{# <input type="radio" class="hide" id="year" value="year" checked><label class="btn btn__white btn__tiny" for="year">Месяц</label> #}
{# <input type="radio" class="hide" value="month" id="month" ><label class="btn btn__white btn__tiny" for="month">Год</label> #}
{# </div> #}
{# {% endif %} #}
{# </div> #}
{# </div> #}
<div class="dropdown pull-right-on-mobile pull-left hide__phone hide__desktop huck__filter">
<div class="dropdown-value"><span class="hide__phone">ПОИСК</span><span class="show__phone"><i
class="fa fa-search"></i></span></div>
</div>
<div class="cards cards__list" id="layout-items">
{% block list_item %}
{% endblock %}
</div>
<div class="pages hide_maps">
{{ knp_pagination_render(lots) }}
</div>
</div>
<div class="layout-column-right filter-column forHuck">
<div class="close_hucked hide__phone hide__desktop">X</div>
<div class="panel panel__white panel__tabs panel__catalog">
{% block filter %}
{% endblock %}
</div>
</div>
<div style="clear:both"></div>
</div>
{% block seo_infoblock2 %}
{% endblock %}
</div>
</div>
<script>
window.lots = {{ lotsAddresses|json_encode()|raw }}
</script>
{% if filterpreset is defined %}
<script>
window.filterpreset = {{ filterpreset|json_encode()|raw }}
</script>
{% endif %}
<script>
$(document).ready(function (e) {
$('.close_hucked').click(function (e) {
$('.forHuck').hide().removeClass('hucked');
});
$('.huck__filter').click(function (e) {
e.stopPropagation();
if (!$('.hucked').length) {
$('.forHuck').css({
position: 'absolute',
background: 'white',
zIndex: 9999,
top: $(this).height() + 20,
left: $(this).offset().left + $(this).width() + 70 - 335,
}).addClass('hucked');
} else {
$('.forHuck').hide().removeClass('hucked');
}
});
$('body').click(function (e) {
if (!$(e.target).hasClass('layout-column-left') && $(e.target).parents('.layout__column-left').length == 0) {
$('.hucked').hide().removeClass('hucked');
}
});
});
</script>
<!-- yamaps disable
'@TroikaRealEstateBundle/Resources/public/js/filter.coffee'
'@TroikaRealEstateBundle/Resources/public/js/catalog_map.coffee'
-->
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
{% endblock %}