var/cache/dev/twig/27/2782c227dd4ca619a01c0fbc26019c60.php line 44

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. /* new/index/local_project.html.twig */
  14. class __TwigTemplate_9d9a37d0ab751bef070c29531e7cbda0 extends 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.             'seoDescription' => [$this'block_seoDescription'],
  25.             'seoKeywords' => [$this'block_seoKeywords'],
  26.             'opengraph' => [$this'block_opengraph'],
  27.             'body' => [$this'block_body'],
  28.             'stylesheets' => [$this'block_stylesheets'],
  29.             'javascripts' => [$this'block_javascripts'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 1
  35.         return "new/base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""new/index/local_project.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""new/index/local_project.html.twig"));
  44.         $this->parent $this->loadTemplate("new/base.html.twig""new/index/local_project.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     public function block_title($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'3$this->source); })()), "seoTitle", [], "any"falsefalsefalse3), "html"nulltrue);
  60.         
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62.         
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  64.     }
  65.     // line 4
  66.     public function block_seoDescription($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seoDescription"));
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seoDescription"));
  73.         echo twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'4$this->source); })()), "seoDescription", [], "any"falsefalsefalse4);
  74.         echo " ";
  75.         
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77.         
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  79.     }
  80.     // line 5
  81.     public function block_seoKeywords($context, array $blocks = [])
  82.     {
  83.         $macros $this->macros;
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seoKeywords"));
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seoKeywords"));
  88.         echo twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'5$this->source); })()), "seoKeywords", [], "any"falsefalsefalse5);
  89.         echo " ";
  90.         
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  92.         
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  94.     }
  95.     // line 8
  96.     public function block_opengraph($context, array $blocks = [])
  97.     {
  98.         $macros $this->macros;
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""opengraph"));
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""opengraph"));
  103.         // line 9
  104.         echo "    <meta property=\"og:type\" content=\"website\">
  105.     <meta property=\"og:url\" content=\"https://mosregco.ru";
  106.         // line 10
  107.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'10$this->source); })()), "request", [], "any"falsefalsefalse10), "pathInfo", [], "any"falsefalsefalse10), "html"nulltrue);
  108.         echo "\">
  109.     <meta property=\"og:title\" content=\"";
  110.         // line 11
  111.         echo twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'11$this->source); })()), "Title", [], "any"falsefalsefalse11);
  112.         echo "\">
  113.     <meta property=\"og:description\" content=\"";
  114.         // line 12
  115.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_striptags(twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'12$this->source); })()), "content", [], "any"falsefalsefalse12)), 0150), "html"nulltrue);
  116.         echo "\">
  117.     <meta property=\"og:image\" content=\"https://mosregco.ru";
  118.         // line 13
  119.         echo twig_escape_filter($this->env$this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'13$this->source); })()), "imageFile"), "html"nulltrue);
  120.         echo "\">
  121. ";
  122.         
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  124.         
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  126.     }
  127.     // line 18
  128.     public function block_body($context, array $blocks = [])
  129.     {
  130.         $macros $this->macros;
  131.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  133.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  134.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  135.         // line 19
  136.         echo "<div class=\"container  wow fadeInUp  mob-mt-35\" style=\"margin-top: 63px\">
  137.     <nav aria-label=\"breadcrumb\">
  138.         <ol class=\"breadcrumb\">
  139.             <li class=\"breadcrumb-item\"><a href=\"";
  140.         // line 22
  141.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_index");
  142.         echo "\">Главная</a></li>
  143.             <li class=\"breadcrumb-item active\" aria-current=\"page\">";
  144.         // line 23
  145.         echo twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'23$this->source); })()), "title", [], "any"falsefalsefalse23);
  146.         echo "</li>
  147.         </ol>
  148.     </nav>
  149. </div>
  150.     <div class=\"container mt75 mob-mt-35  wow fadeInUp\">
  151.         <div class=\"row\">
  152.             <div class=\"col-md-4\">
  153.                 <img src=\"";
  154.         // line 30
  155.         echo twig_escape_filter($this->env$this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'30$this->source); })()), "imageFile"), "html"nulltrue);
  156.         echo "\" id=\"big-logo\" style=\"max-width: 100%; width: 100%; margin-bottom: 10px\">
  157.                 <div class=\"slider owl-carousel  owl-theme\" id=\"slider-local_project\">
  158.                     <div class=\"item\">
  159.                         <img src=\"";
  160.         // line 34
  161.         echo twig_escape_filter($this->env$this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset((isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'34$this->source); })()), "imageFile"), "html"nulltrue);
  162.         echo "\" class=\"mini-logo\">
  163.                     </div>
  164.                     ";
  165.         // line 36
  166.         $context['_parent'] = $context;
  167.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'36$this->source); })()), "images", [], "any"falsefalsefalse36));
  168.         foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  169.             // line 37
  170.             echo "                        <div class=\"item\">
  171.                             <img src=\"";
  172.             // line 38
  173.             echo twig_escape_filter($this->env$this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["image"], "imageFile"), "html"nulltrue);
  174.             echo "\" class=\"mini-logo\">
  175.                         </div>
  176.                     ";
  177.         }
  178.         $_parent $context['_parent'];
  179.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  180.         $context array_intersect_key($context$_parent) + $_parent;
  181.         // line 41
  182.         echo "                </div>
  183.                 <div class=\"mt25 mob-mt-35\">
  184.                     <strong>Расположение</strong><br />
  185.                     ";
  186.         // line 44
  187.         echo twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'44$this->source); })()), "location", [], "any"falsefalsefalse44);
  188.         echo "
  189.                 </div>
  190.                 <div class=\"mt15\">
  191.                     <strong>Сумма инвестиций</strong><br />
  192.                     ";
  193.         // line 48
  194.         echo twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'48$this->source); })()), "amountInvestment", [], "any"falsefalsefalse48);
  195.         echo "
  196.                 </div>
  197.                 <div class=\"mt15\">
  198.                     <strong>Срок реализации</strong><br />
  199.                     ";
  200.         // line 52
  201.         echo twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'52$this->source); })()), "implementationPeriod", [], "any"falsefalsefalse52);
  202.         echo "
  203.                 </div>
  204.                 <div class=\"mt15\">
  205.                     <strong>Рабочих мест</strong><br />
  206.                     ";
  207.         // line 56
  208.         echo twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'56$this->source); })()), "workPlace", [], "any"falsefalsefalse56);
  209.         echo "
  210.                 </div>
  211.             </div>
  212.             <div class=\"offset-md-1 col-md-7  mobb-mt-75\">
  213.                 <h2>";
  214.         // line 60
  215.         echo twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'60$this->source); })()), "title", [], "any"falsefalsefalse60);
  216.         echo "</h2>
  217.                 <div class=\"mt50 mob-mt-35\">
  218.                     ";
  219.         // line 62
  220.         echo twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'62$this->source); })()), "content", [], "any"falsefalsefalse62);
  221.         echo "
  222.                 </div>
  223.             </div>
  224.         </div>
  225.     </div>
  226.     ";
  227.         // line 69
  228.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'69$this->source); })()), "smi", [], "any"falsefalsefalse69)) > 0)) {
  229.             // line 70
  230.             echo "        <div class=\"container mt75  wow fadeInUp\">
  231.             <div class=\"row\">
  232.                 <div class=\"offset-md-5 col-md-6\">
  233.                     <h2 class=\"\">Упоминания в СМИ</h2>
  234.                 </div>
  235.             </div>
  236.             <div class=\"mt50 mob-mt-0 news-cards\">
  237. ";
  238.             // line 79
  239.             echo "                <div class=\"owl-carousel owl-theme\" id=\"owl-smi\">
  240.                 ";
  241.             // line 80
  242.             $context['_parent'] = $context;
  243.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'80$this->source); })()), "smi", [], "any"falsefalsefalse80));
  244.             $context['loop'] = [
  245.               'parent' => $context['_parent'],
  246.               'index0' => 0,
  247.               'index'  => 1,
  248.               'first'  => true,
  249.             ];
  250.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  251.                 $length count($context['_seq']);
  252.                 $context['loop']['revindex0'] = $length 1;
  253.                 $context['loop']['revindex'] = $length;
  254.                 $context['loop']['length'] = $length;
  255.                 $context['loop']['last'] = === $length;
  256.             }
  257.             foreach ($context['_seq'] as $context["_key"] => $context["publication"]) {
  258.                 // line 81
  259.                 echo "                    ";
  260.                 echo twig_include($this->env$context"new\\Element\\smi_card.html.twig");
  261.                 echo "
  262.                 ";
  263.                 ++$context['loop']['index0'];
  264.                 ++$context['loop']['index'];
  265.                 $context['loop']['first'] = false;
  266.                 if (isset($context['loop']['length'])) {
  267.                     --$context['loop']['revindex0'];
  268.                     --$context['loop']['revindex'];
  269.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  270.                 }
  271.             }
  272.             $_parent $context['_parent'];
  273.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['publication'], $context['_parent'], $context['loop']);
  274.             $context array_intersect_key($context$_parent) + $_parent;
  275.             // line 84
  276.             echo "                </div>
  277.             </div>
  278.         </div>
  279.     ";
  280.         }
  281.         // line 89
  282.         echo "
  283.     ";
  284.         // line 91
  285.         echo twig_include($this->env$context"new\\widgets\\index_project.html.twig", ["notId" => twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'91$this->source); })()), "id", [], "any"falsefalsefalse91)]);
  286.         echo "
  287.     ";
  288.         // line 94
  289.         if ((twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'94$this->source); })()), "locX", [], "any"falsefalsefalse94) && twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'94$this->source); })()), "locY", [], "any"falsefalsefalse94))) {
  290.             // line 95
  291.             echo "        <div class=\"container mt-big wow fadeInUp\">
  292.             <div  id=\"map\">
  293.                 <div class=\"blackandwhite\" style=\"\">
  294.                     <div id=\"mapapi\" style=\"height: 525px\"></div>
  295.                 </div>
  296.             </div>
  297.         </div>
  298.     ";
  299.         }
  300.         // line 105
  301.         echo "
  302.     <div style=\"    margin-bottom: -100px;\">
  303.         ";
  304.         // line 108
  305.         echo twig_include($this->env$context"new\\widgets\\index_form.html.twig");
  306.         echo "
  307.     </div>
  308. ";
  309.         
  310.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  311.         
  312.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  313.     }
  314.     // line 113
  315.     public function block_stylesheets($context, array $blocks = [])
  316.     {
  317.         $macros $this->macros;
  318.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  319.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  320.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  321.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  322.         // line 114
  323.         echo "    ";
  324.         $this->displayParentBlock("stylesheets"$context$blocks);
  325.         echo "
  326.     <style>
  327.         #owl-smi .card-new{
  328.             width: auto;
  329.         }
  330.     </style>
  331. ";
  332.         
  333.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  334.         
  335.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  336.     }
  337.     // line 123
  338.     public function block_javascripts($context, array $blocks = [])
  339.     {
  340.         $macros $this->macros;
  341.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  342.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  343.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  344.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  345.         // line 124
  346.         echo "    ";
  347.         $this->displayParentBlock("javascripts"$context$blocks);
  348.         echo "
  349.     <script>
  350.         \$(document).ready(function (){
  351.             \$('#owl-smi').owlCarousel({
  352.                 loop:true,
  353.                 margin:10,
  354.                 nav:false,
  355.                 responsive:{
  356.                     0:{
  357.                         items:1
  358.                     },
  359.                     600:{
  360.                         items:2
  361.                     },
  362.                     1000:{
  363.                         items:3
  364.                     }
  365.                 }
  366.             })
  367.             \$('body').on(\"click\", \".mini-logo\", function () {
  368.                 \$('#big-logo').attr('src', \$(this).attr('src'));
  369.             })
  370.             var owlItog = \$('#slider-local_project').owlCarousel({
  371.                 loop:true,
  372.                 margin:10,
  373.                 smartSpeed: 500,
  374.                 nav:true,
  375.                 dots:false,
  376.                 navText:[\"<div class='nav-btn prev-slide'></div>\",\"<div class='nav-btn next-slide'></div>\"],
  377.                 // animateOut: 'fadeOutDownBig',
  378.                 // animateIn: 'fadeInDownBig',
  379.                 responsive: {
  380.                     0: {
  381.                         items: 4
  382.                     },
  383.                 },
  384.             });
  385.         });
  386.         ";
  387.         // line 169
  388.         if ((twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'169$this->source); })()), "locX", [], "any"falsefalsefalse169) && twig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'169$this->source); })()), "locY", [], "any"falsefalsefalse169))) {
  389.             // line 170
  390.             echo "        ymaps.ready(function () {
  391.             var myMap = new ymaps.Map('mapapi', {
  392.                     center: [";
  393.             // line 172
  394.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'172$this->source); })()), "locX", [], "any"falsefalsefalse172), "html"nulltrue);
  395.             echo ", ";
  396.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'172$this->source); })()), "locY", [], "any"falsefalsefalse172), "html"nulltrue);
  397.             echo "],
  398.                     zoom: 11
  399.                 }, {
  400.                     searchControlProvider: false
  401.                 }),
  402.                 myPlacemark = new ymaps.Placemark([";
  403.             // line 179
  404.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'179$this->source); })()), "locX", [], "any"falsefalsefalse179), "html"nulltrue);
  405.             echo ", ";
  406.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'179$this->source); })()), "locY", [], "any"falsefalsefalse179), "html"nulltrue);
  407.             echo "], {
  408.                     hintContent: '";
  409.             // line 180
  410.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'180$this->source); })()), "title", [], "any"falsefalsefalse180), "html"nulltrue);
  411.             echo "',
  412.                     balloonContent: '";
  413.             // line 181
  414.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'181$this->source); })()), "title", [], "any"falsefalsefalse181), "html"nulltrue);
  415.             echo "'
  416.                 }, {
  417.                     // Опции.
  418.                     // Необходимо указать данный тип макета.
  419.                     iconLayout: 'default#image',
  420.                     // Своё изображение иконки метки.
  421.                     iconImageHref: '/assets/images/new/icon_loc_p.svg',
  422.                     // Размеры метки.
  423.                     iconImageSize: [60, 60],
  424.                     // Смещение левого верхнего угла иконки относительно
  425.                     // её \"ножки\" (точки привязки).
  426.                     iconImageOffset: [-30, -70]
  427.                 })
  428.             myMap.geoObjects
  429.                 .add(myPlacemark);
  430.         });
  431.         ";
  432.         }
  433.         // line 199
  434.         echo "    </script>
  435. ";
  436.         
  437.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  438.         
  439.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  440.     }
  441.     public function getTemplateName()
  442.     {
  443.         return "new/index/local_project.html.twig";
  444.     }
  445.     public function isTraitable()
  446.     {
  447.         return false;
  448.     }
  449.     public function getDebugInfo()
  450.     {
  451.         return array (  500 => 199,  479 => 181,  475 => 180,  469 => 179,  457 => 172,  453 => 170,  451 => 169,  402 => 124,  392 => 123,  374 => 114,  364 => 113,  350 => 108,  345 => 105,  333 => 95,  331 => 94,  325 => 91,  321 => 89,  314 => 84,  297 => 81,  280 => 80,  277 => 79,  267 => 70,  265 => 69,  255 => 62,  250 => 60,  243 => 56,  236 => 52,  229 => 48,  222 => 44,  217 => 41,  208 => 38,  205 => 37,  201 => 36,  196 => 34,  189 => 30,  179 => 23,  175 => 22,  170 => 19,  160 => 18,  148 => 13,  144 => 12,  140 => 11,  136 => 10,  133 => 9,  123 => 8,  103 => 5,  83 => 4,  64 => 3,  41 => 1,);
  452.     }
  453.     public function getSourceContext()
  454.     {
  455.         return new Source("{% extends 'new/base.html.twig' %}
  456. {% block title %}{{ project.seoTitle }}{% endblock %}
  457. {% block seoDescription %}{{ project.seoDescription | raw }} {% endblock %}
  458. {% block seoKeywords %}{{ project.seoKeywords | raw }} {% endblock %}
  459. {% block opengraph %}
  460.     <meta property=\"og:type\" content=\"website\">
  461.     <meta property=\"og:url\" content=\"https://mosregco.ru{{ app.request.pathInfo }}\">
  462.     <meta property=\"og:title\" content=\"{{ project.Title | raw }}\">
  463.     <meta property=\"og:description\" content=\"{{ project.content  | striptags | slice(0,150) }}\">
  464.     <meta property=\"og:image\" content=\"https://mosregco.ru{{ vich_uploader_asset(project, 'imageFile') }}\">
  465. {% endblock %}
  466. {% block body %}
  467. <div class=\"container  wow fadeInUp  mob-mt-35\" style=\"margin-top: 63px\">
  468.     <nav aria-label=\"breadcrumb\">
  469.         <ol class=\"breadcrumb\">
  470.             <li class=\"breadcrumb-item\"><a href=\"{{ path('app_index') }}\">Главная</a></li>
  471.             <li class=\"breadcrumb-item active\" aria-current=\"page\">{{ project.title | raw }}</li>
  472.         </ol>
  473.     </nav>
  474. </div>
  475.     <div class=\"container mt75 mob-mt-35  wow fadeInUp\">
  476.         <div class=\"row\">
  477.             <div class=\"col-md-4\">
  478.                 <img src=\"{{ vich_uploader_asset(project, 'imageFile') }}\" id=\"big-logo\" style=\"max-width: 100%; width: 100%; margin-bottom: 10px\">
  479.                 <div class=\"slider owl-carousel  owl-theme\" id=\"slider-local_project\">
  480.                     <div class=\"item\">
  481.                         <img src=\"{{ vich_uploader_asset(project, 'imageFile') }}\" class=\"mini-logo\">
  482.                     </div>
  483.                     {% for image in project.images  %}
  484.                         <div class=\"item\">
  485.                             <img src=\"{{ vich_uploader_asset(image, 'imageFile') }}\" class=\"mini-logo\">
  486.                         </div>
  487.                     {% endfor %}
  488.                 </div>
  489.                 <div class=\"mt25 mob-mt-35\">
  490.                     <strong>Расположение</strong><br />
  491.                     {{ project.location | raw }}
  492.                 </div>
  493.                 <div class=\"mt15\">
  494.                     <strong>Сумма инвестиций</strong><br />
  495.                     {{ project.amountInvestment | raw }}
  496.                 </div>
  497.                 <div class=\"mt15\">
  498.                     <strong>Срок реализации</strong><br />
  499.                     {{ project.implementationPeriod | raw }}
  500.                 </div>
  501.                 <div class=\"mt15\">
  502.                     <strong>Рабочих мест</strong><br />
  503.                     {{ project.workPlace | raw }}
  504.                 </div>
  505.             </div>
  506.             <div class=\"offset-md-1 col-md-7  mobb-mt-75\">
  507.                 <h2>{{ project.title | raw }}</h2>
  508.                 <div class=\"mt50 mob-mt-35\">
  509.                     {{ project.content | raw }}
  510.                 </div>
  511.             </div>
  512.         </div>
  513.     </div>
  514.     {% if project.smi | length > 0 %}
  515.         <div class=\"container mt75  wow fadeInUp\">
  516.             <div class=\"row\">
  517.                 <div class=\"offset-md-5 col-md-6\">
  518.                     <h2 class=\"\">Упоминания в СМИ</h2>
  519.                 </div>
  520.             </div>
  521.             <div class=\"mt50 mob-mt-0 news-cards\">
  522. {#                <div class=\"d-flex\" style=\"gap: 10px\">#}
  523.                 <div class=\"owl-carousel owl-theme\" id=\"owl-smi\">
  524.                 {% for publication in project.smi  %}
  525.                     {{ include('new\\\\Element\\\\smi_card.html.twig') }}
  526.                 {% endfor %}
  527. {#            </div>#}
  528.                 </div>
  529.             </div>
  530.         </div>
  531.     {% endif %}
  532.     {{ include('new\\\\widgets\\\\index_project.html.twig', {'notId' : project.id }) }}
  533.     {% if project.locX and project.locY %}
  534.         <div class=\"container mt-big wow fadeInUp\">
  535.             <div  id=\"map\">
  536.                 <div class=\"blackandwhite\" style=\"\">
  537.                     <div id=\"mapapi\" style=\"height: 525px\"></div>
  538.                 </div>
  539.             </div>
  540.         </div>
  541.     {% endif %}
  542.     <div style=\"    margin-bottom: -100px;\">
  543.         {{ include('new\\\\widgets\\\\index_form.html.twig') }}
  544.     </div>
  545. {% endblock %}
  546. {% block stylesheets %}
  547.     {{ parent() }}
  548.     <style>
  549.         #owl-smi .card-new{
  550.             width: auto;
  551.         }
  552.     </style>
  553. {% endblock %}
  554. {% block javascripts %}
  555.     {{ parent() }}
  556.     <script>
  557.         \$(document).ready(function (){
  558.             \$('#owl-smi').owlCarousel({
  559.                 loop:true,
  560.                 margin:10,
  561.                 nav:false,
  562.                 responsive:{
  563.                     0:{
  564.                         items:1
  565.                     },
  566.                     600:{
  567.                         items:2
  568.                     },
  569.                     1000:{
  570.                         items:3
  571.                     }
  572.                 }
  573.             })
  574.             \$('body').on(\"click\", \".mini-logo\", function () {
  575.                 \$('#big-logo').attr('src', \$(this).attr('src'));
  576.             })
  577.             var owlItog = \$('#slider-local_project').owlCarousel({
  578.                 loop:true,
  579.                 margin:10,
  580.                 smartSpeed: 500,
  581.                 nav:true,
  582.                 dots:false,
  583.                 navText:[\"<div class='nav-btn prev-slide'></div>\",\"<div class='nav-btn next-slide'></div>\"],
  584.                 // animateOut: 'fadeOutDownBig',
  585.                 // animateIn: 'fadeInDownBig',
  586.                 responsive: {
  587.                     0: {
  588.                         items: 4
  589.                     },
  590.                 },
  591.             });
  592.         });
  593.         {% if project.locX and project.locY %}
  594.         ymaps.ready(function () {
  595.             var myMap = new ymaps.Map('mapapi', {
  596.                     center: [{{ project.locX }}, {{ project.locY }}],
  597.                     zoom: 11
  598.                 }, {
  599.                     searchControlProvider: false
  600.                 }),
  601.                 myPlacemark = new ymaps.Placemark([{{ project.locX }}, {{ project.locY }}], {
  602.                     hintContent: '{{ project.title }}',
  603.                     balloonContent: '{{ project.title }}'
  604.                 }, {
  605.                     // Опции.
  606.                     // Необходимо указать данный тип макета.
  607.                     iconLayout: 'default#image',
  608.                     // Своё изображение иконки метки.
  609.                     iconImageHref: '/assets/images/new/icon_loc_p.svg',
  610.                     // Размеры метки.
  611.                     iconImageSize: [60, 60],
  612.                     // Смещение левого верхнего угла иконки относительно
  613.                     // её \"ножки\" (точки привязки).
  614.                     iconImageOffset: [-30, -70]
  615.                 })
  616.             myMap.geoObjects
  617.                 .add(myPlacemark);
  618.         });
  619.         {% endif %}
  620.     </script>
  621. {% endblock %}
  622. ""new/index/local_project.html.twig""/var/www/mosportal/templates/new/index/local_project.html.twig");
  623.     }
  624. }