{% extends 'base_explore.html.twig' %}
{% block title %}{{ sitio.getNombre }}{% endblock %}
{% block body %}
{{ include('components/home_navbar/header.html.twig') }}
<!-- Left Side Navigation -->
<div class="closeLeftSide"></div>
<!-- Content -->
<div id="wrapper">
<div id="mapView" class="mob-min"><div class="mapPlaceholder"><span class="fa fa-spin fa-spinner"></span> Cargando Mapa...</div></div>
<div id="content" class="mob-max">
{% if sitio.getId %}
<input type="hidden" name="id_sitio" id="id_sitio" value="{{ sitio.getId }}">
{% endif %}
{% if sitio.getIdCategoria %}
<input type="hidden" name="id_categoria" id="id_categoria" value="{{ sitio.getIdCategoria.getId }}">
{% endif %}
<div class="singleTop">
<div id="carouselFull" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
{% for i in 0..( count_galeria -1 ) %}
<li data-target="#carouselFull" data-slide-to="{{ i }}" class="{{ i is same as(0) ? 'active' : '' }}"></li>
{% endfor %}
</ol>
<div class="carousel-inner">
{% for imagen in galeria %}
<div class="item {{ loop.index is same as(1) ? 'active' : '' }}">
<img src="{{ asset('uploads/galeria_sitio/') }}{{ imagen.getImagen }}" alt="imagen-{{ loop.index }}" style="width: 800px; height: 480px;">
<div class="container">
<div class="carousel-caption">
</div>
</div>
</div>
{% endfor %}
</div>
<a class="left carousel-control" href="#carouselFull" role="button" data-slide="prev"><span class="fa fa-chevron-left"></span></a>
<a class="right carousel-control" href="#carouselFull" role="button" data-slide="next"><span class="fa fa-chevron-right"></span></a>
</div>
<div class="summary">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="summaryItem">
<h1 class="pageTitle">{{ sitio.getNombre }}</h1>
<div class="address"><span class="icon-pointer"></span>{{ sitio.getDireccion }}</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="description">
<h3>Horarios de AtenciĆ³n</h3>
{% if sitio.getHorarioAtencion %}
<p>{{ sitio.getHorarioAtencion }}</p>
{% else %}
<p>Sin Definir</p>
{% endif %}
</div>
<div class="description">
<h3>DescripciĆ³n</h3>
<p style="text-align: justify;">{{ sitio.getDescripcion }}</p>
</div>
<div class="share">
<h3>Redes Sociales</h3>
{% if redes %}
<div class="row">
{% for red in redes %}
<div class="col-xs-6 col-sm-6 col-md-2 col-lg-2 shareItem">
<a href="{{ red.enlace }}" class="btn btn-sm btn-round btn-o btn-facebook" target="_blank"><span class="{{ red.getIdIcono.getIcono }}"></span> {{ red.nombre }}</a>
</div>
{% endfor %}
</div>
{% else %}
<h3>Sin Redes Sociales</h3>
{% endif %}
</div>
<div class="amenities">
<h3>Servicios</h3>
<div class="row">
{% if comodidades %}
{% for comodidad in comodidades %}
<div class="col-xs-6 col-sm-6 col-md-4 col-lg-4 amItem {{ comodidad.getEstado is same as('Activa') ? '' : 'inactive' }} "><span class="{{ comodidad.getIdIcono.getIcono }}"></span> {{ comodidad.getNombre }}</div>
{% endfor %}
{% else %}
<h3>Sin Comodidades</h3>
{% endif %}
</div>
</div>
<div class="similar">
<h3>Sitios Similares</h3>
<!-- carousel for medium & large devices -->
<div id="carouselSimilar-1" class="carousel slide visible-lg carousel-col">
<ol class="carousel-indicators">
{% if count_relacionados %}
{% for i in 0..(( count_relacionados / 3 )|round(0, 'floor')) %}
<li data-target="#carouselSimilar-1" data-slide-to="{{ i }}" class="{{ loop.index == 1 ? 'active' : null }}"></li>
{% endfor %}
{% endif %}
</ol>
<div class="carousel-inner">
<div class="item active">
<div class="row">
{% if relacionados %}
{% for sitio in relacionados %}
<div class="col-xs-4">
<div data-linkto="{{ path('sitio_individual', {'id': sitio.getId }) }}" class="card">
<div class="figure">
<img src="{{asset('uploads/imagen_principal/')}}{{ sitio.getImagenPrincipal }}" alt="image">
<div class="figCaption">
<div>{{ sitio.getValor }}</div>
</div>
<div class="figView"><span class="icon-eye"></span></div>
<div class="figType">{{ sitio.getEstado }}</div>
</div>
<h2>{{ sitio.getIdCiudad.getNombre }}</h2>
<div class="cardAddress"><span class="icon-pointer"></span> {{ sitio.getDireccion }}</div>
<div class="clearfix"></div>
</div>
</div>
{% endfor %}
{% else %}
<h3>Sin Sitios Similares</h3>
{% endif %}
</div>
</div>
</div>
<a class="left carousel-control" href="#carouselSimilar-1" role="button" data-slide="prev"><span class="fa fa-chevron-left"></span></a>
<a class="right carousel-control" href="#carouselSimilar-1" role="button" data-slide="next"><span class="fa fa-chevron-right"></span></a>
</div>
<!-- carousel for small devices -->
<div id="carouselSimilar-2" class="carousel slide visible-md carousel-col">
<ol class="carousel-indicators">
{% if count_relacionados %}
{% for i in 0..(( count_relacionados / 3 )|round(0, 'floor')) %}
<li data-target="#carouselSimilar-2" data-slide-to="{{ i }}" class="{{ loop.index == 1 ? 'active' : null }}"></li>
{% endfor %}
{% endif %}
</ol>
<div class="carousel-inner">
<div class="item active">
<div class="row">
{% if relacionados %}
{% for sitio in relacionados %}
<div class="col-xs-6">
<div data-linkto="{{ path('sitio_individual', {'id': sitio.getId }) }}" class="card">
<div class="figure">
<img src="{{asset('uploads/imagen_principal/')}}{{ sitio.getImagenPrincipal }}" alt="image">
<div class="figCaption">
<div>{{ sitio.getValor }}</div>
</div>
<div class="figView"><span class="icon-eye"></span></div>
<div class="figType">{{ sitio.getEstado }}</div>
</div>
<h2>{{ sitio.getIdCiudad.getNombre }}</h2>
<div class="cardAddress"><span class="icon-pointer"></span> {{ sitio.getDireccion }}</div>
<div class="clearfix"></div>
</div>
</div>
{% endfor %}
{% else %}
<h3>Sin Sitios Similares</h3>
{% endif %}
</div>
</div>
</div><!-- carousel-inner -->
<a class="left carousel-control" href="#carouselSimilar-2" role="button" data-slide="prev"><span class="fa fa-chevron-left"></span></a>
<a class="right carousel-control" href="#carouselSimilar-2" role="button" data-slide="next"><span class="fa fa-chevron-right"></span></a>
</div>
<!-- carousel for extra-small devices -->
<div id="carouselSimilar-3" class="carousel slide visible-xs visible-sm carousel-col">
<ol class="carousel-indicators">
{% if count_relacionados %}
{% for i in 0..(( count_relacionados / 3 )|round(0, 'floor')) %}
<li data-target="#carouselSimilar-3" data-slide-to="{{ i }}" class="{{ loop.index == 1 ? 'active' : null }}"></li>
{% endfor %}
{% endif %}
</ol>
<div class="carousel-inner">
<div class="item active">
<div class="row">
{% if relacionados %}
{% for sitio in relacionados %}
<div class="col-xs-12">
<div data-linkto="{{ path('sitio_individual', {'id': sitio.getId }) }}" class="card">
<div class="figure">
<img src="{{asset('uploads/imagen_principal/')}}{{ sitio.getImagenPrincipal }}" alt="image">
<div class="figCaption">
<div>{{ sitio.getValor }}</div>
</div>
<div class="figView"><span class="icon-eye"></span></div>
<div class="figType">{{ sitio.getEstado }}</div>
</div>
<h2>{{ sitio.getIdCiudad.getNombre }}</h2>
<div class="cardAddress"><span class="icon-pointer"></span> {{ sitio.getDireccion }}</div>
<div class="clearfix"></div>
</div>
</div>
{% endfor %}
{% else %}
<h3>Sin Sitios Similares</h3>
{% endif %}
</div>
</div>
</div>
<a class="left carousel-control" href="#carouselSimilar-3" role="button" data-slide="prev"><span class="fa fa-chevron-left"></span></a>
<a class="right carousel-control" href="#carouselSimilar-3" role="button" data-slide="next"><span class="fa fa-chevron-right"></span></a>
</div>
</div>
</div>
<div class="commentsFormWrapper">
<div class="cfAvatar">
<img class="avatar" src="images/avatar-1.png" alt="avatar">
</div>
<form class="commentsForm">
<div class="input-group">
<input type="text" class="form-control" placeholder="Write a comment...">
<span class="input-group-btn"><a class="btn btn-green">Post</a></span>
</div>
</form>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
{% endblock %}