<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* property.html.twig */
class __TwigTemplate_03567e1563397c803ab2dbed3b4ad14b7e236c21c538fd46adc5ae424dd6c9c5 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'metaDescription' => [$this, 'block_metaDescription'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "property.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "property.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "property.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Biens";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 4
public function block_metaDescription($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaDescription"));
// line 5
echo " ";
$context["headerContent"] = $this->extensions['App\Twig\ContentExtension']->Content("Biens", "Header");
// line 6
echo " <meta name=\"description\" content=\"
";
// line 7
if (twig_get_attribute($this->env, $this->source, ($context["headerContent"] ?? null), "content", [], "any", true, true, false, 7)) {
// line 8
echo " ";
echo twig_escape_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, (isset($context["headerContent"]) || array_key_exists("headerContent", $context) ? $context["headerContent"] : (function () { throw new RuntimeError('Variable "headerContent" does not exist.', 8, $this->source); })()), "content", [], "any", false, false, false, 8)), "html", null, true);
echo "
";
} else {
// line 10
echo " Tracol Immobilier propose une large offre en immobilier neuf (logements, bureaux, commerces), qui se caractérise par une architecture résolument contemporaine, des matériaux de qualité, et le soin apporté à chaque détail.
";
}
// line 12
echo " \">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 15
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
echo "
";
// line 17
$context["headerContent"] = $this->extensions['App\Twig\ContentExtension']->Content("Biens", "Header");
// line 18
echo "
";
// line 19
if ((twig_get_attribute($this->env, $this->source, ($context["headerContent"] ?? null), "picture", [], "any", true, true, false, 19) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["headerContent"]) || array_key_exists("headerContent", $context) ? $context["headerContent"] : (function () { throw new RuntimeError('Variable "headerContent" does not exist.', 19, $this->source); })()), "picture", [], "any", false, false, false, 19)))) {
// line 20
echo " ";
$context["backgroundImage"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["headerContent"]) || array_key_exists("headerContent", $context) ? $context["headerContent"] : (function () { throw new RuntimeError('Variable "headerContent" does not exist.', 20, $this->source); })()), "picture", [], "any", false, false, false, 20), 0, [], "array", false, false, false, 20), "path", [], "any", false, false, false, 20);
// line 21
echo " ";
} else {
// line 22
echo " ";
$context["backgroundImage"] = "empty";
// line 23
echo " ";
}
// line 24
echo "
";
// line 39
echo "
<div class=\"container-fluid\">
";
// line 44
$context["sectionContent1"] = $this->extensions['App\Twig\ContentExtension']->Content("Biens", "Section-1");
// line 45
echo "
";
// line 70
echo "
<section class=\"project\" style=\"margin-bottom: 120px; margin-top: 60px\">
<div id=\"button-property-page\" class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: flex; align-items: center; padding-left: 7px\">
<button data-id=\"all\" class=\"btn btn-primary all border-radius projectButton\"><span class=\"span-all\">TOUS</span></button>
<button data-id=\"sale\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">ACHAT</span></button>
<button data-id=\"rental\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">LOCATION</span></button>
</div>
<div id=\"button-property-page-mobile\" class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: none; align-items: center\">
<div id=\"flick3\" class=\"flicking-viewport\">
<div class=\"flicking-camera\">
<button data-id=\"all\" class=\"btn btn-primary all border-radius projectButton\"><span class=\"span-all\">TOUS</span></button>
<button data-id=\"sale\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">ACHAT</span></button>
<button data-id=\"rental\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">LOCATION</span></button>
</div>
</div>
</div>
<div class=\"col-lg-8 mx-auto div-svg-header deactive-tablet\" style=\"display: flex; flex-direction: column; justify-content: center\">
<div class=\"col-md-4\" style=\"margin-top:20px\">
<p>Trier par :</p>
<form>
<select name=\"subfilter\" class=\"form-control with-appearance\" id=\"filterProperties\">
<option value=\"\">Sélectionner</option>
<option value=\"date\">Date de publication</option>
<option value=\"asc\">Prix croissant</option>
<option value=\"desc\">Prix décroissant</option>
</select>
</form>
</div>
";
// line 128
echo "
<div id=\"loading\">
<h1 id=\"showOutput\"></h1>
</div>
<div id=\"properties\" class=\"col-lg-12\" style=\"display: flex; flex-wrap: wrap; flex-direction: row\">
";
// line 138
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 138, $this->source); })()));
$context['_iterated'] = false;
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["property"]) {
// line 139
echo " <div class=\"col-xl-4 col-lg-6 col-md-12 col-sm-12 div-img-hover-2\" data-date=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["property"], "created_at", [], "any", false, false, false, 139), "html", null, true);
echo "\" data-price=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "price", [], "any", false, false, false, 139), "value", [], "any", false, false, false, 139), "html", null, true);
echo "\" style=\"cursor: pointer\">
";
// line 162
echo "
";
// line 165
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["property"], "pictures", [], "any", false, false, false, 165))) {
// line 166
echo " <div class=\"position-relative properties-slide slick-slide-single-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 166), "html", null, true);
echo "\" style=\"height:265px;\">
";
// line 167
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["property"], "pictures", [], "any", false, false, false, 167), 0, 3));
foreach ($context['_seq'] as $context["_key"] => $context["picture"]) {
// line 168
echo " ";
// line 169
echo " <div class=\"img\" style=\"background: url('";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["picture"], "url", [], "any", false, false, false, 169), "html", null, true);
echo "')no-repeat center;background-size:cover;\" onclick=\"location.href='";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("property-detail", ["id" => twig_get_attribute($this->env, $this->source, $context["property"], "id", [], "any", false, false, false, 169)]), "html", null, true);
echo "'\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['picture'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 172
echo " </div>
";
} else {
// line 175
echo " <div class=\"img\" style=\"background: url('";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/Hudson_Ontario2.png"), "html", null, true);
echo "')no-repeat center;background-size:cover;\"></div>
";
}
// line 177
echo " <div class=\"row col-md-12 justify-content-between\">
<ul class=\"col-md-4 items\">
<li class=\"item surface\">
";
// line 183
echo " ";
(((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "area", [], "any", false, false, false, 183), "value", [], "any", false, false, false, 183), null))) ? (print ("")) : (print (twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "area", [], "any", false, false, false, 183), "value", [], "any", false, false, false, 183) . $this->extensions['App\Twig\ContentExtension']->areaConversion(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "area", [], "any", false, false, false, 183), "unit", [], "any", false, false, false, 183))), "html", null, true))));
echo "
</li>
";
// line 185
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["property"], "bedrooms", [], "any", false, false, false, 185), 0))) {
// line 186
echo " <li class=\"item surface\">
<img src=\"";
// line 187
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/icons/chambre.svg"), "html", null, true);
echo "\" alt=\"Icone chambre\" style=\"width:22px;margin-right:10px;margin-top:5px;\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["property"], "bedrooms", [], "any", false, false, false, 187), "html", null, true);
echo "
</li>
";
}
// line 190
echo " </ul>
<div class=\"col-md-8 properties-price d-flex justify-content-end\">
";
// line 192
(((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "price", [], "any", false, false, false, 192), "value", [], "any", false, false, false, 192), null))) ? (print ("<span style=\"font-size: 21px !important;\">sur demande</span>")) : (print (twig_escape_filter($this->env, (twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "price", [], "any", false, false, false, 192), "value", [], "any", false, false, false, 192), 2, ",", " ") . twig_replace_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "price", [], "any", false, false, false, 192), "currency", [], "any", false, false, false, 192), ["EUR" => " €"])), "html", null, true))));
echo "
</div>
</div>
<p class=\"city\">";
// line 195
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "city", [], "any", false, false, false, 195), "name", [], "any", false, false, false, 195), "html", null, true);
echo "</p>
<p class=\"project-name\">";
// line 196
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ContentExtension']->getTypeProperty(twig_get_attribute($this->env, $this->source, $context["property"], "type", [], "any", false, false, false, 196)), "html", null, true);
echo "</p>
</div>
";
$context['_iterated'] = true;
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
if (!$context['_iterated']) {
// line 199
echo " <h4>Aucun bien disponible avec ces critères</h4>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['property'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 201
echo " </div>
";
// line 205
echo " </div>
</section>
<section class=\"other-properties pt-5 pb-5\" style=\"background:#F7F7F7\">
<div class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: flex; margin-top: 30px\">
<div class=\"col-lg-6\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
<path id=\"Tracé_76\" data-name=\"Tracé 76\" d=\"M682.759,232.441h-9.089v14.77l9.089-1.931Z\" transform=\"translate(-673.669 -232.441)\" fill=\"#f6a400\"></path>
</svg>
<h1 class=\"project-title\">
";
// line 215
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 215), "attributes", [], "any", false, true, false, 215), "get", [0 => "_route_params"], "method", false, true, false, 215), "keyword", [], "array", true, true, false, 215) || array_key_exists("idCategory", $context))) {
// line 216
echo " ";
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 216), "attributes", [], "any", false, true, false, 216), "get", [0 => "_route_params"], "method", false, true, false, 216), "keyword", [], "array", true, true, false, 216) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 216, $this->source); })()), "request", [], "any", false, false, false, 216), "attributes", [], "any", false, false, false, 216), "get", [0 => "_route_params"], "method", false, false, false, 216), "keyword", [], "array", false, false, false, 216), "location"))) || (array_key_exists("idCategory", $context) && (0 === twig_compare((isset($context["idCategory"]) || array_key_exists("idCategory", $context) ? $context["idCategory"] : (function () { throw new RuntimeError('Variable "idCategory" does not exist.', 216, $this->source); })()), 1))))) {
// line 217
echo " ";
$context["otherDispo"] = "vente";
// line 218
echo " ";
} else {
// line 219
echo " ";
$context["otherDispo"] = "location";
// line 220
echo " ";
}
// line 221
echo " ";
} else {
// line 222
echo " ";
$context["otherDispo"] = null;
// line 223
echo " ";
}
// line 224
echo " NOS biens disponibles<br> ";
if ((isset($context["otherDispo"]) || array_key_exists("otherDispo", $context) ? $context["otherDispo"] : (function () { throw new RuntimeError('Variable "otherDispo" does not exist.', 224, $this->source); })())) {
echo "À la <span style=\"color:#F6A400\">";
echo twig_escape_filter($this->env, (isset($context["otherDispo"]) || array_key_exists("otherDispo", $context) ? $context["otherDispo"] : (function () { throw new RuntimeError('Variable "otherDispo" does not exist.', 224, $this->source); })()), "html", null, true);
echo "</span>";
}
// line 225
echo " </h1>
</div>
</div>
<div class=\"col-lg-8 mx-auto\">
<div id=\"propertiesOther\" class=\"col-lg-12 mt-5 property-other-list\" style=\"display: flex; flex-wrap: wrap; flex-direction: row\">
";
// line 231
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["otherProperties"]) || array_key_exists("otherProperties", $context) ? $context["otherProperties"] : (function () { throw new RuntimeError('Variable "otherProperties" does not exist.', 231, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["property"]) {
// line 232
echo " <div class=\"col-xl-4 col-lg-6 col-md-12 col-sm-12 div-img-hover-2\" style=\"cursor: pointer\">
";
// line 255
echo "
";
// line 258
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["property"], "pictures", [], "any", false, false, false, 258))) {
// line 259
echo " <div class=\"position-relative properties-slide slick-slide-single-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 259), "html", null, true);
echo "\">
";
// line 260
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, twig_get_attribute($this->env, $this->source, $context["property"], "pictures", [], "any", false, false, false, 260), 0, 3));
foreach ($context['_seq'] as $context["_key"] => $context["picture"]) {
// line 261
echo " ";
// line 262
echo " <div class=\"img\" style=\"background-image: url('";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["picture"], "url", [], "any", false, false, false, 262), "html", null, true);
echo "')\" onclick=\"location.href='";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("property-detail", ["id" => twig_get_attribute($this->env, $this->source, $context["property"], "id", [], "any", false, false, false, 262)]), "html", null, true);
echo "'\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['picture'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 265
echo " </div>
";
} else {
// line 268
echo " <div class=\"img\" style=\"background-image: url('";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/Hudson_Ontario2.png"), "html", null, true);
echo "')\"></div>
";
}
// line 270
echo " <div class=\"row col-md-12 justify-content-between infos-list\">
<ul class=\"col-md-4 items\">
<li class=\"item surface\">
";
// line 274
echo " ";
(((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "area", [], "any", false, false, false, 274), "value", [], "any", false, false, false, 274), null))) ? (print ("")) : (print (twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "area", [], "any", false, false, false, 274), "value", [], "any", false, false, false, 274) . $this->extensions['App\Twig\ContentExtension']->areaConversion(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "area", [], "any", false, false, false, 274), "unit", [], "any", false, false, false, 274))), "html", null, true))));
echo "
</li>
</ul>
<div class=\"col-md-8 properties-price d-flex justify-content-end\">
";
// line 278
(((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "price", [], "any", false, false, false, 278), "value", [], "any", false, false, false, 278), null))) ? (print ("<span style=\"font-size: 14px !important;\">sur demande</span>")) : (print (twig_escape_filter($this->env, (twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "price", [], "any", false, false, false, 278), "value", [], "any", false, false, false, 278), 2, ",", " ") . twig_replace_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "price", [], "any", false, false, false, 278), "currency", [], "any", false, false, false, 278), ["EUR" => " €"])), "html", null, true))));
echo "
</div>
</div>
<p class=\"city\">";
// line 281
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["property"], "city", [], "any", false, false, false, 281), "name", [], "any", false, false, false, 281), "html", null, true);
echo "</p>
<p class=\"project-name\">";
// line 282
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ContentExtension']->getTypeProperty(twig_get_attribute($this->env, $this->source, $context["property"], "type", [], "any", false, false, false, 282)), "html", null, true);
echo "</p>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['property'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 285
echo " </div>
";
// line 287
$context["paramUrl"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 287, $this->source); })()), "request", [], "any", false, false, false, 287), "get", [0 => "keyword"], "method", false, false, false, 287);
// line 288
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 288, $this->source); })()), "request", [], "any", false, false, false, 288), "get", [0 => "keyword"], "method", false, false, false, 288), "location"))) {
// line 289
echo " ";
$context["paramUrl"] = "vente";
// line 290
echo " ";
} elseif ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 290, $this->source); })()), "request", [], "any", false, false, false, 290), "get", [0 => "keyword"], "method", false, false, false, 290), "vente"))) {
// line 291
echo " ";
$context["paramUrl"] = "location";
// line 292
echo " ";
}
// line 293
echo " <div id=\"link-none\" class=\"col-lg-12 mx-auto other-property-link div-svg-header d-flex justify-content-end\">
<div>
<a id=\"link-none-a d-flex\" class=\"property-span-arrow\" href=\"";
// line 295
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("properties", ["keyword" => (isset($context["paramUrl"]) || array_key_exists("paramUrl", $context) ? $context["paramUrl"] : (function () { throw new RuntimeError('Variable "paramUrl" does not exist.', 295, $this->source); })())]), "html", null, true);
echo "\">Découvrir plus
<svg class=\"svg-inline--fa fa-arrow-right fa-w-14 property-arrow\" aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"arrow-right\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\" data-fa-i2svg=\"\"><path fill=\"currentColor\" d=\"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z\"></path></svg><!-- <i class=\"fas fa-arrow-right property-arrow\"></i> Font Awesome fontawesome.com -->
</a>
</div>
</div>
</div>
</section>
";
// line 344
echo "
</div>
<div id=\"img-property-section\" class=\"container-fluid\" style=\"display: none\">
<div id=\"link-ok\" class=\"col-lg-3\" style=\"display: flex; align-content: center\">
<a class=\"property-span-arrow\" href=\"";
// line 349
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("habiter");
echo "\">Découvrir les avantages
<i class=\"fas fa-arrow-right property-arrow\"></i>
</a>
</div>
<div class=\"col-lg-6 habiter-img\">
";
// line 356
if (twig_get_attribute($this->env, $this->source, ($context["sectionContent1"] ?? null), "picture", [], "any", true, true, false, 356)) {
// line 357
echo " <img style=\"padding: 0px;\" class=\"img-100\" src=\"/uploads/images/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sectionContent1"]) || array_key_exists("sectionContent1", $context) ? $context["sectionContent1"] : (function () { throw new RuntimeError('Variable "sectionContent1" does not exist.', 357, $this->source); })()), "picture", [], "any", false, false, false, 357), 0, [], "array", false, false, false, 357), "path", [], "any", false, false, false, 357), "html", null, true);
echo "\">
";
} else {
// line 359
echo " <img style=\"padding: 0px;\" class=\"img-100\" src=\"https://tracol.lu/uploads/images/millebierg-6194cb6331d44212004123.png\">
";
}
// line 361
echo " </div>
</div>
<script>
";
// line 365
echo " ";
// line 366
echo " ";
// line 367
echo " ";
// line 368
echo " ";
// line 369
echo " ";
// line 370
echo " ";
// line 371
echo " ";
// line 372
echo " ";
// line 373
echo "
";
// line 376
echo " ";
// line 377
echo " ";
// line 378
echo "
";
// line 380
echo " ";
// line 381
echo " ";
// line 382
echo " ";
// line 383
echo " ";
// line 384
echo " ";
// line 385
echo " ";
// line 386
echo " ";
// line 387
echo " ";
// line 388
echo " ";
// line 389
echo " ";
// line 390
echo " ";
// line 391
echo " ";
// line 392
echo " ";
// line 393
echo " ";
// line 394
echo " ";
// line 395
echo " ";
// line 396
echo " ";
// line 397
echo " ";
// line 398
echo " ";
// line 399
echo " ";
// line 400
echo " ";
// line 401
echo " ";
// line 402
echo " ";
// line 403
echo " ";
// line 404
echo " ";
// line 405
echo " ";
// line 406
echo " ";
// line 407
echo " ";
// line 408
echo " ";
// line 409
echo " ";
// line 410
echo " ";
// line 411
echo "
";
// line 413
echo " ";
// line 414
echo " ";
// line 415
echo " ";
// line 416
echo " ";
// line 417
echo " ";
// line 418
echo " ";
// line 419
echo " ";
// line 420
echo "
";
// line 422
echo " ";
// line 423
echo " ";
// line 424
echo " ";
// line 425
echo " ";
// line 426
echo " ";
// line 427
echo " ";
// line 428
echo "
";
// line 431
echo " ";
// line 432
echo " ";
// line 433
echo " ";
// line 434
echo " ";
// line 435
echo " ";
// line 436
echo " ";
// line 437
echo " ";
// line 438
echo " ";
// line 439
echo " ";
// line 440
echo " ";
// line 441
echo " ";
// line 442
echo " ";
// line 443
echo " ";
// line 444
echo " ";
// line 445
echo " ";
// line 446
echo "
";
// line 449
echo " ";
// line 450
echo "
const futurProjects = document.getElementById('properties')
let buttons = document.getElementsByClassName('projectButton')
for (const eElement of buttons) {
eElement.addEventListener('click', function (e) {
e.preventDefault()
for (let button of buttons) {
if (button.classList.contains('all')){
button.classList.remove('all')
button.classList.add('come')
button.querySelector('span').classList.replace('span-all', 'span-projects')
}
}
eElement.classList.remove('come')
eElement.classList.add('all')
eElement.querySelector('span').classList.replace('span-projects', 'span-all')
fetch('properties/display/'+this.dataset.id, {
method: 'GET',
})
.then(response => response.json())
.then(data => {
futurProjects.innerHTML = ''
futurProjects.innerHTML = data.data
_ww = \$(window).width();
var lightbox = \$('.lightbox'),
item = 0;
\$('.lightbox-on').click(function(e){
e.stopPropagation();
item = 0;
console.log('click btn');
var id = \$(this).attr('data-id'),
max = 0;
\$('#'+id).toggle();
\$('#'+id).animate({opacity: 1}, 300);
\$('#'+id).find('img').each(function( i ) {
//console.log('h : '+\$(this).height());
//console.log('w : '+\$(this).width());
max = i;
item = 1;
counter(item, max+1);
itemWidth(\$(this));
});
});
lightbox.click(function(e) {
e.stopPropagation();
\$(this).animate({opacity: 0}, 300, function(){
\$(this).toggle();
});
});
\$('.closer').on('click', function (e) {
e.stopPropagation();
\$(this).parent().animate(
{opacity: 0},
300,
function(){
\$(this).toggle();
}
);
});
function itemWidth(img){
img.closest('.items').width(img.width());
}
function counter(item, max){
\$('.counter').text(item + ' / ' + max);
}
\$('.item', lightbox).on('click, swipeleft', function (e) {
var wd = \$(this).width(),
last = \$(this).parent().find('.item').last(),
img = \$(this).find('.img');
itemWidth(img);
\$(this).animate(
{marginLeft: -wd, opacity: 0},
500,
'swing',
function(){
\$(this).insertAfter(last);
\$(this).css({marginLeft: 0, opacity: 1});
}
);
});
\$('.item', lightbox).on('swiperight', function (e) {
var wd = \$(this).width(),
first = \$(this).parent().find('.item').first(),
last = \$(this).parent().find('.item').last(),
img = \$(this).find('.img');
itemWidth(img);
\$(last).insertBefore(\$(this));
\$(last).css({marginLeft: -wd, opacity: 0});
\$(this).parent().find('.item').eq(0).animate(
{marginLeft: 0, opacity: 1},
500,
'swing'
);
});
\$('.arrows', lightbox).on('click', function (e) {
e.stopPropagation();
var wd = \$(this).siblings('.items').find('.item').eq(0).width(),
max = \$(this)
.siblings('.items').find('.item').length,
first = \$(this).siblings('.items').find('.item').first(),
last = \$(this).siblings('.items').find('.item').last(),
isRight = \$(this).hasClass('right'),
marginL = isRight ? -wd : 0,
marginL0 = isRight ? 0: -wd,
opacOn = isRight ? 1 : 0,
opacOff = isRight ? 0 : 1;
if (!isRight){
\$(last).insertBefore(first);
\$(last).css({marginLeft: -wd, opacity: 0});
item++;
if (item == max+1) {item = 1};
} else {
item--;
if (item == 0) {item = max};
};
counter(item, max);
var img = \$(this).siblings('.items').find('.item').eq(0).find('.img');
itemWidth(img);
\$(this).siblings('.items').find('.item').eq(1).animate(
{opacity: opacOn},
500,
'swing');
\$(this).siblings('.items').find('.item').eq(0).animate(
{marginLeft: marginL, opacity: 1},
500,
'swing',
function(){
if (isRight){
\$(this).insertAfter(last);
\$(this).css({ marginLeft: 0, opacity: 1});
}
}
);
});
if (_ww > 768){
\$('.div-img-hover-2').hover(function (e) {
\$(this).find('.project-arrow-2').animate({opacity: 1}, 150);
var htext = \$(this).find('.project-content').height();
if (htext == undefined){htext = 0};
\$(this).find('.div-hover-2').animate({height : htext+180}, 150);
\$(this).find('.project-content').css({'visibility': 'visible'});
\$(this).find('.project-content').animate({opacity: 1}, 150);
}, function() {
console.log('down');
\$(this).find('.div-hover-2').animate({height : 85}, 150);
\$(this).find('.project-arrow-2').animate({opacity: 0}, 150);
\$(this).find('.project-content').animate({opacity: 0}, 150, function(){
\$(this).find('.project-content').css({'visibility': 'hidden'});
});
});
} else {
\$('.div-img-hover-2').on( \"tap\", function( event ) {
console.log('tap tap');
var opened = \$(this).find('.div-hover-2').hasClass('open'),
ht = opened ? 85 : '100%',
vis = opened ? 0 : 1;
\$(this).find('.div-hover-2').toggleClass('open');
\$(this).find('.div-hover-2').animate({height : ht}, 150);
\$(this).find('.project-arrow-2').animate({opacity: vis}, 150);
});
}
})
.catch((error) => {
console.error('Error:', error);
});
})
}
if (window.matchMedia(\"(max-width: 768px)\").matches) {
new Flicking(\"#flick3\", {
moveType: \"freeScroll\",
bound: true
});
}
if (window.matchMedia(\"(max-width: 768px)\").matches) {
const test = document.getElementsByClassName('select-filter')
for (const testElement of test) {
testElement.addEventListener('click', function (e) {
e.preventDefault()
testElement.classList.toggle('select-projet-active')
const infos = document.querySelector('.projectButton.all')
const dataId = []
const tests = document.querySelectorAll('.select-filter.select-projet-active')
for (const test1 of tests) {
dataId.push(parseFloat(test1.dataset.id))
}
fetch('properties/display/'+infos.dataset.id+'/params/' + JSON.stringify(dataId), {
method: 'GET',
})
.then(response => response.json())
.then(data => {
futurProjects.innerHTML = data.data
})
.catch((error) => {
console.error('Error:', error);
});
})
}
} else {
const test = document.getElementsByClassName('select-projet')
const textOutput = document.querySelector(\"#showOutput\");
for (const testElement of test) {
testElement.addEventListener('click', function (e) {
displayLoading()
e.preventDefault()
testElement.classList.toggle('select-projet-active')
const infos = document.querySelector('.projectButton.all')
const dataId = []
const tests = document.querySelectorAll('.select-projet.select-projet-active')
for (const test1 of tests) {
dataId.push(parseFloat(test1.dataset.id))
}
fetch('properties/display/'+infos.dataset.id+'/params/' + JSON.stringify(dataId), {
method: 'GET'
})
.then(response => response.json())
.then(data => {
hideLoading()
futurProjects.innerHTML = data.data
_ww = \$(window).width();
var lightbox = \$('.lightbox'),
item = 0;
\$('.lightbox-on').click(function(e){
e.stopPropagation();
item = 0;
console.log('click btn');
var id = \$(this).attr('data-id'),
max = 0;
\$('#'+id).toggle();
\$('#'+id).animate({opacity: 1}, 300);
\$('#'+id).find('img').each(function( i ) {
//console.log('h : '+\$(this).height());
//console.log('w : '+\$(this).width());
max = i;
item = 1;
counter(item, max+1);
itemWidth(\$(this));
});
});
lightbox.click(function(e) {
e.stopPropagation();
\$(this).animate({opacity: 0}, 300, function(){
\$(this).toggle();
});
});
\$('.closer').on('click', function (e) {
e.stopPropagation();
\$(this).parent().animate(
{opacity: 0},
300,
function(){
\$(this).toggle();
}
);
});
function itemWidth(img){
img.closest('.items').width(img.width());
}
function counter(item, max){
\$('.counter').text(item + ' / ' + max);
}
\$('.item', lightbox).on('click, swipeleft', function (e) {
var wd = \$(this).width(),
last = \$(this).parent().find('.item').last(),
img = \$(this).find('.img');
itemWidth(img);
\$(this).animate(
{marginLeft: -wd, opacity: 0},
500,
'swing',
function(){
\$(this).insertAfter(last);
\$(this).css({marginLeft: 0, opacity: 1});
}
);
});
\$('.item', lightbox).on('swiperight', function (e) {
var wd = \$(this).width(),
first = \$(this).parent().find('.item').first(),
last = \$(this).parent().find('.item').last(),
img = \$(this).find('.img');
itemWidth(img);
\$(last).insertBefore(\$(this));
\$(last).css({marginLeft: -wd, opacity: 0});
\$(this).parent().find('.item').eq(0).animate(
{marginLeft: 0, opacity: 1},
500,
'swing'
);
});
\$('.arrows', lightbox).on('click', function (e) {
e.stopPropagation();
var wd = \$(this).siblings('.items').find('.item').eq(0).width(),
max = \$(this)
.siblings('.items').find('.item').length,
first = \$(this).siblings('.items').find('.item').first(),
last = \$(this).siblings('.items').find('.item').last(),
isRight = \$(this).hasClass('right'),
marginL = isRight ? -wd : 0,
marginL0 = isRight ? 0: -wd,
opacOn = isRight ? 1 : 0,
opacOff = isRight ? 0 : 1;
if (!isRight){
\$(last).insertBefore(first);
\$(last).css({marginLeft: -wd, opacity: 0});
item++;
if (item == max+1) {item = 1};
} else {
item--;
if (item == 0) {item = max};
};
counter(item, max);
var img = \$(this).siblings('.items').find('.item').eq(0).find('.img');
itemWidth(img);
\$(this).siblings('.items').find('.item').eq(1).animate(
{opacity: opacOn},
500,
'swing');
\$(this).siblings('.items').find('.item').eq(0).animate(
{marginLeft: marginL, opacity: 1},
500,
'swing',
function(){
if (isRight){
\$(this).insertAfter(last);
\$(this).css({ marginLeft: 0, opacity: 1});
}
}
);
});
if (_ww > 768){
\$('.div-img-hover-2').hover(function (e) {
\$(this).find('.project-arrow-2').animate({opacity: 1}, 150);
var htext = \$(this).find('.project-content').height();
if (htext == undefined){htext = 0};
\$(this).find('.div-hover-2').animate({height : htext+180}, 150);
\$(this).find('.project-content').css({'visibility': 'visible'});
\$(this).find('.project-content').animate({opacity: 1}, 150);
}, function() {
console.log('down');
\$(this).find('.div-hover-2').animate({height : 85}, 150);
\$(this).find('.project-arrow-2').animate({opacity: 0}, 150);
\$(this).find('.project-content').animate({opacity: 0}, 150, function(){
\$(this).find('.project-content').css({'visibility': 'hidden'});
});
});
} else {
\$('.div-img-hover-2').on( \"tap\", function( event ) {
console.log('tap tap');
var opened = \$(this).find('.div-hover-2').hasClass('open'),
ht = opened ? 85 : '100%',
vis = opened ? 0 : 1;
\$(this).find('.div-hover-2').toggleClass('open');
\$(this).find('.div-hover-2').animate({height : ht}, 150);
\$(this).find('.project-arrow-2').animate({opacity: vis}, 150);
});
}
\$('.div-hover').hover(function (e) {
\$(this).find('.project-arrow-2').animate({opacity: 1}, 150);
}, function() {
\$(this).find('.project-arrow-2').animate({opacity: 0}, 50);
});
})
.catch((error) => {
});
})
}
}
const filter = document.getElementById('filters')
const filterElement = document.getElementById('form-search-filter-ajax')
filter.addEventListener('click', function (e) {
e.preventDefault()
filterElement.classList.toggle('show')
})
const loader = document.querySelector(\"#loading\");
function displayLoading() {
loader.classList.add(\"display\");
// to stop loading after some time
setTimeout(() => {
loader.classList.remove(\"display\");
}, 5000);
}
// hiding loading
function hideLoading() {
loader.classList.remove(\"display\");
}
</script>
<script>
const arrowPrev = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
<path id=\"np_arrow-up_888648_000000\" d=\"M13.211,1.381l-6.606,6.6L0,1.381,1.381,0,6.606,5.022h0L11.83,0Z\" transform=\"translate(7.985) rotate(90)\" fill=\"#fff\"/>
</svg>`;
const arrowNext= `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
<path id=\"np_arrow-up_888648_000000\" d=\"M13.211,1.381l-6.606,6.6L0,1.381,1.381,0,6.606,5.022h0L11.83,0Z\" transform=\"translate(7.985) rotate(90)\" fill=\"#fff\"/>
</svg>`;
var countProperties = '";
// line 903
echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 903, $this->source); })())), "html", null, true);
echo "';
var loopProp = 1;
while (loopProp <= countProperties+3) {
\$('.slick-slide-single-'+loopProp).slick({
'slidesToShow': 1,
'prevArrow': `<div class=\"arrow-left square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowPrev}</div>`,
'nextArrow': `<div class=\"arrow-right square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowNext}</div>`
});
";
// line 923
echo "
loopProp++;
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "property.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1200 => 923, 1186 => 903, 731 => 450, 729 => 449, 725 => 446, 723 => 445, 721 => 444, 719 => 443, 717 => 442, 715 => 441, 713 => 440, 711 => 439, 709 => 438, 707 => 437, 705 => 436, 703 => 435, 701 => 434, 699 => 433, 697 => 432, 695 => 431, 691 => 428, 689 => 427, 687 => 426, 685 => 425, 683 => 424, 681 => 423, 679 => 422, 676 => 420, 674 => 419, 672 => 418, 670 => 417, 668 => 416, 666 => 415, 664 => 414, 662 => 413, 659 => 411, 657 => 410, 655 => 409, 653 => 408, 651 => 407, 649 => 406, 647 => 405, 645 => 404, 643 => 403, 641 => 402, 639 => 401, 637 => 400, 635 => 399, 633 => 398, 631 => 397, 629 => 396, 627 => 395, 625 => 394, 623 => 393, 621 => 392, 619 => 391, 617 => 390, 615 => 389, 613 => 388, 611 => 387, 609 => 386, 607 => 385, 605 => 384, 603 => 383, 601 => 382, 599 => 381, 597 => 380, 594 => 378, 592 => 377, 590 => 376, 586 => 373, 584 => 372, 582 => 371, 580 => 370, 578 => 369, 576 => 368, 574 => 367, 572 => 366, 570 => 365, 565 => 361, 561 => 359, 555 => 357, 553 => 356, 543 => 349, 536 => 344, 524 => 295, 520 => 293, 517 => 292, 514 => 291, 511 => 290, 508 => 289, 505 => 288, 503 => 287, 499 => 285, 482 => 282, 478 => 281, 472 => 278, 464 => 274, 459 => 270, 453 => 268, 448 => 265, 436 => 262, 434 => 261, 430 => 260, 425 => 259, 422 => 258, 418 => 255, 415 => 232, 398 => 231, 390 => 225, 383 => 224, 380 => 223, 377 => 222, 374 => 221, 371 => 220, 368 => 219, 365 => 218, 362 => 217, 359 => 216, 357 => 215, 345 => 205, 342 => 201, 335 => 199, 319 => 196, 315 => 195, 309 => 192, 305 => 190, 297 => 187, 294 => 186, 292 => 185, 286 => 183, 281 => 177, 275 => 175, 270 => 172, 258 => 169, 256 => 168, 252 => 167, 247 => 166, 244 => 165, 240 => 162, 233 => 139, 215 => 138, 203 => 128, 165 => 70, 162 => 45, 160 => 44, 153 => 39, 150 => 24, 147 => 23, 144 => 22, 141 => 21, 138 => 20, 136 => 19, 133 => 18, 131 => 17, 118 => 15, 107 => 12, 103 => 10, 97 => 8, 95 => 7, 92 => 6, 89 => 5, 79 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}Biens{% endblock %}
{% block metaDescription %}
{% set headerContent = content('Biens', 'Header') %}
<meta name=\"description\" content=\"
{% if headerContent.content is defined %}
{{ headerContent.content|striptags }}
{% else %}
Tracol Immobilier propose une large offre en immobilier neuf (logements, bureaux, commerces), qui se caractérise par une architecture résolument contemporaine, des matériaux de qualité, et le soin apporté à chaque détail.
{% endif %}
\">
{% endblock %}
{% block body %}
{% set headerContent = content('Biens', 'Header') %}
{% if headerContent.picture is defined and headerContent.picture is not empty %}
{% set backgroundImage = headerContent.picture[0].path %}
{% else %}
{% set backgroundImage = 'empty' %}
{% endif %}
{#
<header class=\"header-tracol slider-home slider-not-home who-is bottom-right-border position-relative overflow-hidden to-right\" id=\"sliderHeader\" style=\"background: url({% if backgroundImage == 'empty' %}'https://tracol.lu/uploads/images/residences-61c0b1dd3141b610699350.jpeg'{% else %}'/uploads/images/{{ backgroundImage }}'{% endif %}) center center no-repeat;background-size:cover;\">
<div class=\"container-fluid\">
<div id=\"header-habiter\" class=\"col-lg-8 mx-auto div-svg-header\">
<div class=\"header-habiter-div2\">
{% if headerContent.name is defined %}
<svg id=\"svg-habiter\" width=\"10\" height=\"16\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:avocode=\"https://avocode.com/\" viewBox=\"0 0 10 16\"><defs></defs><desc>Generated with Avocode.</desc><g><g><title>Tracé 76</title><path d=\"M9.08929,0.51465v0h-9.08929v0v14.77002v0l9.08929,-1.93109v0z\" fill=\"#f6a400\" fill-opacity=\"1\"></path></g></g></svg>
<h2 class=\"header-habiter-title col-lg-8\">{{ headerContent.name }}</h2>
{% endif %}
</div>
</div>
</div>
</header>
#}
<div class=\"container-fluid\">
{% set sectionContent1 = content('Biens', 'Section-1') %}
{#
<div class=\"col-lg-8 mx-auto div-svg-header pre-section\">
<div class=\"col-lg-5 property-title\" style=\"font-size: 2.3em;display: flex;flex-direction: column;margin-left: 10px;\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
<path id=\"Tracé_76\" data-name=\"Tracé 76\" d=\"M682.759,232.441h-9.089v14.77l9.089-1.931Z\" transform=\"translate(-673.669 -232.441)\" fill=\"#f6a400\"/>
</svg>
{% if properties|length == 0 %}
<h1 class=\"lowercase-title\">Nous n'avons aucun bien correspondant à votre recherche.</h1>
{% elseif properties|length == 1 %}
<h1 class=\"project-title\">{{ properties|length }} bien disponible</h1>
{% else %}
<h1 class=\"project-title\">{{properties|length }} biens disponibles</h1>
{% endif %}
</div>
<div class=\"separator\"></div>
<div class=\"col-lg-6 pre-section-content\">
{% if sectionContent1.content is defined %}
{{ sectionContent1.content|raw }}
{% else %}
Que vous soyez un particulier ou un professionnel, que vous recherchiez un appartement, une maison, un bureau ou un commerce, nos équipes d’experts vous accompagnent tout au long de votre projet immobilier.
{% endif %}
</div>
</div>
#}
<section class=\"project\" style=\"margin-bottom: 120px; margin-top: 60px\">
<div id=\"button-property-page\" class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: flex; align-items: center; padding-left: 7px\">
<button data-id=\"all\" class=\"btn btn-primary all border-radius projectButton\"><span class=\"span-all\">TOUS</span></button>
<button data-id=\"sale\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">ACHAT</span></button>
<button data-id=\"rental\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">LOCATION</span></button>
</div>
<div id=\"button-property-page-mobile\" class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: none; align-items: center\">
<div id=\"flick3\" class=\"flicking-viewport\">
<div class=\"flicking-camera\">
<button data-id=\"all\" class=\"btn btn-primary all border-radius projectButton\"><span class=\"span-all\">TOUS</span></button>
<button data-id=\"sale\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">ACHAT</span></button>
<button data-id=\"rental\" class=\"btn btn-primary come border-radius projectButton\"><span class=\"span-projects\">LOCATION</span></button>
</div>
</div>
</div>
<div class=\"col-lg-8 mx-auto div-svg-header deactive-tablet\" style=\"display: flex; flex-direction: column; justify-content: center\">
<div class=\"col-md-4\" style=\"margin-top:20px\">
<p>Trier par :</p>
<form>
<select name=\"subfilter\" class=\"form-control with-appearance\" id=\"filterProperties\">
<option value=\"\">Sélectionner</option>
<option value=\"date\">Date de publication</option>
<option value=\"asc\">Prix croissant</option>
<option value=\"desc\">Prix décroissant</option>
</select>
</form>
</div>
{#
<div style=\"display: flex; flex-direction: row; padding-left: 7px; align-items: center; margin-top: 15px;\">
<div id=\"filter-desktop\" class=\"filters-biens\">
{% for key, subType in getTypeProperties() %}
<button data-id=\"{{ key }}\" class=\"select-projet\">{{ subType }} <i class=\"fas fa-times\"></i></button>
{% endfor %}
</div>
<div id=\"filter-mobile\" class=\"col-lg-3 div-form selectSubFilter property\" style=\"display: none\">
<div class=\"input-group dropdown show\">
<label class=\"label-search-filter\" for=\"location\">Filtrer par Type</label>
<input style=\"height: 75px; width: 60px;\" type=\"text\" autocomplete=\"off\" name=\"filters\" id=\"filters\"
class=\"form-control\" aria-expanded=\"false\">
<ul id=\"form-search-filter-ajax\" class=\"dropdown-menu form-search-filter-ajax\" aria-labelledby=\"\">
{% for key, subType in getTypeProperties() %}
<li value=\"{{ key }}\" data-id=\"{{ key }}\" class=\"select-filter\"><i class=\"fas fa-times\"></i>{{ subType }}</li>
{% endfor %}
</ul>
</div>
</div>
</div>
#}
<div id=\"loading\">
<h1 id=\"showOutput\"></h1>
</div>
<div id=\"properties\" class=\"col-lg-12\" style=\"display: flex; flex-wrap: wrap; flex-direction: row\">
{% for property in properties %}
<div class=\"col-xl-4 col-lg-6 col-md-12 col-sm-12 div-img-hover-2\" data-date=\"{{ property.created_at }}\" data-price=\"{{ property.price.value }}\" style=\"cursor: pointer\">
{#
<div class=\"div-hover-2\" id=\"div-hover-2\" aria-haspopup=\"true\" style=\"position: absolute; bottom: 8px; left: 9px; background-color: #242424; color: white; width: 291px; height: 70px\">
{% if property.comments[0].comment is not empty %}
<p class=\"project-content\">
{{ property.comments[0].comment|slice(0, 350) }}</p>
<a href=\"{{ path('property-detail', {'id': property.id}) }}\" class=\"project-arrow-2\">
<span class=\"galerry-ref\"></span><i class=\"fas fa-arrow-right project-svg-arrow-2\"></i>
</a>
{% else %}
<a style=\"margin-top: 180px\" href=\"{{ path('property-detail', {'id': property.id}) }}\" class=\"project-arrow-2\">
<span class=\"galerry-ref\"></span><i class=\"fas fa-arrow-right project-svg-arrow-2\"></i>
</a>
{% endif %}
</div>
<div class=\"col-lg-3 properties-price-absolute\" style=\"background-color: #c48300; height: 56px;\">
<p style=\"font-size: 20px;\" class=\"properties-price\">
{{ property.price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : property.price.value ~ property.price.currency|replace({\"EUR\": \" €\"}) }}
</p>
</div>
#}
{# <div class=\"tag-ref-projet-2\"><span class=\"text-tag-ref\">{{ specialPropertyCategory(property.category) }}</span></div> #}
{% if property.pictures is not empty %}
<div class=\"position-relative properties-slide slick-slide-single-{{ loop.index }}\" style=\"height:265px;\">
{% for picture in property.pictures|slice(0,3) %}
{# <img class=\"img-100\" src=\"{{ picture.url }}\">#}
<div class=\"img\" style=\"background: url('{{ picture.url }}')no-repeat center;background-size:cover;\" onclick=\"location.href='{{ path('property-detail', {'id': property.id}) }}'\">
</div>
{% endfor %}
</div>
{% else %}
<div class=\"img\" style=\"background: url('{{ asset('build/Hudson_Ontario2.png') }}')no-repeat center;background-size:cover;\"></div>
{% endif %}
<div class=\"row col-md-12 justify-content-between\">
<ul class=\"col-md-4 items\">
<li class=\"item surface\">
{#
<img src=\"{{ asset('img/surface.svg') }}\" class=\"surface-logo\">
#}
{{ property.area.value == null ? '' : property.area.value ~ areaConversion(property.area.unit) }}
</li>
{% if property.bedrooms != 0 %}
<li class=\"item surface\">
<img src=\"{{ asset('img/icons/chambre.svg') }}\" alt=\"Icone chambre\" style=\"width:22px;margin-right:10px;margin-top:5px;\"> {{ property.bedrooms }}
</li>
{% endif %}
</ul>
<div class=\"col-md-8 properties-price d-flex justify-content-end\">
{{ property.price.value == null ? '<span style=\"font-size: 21px !important;\">sur demande</span>' : property.price.value|number_format(2, ',', ' ') ~ property.price.currency|replace({\"EUR\": \" €\"}) }}
</div>
</div>
<p class=\"city\">{{ property.city.name }}</p>
<p class=\"project-name\">{{ getTypeProperty(property.type) }}</p>
</div>
{% else %}
<h4>Aucun bien disponible avec ces critères</h4>
{% endfor %}
</div>
{#<div class=\"text-center text-capitalize more-projects\">
<p>AFFICHER PLUS DE BIENS</p>
</div>#}
</div>
</section>
<section class=\"other-properties pt-5 pb-5\" style=\"background:#F7F7F7\">
<div class=\"col-lg-8 mx-auto div-svg-header\" style=\"display: flex; margin-top: 30px\">
<div class=\"col-lg-6\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
<path id=\"Tracé_76\" data-name=\"Tracé 76\" d=\"M682.759,232.441h-9.089v14.77l9.089-1.931Z\" transform=\"translate(-673.669 -232.441)\" fill=\"#f6a400\"></path>
</svg>
<h1 class=\"project-title\">
{% if app.request.attributes.get('_route_params')['keyword'] is defined or idCategory is defined %}
{% if (app.request.attributes.get('_route_params')['keyword'] is defined and app.request.attributes.get('_route_params')['keyword'] == 'location') or (idCategory is defined and idCategory == 1) %}
{% set otherDispo = 'vente' %}
{% else %}
{% set otherDispo = 'location' %}
{% endif %}
{% else %}
{% set otherDispo = null %}
{% endif %}
NOS biens disponibles<br> {% if otherDispo %}À la <span style=\"color:#F6A400\">{{ otherDispo }}</span>{% endif %}
</h1>
</div>
</div>
<div class=\"col-lg-8 mx-auto\">
<div id=\"propertiesOther\" class=\"col-lg-12 mt-5 property-other-list\" style=\"display: flex; flex-wrap: wrap; flex-direction: row\">
{% for property in otherProperties %}
<div class=\"col-xl-4 col-lg-6 col-md-12 col-sm-12 div-img-hover-2\" style=\"cursor: pointer\">
{#
<div class=\"div-hover-2\" id=\"div-hover-2\" aria-haspopup=\"true\" style=\"position: absolute; bottom: 8px; left: 9px; background-color: #242424; color: white; width: 291px; height: 70px\">
{% if property.comments[0].comment is not empty %}
<p class=\"project-content\">
{{ property.comments[0].comment|slice(0, 350) }}</p>
<a href=\"{{ path('property-detail', {'id': property.id}) }}\" class=\"project-arrow-2\">
<span class=\"galerry-ref\"></span><i class=\"fas fa-arrow-right project-svg-arrow-2\"></i>
</a>
{% else %}
<a style=\"margin-top: 180px\" href=\"{{ path('property-detail', {'id': property.id}) }}\" class=\"project-arrow-2\">
<span class=\"galerry-ref\"></span><i class=\"fas fa-arrow-right project-svg-arrow-2\"></i>
</a>
{% endif %}
</div>
<div class=\"col-lg-3 properties-price-absolute\" style=\"background-color: #c48300; height: 56px;\">
<p style=\"font-size: 20px;\" class=\"properties-price\">
{{ property.price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : property.price.value ~ property.price.currency|replace({\"EUR\": \" €\"}) }}
</p>
</div>
#}
{# <div class=\"tag-ref-projet-2\"><span class=\"text-tag-ref\">{{ specialPropertyCategory(property.category) }}</span></div> #}
{% if property.pictures is not empty %}
<div class=\"position-relative properties-slide slick-slide-single-{{ loop.index }}\">
{% for picture in property.pictures|slice(0,3) %}
{# <img class=\"img-100\" src=\"{{ picture.url }}\">#}
<div class=\"img\" style=\"background-image: url('{{ picture.url }}')\" onclick=\"location.href='{{ path('property-detail', {'id': property.id}) }}'\">
</div>
{% endfor %}
</div>
{% else %}
<div class=\"img\" style=\"background-image: url('{{ asset('build/Hudson_Ontario2.png') }}')\"></div>
{% endif %}
<div class=\"row col-md-12 justify-content-between infos-list\">
<ul class=\"col-md-4 items\">
<li class=\"item surface\">
{# <img src=\"{{ asset('img/surface.svg') }}\" alt=\"icon surface\" class=\"surface-logo\"> #}
{{ property.area.value == null ? '' : property.area.value ~ areaConversion(property.area.unit) }}
</li>
</ul>
<div class=\"col-md-8 properties-price d-flex justify-content-end\">
{{ property.price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : property.price.value|number_format(2, ',', ' ') ~ property.price.currency|replace({\"EUR\": \" €\"}) }}
</div>
</div>
<p class=\"city\">{{ property.city.name }}</p>
<p class=\"project-name\">{{ getTypeProperty(property.type) }}</p>
</div>
{% endfor %}
</div>
{% set paramUrl = app.request.get('keyword') %}
{% if app.request.get('keyword') == 'location' %}
{% set paramUrl = 'vente' %}
{% elseif app.request.get('keyword') == 'vente' %}
{% set paramUrl = 'location' %}
{% endif %}
<div id=\"link-none\" class=\"col-lg-12 mx-auto other-property-link div-svg-header d-flex justify-content-end\">
<div>
<a id=\"link-none-a d-flex\" class=\"property-span-arrow\" href=\"{{ path('properties', {'keyword': paramUrl}) }}\">Découvrir plus
<svg class=\"svg-inline--fa fa-arrow-right fa-w-14 property-arrow\" aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"arrow-right\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\" data-fa-i2svg=\"\"><path fill=\"currentColor\" d=\"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z\"></path></svg><!-- <i class=\"fas fa-arrow-right property-arrow\"></i> Font Awesome fontawesome.com -->
</a>
</div>
</div>
</div>
</section>
{#
<section style=\"margin-bottom: 80px; margin-top: 150px;\">
<div class=\"col-lg-8 mx-auto div-svg-header\">
{% set sectionContent1 = content('Biens', 'Section-2') %}
<div id=\"habiter-content-id\" class=\"col-lg-6 habiter-content\">
<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"9.089\" height=\"14.77\" viewBox=\"0 0 9.089 14.77\">
<path id=\"Tracé_76\" data-name=\"Tracé 76\" d=\"M682.759,232.441h-9.089v14.77l9.089-1.931Z\" transform=\"translate(-673.669 -232.441)\" fill=\"#f6a400\"/>
</svg>
<div class=\"col-lg-7\">
<h1 class=\"habiter-title mb-5\">
{% if sectionContent1.name is defined %}
{{ sectionContent1.name }}
{% else %}
HABITER AU LUXEMBOURG
{% endif %}
</h1>
{% if sectionContent1.content is defined %}
{{ sectionContent1.content|raw }}
{% else %}
Vous avez découvert l’appartement ou la maison de vos rêves ? Parfait ! En achetant au Luxembourg vous pouvez bénéficier de plusieurs avantages fiscaux.
{% endif %}
</div>
</div>
<div id=\"display-none-mobile\" class=\"col-lg-6 habiter-img\">
{% if sectionContent1.picture is defined %}
<img id=\"img-property-section\" class=\"img-100\" src=\"/uploads/images/{{ sectionContent1.picture[0].path }}\">
{% else %}
<img id=\"img-property-section\" class=\"img-100\" src=\"https://tracol.lu/uploads/images/millebierg-6194cb6331d44212004123.png\">
{% endif %}
</div>
</div>
<div id=\"link-none\" class=\"col-lg-8 mx-auto div-svg-header\">
<div style=\"display: flex; align-content: center\">
<a id=\"link-none-a\" class=\"property-span-arrow\" href=\"{{ path('habiter') }}\">Découvrir les avantages
<i class=\"fas fa-arrow-right property-arrow\"></i>
</a>
</div>
</div>
</section>
#}
</div>
<div id=\"img-property-section\" class=\"container-fluid\" style=\"display: none\">
<div id=\"link-ok\" class=\"col-lg-3\" style=\"display: flex; align-content: center\">
<a class=\"property-span-arrow\" href=\"{{ path('habiter') }}\">Découvrir les avantages
<i class=\"fas fa-arrow-right property-arrow\"></i>
</a>
</div>
<div class=\"col-lg-6 habiter-img\">
{% if sectionContent1.picture is defined %}
<img style=\"padding: 0px;\" class=\"img-100\" src=\"/uploads/images/{{ sectionContent1.picture[0].path }}\">
{% else %}
<img style=\"padding: 0px;\" class=\"img-100\" src=\"https://tracol.lu/uploads/images/millebierg-6194cb6331d44212004123.png\">
{% endif %}
</div>
</div>
<script>
{#const slideNextHeader = document.getElementById('slideNextHeader');#}
{#const slidePreviousHeader = document.getElementById('slidePreviousHeader');#}
{#const propertiesCity = document.getElementsByClassName('properties-city')#}
{#const propertiesArea = document.getElementsByClassName('properties-area')#}
{#const propertiesReference = document.getElementsByClassName('properties-reference')#}
{#const propertiesPrice = document.getElementsByClassName('properties-price')#}
{#const propertiesLink = document.getElementsByClassName('properties-link')#}
{#const currentFigure = document.getElementsByClassName('current-figure')#}
{#const lastFigure = document.getElementsByClassName('last-figure')#}
{#let slideHeader = document.getElementById('sliderHeader');#}
{#let positionHeader = 0;#}
{#let positionThumbHeader = 1;#}
{#arraySlidesHeader = [#}
{# {#}
{# 'position': 1,#}
{# 'img': '{{ saleProperties[0].pictures[0].url }}',#}
{# 'city': '{{ saleProperties[0].city.name }}',#}
{# 'area': '{{ saleProperties[0].area.value == null ? '' : saleProperties[0].area.value ~ areaConversion(saleProperties[0].area.unit) }}',#}
{# 'reference': '{{ saleProperties[0].reference }}',#}
{# 'price': '{{ saleProperties[0].price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : saleProperties[0].price.value ~ saleProperties[0].price.currency|replace({\"EUR\": \" €\"}) }}',#}
{# 'link': '{{ path('property-detail', {'id': saleProperties[0].id}) }}',#}
{# 'dot': 'dot1'#}
{# },#}
{# {#}
{# 'position': 2,#}
{# 'img': '{{ saleProperties[1].pictures[0].url }}',#}
{# 'city': '{{ saleProperties[1].city.name }}',#}
{# 'area': '{{ saleProperties[1].area.value == null ? '' : saleProperties[1].area.value ~ areaConversion(saleProperties[1].area.unit) }}',#}
{# 'reference': '{{ saleProperties[1].reference }}',#}
{# 'price': '{{ saleProperties[1].price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : saleProperties[1].price.value ~ saleProperties[1].price.currency|replace({\"EUR\": \" €\"}) }}',#}
{# 'link': '{{ path('property-detail', {'id': saleProperties[1].id}) }}',#}
{# 'dot': 'dot2'#}
{# },#}
{# {#}
{# 'position': 3,#}
{# 'img': '{{ saleProperties[2].pictures[0].url }}',#}
{# 'city': '{{ saleProperties[2].city.name }}',#}
{# 'area': '{{ saleProperties[2].area.value == null ? '' : saleProperties[2].area.value ~ areaConversion(saleProperties[2].area.unit) }}',#}
{# 'reference': '{{ saleProperties[2].reference }}',#}
{# 'price': '{{ saleProperties[2].price.value == null ? '<span style=\"font-size: 14px !important;\">sur demande</span>' : saleProperties[2].price.value ~ saleProperties[2].price.currency|replace({\"EUR\": \" €\"}) }}',#}
{# 'link': '{{ path('property-detail', {'id': saleProperties[2].id}) }}',#}
{# 'dot': 'dot3'#}
{# },#}
{#];#}
{#slidePreviousHeader.addEventListener('click', () => {#}
{# if (arraySlidesHeader.length < (positionThumbHeader + 1)) {#}
{# positionHeader = 0;#}
{# positionThumbHeader = 1;#}
{# } else {#}
{# positionHeader++;#}
{# positionThumbHeader++;#}
{# }#}
{# slideHeader.style.background = `url(\${arraySlidesHeader[positionHeader].img})no-repeat center`;#}
{# propertiesCity[0].innerHTML = arraySlidesHeader[positionHeader].city#}
{# propertiesArea[0].innerHTML = arraySlidesHeader[positionHeader].area#}
{# propertiesReference[0].innerHTML = arraySlidesHeader[positionHeader].reference#}
{# propertiesPrice[0].innerHTML = arraySlidesHeader[positionHeader].price#}
{# propertiesLink[0].setAttribute('href', arraySlidesHeader[positionHeader].link)#}
{# currentFigure[0].innerHTML = '0'+positionThumbHeader#}
{# slideHeader.style.backgroundSize = `cover`;#}
{#});#}
{#slideNextHeader.addEventListener('click', () => {#}
{# if (positionThumbHeader === 1) {#}
{# positionHeader = (arraySlidesHeader.length - 1);#}
{# positionThumbHeader = arraySlidesHeader.length;#}
{# } else {#}
{# positionHeader = positionHeader - 1;#}
{# positionThumbHeader = positionThumbHeader - 1;#}
{# }#}
{# slideHeader.style.background = `url(\${arraySlidesHeader[positionHeader].img})no-repeat center`;#}
{# propertiesCity[0].innerHTML = arraySlidesHeader[positionHeader].city#}
{# propertiesArea[0].innerHTML = arraySlidesHeader[positionHeader].area#}
{# propertiesReference[0].innerHTML = arraySlidesHeader[positionHeader].reference#}
{# propertiesPrice[0].innerHTML = arraySlidesHeader[positionHeader].price#}
{# currentFigure[0].innerHTML = '0'+positionThumbHeader#}
{# slideHeader.style.backgroundSize = `cover`;#}
{#});#}
const futurProjects = document.getElementById('properties')
let buttons = document.getElementsByClassName('projectButton')
for (const eElement of buttons) {
eElement.addEventListener('click', function (e) {
e.preventDefault()
for (let button of buttons) {
if (button.classList.contains('all')){
button.classList.remove('all')
button.classList.add('come')
button.querySelector('span').classList.replace('span-all', 'span-projects')
}
}
eElement.classList.remove('come')
eElement.classList.add('all')
eElement.querySelector('span').classList.replace('span-projects', 'span-all')
fetch('properties/display/'+this.dataset.id, {
method: 'GET',
})
.then(response => response.json())
.then(data => {
futurProjects.innerHTML = ''
futurProjects.innerHTML = data.data
_ww = \$(window).width();
var lightbox = \$('.lightbox'),
item = 0;
\$('.lightbox-on').click(function(e){
e.stopPropagation();
item = 0;
console.log('click btn');
var id = \$(this).attr('data-id'),
max = 0;
\$('#'+id).toggle();
\$('#'+id).animate({opacity: 1}, 300);
\$('#'+id).find('img').each(function( i ) {
//console.log('h : '+\$(this).height());
//console.log('w : '+\$(this).width());
max = i;
item = 1;
counter(item, max+1);
itemWidth(\$(this));
});
});
lightbox.click(function(e) {
e.stopPropagation();
\$(this).animate({opacity: 0}, 300, function(){
\$(this).toggle();
});
});
\$('.closer').on('click', function (e) {
e.stopPropagation();
\$(this).parent().animate(
{opacity: 0},
300,
function(){
\$(this).toggle();
}
);
});
function itemWidth(img){
img.closest('.items').width(img.width());
}
function counter(item, max){
\$('.counter').text(item + ' / ' + max);
}
\$('.item', lightbox).on('click, swipeleft', function (e) {
var wd = \$(this).width(),
last = \$(this).parent().find('.item').last(),
img = \$(this).find('.img');
itemWidth(img);
\$(this).animate(
{marginLeft: -wd, opacity: 0},
500,
'swing',
function(){
\$(this).insertAfter(last);
\$(this).css({marginLeft: 0, opacity: 1});
}
);
});
\$('.item', lightbox).on('swiperight', function (e) {
var wd = \$(this).width(),
first = \$(this).parent().find('.item').first(),
last = \$(this).parent().find('.item').last(),
img = \$(this).find('.img');
itemWidth(img);
\$(last).insertBefore(\$(this));
\$(last).css({marginLeft: -wd, opacity: 0});
\$(this).parent().find('.item').eq(0).animate(
{marginLeft: 0, opacity: 1},
500,
'swing'
);
});
\$('.arrows', lightbox).on('click', function (e) {
e.stopPropagation();
var wd = \$(this).siblings('.items').find('.item').eq(0).width(),
max = \$(this)
.siblings('.items').find('.item').length,
first = \$(this).siblings('.items').find('.item').first(),
last = \$(this).siblings('.items').find('.item').last(),
isRight = \$(this).hasClass('right'),
marginL = isRight ? -wd : 0,
marginL0 = isRight ? 0: -wd,
opacOn = isRight ? 1 : 0,
opacOff = isRight ? 0 : 1;
if (!isRight){
\$(last).insertBefore(first);
\$(last).css({marginLeft: -wd, opacity: 0});
item++;
if (item == max+1) {item = 1};
} else {
item--;
if (item == 0) {item = max};
};
counter(item, max);
var img = \$(this).siblings('.items').find('.item').eq(0).find('.img');
itemWidth(img);
\$(this).siblings('.items').find('.item').eq(1).animate(
{opacity: opacOn},
500,
'swing');
\$(this).siblings('.items').find('.item').eq(0).animate(
{marginLeft: marginL, opacity: 1},
500,
'swing',
function(){
if (isRight){
\$(this).insertAfter(last);
\$(this).css({ marginLeft: 0, opacity: 1});
}
}
);
});
if (_ww > 768){
\$('.div-img-hover-2').hover(function (e) {
\$(this).find('.project-arrow-2').animate({opacity: 1}, 150);
var htext = \$(this).find('.project-content').height();
if (htext == undefined){htext = 0};
\$(this).find('.div-hover-2').animate({height : htext+180}, 150);
\$(this).find('.project-content').css({'visibility': 'visible'});
\$(this).find('.project-content').animate({opacity: 1}, 150);
}, function() {
console.log('down');
\$(this).find('.div-hover-2').animate({height : 85}, 150);
\$(this).find('.project-arrow-2').animate({opacity: 0}, 150);
\$(this).find('.project-content').animate({opacity: 0}, 150, function(){
\$(this).find('.project-content').css({'visibility': 'hidden'});
});
});
} else {
\$('.div-img-hover-2').on( \"tap\", function( event ) {
console.log('tap tap');
var opened = \$(this).find('.div-hover-2').hasClass('open'),
ht = opened ? 85 : '100%',
vis = opened ? 0 : 1;
\$(this).find('.div-hover-2').toggleClass('open');
\$(this).find('.div-hover-2').animate({height : ht}, 150);
\$(this).find('.project-arrow-2').animate({opacity: vis}, 150);
});
}
})
.catch((error) => {
console.error('Error:', error);
});
})
}
if (window.matchMedia(\"(max-width: 768px)\").matches) {
new Flicking(\"#flick3\", {
moveType: \"freeScroll\",
bound: true
});
}
if (window.matchMedia(\"(max-width: 768px)\").matches) {
const test = document.getElementsByClassName('select-filter')
for (const testElement of test) {
testElement.addEventListener('click', function (e) {
e.preventDefault()
testElement.classList.toggle('select-projet-active')
const infos = document.querySelector('.projectButton.all')
const dataId = []
const tests = document.querySelectorAll('.select-filter.select-projet-active')
for (const test1 of tests) {
dataId.push(parseFloat(test1.dataset.id))
}
fetch('properties/display/'+infos.dataset.id+'/params/' + JSON.stringify(dataId), {
method: 'GET',
})
.then(response => response.json())
.then(data => {
futurProjects.innerHTML = data.data
})
.catch((error) => {
console.error('Error:', error);
});
})
}
} else {
const test = document.getElementsByClassName('select-projet')
const textOutput = document.querySelector(\"#showOutput\");
for (const testElement of test) {
testElement.addEventListener('click', function (e) {
displayLoading()
e.preventDefault()
testElement.classList.toggle('select-projet-active')
const infos = document.querySelector('.projectButton.all')
const dataId = []
const tests = document.querySelectorAll('.select-projet.select-projet-active')
for (const test1 of tests) {
dataId.push(parseFloat(test1.dataset.id))
}
fetch('properties/display/'+infos.dataset.id+'/params/' + JSON.stringify(dataId), {
method: 'GET'
})
.then(response => response.json())
.then(data => {
hideLoading()
futurProjects.innerHTML = data.data
_ww = \$(window).width();
var lightbox = \$('.lightbox'),
item = 0;
\$('.lightbox-on').click(function(e){
e.stopPropagation();
item = 0;
console.log('click btn');
var id = \$(this).attr('data-id'),
max = 0;
\$('#'+id).toggle();
\$('#'+id).animate({opacity: 1}, 300);
\$('#'+id).find('img').each(function( i ) {
//console.log('h : '+\$(this).height());
//console.log('w : '+\$(this).width());
max = i;
item = 1;
counter(item, max+1);
itemWidth(\$(this));
});
});
lightbox.click(function(e) {
e.stopPropagation();
\$(this).animate({opacity: 0}, 300, function(){
\$(this).toggle();
});
});
\$('.closer').on('click', function (e) {
e.stopPropagation();
\$(this).parent().animate(
{opacity: 0},
300,
function(){
\$(this).toggle();
}
);
});
function itemWidth(img){
img.closest('.items').width(img.width());
}
function counter(item, max){
\$('.counter').text(item + ' / ' + max);
}
\$('.item', lightbox).on('click, swipeleft', function (e) {
var wd = \$(this).width(),
last = \$(this).parent().find('.item').last(),
img = \$(this).find('.img');
itemWidth(img);
\$(this).animate(
{marginLeft: -wd, opacity: 0},
500,
'swing',
function(){
\$(this).insertAfter(last);
\$(this).css({marginLeft: 0, opacity: 1});
}
);
});
\$('.item', lightbox).on('swiperight', function (e) {
var wd = \$(this).width(),
first = \$(this).parent().find('.item').first(),
last = \$(this).parent().find('.item').last(),
img = \$(this).find('.img');
itemWidth(img);
\$(last).insertBefore(\$(this));
\$(last).css({marginLeft: -wd, opacity: 0});
\$(this).parent().find('.item').eq(0).animate(
{marginLeft: 0, opacity: 1},
500,
'swing'
);
});
\$('.arrows', lightbox).on('click', function (e) {
e.stopPropagation();
var wd = \$(this).siblings('.items').find('.item').eq(0).width(),
max = \$(this)
.siblings('.items').find('.item').length,
first = \$(this).siblings('.items').find('.item').first(),
last = \$(this).siblings('.items').find('.item').last(),
isRight = \$(this).hasClass('right'),
marginL = isRight ? -wd : 0,
marginL0 = isRight ? 0: -wd,
opacOn = isRight ? 1 : 0,
opacOff = isRight ? 0 : 1;
if (!isRight){
\$(last).insertBefore(first);
\$(last).css({marginLeft: -wd, opacity: 0});
item++;
if (item == max+1) {item = 1};
} else {
item--;
if (item == 0) {item = max};
};
counter(item, max);
var img = \$(this).siblings('.items').find('.item').eq(0).find('.img');
itemWidth(img);
\$(this).siblings('.items').find('.item').eq(1).animate(
{opacity: opacOn},
500,
'swing');
\$(this).siblings('.items').find('.item').eq(0).animate(
{marginLeft: marginL, opacity: 1},
500,
'swing',
function(){
if (isRight){
\$(this).insertAfter(last);
\$(this).css({ marginLeft: 0, opacity: 1});
}
}
);
});
if (_ww > 768){
\$('.div-img-hover-2').hover(function (e) {
\$(this).find('.project-arrow-2').animate({opacity: 1}, 150);
var htext = \$(this).find('.project-content').height();
if (htext == undefined){htext = 0};
\$(this).find('.div-hover-2').animate({height : htext+180}, 150);
\$(this).find('.project-content').css({'visibility': 'visible'});
\$(this).find('.project-content').animate({opacity: 1}, 150);
}, function() {
console.log('down');
\$(this).find('.div-hover-2').animate({height : 85}, 150);
\$(this).find('.project-arrow-2').animate({opacity: 0}, 150);
\$(this).find('.project-content').animate({opacity: 0}, 150, function(){
\$(this).find('.project-content').css({'visibility': 'hidden'});
});
});
} else {
\$('.div-img-hover-2').on( \"tap\", function( event ) {
console.log('tap tap');
var opened = \$(this).find('.div-hover-2').hasClass('open'),
ht = opened ? 85 : '100%',
vis = opened ? 0 : 1;
\$(this).find('.div-hover-2').toggleClass('open');
\$(this).find('.div-hover-2').animate({height : ht}, 150);
\$(this).find('.project-arrow-2').animate({opacity: vis}, 150);
});
}
\$('.div-hover').hover(function (e) {
\$(this).find('.project-arrow-2').animate({opacity: 1}, 150);
}, function() {
\$(this).find('.project-arrow-2').animate({opacity: 0}, 50);
});
})
.catch((error) => {
});
})
}
}
const filter = document.getElementById('filters')
const filterElement = document.getElementById('form-search-filter-ajax')
filter.addEventListener('click', function (e) {
e.preventDefault()
filterElement.classList.toggle('show')
})
const loader = document.querySelector(\"#loading\");
function displayLoading() {
loader.classList.add(\"display\");
// to stop loading after some time
setTimeout(() => {
loader.classList.remove(\"display\");
}, 5000);
}
// hiding loading
function hideLoading() {
loader.classList.remove(\"display\");
}
</script>
<script>
const arrowPrev = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
<path id=\"np_arrow-up_888648_000000\" d=\"M13.211,1.381l-6.606,6.6L0,1.381,1.381,0,6.606,5.022h0L11.83,0Z\" transform=\"translate(7.985) rotate(90)\" fill=\"#fff\"/>
</svg>`;
const arrowNext= `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"7.985\" height=\"13.211\" viewBox=\"0 0 7.985 13.211\">
<path id=\"np_arrow-up_888648_000000\" d=\"M13.211,1.381l-6.606,6.6L0,1.381,1.381,0,6.606,5.022h0L11.83,0Z\" transform=\"translate(7.985) rotate(90)\" fill=\"#fff\"/>
</svg>`;
var countProperties = '{{ properties|length }}';
var loopProp = 1;
while (loopProp <= countProperties+3) {
\$('.slick-slide-single-'+loopProp).slick({
'slidesToShow': 1,
'prevArrow': `<div class=\"arrow-left square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowPrev}</div>`,
'nextArrow': `<div class=\"arrow-right square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowNext}</div>`
});
{#
if (window.innerWidth > 768) {
\$('.slick-slide-single-'+loopProp).slick({
'slidesToShow': 1,
'prevArrow': `<div class=\"arrow-left square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowPrev}</div>`,
'nextArrow': `<div class=\"arrow-right square-black d-flex justify-content-center align-items-center position-absolute\">\${arrowNext}</div>`
});
}
#}
loopProp++;
}
</script>
{% endblock %}
", "property.html.twig", "/home/jumo/sites/sym/tracol/templates/property.html.twig");
}
}