<?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;
/* TroikaRealEstateBundle:Default:layout.html.twig */
class __TwigTemplate_d4b7182f4c02713aade9853b105ca554fd9c849f0e45ce3805f2876dd6dc71cd extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'title' => [$this, 'block_title'],
'description' => [$this, 'block_description'],
'keywords' => [$this, 'block_keywords'],
'ogTitle' => [$this, 'block_ogTitle'],
'ogDescription' => [$this, 'block_ogDescription'],
'ogImg' => [$this, 'block_ogImg'],
'stylesheets' => [$this, 'block_stylesheets'],
'canonicallink' => [$this, 'block_canonicallink'],
'javascriptshead' => [$this, 'block_javascriptshead'],
'javascripts' => [$this, 'block_javascripts'],
'main' => [$this, 'block_main'],
'goals' => [$this, 'block_goals'],
];
}
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", "TroikaRealEstateBundle:Default:layout.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "TroikaRealEstateBundle:Default:layout.html.twig"));
// line 1
echo "<!DOCTYPE html>
<html lang=\"ru\">
<head>
<meta name=\"robots\" content=\"all\"/>
<meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta name=\"viewport\" content=\"width=device-width; initial-scale=1.0; maximum-scale=1.0, shrink-to-fit=no; \"/>
<meta name=\"cmsmagazine\" content=\"d861abde084bbfe4c6a397bda4831501\"/>
<title>";
// line 9
$this->displayBlock('title', $context, $blocks);
echo "</title>
<meta name=\"description\" content=\"";
// line 10
$this->displayBlock('description', $context, $blocks);
echo "\">
<meta name=\"keywords\" content=\"";
// line 11
$this->displayBlock('keywords', $context, $blocks);
echo "\">
<meta name=\"yandex-verification\" content=\"55211b038c7d3fb0\">
<meta name=\"yandex-verification\" content=\"7563d08dede749ae\"/>
<meta name=\"format-detection\" content=\"telephone=no\">
<meta name=\"theme-color\" content=\"#000000\"/>
<meta property=\"og:title\" content=\"";
// line 17
$this->displayBlock('ogTitle', $context, $blocks);
echo "\"/>
<meta property=\"og:description\" content=\"";
// line 18
$this->displayBlock('ogDescription', $context, $blocks);
echo "\"/>
";
// line 20
echo " <meta property=\"og:site_name\" content=\"troikaestate.ru\"/>
";
// line 21
if ((array_key_exists("ogImg", $context) && !twig_test_empty((isset($context["ogImg"]) || array_key_exists("ogImg", $context) ? $context["ogImg"] : (function () { throw new RuntimeError('Variable "ogImg" does not exist.', 21, $this->source); })())))) {
// line 22
echo " <meta property=\"og:image\" content=\"";
$this->displayBlock('ogImg', $context, $blocks);
echo "\">
";
}
// line 24
echo " ";
// line 26
echo "
<link href=\"https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&subset=cyrillic\" rel=\"stylesheet\">
<link href='https://fonts.googleapis.com/css?family=PT+Sans:400,700&subset=latin,cyrillic' rel='stylesheet'
type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=cyrillic,latin' rel='stylesheet'
type='text/css'>
";
// line 32
if ((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.', 32, $this->source); })()), "request", [], "any", false, false, false, 32), "get", [0 => "_route"], "method", false, false, false, 32) && 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.', 32, $this->source); })()), "request", [], "any", false, false, false, 32), "attributes", [], "any", false, false, false, 32), "get", [0 => "_route_params"], "method", false, false, false, 32))) {
// line 33
echo " ";
$context["pagePath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 33, $this->source); })()), "request", [], "any", false, false, false, 33), "get", [0 => "_route"], "method", false, false, false, 33), 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.', 33, $this->source); })()), "request", [], "any", false, false, false, 33), "attributes", [], "any", false, false, false, 33), "get", [0 => "_route_params"], "method", false, false, false, 33));
// line 34
echo " ";
} elseif (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.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "get", [0 => "_route"], "method", false, false, false, 34)) {
// line 35
echo " ";
$context["pagePath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "get", [0 => "_route"], "method", false, false, false, 35));
// line 36
echo " ";
} else {
// line 37
echo " ";
$context["pagePath"] = "/error";
// line 38
echo " ";
}
// line 39
echo " ";
$this->displayBlock('stylesheets', $context, $blocks);
// line 56
echo "
";
// line 57
if (array_key_exists("custompage", $context)) {
// line 58
echo " ";
if (((isset($context["custompage"]) || array_key_exists("custompage", $context) ? $context["custompage"] : (function () { throw new RuntimeError('Variable "custompage" does not exist.', 58, $this->source); })()) == "true")) {
// line 59
echo " <link rel=\"canonical\" href=\"";
$this->displayBlock('canonicallink', $context, $blocks);
echo "\"/>
";
}
// line 61
echo " ";
}
// line 62
echo " ";
$this->displayBlock('javascriptshead', $context, $blocks);
// line 67
echo " <style type=\"text/css\">
.layout-column-left .fa-search {
cursor: pointer;
}
</style>
<script>
// для того чтобы не моргали фильтры во время загрузки страницы, скрываем их стилями и показываем их после загрузки контента.
window.addEventListener('DOMContentLoaded', function () {
var content = document.querySelector('.content');
if (content) {
content.style.opacity = '1';
}
});
</script>
";
// line 81
$this->loadTemplate("TroikaRealEstateBundle:Default:_metrics.html.twig", "TroikaRealEstateBundle:Default:layout.html.twig", 81)->displayBlock("metrics", $context);
echo "
";
// line 83
$this->displayBlock('javascripts', $context, $blocks);
// line 119
echo " <script src=\"/new2/js/main.js\"></script>
</head>
<body id=\"body\">
<div class=\"main ";
// line 122
if (array_key_exists("index_page", $context)) {
echo " index-page ";
} else {
echo " no_index_page ";
}
echo "\">
";
// line 123
$this->loadTemplate("TroikaRealEstateBundle:Default:_header2.html.twig", "TroikaRealEstateBundle:Default:layout.html.twig", 123)->displayBlock("header", $context);
echo "
";
// line 124
$this->displayBlock('main', $context, $blocks);
// line 126
echo " ";
$this->loadTemplate("TroikaRealEstateBundle:Default:_blogs2.html.twig", "TroikaRealEstateBundle:Default:layout.html.twig", 126)->displayBlock("blogs", $context);
echo "
";
// line 127
$this->loadTemplate("TroikaRealEstateBundle:Default:_footer2.html.twig", "TroikaRealEstateBundle:Default:layout.html.twig", 127)->displayBlock("footer", $context);
echo "
</div>
";
// line 129
$this->loadTemplate("TroikaRealEstateBundle:Default:_modals.html.twig", "TroikaRealEstateBundle:Default:layout.html.twig", 129)->displayBlock("modals", $context);
echo "
<script src=\"";
// line 131
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/uglifyjs/new/bc19409.js"), "html", null, true);
echo "\"></script>
<div class=\"spinner__layout hide\">
<div class=\"spinner\">
<img src=\"/img/loader.gif\" alt=\"Загрузка\">
</div>
</div>
<script src=\"";
// line 138
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/css/jquery-ui-1.13.2.ac/jquery-ui.js"), "html", null, true);
echo "\"></script>
";
// line 139
$this->displayBlock('goals', $context, $blocks);
// line 142
echo "
<!-- START Cookie-Alert -->
<div id=\"cookie_note\">
<p>Мы используем файлы cookies для улучшения работы сайта. Оставаясь на нашем сайте, вы соглашаетесь с условиями
использования файлов cookies. Чтобы ознакомиться с нашими Положениями о конфиденциальности и об использовании
файлов cookie, <a href=\"https://тройка-эстейт.рф/agreement\" target=\"_blank\">нажмите здесь</a>.</p>
<button class=\"button cookie_accept btn btn-primary btn-sm\">Я согласен</button>
</div>
<!-- END Cookie-Alert -->
<script>
function setCookie(name, value, days) {
let expires = \"\";
if (days) {
let date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
expires = \"; expires=\" + date.toUTCString();
}
document.cookie = name + \"=\" + (value || \"\") + expires + \"; path=/\";
}
function getCookie(name) {
let matches = document.cookie.match(new RegExp(\"(?:^|; )\" + name.replace(/([\\.\$?*|{}\\(\\)\\[\\]\\\\\\/\\+^])/g, '\\\\\$1') + \"=([^;]*)\"));
return matches ? decodeURIComponent(matches[1]) : undefined;
}
function checkCookies() {
let cookieNote = document.getElementById('cookie_note');
let cookieBtnAccept = cookieNote.querySelector('.cookie_accept');
// Если куки cookies_policy нет или она просрочена, то показываем уведомление
if (!getCookie('cookies_policy')) {
cookieNote.classList.add('show');
}
// При клике на кнопку устанавливаем куку cookies_policy на один год
cookieBtnAccept.addEventListener('click', function () {
setCookie('cookies_policy', 'true', 365);
cookieNote.classList.remove('show');
});
}
checkCookies();
</script>
</body>
</html>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 9
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 twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 9, $this->source); })()), "metaTitle", [], "any", false, false, false, 9), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 10
public function block_description($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", "description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 10, $this->source); })()), "metaDescription", [], "any", false, false, false, 10), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 11
public function block_keywords($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", "keywords"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "keywords"));
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 11, $this->source); })()), "metaKeywords", [], "any", false, false, false, 11), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 17
public function block_ogTitle($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", "ogTitle"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogTitle"));
echo "Troika Estate";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 18
public function block_ogDescription($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", "ogDescription"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogDescription"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 22
public function block_ogImg($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", "ogImg"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ogImg"));
echo twig_escape_filter($this->env, (isset($context["ogImg"]) || array_key_exists("ogImg", $context) ? $context["ogImg"] : (function () { throw new RuntimeError('Variable "ogImg" does not exist.', 22, $this->source); })()), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 39
public function block_stylesheets($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", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 40
echo " ";
if (((isset($context["pagePath"]) || array_key_exists("pagePath", $context) ? $context["pagePath"] : (function () { throw new RuntimeError('Variable "pagePath" does not exist.', 40, $this->source); })()) == "/")) {
// line 41
echo " ";
// line 43
echo "
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.4.6/css/swiper.min.css\"/>
";
// line 46
echo " ";
} else {
// line 47
echo " ";
// line 48
echo " ";
// line 50
echo " ";
// line 54
echo " ";
}
// line 55
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 59
public function block_canonicallink($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", "canonicallink"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "canonicallink"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 62
public function block_javascriptshead($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", "javascriptshead"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascriptshead"));
// line 63
echo " ";
// line 64
echo " ";
// line 65
echo " <script src=\"/js/new.jquery.min.js\" crossorigin=\"anonymous\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 83
public function block_javascripts($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", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 84
echo " ";
// line 85
echo " ";
// line 86
echo "
<script src=\"";
// line 88
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/uglifyjs/jquery.session.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 89
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/uglifyjs/js.cookie.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 90
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/uglifyjs/jquery.cookie.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 91
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/uglifyjs/bootstrap-select.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 92
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/uglifyjs/modernizr-2.6.2.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 93
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/uglifyjs/jquery.maskedinput-1.2.2.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 94
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/uglifyjs/extends.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 95
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/uglifyjs/bootstrap.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 96
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/uglifyjs/main.js"), "html", null, true);
echo "\"></script>
<!--
<script src=\"";
// line 98
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/uglifyjs/jquery-ui.js"), "html", null, true);
echo "\"></script>
<script src=\"https://code.jquery.com/ui/1.13.2/jquery-ui.js\"></script>
<script src=\"";
// line 100
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/css/jquery-ui-1.13.2/jquery-ui.js"), "html", null, true);
echo "\"></script>
-->
<script src=\"";
// line 102
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/uglifyjs/fix.js"), "html", null, true);
echo "\"></script>
<link rel=\"stylesheet\" href=\"/css/scss/normalize.scss\"/>
<link rel=\"stylesheet\" href=\"";
// line 105
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/css/scss/fa/font-awesome.scss"), "html", null, true);
echo "\"/>
<link rel=\"stylesheet\" href=\"";
// line 106
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/css/main.css"), "html", null, true);
echo "\"/>
<link rel=\"stylesheet\" href=\"";
// line 107
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/css/added.css"), "html", null, true);
echo "\"/>
<link rel=\"stylesheet\" href=\"";
// line 108
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/css/modal.css"), "html", null, true);
echo "\"/>
<link rel=\"stylesheet\" href=\"";
// line 109
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/css/jquery-ui-1.13.2/jquery-ui.css"), "html", null, true);
echo "\"/>
<link rel=\"stylesheet\" href=\"";
// line 110
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/public/css/fix.css"), "html", null, true);
echo "\"/>
\t <link rel=\"stylesheet\" href=\"";
// line 111
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/new.css"), "html", null, true);
echo "\"/>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.11/jquery.mask.js\"></script>
";
// line 113
if (((isset($context["pagePath"]) || array_key_exists("pagePath", $context) ? $context["pagePath"] : (function () { throw new RuntimeError('Variable "pagePath" does not exist.', 113, $this->source); })()) == "/")) {
// line 114
echo " <script src=\"/js/new.swiper.js\" crossorigin=\"anonymous\"></script>
";
} else {
// line 116
echo " <script type=\"text/javascript\" src=\"/new/assets/main.js\"></script>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 124
public function block_main($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", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 125
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 139
public function block_goals($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", "goals"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "goals"));
// line 140
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "TroikaRealEstateBundle:Default:layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 629 => 140, 619 => 139, 609 => 125, 599 => 124, 587 => 116, 583 => 114, 581 => 113, 576 => 111, 572 => 110, 568 => 109, 564 => 108, 560 => 107, 556 => 106, 552 => 105, 546 => 102, 541 => 100, 536 => 98, 531 => 96, 527 => 95, 523 => 94, 519 => 93, 515 => 92, 511 => 91, 507 => 90, 503 => 89, 499 => 88, 495 => 86, 493 => 85, 491 => 84, 481 => 83, 470 => 65, 468 => 64, 466 => 63, 456 => 62, 438 => 59, 428 => 55, 425 => 54, 423 => 50, 421 => 48, 419 => 47, 416 => 46, 412 => 43, 410 => 41, 407 => 40, 397 => 39, 378 => 22, 360 => 18, 341 => 17, 322 => 11, 303 => 10, 284 => 9, 227 => 142, 225 => 139, 221 => 138, 211 => 131, 206 => 129, 201 => 127, 196 => 126, 194 => 124, 190 => 123, 182 => 122, 177 => 119, 175 => 83, 170 => 81, 154 => 67, 151 => 62, 148 => 61, 142 => 59, 139 => 58, 137 => 57, 134 => 56, 131 => 39, 128 => 38, 125 => 37, 122 => 36, 119 => 35, 116 => 34, 113 => 33, 111 => 32, 103 => 26, 101 => 24, 95 => 22, 93 => 21, 90 => 20, 86 => 18, 82 => 17, 73 => 11, 69 => 10, 65 => 9, 55 => 1,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html lang=\"ru\">
<head>
<meta name=\"robots\" content=\"all\"/>
<meta charset=\"utf-8\">
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
<meta name=\"viewport\" content=\"width=device-width; initial-scale=1.0; maximum-scale=1.0, shrink-to-fit=no; \"/>
<meta name=\"cmsmagazine\" content=\"d861abde084bbfe4c6a397bda4831501\"/>
<title>{% block title %}{{ page.metaTitle }}{% endblock %}</title>
<meta name=\"description\" content=\"{% block description %}{{ page.metaDescription }}{% endblock %}\">
<meta name=\"keywords\" content=\"{% block keywords %}{{ page.metaKeywords }}{% endblock %}\">
<meta name=\"yandex-verification\" content=\"55211b038c7d3fb0\">
<meta name=\"yandex-verification\" content=\"7563d08dede749ae\"/>
<meta name=\"format-detection\" content=\"telephone=no\">
<meta name=\"theme-color\" content=\"#000000\"/>
<meta property=\"og:title\" content=\"{% block ogTitle %}Troika Estate{% endblock %}\"/>
<meta property=\"og:description\" content=\"{% block ogDescription %}{% endblock %}\"/>
{# <meta property=\"og:type\" content=\"blog\"/> #}
<meta property=\"og:site_name\" content=\"troikaestate.ru\"/>
{% if ogImg is defined and ogImg is not empty %}
<meta property=\"og:image\" content=\"{% block ogImg %}{{ ogImg }}{% endblock %}\">
{% endif %}
{# <meta property=\"og:description\" content=\"Troika Estate Агенство элитной недвижимости\"/>
<meta property=\"og:url\" content=\"http://domain/path/to/url\"/> #}
<link href=\"https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&subset=cyrillic\" rel=\"stylesheet\">
<link href='https://fonts.googleapis.com/css?family=PT+Sans:400,700&subset=latin,cyrillic' rel='stylesheet'
type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=cyrillic,latin' rel='stylesheet'
type='text/css'>
{% if app.request.get('_route') and app.request.attributes.get('_route_params') %}
{% set pagePath = path(app.request.get('_route'),app.request.attributes.get('_route_params')) %}
{% elseif app.request.get('_route') %}
{% set pagePath = path(app.request.get('_route')) %}
{% else %}
{% set pagePath = '/error' %}
{% endif %}
{% block stylesheets %}
{% if pagePath == '/' %}
{# <link rel=\"stylesheet\" href=\"/new/assets/main.css\"/>
<link rel=\"stylesheet\" href=\"{{ asset('/assets/app.css') }}\"/> #}
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.4.6/css/swiper.min.css\"/>
{# <link href=\"/new2/css/common.css\" rel=\"stylesheet\"> #}
{% else %}
{# <link rel=\"stylesheet\" href=\"/new/assets/main.css\"/>#}
{# TODO: Scheglov - входит в main.css
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.4.6/css/swiper.min.css\"/> #}
{#
TODO: Scheglov - это нужно только на главной
<link href=\"/new2/css/common.css\" rel=\"stylesheet\">
<link rel=\"stylesheet\" href=\"{{ asset('/assets/app.css') }}\"/>#}
{% endif %}
{% endblock %}
{% if custompage is defined %}
{% if custompage=='true' %}
<link rel=\"canonical\" href=\"{% block canonicallink %}{% endblock %}\"/>
{% endif %}
{% endif %}
{% block javascriptshead %}
{# { parent() } #}
{# <script src=\"/js/vendor/jquery-1.10.2.min.js\"></script> #}
<script src=\"/js/new.jquery.min.js\" crossorigin=\"anonymous\"></script>
{% endblock %}
<style type=\"text/css\">
.layout-column-left .fa-search {
cursor: pointer;
}
</style>
<script>
// для того чтобы не моргали фильтры во время загрузки страницы, скрываем их стилями и показываем их после загрузки контента.
window.addEventListener('DOMContentLoaded', function () {
var content = document.querySelector('.content');
if (content) {
content.style.opacity = '1';
}
});
</script>
{{ block('metrics', 'TroikaRealEstateBundle:Default:_metrics.html.twig') }}
{% block javascripts %}
{# { parent() } #}
{# <script src=\"{{ asset('/assets/app.js') }}\"></script>#}
<script src=\"{{ asset('/assets/public/uglifyjs/jquery.session.js') }}\"></script>
<script src=\"{{ asset('/assets/public/uglifyjs/js.cookie.js') }}\"></script>
<script src=\"{{ asset('/assets/public/uglifyjs/jquery.cookie.js') }}\"></script>
<script src=\"{{ asset('/assets/public/uglifyjs/bootstrap-select.js') }}\"></script>
<script src=\"{{ asset('/assets/public/uglifyjs/modernizr-2.6.2.min.js') }}\"></script>
<script src=\"{{ asset('/assets/public/uglifyjs/jquery.maskedinput-1.2.2.js') }}\"></script>
<script src=\"{{ asset('/assets/public/uglifyjs/extends.js') }}\"></script>
<script src=\"{{ asset('/assets/public/uglifyjs/bootstrap.min.js') }}\"></script>
<script src=\"{{ asset('/assets/public/uglifyjs/main.js') }}\"></script>
<!--
<script src=\"{{ asset('/assets/public/uglifyjs/jquery-ui.js') }}\"></script>
<script src=\"https://code.jquery.com/ui/1.13.2/jquery-ui.js\"></script>
<script src=\"{{ asset('/assets/public/css/jquery-ui-1.13.2/jquery-ui.js') }}\"></script>
-->
<script src=\"{{ asset('/assets/public/uglifyjs/fix.js') }}\"></script>
<link rel=\"stylesheet\" href=\"/css/scss/normalize.scss\"/>
<link rel=\"stylesheet\" href=\"{{ asset('/css/scss/fa/font-awesome.scss') }}\"/>
<link rel=\"stylesheet\" href=\"{{ asset('/assets/public/css/main.css') }}\"/>
<link rel=\"stylesheet\" href=\"{{ asset('/assets/public/css/added.css') }}\"/>
<link rel=\"stylesheet\" href=\"{{ asset('/assets/public/css/modal.css') }}\"/>
<link rel=\"stylesheet\" href=\"{{ asset('/assets/public/css/jquery-ui-1.13.2/jquery-ui.css') }}\"/>
<link rel=\"stylesheet\" href=\"{{ asset('/assets/public/css/fix.css') }}\"/>
\t <link rel=\"stylesheet\" href=\"{{ asset('/assets/new.css') }}\"/>
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.11/jquery.mask.js\"></script>
{% if pagePath == '/' %}
<script src=\"/js/new.swiper.js\" crossorigin=\"anonymous\"></script>
{% else %}
<script type=\"text/javascript\" src=\"/new/assets/main.js\"></script>
{% endif %}
{% endblock %}
<script src=\"/new2/js/main.js\"></script>
</head>
<body id=\"body\">
<div class=\"main {% if index_page is defined %} index-page {% else %} no_index_page {% endif %}\">
{{ block('header', 'TroikaRealEstateBundle:Default:_header2.html.twig') }}
{% block main %}
{% endblock %}
{{ block('blogs', 'TroikaRealEstateBundle:Default:_blogs2.html.twig') }}
{{ block('footer', 'TroikaRealEstateBundle:Default:_footer2.html.twig') }}
</div>
{{ block('modals', 'TroikaRealEstateBundle:Default:_modals.html.twig') }}
<script src=\"{{ asset('/assets/public/uglifyjs/new/bc19409.js') }}\"></script>
<div class=\"spinner__layout hide\">
<div class=\"spinner\">
<img src=\"/img/loader.gif\" alt=\"Загрузка\">
</div>
</div>
<script src=\"{{ asset('/assets/public/css/jquery-ui-1.13.2.ac/jquery-ui.js') }}\"></script>
{% block goals %}
{# TODO Scheglov Это скрипт фидбэка, что юэер открыл страницу и т.п. Переделать в функцию! #}
{% endblock %}
<!-- START Cookie-Alert -->
<div id=\"cookie_note\">
<p>Мы используем файлы cookies для улучшения работы сайта. Оставаясь на нашем сайте, вы соглашаетесь с условиями
использования файлов cookies. Чтобы ознакомиться с нашими Положениями о конфиденциальности и об использовании
файлов cookie, <a href=\"https://тройка-эстейт.рф/agreement\" target=\"_blank\">нажмите здесь</a>.</p>
<button class=\"button cookie_accept btn btn-primary btn-sm\">Я согласен</button>
</div>
<!-- END Cookie-Alert -->
<script>
function setCookie(name, value, days) {
let expires = \"\";
if (days) {
let date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
expires = \"; expires=\" + date.toUTCString();
}
document.cookie = name + \"=\" + (value || \"\") + expires + \"; path=/\";
}
function getCookie(name) {
let matches = document.cookie.match(new RegExp(\"(?:^|; )\" + name.replace(/([\\.\$?*|{}\\(\\)\\[\\]\\\\\\/\\+^])/g, '\\\\\$1') + \"=([^;]*)\"));
return matches ? decodeURIComponent(matches[1]) : undefined;
}
function checkCookies() {
let cookieNote = document.getElementById('cookie_note');
let cookieBtnAccept = cookieNote.querySelector('.cookie_accept');
// Если куки cookies_policy нет или она просрочена, то показываем уведомление
if (!getCookie('cookies_policy')) {
cookieNote.classList.add('show');
}
// При клике на кнопку устанавливаем куку cookies_policy на один год
cookieBtnAccept.addEventListener('click', function () {
setCookie('cookies_policy', 'true', 365);
cookieNote.classList.remove('show');
});
}
checkCookies();
</script>
</body>
</html>
", "TroikaRealEstateBundle:Default:layout.html.twig", "/home/troikaestate/public_html/src/Troika/RealEstateBundle/Resources/views/Default/layout.html.twig");
}
}