<?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;
/* new/index/local_project.html.twig */
class __TwigTemplate_9d9a37d0ab751bef070c29531e7cbda0 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'seoDescription' => [$this, 'block_seoDescription'],
'seoKeywords' => [$this, 'block_seoKeywords'],
'opengraph' => [$this, 'block_opengraph'],
'body' => [$this, 'block_body'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "new/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "new/index/local_project.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "new/index/local_project.html.twig"));
$this->parent = $this->loadTemplate("new/base.html.twig", "new/index/local_project.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, 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.', 3, $this->source); })()), "seoTitle", [], "any", false, false, false, 3), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 4
public function block_seoDescription($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seoDescription"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seoDescription"));
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", false, false, false, 4);
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
public function block_seoKeywords($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seoKeywords"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seoKeywords"));
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", false, false, false, 5);
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 8
public function block_opengraph($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "opengraph"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "opengraph"));
// line 9
echo " <meta property=\"og:type\" content=\"website\">
<meta property=\"og:url\" content=\"https://mosregco.ru";
// line 10
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 10, $this->source); })()), "request", [], "any", false, false, false, 10), "pathInfo", [], "any", false, false, false, 10), "html", null, true);
echo "\">
<meta property=\"og:title\" content=\"";
// line 11
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", false, false, false, 11);
echo "\">
<meta property=\"og:description\" content=\"";
// line 12
echo twig_escape_filter($this->env, twig_slice($this->env, twig_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", false, false, false, 12)), 0, 150), "html", null, true);
echo "\">
<meta property=\"og:image\" content=\"https://mosregco.ru";
// line 13
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", null, true);
echo "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 18
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 19
echo "<div class=\"container wow fadeInUp mob-mt-35\" style=\"margin-top: 63px\">
<nav aria-label=\"breadcrumb\">
<ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 22
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_index");
echo "\">Главная</a></li>
<li class=\"breadcrumb-item active\" aria-current=\"page\">";
// line 23
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", false, false, false, 23);
echo "</li>
</ol>
</nav>
</div>
<div class=\"container mt75 mob-mt-35 wow fadeInUp\">
<div class=\"row\">
<div class=\"col-md-4\">
<img src=\"";
// line 30
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", null, true);
echo "\" id=\"big-logo\" style=\"max-width: 100%; width: 100%; margin-bottom: 10px\">
<div class=\"slider owl-carousel owl-theme\" id=\"slider-local_project\">
<div class=\"item\">
<img src=\"";
// line 34
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", null, true);
echo "\" class=\"mini-logo\">
</div>
";
// line 36
$context['_parent'] = $context;
$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", false, false, false, 36));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 37
echo " <div class=\"item\">
<img src=\"";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["image"], "imageFile"), "html", null, true);
echo "\" class=\"mini-logo\">
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo " </div>
<div class=\"mt25 mob-mt-35\">
<strong>Расположение</strong><br />
";
// line 44
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", false, false, false, 44);
echo "
</div>
<div class=\"mt15\">
<strong>Сумма инвестиций</strong><br />
";
// line 48
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", false, false, false, 48);
echo "
</div>
<div class=\"mt15\">
<strong>Срок реализации</strong><br />
";
// line 52
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", false, false, false, 52);
echo "
</div>
<div class=\"mt15\">
<strong>Рабочих мест</strong><br />
";
// line 56
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", false, false, false, 56);
echo "
</div>
</div>
<div class=\"offset-md-1 col-md-7 mobb-mt-75\">
<h2>";
// line 60
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", false, false, false, 60);
echo "</h2>
<div class=\"mt50 mob-mt-35\">
";
// line 62
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", false, false, false, 62);
echo "
</div>
</div>
</div>
</div>
";
// line 69
if ((twig_length_filter($this->env, 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.', 69, $this->source); })()), "smi", [], "any", false, false, false, 69)) > 0)) {
// line 70
echo " <div class=\"container mt75 wow fadeInUp\">
<div class=\"row\">
<div class=\"offset-md-5 col-md-6\">
<h2 class=\"\">Упоминания в СМИ</h2>
</div>
</div>
<div class=\"mt50 mob-mt-0 news-cards\">
";
// line 79
echo " <div class=\"owl-carousel owl-theme\" id=\"owl-smi\">
";
// line 80
$context['_parent'] = $context;
$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", false, false, false, 80));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["publication"]) {
// line 81
echo " ";
echo twig_include($this->env, $context, "new\\Element\\smi_card.html.twig");
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['publication'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 84
echo " </div>
</div>
</div>
";
}
// line 89
echo "
";
// line 91
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", false, false, false, 91)]);
echo "
";
// line 94
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", false, false, false, 94) && 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", false, false, false, 94))) {
// line 95
echo " <div class=\"container mt-big wow fadeInUp\">
<div id=\"map\">
<div class=\"blackandwhite\" style=\"\">
<div id=\"mapapi\" style=\"height: 525px\"></div>
</div>
</div>
</div>
";
}
// line 105
echo "
<div style=\" margin-bottom: -100px;\">
";
// line 108
echo twig_include($this->env, $context, "new\\widgets\\index_form.html.twig");
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 113
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 114
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<style>
#owl-smi .card-new{
width: auto;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 123
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 124
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script>
\$(document).ready(function (){
\$('#owl-smi').owlCarousel({
loop:true,
margin:10,
nav:false,
responsive:{
0:{
items:1
},
600:{
items:2
},
1000:{
items:3
}
}
})
\$('body').on(\"click\", \".mini-logo\", function () {
\$('#big-logo').attr('src', \$(this).attr('src'));
})
var owlItog = \$('#slider-local_project').owlCarousel({
loop:true,
margin:10,
smartSpeed: 500,
nav:true,
dots:false,
navText:[\"<div class='nav-btn prev-slide'></div>\",\"<div class='nav-btn next-slide'></div>\"],
// animateOut: 'fadeOutDownBig',
// animateIn: 'fadeInDownBig',
responsive: {
0: {
items: 4
},
},
});
});
";
// line 169
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", false, false, false, 169) && 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", false, false, false, 169))) {
// line 170
echo " ymaps.ready(function () {
var myMap = new ymaps.Map('mapapi', {
center: [";
// line 172
echo twig_escape_filter($this->env, 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.', 172, $this->source); })()), "locX", [], "any", false, false, false, 172), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, 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.', 172, $this->source); })()), "locY", [], "any", false, false, false, 172), "html", null, true);
echo "],
zoom: 11
}, {
searchControlProvider: false
}),
myPlacemark = new ymaps.Placemark([";
// line 179
echo twig_escape_filter($this->env, 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.', 179, $this->source); })()), "locX", [], "any", false, false, false, 179), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, 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.', 179, $this->source); })()), "locY", [], "any", false, false, false, 179), "html", null, true);
echo "], {
hintContent: '";
// line 180
echo twig_escape_filter($this->env, 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.', 180, $this->source); })()), "title", [], "any", false, false, false, 180), "html", null, true);
echo "',
balloonContent: '";
// line 181
echo twig_escape_filter($this->env, 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.', 181, $this->source); })()), "title", [], "any", false, false, false, 181), "html", null, true);
echo "'
}, {
// Опции.
// Необходимо указать данный тип макета.
iconLayout: 'default#image',
// Своё изображение иконки метки.
iconImageHref: '/assets/images/new/icon_loc_p.svg',
// Размеры метки.
iconImageSize: [60, 60],
// Смещение левого верхнего угла иконки относительно
// её \"ножки\" (точки привязки).
iconImageOffset: [-30, -70]
})
myMap.geoObjects
.add(myPlacemark);
});
";
}
// line 199
echo " </script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "new/index/local_project.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'new/base.html.twig' %}
{% block title %}{{ project.seoTitle }}{% endblock %}
{% block seoDescription %}{{ project.seoDescription | raw }} {% endblock %}
{% block seoKeywords %}{{ project.seoKeywords | raw }} {% endblock %}
{% block opengraph %}
<meta property=\"og:type\" content=\"website\">
<meta property=\"og:url\" content=\"https://mosregco.ru{{ app.request.pathInfo }}\">
<meta property=\"og:title\" content=\"{{ project.Title | raw }}\">
<meta property=\"og:description\" content=\"{{ project.content | striptags | slice(0,150) }}\">
<meta property=\"og:image\" content=\"https://mosregco.ru{{ vich_uploader_asset(project, 'imageFile') }}\">
{% endblock %}
{% block body %}
<div class=\"container wow fadeInUp mob-mt-35\" style=\"margin-top: 63px\">
<nav aria-label=\"breadcrumb\">
<ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\"><a href=\"{{ path('app_index') }}\">Главная</a></li>
<li class=\"breadcrumb-item active\" aria-current=\"page\">{{ project.title | raw }}</li>
</ol>
</nav>
</div>
<div class=\"container mt75 mob-mt-35 wow fadeInUp\">
<div class=\"row\">
<div class=\"col-md-4\">
<img src=\"{{ vich_uploader_asset(project, 'imageFile') }}\" id=\"big-logo\" style=\"max-width: 100%; width: 100%; margin-bottom: 10px\">
<div class=\"slider owl-carousel owl-theme\" id=\"slider-local_project\">
<div class=\"item\">
<img src=\"{{ vich_uploader_asset(project, 'imageFile') }}\" class=\"mini-logo\">
</div>
{% for image in project.images %}
<div class=\"item\">
<img src=\"{{ vich_uploader_asset(image, 'imageFile') }}\" class=\"mini-logo\">
</div>
{% endfor %}
</div>
<div class=\"mt25 mob-mt-35\">
<strong>Расположение</strong><br />
{{ project.location | raw }}
</div>
<div class=\"mt15\">
<strong>Сумма инвестиций</strong><br />
{{ project.amountInvestment | raw }}
</div>
<div class=\"mt15\">
<strong>Срок реализации</strong><br />
{{ project.implementationPeriod | raw }}
</div>
<div class=\"mt15\">
<strong>Рабочих мест</strong><br />
{{ project.workPlace | raw }}
</div>
</div>
<div class=\"offset-md-1 col-md-7 mobb-mt-75\">
<h2>{{ project.title | raw }}</h2>
<div class=\"mt50 mob-mt-35\">
{{ project.content | raw }}
</div>
</div>
</div>
</div>
{% if project.smi | length > 0 %}
<div class=\"container mt75 wow fadeInUp\">
<div class=\"row\">
<div class=\"offset-md-5 col-md-6\">
<h2 class=\"\">Упоминания в СМИ</h2>
</div>
</div>
<div class=\"mt50 mob-mt-0 news-cards\">
{# <div class=\"d-flex\" style=\"gap: 10px\">#}
<div class=\"owl-carousel owl-theme\" id=\"owl-smi\">
{% for publication in project.smi %}
{{ include('new\\\\Element\\\\smi_card.html.twig') }}
{% endfor %}
{# </div>#}
</div>
</div>
</div>
{% endif %}
{{ include('new\\\\widgets\\\\index_project.html.twig', {'notId' : project.id }) }}
{% if project.locX and project.locY %}
<div class=\"container mt-big wow fadeInUp\">
<div id=\"map\">
<div class=\"blackandwhite\" style=\"\">
<div id=\"mapapi\" style=\"height: 525px\"></div>
</div>
</div>
</div>
{% endif %}
<div style=\" margin-bottom: -100px;\">
{{ include('new\\\\widgets\\\\index_form.html.twig') }}
</div>
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<style>
#owl-smi .card-new{
width: auto;
}
</style>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
\$(document).ready(function (){
\$('#owl-smi').owlCarousel({
loop:true,
margin:10,
nav:false,
responsive:{
0:{
items:1
},
600:{
items:2
},
1000:{
items:3
}
}
})
\$('body').on(\"click\", \".mini-logo\", function () {
\$('#big-logo').attr('src', \$(this).attr('src'));
})
var owlItog = \$('#slider-local_project').owlCarousel({
loop:true,
margin:10,
smartSpeed: 500,
nav:true,
dots:false,
navText:[\"<div class='nav-btn prev-slide'></div>\",\"<div class='nav-btn next-slide'></div>\"],
// animateOut: 'fadeOutDownBig',
// animateIn: 'fadeInDownBig',
responsive: {
0: {
items: 4
},
},
});
});
{% if project.locX and project.locY %}
ymaps.ready(function () {
var myMap = new ymaps.Map('mapapi', {
center: [{{ project.locX }}, {{ project.locY }}],
zoom: 11
}, {
searchControlProvider: false
}),
myPlacemark = new ymaps.Placemark([{{ project.locX }}, {{ project.locY }}], {
hintContent: '{{ project.title }}',
balloonContent: '{{ project.title }}'
}, {
// Опции.
// Необходимо указать данный тип макета.
iconLayout: 'default#image',
// Своё изображение иконки метки.
iconImageHref: '/assets/images/new/icon_loc_p.svg',
// Размеры метки.
iconImageSize: [60, 60],
// Смещение левого верхнего угла иконки относительно
// её \"ножки\" (точки привязки).
iconImageOffset: [-30, -70]
})
myMap.geoObjects
.add(myPlacemark);
});
{% endif %}
</script>
{% endblock %}
", "new/index/local_project.html.twig", "/var/www/mosportal/templates/new/index/local_project.html.twig");
}
}