var/cache/dev/twig/db/dbd45425926edd0038fad456826b7fe85b68267251d524a7e3b96accb04d3db9.php line 53

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* TroikaRealEstateBundle:About:news_item.html.twig */
  14. class __TwigTemplate_86d331077dc7ce8fb1e564f4580c6d17215efd09d1d044f8e110032f62a32391 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'description' => [$this'block_description'],
  25.             'keywords' => [$this'block_keywords'],
  26.             'ogTitle' => [$this'block_ogTitle'],
  27.             'ogImg' => [$this'block_ogImg'],
  28.             'main' => [$this'block_main'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "TroikaRealEstateBundle:Default:layout.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""TroikaRealEstateBundle:About:news_item.html.twig"));
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""TroikaRealEstateBundle:About:news_item.html.twig"));
  43.         $this->parent $this->loadTemplate("TroikaRealEstateBundle:Default:layout.html.twig""TroikaRealEstateBundle:About:news_item.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 4
  51.     public function block_title($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  58.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse4), "html"nulltrue);
  59.         
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  61.         
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  63.     }
  64.     // line 5
  65.     public function block_description($context, array $blocks = [])
  66.     {
  67.         $macros $this->macros;
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  72.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse5), "html"nulltrue);
  73.         
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  75.         
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  77.     }
  78.     // line 6
  79.     public function block_keywords($context, array $blocks = [])
  80.     {
  81.         $macros $this->macros;
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""keywords"));
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""keywords"));
  86.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse6), "html"nulltrue);
  87.         
  88.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  89.         
  90.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  91.     }
  92.     // line 8
  93.     public function block_ogTitle($context, array $blocks = [])
  94.     {
  95.         $macros $this->macros;
  96.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  97.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogTitle"));
  98.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  99.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogTitle"));
  100.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse8), "html"nulltrue);
  101.         
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  103.         
  104.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  105.     }
  106.     // line 9
  107.     public function block_ogImg($context, array $blocks = [])
  108.     {
  109.         $macros $this->macros;
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  111.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogImg"));
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogImg"));
  114.         $context['_parent'] = $context;
  115.         $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"falsefalsefalse9));
  116.         foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
  117.             // line 10
  118.             echo "  ";
  119.             if (twig_get_attribute($this->env$this->source$context["photo"], "main", [], "any"falsefalsefalse10)) {
  120.                 // line 11
  121.                 echo "    https://troikaestate.ru/cache";
  122.                 echo twig_escape_filter($this->envtwig_replace_filter(twig_get_attribute($this->env$this->source$context["photo"], "webPathImage", [], "any"falsefalsefalse11), ["." => "_720x496."]), "html"nulltrue);
  123.                 echo "
  124.   ";
  125.             }
  126.         }
  127.         $_parent $context['_parent'];
  128.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
  129.         $context array_intersect_key($context$_parent) + $_parent;
  130.         
  131.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  132.         
  133.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  134.     }
  135.     // line 15
  136.     public function block_main($context, array $blocks = [])
  137.     {
  138.         $macros $this->macros;
  139.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  140.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  141.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  142.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  143.         // line 16
  144.         echo "  <div id=\"content\" class=\"content\">
  145.     <div class=\"wrapper news\">
  146.       <ul class=\"hb hide__phone hide__tablet hbtmfix\">
  147.         <li><a href=\"/\">Элитная недвижимость</a></li>
  148.         <li><a href=\"/news\">Блог</a></li>
  149.         <li class=\"current\">";
  150.         // line 21
  151.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse21), "html"nulltrue);
  152.         echo "</li>
  153.       </ul>
  154.       <div id=\"layout\" class=\"layout\">
  155.         <div class=\"layout-column-left\">
  156.           <div id=\"btn-delivery\" class=\"btn btn-orange btn__block\" style=\"margin-bottom: 12px\">подписаться</div>
  157.           <div class=\"panel panel__white panel__list hide__phone hide__tablet\">
  158.             <ul class=\"list__clean fontOpenSans lh24\">
  159.               <li><a href=\"/news/2019/\" class=\"link link__underlined\">2019 год</a></li>
  160.               <li><a href=\"/news/2020/\" class=\"link link__underlined\">2020 год</a></li>
  161.             </ul>
  162.           </div>
  163.           <div class=\"block hide__phone hide__tablet\">
  164.             ";
  165.         // line 33
  166.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("TroikaRealEstateBundle:Banner:getBanner", ["banner" => 3]));
  167.         echo "
  168.           </div>
  169.         </div>
  170.         <div class=\"layout-column-right\">
  171.           <div class=\"block block-select hide__desktop\" style=\"margin-left: -2px\">
  172.             <select name=\"\" id=\"news-select\">
  173.               <option value=\"2019\" ";
  174.         // line 39
  175.         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"falsefalsefalse39) > "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"falsefalsefalse39) < "2020.01.01"))) {
  176.             echo "selected";
  177.         }
  178.         echo ">
  179.                 2019
  180.                 год
  181.               </option>
  182.               <option value=\"2020\" ";
  183.         // line 43
  184.         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"falsefalsefalse43) > "2020.01.01")) {
  185.             echo "selected";
  186.         }
  187.         echo " >2020 год</option>
  188.             </select>
  189.           </div>
  190.           <div class=\"cards cards__list cards__list__news\">
  191.             <h1>";
  192.         // line 47
  193.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse47), "html"nulltrue);
  194.         echo "</h1>
  195.             ";
  196.         // line 49
  197.         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"falsefalsefalse49);
  198.         echo "
  199.           </div>
  200.         </div>
  201.         <div class=\"news_list_in_item\">
  202.           <ul>
  203.             ";
  204.         // line 56
  205.         $context['_parent'] = $context;
  206.         $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); })()));
  207.         foreach ($context['_seq'] as $context["_key"] => $context["link"]) {
  208.             // line 57
  209.             echo "              <li>
  210.                 <a href=\"/news/item/";
  211.             // line 58
  212.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["link"], "id", [], "any"falsefalsefalse58), "html"nulltrue);
  213.             echo "\">";
  214.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["link"], "name", [], "any"falsefalsefalse58), "html"nulltrue);
  215.             echo "</a>
  216.               </li>
  217.             ";
  218.         }
  219.         $_parent $context['_parent'];
  220.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['link'], $context['_parent'], $context['loop']);
  221.         $context array_intersect_key($context$_parent) + $_parent;
  222.         // line 61
  223.         echo "          </ul>
  224.         </div>
  225.       </div>
  226.     </div>
  227.   </div>
  228.   <div class=\"modal fade\" id=\"deliveryNews\">
  229.     <div class=\"modal-dialog\">
  230.       <div class=\"modal-content\">
  231.         <div class=\"modal-header\">
  232.           <h4 class=\"modal-title\" style=\"font-size: 18px; font-weight: 100;\">подписаться на аналитику</h4>
  233.         </div>
  234.         <div class=\"modal-body\">
  235.           <div id=\"newsModalError\" class=\"panel-container error-content ModalError\">
  236.             <p></p>
  237.           </div>
  238.           <div class=\"panel-container__left\">
  239.             <div class=\"panel-container modal-panel\">
  240.               <input type=\"text\" class=\"control control__icon-before\" placeholder=\"Имя\" id=\"dName\">
  241.               <i class=\"fa fa__control fa-user pull-left gray-dark\"></i>
  242.             </div>
  243.             <div class=\"panel-container modal-panel\">
  244.               <input type=\"text\" class=\"control control__icon-before\" placeholder=\"Компания\" id=\"dCompany\">
  245.               <i class=\"fa fa__control fa-home pull-left gray-dark\"></i>
  246.             </div>
  247.             <div class=\"panel-container modal-panel\">
  248.               <input type=\"text\" class=\"control control__icon-before\" placeholder=\"E-mail\" id=\"dMail\">
  249.               <i class=\"fa fa__control fa-envelope pull-left gray-dark\"></i>
  250.             </div>
  251.           </div>
  252.         </div>
  253.         <div class=\"modal-footer\">
  254.           <div class=\"btn\" id=\"btn-ok\" style=\"width: 280px;\">подписаться</div>
  255.         </div>
  256.       </div><!-- /.modal-content -->
  257.     </div><!-- /.modal-dialog -->
  258.   </div><!-- /.modal -->
  259.   <style>
  260.     .cards.cards__list.cards__list__news h1 img,
  261.     .cards.cards__list.cards__list__news p img {
  262.       width: 100%;
  263.       height: auto;
  264.     }
  265.     .cards__list__news p, .cards__list__news li {
  266.       font-family: \"Open Sans\", Arial, sans-serif;
  267.       font-size: 14px;
  268.       line-height: 21px;
  269.       color: #171717;
  270.       margin-bottom: 5px;
  271.     }
  272.     .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 {
  273.       font-family: Open Sans, sans-serif;
  274.       color: rgb(57, 57, 57);
  275.       font-weight: 600;
  276.       margin-bottom: 10px;
  277.     }
  278.     .news .cards.cards__list.cards__list__news > h5 {
  279.       font-size: 14px;
  280.     }
  281.     .news .cards.cards__list.cards__list__news > h4 {
  282.       font-size: 15px;
  283.     }
  284.     .news .cards.cards__list.cards__list__news > h3 {
  285.       font-size: 16px !important;
  286.     }
  287.     .news .cards.cards__list.cards__list__news > h2 {
  288.       font-size: 18px;
  289.     }
  290.     .news .cards.cards__list.cards__list__news > h1 {
  291.       font-size: 20px;
  292.     }
  293.     @media (min-width: 700px) {
  294.       .cards.cards__list.cards__list__news {
  295.         width: 70%;
  296.       }
  297.       div#layout {
  298.         position: relative;
  299.       }
  300.       .news_list_in_item {
  301.         position: absolute;
  302.         top: 85px;
  303.         right: 0px;
  304.         width: 27%;
  305.         border: solid #e5e0db 1px;
  306.         border-radius: 2px;
  307.         padding: 11px;
  308.         font-size: 13px;
  309.       }
  310.       .news_list_in_item li {
  311.         margin-bottom: 8px;
  312.         line-height: 16px;
  313.       }
  314.       .news_list_in_item a {
  315.         color: #393939;
  316.         text-decoration: underline;
  317.       }
  318.     }
  319.     .cards.cards__list.cards__list__news li {
  320.       list-style: circle;
  321.       margin-left: 16px;
  322.     }
  323.     @media (max-width: 700px) {
  324.       .news_list_in_item {
  325.         display: none;
  326.       }
  327.     }
  328.   </style>
  329.   <script>
  330.       \$('#btn-delivery').on('click', function () {
  331.           \$('#deliveryNews').modal();
  332.           \$('#deliveryNews h4.modal-title').text('подписаться на новости');
  333.           \$('#btn-ok').on('click', function () {
  334.               \$('.error').each(function () {
  335.                   \$(this).removeClass('error');
  336.               });
  337.               errorText = '';
  338.               error = 0;
  339.               if (\$.trim(\$('#dName').val()) == '') {
  340.                   error = 1;
  341.                   errorText += 'Не заполнено поле \"Имя\" \\n';
  342.                   \$('#dName').addClass('error');
  343.               }
  344.               if (\$.trim(\$('#dCompany').val()) == '') {
  345.                   error = 1;
  346.                   errorText += 'Не заполнено поле \"Компания\" \\n';
  347.                   \$('#dCompany').addClass('error');
  348.               }
  349.               if (!isValidMail(\$('#dMail').val())) {
  350.                   error = 1;
  351.                   errorText += 'Не заполнено поле \"E-mail\" \\n';
  352.                   \$('#dMail').addClass('error');
  353.               }
  354.               console.log(errorText);
  355.               if (error != 1) {
  356.                   \$('#newsModalError').html('');
  357.                   \$('#newsModalError').hide();
  358.                   \$.ajax({
  359.                       url: '/api/newsClient',
  360.                       type: 'POST',
  361.                       data: {
  362.                           name: \$('#dName').val(),
  363.                           company: \$('#dCompany').val(),
  364.                           mail: \$('#dMail').val()
  365.                       }
  366.                   }).done(function () {
  367.                       \$('#deliveryNews').modal('hide');
  368.                       \$('#questionSuccessModal').modal();
  369.                       \$('#questionSuccessModal h4.modal-title').text('подписаться на новости');
  370.                       \$('#questionSuccessModal .modal-body').text('Спасибо!');
  371.                       \$('#quest-close').click(function () {
  372.                           \$('#questionSuccessModal').modal('hide');
  373.                       });
  374.                   });
  375.               } else {
  376.                   \$('#newsModalError').html(errorText);
  377.                   \$('#newsModalError').html(\$('#newsModalError').html().replace(/\\n/g, '<br/>'));
  378.                   \$('#newsModalError').show();
  379.               }
  380.           });
  381.       });
  382.   </script>
  383.   <script src=\"/js/lightbox.min.js\"></script>
  384.   <link rel=\"stylesheet\" type=\"text/css\" href=\"/css/lightbox.css\">
  385. ";
  386.         
  387.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  388.         
  389.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  390.     }
  391.     public function getTemplateName()
  392.     {
  393.         return "TroikaRealEstateBundle:About:news_item.html.twig";
  394.     }
  395.     public function isTraitable()
  396.     {
  397.         return false;
  398.     }
  399.     public function getDebugInfo()
  400.     {
  401.         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,);
  402.     }
  403.     public function getSourceContext()
  404.     {
  405.         return new Source("{% extends 'TroikaRealEstateBundle:Default:layout.html.twig' %}
  406. {% block title %}{{ news.metaTitle }}{% endblock %}
  407. {% block description %}{{ news.metaDescription }}{% endblock %}
  408. {% block keywords %}{{ news.metaKeywords }}{% endblock %}
  409. {% block ogTitle %}{{ news.name }}{% endblock %}
  410. {% block ogImg %}{% for photo in news.photos %}
  411.   {% if photo.main %}
  412.     https://troikaestate.ru/cache{{ photo.webPathImage|replace({\".\" : \"_720x496.\"}) }}
  413.   {% endif %}
  414. {% endfor %}{% endblock %}
  415. {% block main %}
  416.   <div id=\"content\" class=\"content\">
  417.     <div class=\"wrapper news\">
  418.       <ul class=\"hb hide__phone hide__tablet hbtmfix\">
  419.         <li><a href=\"/\">Элитная недвижимость</a></li>
  420.         <li><a href=\"/news\">Блог</a></li>
  421.         <li class=\"current\">{{ news.name }}</li>
  422.       </ul>
  423.       <div id=\"layout\" class=\"layout\">
  424.         <div class=\"layout-column-left\">
  425.           <div id=\"btn-delivery\" class=\"btn btn-orange btn__block\" style=\"margin-bottom: 12px\">подписаться</div>
  426.           <div class=\"panel panel__white panel__list hide__phone hide__tablet\">
  427.             <ul class=\"list__clean fontOpenSans lh24\">
  428.               <li><a href=\"/news/2019/\" class=\"link link__underlined\">2019 год</a></li>
  429.               <li><a href=\"/news/2020/\" class=\"link link__underlined\">2020 год</a></li>
  430.             </ul>
  431.           </div>
  432.           <div class=\"block hide__phone hide__tablet\">
  433.             {{ render(controller('TroikaRealEstateBundle:Banner:getBanner', { 'banner': 3 })) }}
  434.           </div>
  435.         </div>
  436.         <div class=\"layout-column-right\">
  437.           <div class=\"block block-select hide__desktop\" style=\"margin-left: -2px\">
  438.             <select name=\"\" id=\"news-select\">
  439.               <option value=\"2019\" {% if (news.date > \"2019.01.01\" and news.date < \"2020.01.01\") %}selected{% endif %}>
  440.                 2019
  441.                 год
  442.               </option>
  443.               <option value=\"2020\" {% if (news.date > \"2020.01.01\") %}selected{% endif %} >2020 год</option>
  444.             </select>
  445.           </div>
  446.           <div class=\"cards cards__list cards__list__news\">
  447.             <h1>{{ news.name }}</h1>
  448.             {{ news.text|raw }}
  449.           </div>
  450.         </div>
  451.         <div class=\"news_list_in_item\">
  452.           <ul>
  453.             {% for link in links %}
  454.               <li>
  455.                 <a href=\"/news/item/{{ link.id }}\">{{ link.name }}</a>
  456.               </li>
  457.             {% endfor %}
  458.           </ul>
  459.         </div>
  460.       </div>
  461.     </div>
  462.   </div>
  463.   <div class=\"modal fade\" id=\"deliveryNews\">
  464.     <div class=\"modal-dialog\">
  465.       <div class=\"modal-content\">
  466.         <div class=\"modal-header\">
  467.           <h4 class=\"modal-title\" style=\"font-size: 18px; font-weight: 100;\">подписаться на аналитику</h4>
  468.         </div>
  469.         <div class=\"modal-body\">
  470.           <div id=\"newsModalError\" class=\"panel-container error-content ModalError\">
  471.             <p></p>
  472.           </div>
  473.           <div class=\"panel-container__left\">
  474.             <div class=\"panel-container modal-panel\">
  475.               <input type=\"text\" class=\"control control__icon-before\" placeholder=\"Имя\" id=\"dName\">
  476.               <i class=\"fa fa__control fa-user pull-left gray-dark\"></i>
  477.             </div>
  478.             <div class=\"panel-container modal-panel\">
  479.               <input type=\"text\" class=\"control control__icon-before\" placeholder=\"Компания\" id=\"dCompany\">
  480.               <i class=\"fa fa__control fa-home pull-left gray-dark\"></i>
  481.             </div>
  482.             <div class=\"panel-container modal-panel\">
  483.               <input type=\"text\" class=\"control control__icon-before\" placeholder=\"E-mail\" id=\"dMail\">
  484.               <i class=\"fa fa__control fa-envelope pull-left gray-dark\"></i>
  485.             </div>
  486.           </div>
  487.         </div>
  488.         <div class=\"modal-footer\">
  489.           <div class=\"btn\" id=\"btn-ok\" style=\"width: 280px;\">подписаться</div>
  490.         </div>
  491.       </div><!-- /.modal-content -->
  492.     </div><!-- /.modal-dialog -->
  493.   </div><!-- /.modal -->
  494.   <style>
  495.     .cards.cards__list.cards__list__news h1 img,
  496.     .cards.cards__list.cards__list__news p img {
  497.       width: 100%;
  498.       height: auto;
  499.     }
  500.     .cards__list__news p, .cards__list__news li {
  501.       font-family: \"Open Sans\", Arial, sans-serif;
  502.       font-size: 14px;
  503.       line-height: 21px;
  504.       color: #171717;
  505.       margin-bottom: 5px;
  506.     }
  507.     .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 {
  508.       font-family: Open Sans, sans-serif;
  509.       color: rgb(57, 57, 57);
  510.       font-weight: 600;
  511.       margin-bottom: 10px;
  512.     }
  513.     .news .cards.cards__list.cards__list__news > h5 {
  514.       font-size: 14px;
  515.     }
  516.     .news .cards.cards__list.cards__list__news > h4 {
  517.       font-size: 15px;
  518.     }
  519.     .news .cards.cards__list.cards__list__news > h3 {
  520.       font-size: 16px !important;
  521.     }
  522.     .news .cards.cards__list.cards__list__news > h2 {
  523.       font-size: 18px;
  524.     }
  525.     .news .cards.cards__list.cards__list__news > h1 {
  526.       font-size: 20px;
  527.     }
  528.     @media (min-width: 700px) {
  529.       .cards.cards__list.cards__list__news {
  530.         width: 70%;
  531.       }
  532.       div#layout {
  533.         position: relative;
  534.       }
  535.       .news_list_in_item {
  536.         position: absolute;
  537.         top: 85px;
  538.         right: 0px;
  539.         width: 27%;
  540.         border: solid #e5e0db 1px;
  541.         border-radius: 2px;
  542.         padding: 11px;
  543.         font-size: 13px;
  544.       }
  545.       .news_list_in_item li {
  546.         margin-bottom: 8px;
  547.         line-height: 16px;
  548.       }
  549.       .news_list_in_item a {
  550.         color: #393939;
  551.         text-decoration: underline;
  552.       }
  553.     }
  554.     .cards.cards__list.cards__list__news li {
  555.       list-style: circle;
  556.       margin-left: 16px;
  557.     }
  558.     @media (max-width: 700px) {
  559.       .news_list_in_item {
  560.         display: none;
  561.       }
  562.     }
  563.   </style>
  564.   <script>
  565.       \$('#btn-delivery').on('click', function () {
  566.           \$('#deliveryNews').modal();
  567.           \$('#deliveryNews h4.modal-title').text('подписаться на новости');
  568.           \$('#btn-ok').on('click', function () {
  569.               \$('.error').each(function () {
  570.                   \$(this).removeClass('error');
  571.               });
  572.               errorText = '';
  573.               error = 0;
  574.               if (\$.trim(\$('#dName').val()) == '') {
  575.                   error = 1;
  576.                   errorText += 'Не заполнено поле \"Имя\" \\n';
  577.                   \$('#dName').addClass('error');
  578.               }
  579.               if (\$.trim(\$('#dCompany').val()) == '') {
  580.                   error = 1;
  581.                   errorText += 'Не заполнено поле \"Компания\" \\n';
  582.                   \$('#dCompany').addClass('error');
  583.               }
  584.               if (!isValidMail(\$('#dMail').val())) {
  585.                   error = 1;
  586.                   errorText += 'Не заполнено поле \"E-mail\" \\n';
  587.                   \$('#dMail').addClass('error');
  588.               }
  589.               console.log(errorText);
  590.               if (error != 1) {
  591.                   \$('#newsModalError').html('');
  592.                   \$('#newsModalError').hide();
  593.                   \$.ajax({
  594.                       url: '/api/newsClient',
  595.                       type: 'POST',
  596.                       data: {
  597.                           name: \$('#dName').val(),
  598.                           company: \$('#dCompany').val(),
  599.                           mail: \$('#dMail').val()
  600.                       }
  601.                   }).done(function () {
  602.                       \$('#deliveryNews').modal('hide');
  603.                       \$('#questionSuccessModal').modal();
  604.                       \$('#questionSuccessModal h4.modal-title').text('подписаться на новости');
  605.                       \$('#questionSuccessModal .modal-body').text('Спасибо!');
  606.                       \$('#quest-close').click(function () {
  607.                           \$('#questionSuccessModal').modal('hide');
  608.                       });
  609.                   });
  610.               } else {
  611.                   \$('#newsModalError').html(errorText);
  612.                   \$('#newsModalError').html(\$('#newsModalError').html().replace(/\\n/g, '<br/>'));
  613.                   \$('#newsModalError').show();
  614.               }
  615.           });
  616.       });
  617.   </script>
  618.   <script src=\"/js/lightbox.min.js\"></script>
  619.   <link rel=\"stylesheet\" type=\"text/css\" href=\"/css/lightbox.css\">
  620. {% endblock %}""TroikaRealEstateBundle:About:news_item.html.twig""/home/troikaestate/public_html/src/Troika/RealEstateBundle/Resources/views/About/news_item.html.twig");
  621.     }
  622. }