<?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:About:news_item.html.twig */
class __TwigTemplate_86d331077dc7ce8fb1e564f4580c6d17215efd09d1d044f8e110032f62a32391 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'description' => [$this, 'block_description'],
'keywords' => [$this, 'block_keywords'],
'ogTitle' => [$this, 'block_ogTitle'],
'ogImg' => [$this, 'block_ogImg'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "TroikaRealEstateBundle:Default:layout.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", "TroikaRealEstateBundle:About:news_item.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:About:news_item.html.twig"));
$this->parent = $this->loadTemplate("TroikaRealEstateBundle:Default:layout.html.twig", "TroikaRealEstateBundle:About:news_item.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 4
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["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 4, $this->source); })()), "metaTitle", [], "any", false, false, false, 4), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
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["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 5, $this->source); })()), "metaDescription", [], "any", false, false, false, 5), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 6
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["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 6, $this->source); })()), "metaKeywords", [], "any", false, false, false, 6), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 8
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 twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 8, $this->source); })()), "name", [], "any", false, false, false, 8), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 9
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"));
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 9, $this->source); })()), "photos", [], "any", false, false, false, 9));
foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
// line 10
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["photo"], "main", [], "any", false, false, false, 10)) {
// line 11
echo " https://troikaestate.ru/cache";
echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, $context["photo"], "webPathImage", [], "any", false, false, false, 11), ["." => "_720x496."]), "html", null, true);
echo "
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 15
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 16
echo " <div id=\"content\" class=\"content\">
<div class=\"wrapper news\">
<ul class=\"hb hide__phone hide__tablet hbtmfix\">
<li><a href=\"/\">Элитная недвижимость</a></li>
<li><a href=\"/news\">Блог</a></li>
<li class=\"current\">";
// line 21
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 21, $this->source); })()), "name", [], "any", false, false, false, 21), "html", null, true);
echo "</li>
</ul>
<div id=\"layout\" class=\"layout\">
<div class=\"layout-column-left\">
<div id=\"btn-delivery\" class=\"btn btn-orange btn__block\" style=\"margin-bottom: 12px\">подписаться</div>
<div class=\"panel panel__white panel__list hide__phone hide__tablet\">
<ul class=\"list__clean fontOpenSans lh24\">
<li><a href=\"/news/2019/\" class=\"link link__underlined\">2019 год</a></li>
<li><a href=\"/news/2020/\" class=\"link link__underlined\">2020 год</a></li>
</ul>
</div>
<div class=\"block hide__phone hide__tablet\">
";
// line 33
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("TroikaRealEstateBundle:Banner:getBanner", ["banner" => 3]));
echo "
</div>
</div>
<div class=\"layout-column-right\">
<div class=\"block block-select hide__desktop\" style=\"margin-left: -2px\">
<select name=\"\" id=\"news-select\">
<option value=\"2019\" ";
// line 39
if (((twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 39, $this->source); })()), "date", [], "any", false, false, false, 39) > "2019.01.01") && (twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 39, $this->source); })()), "date", [], "any", false, false, false, 39) < "2020.01.01"))) {
echo "selected";
}
echo ">
2019
год
</option>
<option value=\"2020\" ";
// line 43
if ((twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 43, $this->source); })()), "date", [], "any", false, false, false, 43) > "2020.01.01")) {
echo "selected";
}
echo " >2020 год</option>
</select>
</div>
<div class=\"cards cards__list cards__list__news\">
<h1>";
// line 47
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 47, $this->source); })()), "name", [], "any", false, false, false, 47), "html", null, true);
echo "</h1>
";
// line 49
echo twig_get_attribute($this->env, $this->source, (isset($context["news"]) || array_key_exists("news", $context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.', 49, $this->source); })()), "text", [], "any", false, false, false, 49);
echo "
</div>
</div>
<div class=\"news_list_in_item\">
<ul>
";
// line 56
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["links"]) || array_key_exists("links", $context) ? $context["links"] : (function () { throw new RuntimeError('Variable "links" does not exist.', 56, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["link"]) {
// line 57
echo " <li>
<a href=\"/news/item/";
// line 58
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["link"], "id", [], "any", false, false, false, 58), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["link"], "name", [], "any", false, false, false, 58), "html", null, true);
echo "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['link'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 61
echo " </ul>
</div>
</div>
</div>
</div>
<div class=\"modal fade\" id=\"deliveryNews\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h4 class=\"modal-title\" style=\"font-size: 18px; font-weight: 100;\">подписаться на аналитику</h4>
</div>
<div class=\"modal-body\">
<div id=\"newsModalError\" class=\"panel-container error-content ModalError\">
<p></p>
</div>
<div class=\"panel-container__left\">
<div class=\"panel-container modal-panel\">
<input type=\"text\" class=\"control control__icon-before\" placeholder=\"Имя\" id=\"dName\">
<i class=\"fa fa__control fa-user pull-left gray-dark\"></i>
</div>
<div class=\"panel-container modal-panel\">
<input type=\"text\" class=\"control control__icon-before\" placeholder=\"Компания\" id=\"dCompany\">
<i class=\"fa fa__control fa-home pull-left gray-dark\"></i>
</div>
<div class=\"panel-container modal-panel\">
<input type=\"text\" class=\"control control__icon-before\" placeholder=\"E-mail\" id=\"dMail\">
<i class=\"fa fa__control fa-envelope pull-left gray-dark\"></i>
</div>
</div>
</div>
<div class=\"modal-footer\">
<div class=\"btn\" id=\"btn-ok\" style=\"width: 280px;\">подписаться</div>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<style>
.cards.cards__list.cards__list__news h1 img,
.cards.cards__list.cards__list__news p img {
width: 100%;
height: auto;
}
.cards__list__news p, .cards__list__news li {
font-family: \"Open Sans\", Arial, sans-serif;
font-size: 14px;
line-height: 21px;
color: #171717;
margin-bottom: 5px;
}
.cards.cards__list.cards__list__news h1, .cards.cards__list.cards__list__news h2, .cards.cards__list.cards__list__news h3, .cards.cards__list.cards__list__news h4, .cards.cards__list.cards__list__news h5 {
font-family: Open Sans, sans-serif;
color: rgb(57, 57, 57);
font-weight: 600;
margin-bottom: 10px;
}
.news .cards.cards__list.cards__list__news > h5 {
font-size: 14px;
}
.news .cards.cards__list.cards__list__news > h4 {
font-size: 15px;
}
.news .cards.cards__list.cards__list__news > h3 {
font-size: 16px !important;
}
.news .cards.cards__list.cards__list__news > h2 {
font-size: 18px;
}
.news .cards.cards__list.cards__list__news > h1 {
font-size: 20px;
}
@media (min-width: 700px) {
.cards.cards__list.cards__list__news {
width: 70%;
}
div#layout {
position: relative;
}
.news_list_in_item {
position: absolute;
top: 85px;
right: 0px;
width: 27%;
border: solid #e5e0db 1px;
border-radius: 2px;
padding: 11px;
font-size: 13px;
}
.news_list_in_item li {
margin-bottom: 8px;
line-height: 16px;
}
.news_list_in_item a {
color: #393939;
text-decoration: underline;
}
}
.cards.cards__list.cards__list__news li {
list-style: circle;
margin-left: 16px;
}
@media (max-width: 700px) {
.news_list_in_item {
display: none;
}
}
</style>
<script>
\$('#btn-delivery').on('click', function () {
\$('#deliveryNews').modal();
\$('#deliveryNews h4.modal-title').text('подписаться на новости');
\$('#btn-ok').on('click', function () {
\$('.error').each(function () {
\$(this).removeClass('error');
});
errorText = '';
error = 0;
if (\$.trim(\$('#dName').val()) == '') {
error = 1;
errorText += 'Не заполнено поле \"Имя\" \\n';
\$('#dName').addClass('error');
}
if (\$.trim(\$('#dCompany').val()) == '') {
error = 1;
errorText += 'Не заполнено поле \"Компания\" \\n';
\$('#dCompany').addClass('error');
}
if (!isValidMail(\$('#dMail').val())) {
error = 1;
errorText += 'Не заполнено поле \"E-mail\" \\n';
\$('#dMail').addClass('error');
}
console.log(errorText);
if (error != 1) {
\$('#newsModalError').html('');
\$('#newsModalError').hide();
\$.ajax({
url: '/api/newsClient',
type: 'POST',
data: {
name: \$('#dName').val(),
company: \$('#dCompany').val(),
mail: \$('#dMail').val()
}
}).done(function () {
\$('#deliveryNews').modal('hide');
\$('#questionSuccessModal').modal();
\$('#questionSuccessModal h4.modal-title').text('подписаться на новости');
\$('#questionSuccessModal .modal-body').text('Спасибо!');
\$('#quest-close').click(function () {
\$('#questionSuccessModal').modal('hide');
});
});
} else {
\$('#newsModalError').html(errorText);
\$('#newsModalError').html(\$('#newsModalError').html().replace(/\\n/g, '<br/>'));
\$('#newsModalError').show();
}
});
});
</script>
<script src=\"/js/lightbox.min.js\"></script>
<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/lightbox.css\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "TroikaRealEstateBundle:About:news_item.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 265 => 61, 254 => 58, 251 => 57, 247 => 56, 237 => 49, 232 => 47, 223 => 43, 214 => 39, 205 => 33, 190 => 21, 183 => 16, 173 => 15, 155 => 11, 152 => 10, 139 => 9, 120 => 8, 101 => 6, 82 => 5, 63 => 4, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'TroikaRealEstateBundle:Default:layout.html.twig' %}
{% block title %}{{ news.metaTitle }}{% endblock %}
{% block description %}{{ news.metaDescription }}{% endblock %}
{% block keywords %}{{ news.metaKeywords }}{% endblock %}
{% block ogTitle %}{{ news.name }}{% endblock %}
{% block ogImg %}{% for photo in news.photos %}
{% if photo.main %}
https://troikaestate.ru/cache{{ photo.webPathImage|replace({\".\" : \"_720x496.\"}) }}
{% endif %}
{% endfor %}{% endblock %}
{% block main %}
<div id=\"content\" class=\"content\">
<div class=\"wrapper news\">
<ul class=\"hb hide__phone hide__tablet hbtmfix\">
<li><a href=\"/\">Элитная недвижимость</a></li>
<li><a href=\"/news\">Блог</a></li>
<li class=\"current\">{{ news.name }}</li>
</ul>
<div id=\"layout\" class=\"layout\">
<div class=\"layout-column-left\">
<div id=\"btn-delivery\" class=\"btn btn-orange btn__block\" style=\"margin-bottom: 12px\">подписаться</div>
<div class=\"panel panel__white panel__list hide__phone hide__tablet\">
<ul class=\"list__clean fontOpenSans lh24\">
<li><a href=\"/news/2019/\" class=\"link link__underlined\">2019 год</a></li>
<li><a href=\"/news/2020/\" class=\"link link__underlined\">2020 год</a></li>
</ul>
</div>
<div class=\"block hide__phone hide__tablet\">
{{ render(controller('TroikaRealEstateBundle:Banner:getBanner', { 'banner': 3 })) }}
</div>
</div>
<div class=\"layout-column-right\">
<div class=\"block block-select hide__desktop\" style=\"margin-left: -2px\">
<select name=\"\" id=\"news-select\">
<option value=\"2019\" {% if (news.date > \"2019.01.01\" and news.date < \"2020.01.01\") %}selected{% endif %}>
2019
год
</option>
<option value=\"2020\" {% if (news.date > \"2020.01.01\") %}selected{% endif %} >2020 год</option>
</select>
</div>
<div class=\"cards cards__list cards__list__news\">
<h1>{{ news.name }}</h1>
{{ news.text|raw }}
</div>
</div>
<div class=\"news_list_in_item\">
<ul>
{% for link in links %}
<li>
<a href=\"/news/item/{{ link.id }}\">{{ link.name }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
<div class=\"modal fade\" id=\"deliveryNews\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h4 class=\"modal-title\" style=\"font-size: 18px; font-weight: 100;\">подписаться на аналитику</h4>
</div>
<div class=\"modal-body\">
<div id=\"newsModalError\" class=\"panel-container error-content ModalError\">
<p></p>
</div>
<div class=\"panel-container__left\">
<div class=\"panel-container modal-panel\">
<input type=\"text\" class=\"control control__icon-before\" placeholder=\"Имя\" id=\"dName\">
<i class=\"fa fa__control fa-user pull-left gray-dark\"></i>
</div>
<div class=\"panel-container modal-panel\">
<input type=\"text\" class=\"control control__icon-before\" placeholder=\"Компания\" id=\"dCompany\">
<i class=\"fa fa__control fa-home pull-left gray-dark\"></i>
</div>
<div class=\"panel-container modal-panel\">
<input type=\"text\" class=\"control control__icon-before\" placeholder=\"E-mail\" id=\"dMail\">
<i class=\"fa fa__control fa-envelope pull-left gray-dark\"></i>
</div>
</div>
</div>
<div class=\"modal-footer\">
<div class=\"btn\" id=\"btn-ok\" style=\"width: 280px;\">подписаться</div>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<style>
.cards.cards__list.cards__list__news h1 img,
.cards.cards__list.cards__list__news p img {
width: 100%;
height: auto;
}
.cards__list__news p, .cards__list__news li {
font-family: \"Open Sans\", Arial, sans-serif;
font-size: 14px;
line-height: 21px;
color: #171717;
margin-bottom: 5px;
}
.cards.cards__list.cards__list__news h1, .cards.cards__list.cards__list__news h2, .cards.cards__list.cards__list__news h3, .cards.cards__list.cards__list__news h4, .cards.cards__list.cards__list__news h5 {
font-family: Open Sans, sans-serif;
color: rgb(57, 57, 57);
font-weight: 600;
margin-bottom: 10px;
}
.news .cards.cards__list.cards__list__news > h5 {
font-size: 14px;
}
.news .cards.cards__list.cards__list__news > h4 {
font-size: 15px;
}
.news .cards.cards__list.cards__list__news > h3 {
font-size: 16px !important;
}
.news .cards.cards__list.cards__list__news > h2 {
font-size: 18px;
}
.news .cards.cards__list.cards__list__news > h1 {
font-size: 20px;
}
@media (min-width: 700px) {
.cards.cards__list.cards__list__news {
width: 70%;
}
div#layout {
position: relative;
}
.news_list_in_item {
position: absolute;
top: 85px;
right: 0px;
width: 27%;
border: solid #e5e0db 1px;
border-radius: 2px;
padding: 11px;
font-size: 13px;
}
.news_list_in_item li {
margin-bottom: 8px;
line-height: 16px;
}
.news_list_in_item a {
color: #393939;
text-decoration: underline;
}
}
.cards.cards__list.cards__list__news li {
list-style: circle;
margin-left: 16px;
}
@media (max-width: 700px) {
.news_list_in_item {
display: none;
}
}
</style>
<script>
\$('#btn-delivery').on('click', function () {
\$('#deliveryNews').modal();
\$('#deliveryNews h4.modal-title').text('подписаться на новости');
\$('#btn-ok').on('click', function () {
\$('.error').each(function () {
\$(this).removeClass('error');
});
errorText = '';
error = 0;
if (\$.trim(\$('#dName').val()) == '') {
error = 1;
errorText += 'Не заполнено поле \"Имя\" \\n';
\$('#dName').addClass('error');
}
if (\$.trim(\$('#dCompany').val()) == '') {
error = 1;
errorText += 'Не заполнено поле \"Компания\" \\n';
\$('#dCompany').addClass('error');
}
if (!isValidMail(\$('#dMail').val())) {
error = 1;
errorText += 'Не заполнено поле \"E-mail\" \\n';
\$('#dMail').addClass('error');
}
console.log(errorText);
if (error != 1) {
\$('#newsModalError').html('');
\$('#newsModalError').hide();
\$.ajax({
url: '/api/newsClient',
type: 'POST',
data: {
name: \$('#dName').val(),
company: \$('#dCompany').val(),
mail: \$('#dMail').val()
}
}).done(function () {
\$('#deliveryNews').modal('hide');
\$('#questionSuccessModal').modal();
\$('#questionSuccessModal h4.modal-title').text('подписаться на новости');
\$('#questionSuccessModal .modal-body').text('Спасибо!');
\$('#quest-close').click(function () {
\$('#questionSuccessModal').modal('hide');
});
});
} else {
\$('#newsModalError').html(errorText);
\$('#newsModalError').html(\$('#newsModalError').html().replace(/\\n/g, '<br/>'));
\$('#newsModalError').show();
}
});
});
</script>
<script src=\"/js/lightbox.min.js\"></script>
<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/lightbox.css\">
{% endblock %}", "TroikaRealEstateBundle:About:news_item.html.twig", "/home/troikaestate/public_html/src/Troika/RealEstateBundle/Resources/views/About/news_item.html.twig");
}
}