var/cache/dev/twig/b1/b18901f8d5553f818aa66a9db4774de2.php line 42
- <?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;
- /* default/ficha_oficina.html.twig */
- class __TwigTemplate_17ff6d3eddce58b2a40c50539741d5f1 extends Template
- {
- private $source;
- private $macros = [];
- public function __construct(Environment $env)
- {
- parent::__construct($env);
- $this->source = $this->getSourceContext();
- $this->blocks = [
- 'idiomas' => [$this, 'block_idiomas'],
- 'bodyId' => [$this, 'block_bodyId'],
- 'body' => [$this, 'block_body'],
- 'empresas' => [$this, 'block_empresas'],
- 'javascripts_footer' => [$this, 'block_javascripts_footer'],
- ];
- }
- protected function doGetParent(array $context)
- {
- // line 2
- return "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", "default/ficha_oficina.html.twig"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/ficha_oficina.html.twig"));
- $this->parent = $this->loadTemplate("base.html.twig", "default/ficha_oficina.html.twig", 2);
- $this->parent->display($context, array_merge($this->blocks, $blocks));
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- }
- // line 4
- public function block_idiomas($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", "idiomas"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "idiomas"));
- // line 5
- echo " ";
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable((isset($context["locales"]) || array_key_exists("locales", $context) ? $context["locales"] : (function () { throw new RuntimeError('Variable "locales" does not exist.', 5, $this->source); })()));
- foreach ($context['_seq'] as $context["k"] => $context["idioma"]) {
- // line 6
- echo " ";
- if (($context["k"] == 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.', 6, $this->source); })()), "request", [], "any", false, false, false, 6), "locale", [], "any", false, false, false, 6))) {
- echo "
- <option selected value=\"";
- // line 7
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "get", [0 => "_route", 1 => "index"], "method", false, false, false, 7), twig_array_merge(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.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "get", [0 => "_route_params", 1 => []], "method", false, false, false, 7), ["_locale" => $context["k"]])), "html", null, true);
- echo "\" title=\"";
- echo twig_escape_filter($this->env, $context["idioma"], "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, twig_upper_filter($this->env, $context["k"]), "html", null, true);
- echo "</option>
- ";
- } else {
- // line 9
- echo " <option value=\"";
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "get", [0 => "_route", 1 => "index"], "method", false, false, false, 9), twig_array_merge(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.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "get", [0 => "_route_params", 1 => []], "method", false, false, false, 9), ["_locale" => $context["k"], "slugP" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 9, $this->source); })()), "provincia", [], "any", false, false, false, 9), "translate", [0 => $context["k"]], "method", false, false, false, 9), "slug", [], "method", false, false, false, 9), "slugL" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 9, $this->source); })()), "localidad", [], "any", false, false, false, 9), "slug", [], "any", false, false, false, 9), "slugO" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 9, $this->source); })()), "translate", [0 => $context["k"]], "method", false, false, false, 9), "slug", [], "method", false, false, false, 9)])), "html", null, true);
- echo "\" title=\"";
- echo twig_escape_filter($this->env, $context["idioma"], "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, twig_upper_filter($this->env, $context["k"]), "html", null, true);
- echo "</option>
- ";
- }
- // line 11
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['k'], $context['idioma'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 12
- echo " ";
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 14
- public function block_bodyId($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", "bodyId"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyId"));
- echo "ficha-oficina";
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 16
- 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 17
- echo "
- <div id=\"cab-fi-ofi\" class=\"container\">
- <div id=\"img-ofi\">
- ";
- // line 23
- echo " <img src=\"/img/banner_currency_offices.png\"/>
- </div>
- <div id=\"horario\" class=\"row\">
- <div id=\"franjas\" class=\"col-12 col-md-8\">
- <div id=\"nomH\">
- <span>";
- // line 28
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Horarios"), "html", null, true);
- echo "</span>
- </div>
- <div id=\"textH\">
- ";
- // line 31
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 31, $this->source); })()), "franjas", [], "any", false, false, false, 31));
- foreach ($context['_seq'] as $context["_key"] => $context["franja"]) {
- // line 32
- echo " >";
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["franja"], "nombre", [], "any", false, false, false, 32), "html", null, true);
- echo ":
- ";
- // line 34
- echo " ";
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["franja"], "franjaHoras", [], "any", false, false, false, 34));
- foreach ($context['_seq'] as $context["_key"] => $context["horas"]) {
- // line 35
- echo " <strong> ";
- echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["horas"], "horaInicio", [], "any", false, false, false, 35), "H:i"), "html", null, true);
- echo "
- a ";
- // line 36
- echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["horas"], "horaFin", [], "any", false, false, false, 36), "H:i"), "html", null, true);
- echo " </strong>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['horas'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 38
- echo " <br/>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['franja'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 40
- echo " ";
- $context["hoy"] = twig_date_format_filter($this->env, "now", "Y-m-d");
- // line 41
- echo " ";
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 41, $this->source); })()), "dayoffs", [], "any", false, false, false, 41));
- foreach ($context['_seq'] as $context["_key"] => $context["festivo"]) {
- // line 42
- echo " ";
- $context["fechaFestivo"] = twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["festivo"], "date", [], "any", false, false, false, 42), "Y-m-d");
- // line 43
- echo "
- ";
- // line 44
- $context["segundosEnUnDia"] = 86400;
- // line 45
- echo " ";
- $context["segundosDeDiferencia"] = (twig_date_format_filter($this->env, (isset($context["fechaFestivo"]) || array_key_exists("fechaFestivo", $context) ? $context["fechaFestivo"] : (function () { throw new RuntimeError('Variable "fechaFestivo" does not exist.', 45, $this->source); })()), "U") - twig_date_format_filter($this->env, (isset($context["hoy"]) || array_key_exists("hoy", $context) ? $context["hoy"] : (function () { throw new RuntimeError('Variable "hoy" does not exist.', 45, $this->source); })()), "U"));
- // line 46
- echo " ";
- $context["diasDeDiferencia"] = ((isset($context["segundosDeDiferencia"]) || array_key_exists("segundosDeDiferencia", $context) ? $context["segundosDeDiferencia"] : (function () { throw new RuntimeError('Variable "segundosDeDiferencia" does not exist.', 46, $this->source); })()) / (isset($context["segundosEnUnDia"]) || array_key_exists("segundosEnUnDia", $context) ? $context["segundosEnUnDia"] : (function () { throw new RuntimeError('Variable "segundosEnUnDia" does not exist.', 46, $this->source); })()));
- // line 47
- echo "
- ";
- // line 48
- if ((((isset($context["fechaFestivo"]) || array_key_exists("fechaFestivo", $context) ? $context["fechaFestivo"] : (function () { throw new RuntimeError('Variable "fechaFestivo" does not exist.', 48, $this->source); })()) == (isset($context["hoy"]) || array_key_exists("hoy", $context) ? $context["hoy"] : (function () { throw new RuntimeError('Variable "hoy" does not exist.', 48, $this->source); })())) || (((isset($context["diasDeDiferencia"]) || array_key_exists("diasDeDiferencia", $context) ? $context["diasDeDiferencia"] : (function () { throw new RuntimeError('Variable "diasDeDiferencia" does not exist.', 48, $this->source); })()) >= -2) && ((isset($context["diasDeDiferencia"]) || array_key_exists("diasDeDiferencia", $context) ? $context["diasDeDiferencia"] : (function () { throw new RuntimeError('Variable "diasDeDiferencia" does not exist.', 48, $this->source); })()) <= 30)))) {
- // line 49
- echo " ";
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["festivo"], "horarioReducidos", [], "any", false, false, false, 49));
- foreach ($context['_seq'] as $context["_key"] => $context["hor"]) {
- // line 50
- echo " <div>
- >Festivo: <strong>";
- // line 51
- echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["festivo"], "date", [], "any", false, false, false, 51), "d/m/Y"), "html", null, true);
- if ((twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["hor"], "horaInicio", [], "any", false, false, false, 51), "H:i") != "00:00")) {
- echo " - ";
- echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["hor"], "horaInicio", [], "any", false, false, false, 51), "H:i"), "html", null, true);
- echo " a ";
- echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["hor"], "horaFin", [], "any", false, false, false, 51), "H:i"), "html", null, true);
- echo " ";
- }
- echo "</strong>
- </div>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['hor'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 54
- echo " ";
- }
- // line 55
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['festivo'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 56
- echo " </div>
- </div>
- <div id=\"tel\" class=\"col-12 col-md-4\">
- <span>";
- // line 60
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 60, $this->source); })()), "telefono", [], "any", false, false, false, 60), "html", null, true);
- echo "</span>
- </div>
- </div>
- <div id=\"info-ofi\">
- <div id=\"lin-ofi\" class=\"row\">
- <div class=\"texto col-12 col-lg-6\">
- <p id=\"title\">";
- // line 66
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 66, $this->source); })()), "title", [], "any", false, false, false, 66), "html", null, true);
- echo "</p>
- ";
- // line 67
- echo twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 67, $this->source); })()), "descripcion", [], "any", false, false, false, 67);
- echo "
- </div>
- <div class=\"tabla col-12 col-lg-6\">
- <p class=\"precios\">";
- // line 70
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Precios"), "html", null, true);
- echo "</p>
- <div class=\"cont-table\">
- <table id=\"tabla-cot\">
- <tr>
- <th>";
- // line 74
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Divisa"), "html", null, true);
- echo "</th>
- <th>";
- // line 75
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Compramos"), "html", null, true);
- echo "</th>
- <th>";
- // line 76
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Vendemos"), "html", null, true);
- echo "</th>
- </tr>
- ";
- // line 78
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable((isset($context["cotizaciones"]) || array_key_exists("cotizaciones", $context) ? $context["cotizaciones"] : (function () { throw new RuntimeError('Variable "cotizaciones" does not exist.', 78, $this->source); })()));
- foreach ($context['_seq'] as $context["_key"] => $context["cotizacion"]) {
- // line 79
- echo " <tr data-oficina=\"";
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "oficina", [], "any", false, false, false, 79), "html", null, true);
- echo "\">
- <td>
- <a class=\"d-none d-sm-block\" href=\"";
- // line 81
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("divisas", ["nombre" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 81), "slug", [0 => 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.', 81, $this->source); })()), "request", [], "any", false, false, false, 81), "locale", [], "any", false, false, false, 81)], "method", false, false, false, 81)]), "html", null, true);
- echo "\"><span class=\"banderas\">
- ";
- // line 82
- if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 82), "imagen", [], "any", false, false, false, 82)) {
- // line 83
- echo " ";
- echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 83), "imagen", [], "any", false, false, false, 83), "flag");
- echo "
- ";
- }
- // line 85
- echo " </span>";
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 85), "nombre", [], "any", false, false, false, 85), "html", null, true);
- echo "</a>
- <a class=\"d-block d-sm-none\" href=\"";
- // line 86
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("divisas", ["nombre" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 86), "slug", [0 => 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.', 86, $this->source); })()), "request", [], "any", false, false, false, 86), "locale", [], "any", false, false, false, 86)], "method", false, false, false, 86)]), "html", null, true);
- echo "\"><span class=\"banderas\">
- ";
- // line 87
- if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 87), "imagen", [], "any", false, false, false, 87)) {
- // line 88
- echo " ";
- echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 88), "imagen", [], "any", false, false, false, 88), "flag");
- echo "
- ";
- }
- // line 90
- echo " </span>";
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 90), "html", null, true);
- echo "</a>
- </td>
- <td>
- ";
- // line 93
- if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "oficina", [], "any", false, false, false, 93), "id", [], "any", false, false, false, 93) == 66)) {
- // line 94
- echo " -
- ";
- } elseif (twig_test_empty(twig_get_attribute($this->env, $this->source, // line 95
- (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 95, $this->source); })()), "franjas", [], "any", false, false, false, 95))) {
- // line 96
- echo " -
- ";
- } else {
- // line 98
- echo " ";
- echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "precioCompra", [], "any", false, false, false, 98), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 98), "numDecimales", [], "any", false, false, false, 98)), "html", null, true);
- echo "
- ";
- }
- // line 100
- echo " </td>
- <td>
- ";
- // line 102
- if (twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 102, $this->source); })()), "franjas", [], "any", false, false, false, 102))) {
- // line 103
- echo " -
- ";
- } elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 104
- $context["cotizacion"], "oficina", [], "any", false, false, false, 104), "permiteCompra", [], "any", false, false, false, 104) == 1)) {
- // line 105
- echo " ";
- echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "precioVenta", [], "any", false, false, false, 105), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["cotizacion"], "shortName", [], "any", false, false, false, 105), "numDecimales", [], "any", false, false, false, 105)), "html", null, true);
- echo "
- ";
- } else {
- // line 107
- echo " -
- ";
- }
- // line 109
- echo " </td>
- </tr>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cotizacion'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 112
- echo " </table>
- </div>
- ";
- // line 114
- if (((isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 114, $this->source); })()) != "")) {
- echo "<p class=\"info-select\">";
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Precios para"), "html", null, true);
- echo " ";
- echo twig_escape_filter($this->env, (isset($context["diaMax"]) || array_key_exists("diaMax", $context) ? $context["diaMax"] : (function () { throw new RuntimeError('Variable "diaMax" does not exist.', 114, $this->source); })()), "html", null, true);
- echo "</p>";
- }
- // line 115
- echo " <div id=\"mas-cot\">
- <a href=\"/cotizaciones\">";
- // line 116
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ver mas cotizaciones >"), "html", null, true);
- echo "</a>
- </div>
- </div>
- </div>
- </div>
- ";
- // line 122
- if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 122, $this->source); })()), "servicios", [], "any", false, false, false, 122)) > 0)) {
- // line 123
- echo " <h2>";
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Servicios disponibles en esta oficina de cambio"), "html", null, true);
- echo "</h2>
- <div id=\"ofi-servicios\" class=\"row\">
- <ul>
- ";
- // line 126
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 126, $this->source); })()), "servicios", [], "any", false, false, false, 126));
- foreach ($context['_seq'] as $context["_key"] => $context["servicio"]) {
- // line 127
- echo " <li >
- <div class=\"card\">
- ";
- // line 129
- if (twig_get_attribute($this->env, $this->source, $context["servicio"], "imagenCabecera", [], "any", false, false, false, 129)) {
- // line 130
- echo " ";
- echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env, $this->source, $context["servicio"], "imagenCabecera", [], "any", false, false, false, 130), "reference");
- echo "
- ";
- } elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 131
- $context["servicio"], "translate", [0 => "es"], "method", false, false, false, 131), "imagenCabecera", [], "any", false, false, false, 131)) {
- // line 132
- echo " ";
- echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["servicio"], "translate", [0 => "es"], "method", false, false, false, 132), "imagenCabecera", [], "any", false, false, false, 132), "reference");
- echo "
- ";
- }
- // line 134
- echo " <div class=\"card-body\">
- <h5 class=\"card-title\">";
- // line 135
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicio"], "texto", [], "any", false, false, false, 135), "html", null, true);
- echo "</h5>
- </div>
- </div>
- <li>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['servicio'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 141
- echo " <ul>
- </div>
- ";
- }
- // line 144
- echo "
- <div id=\"text-servicios\">
- ";
- // line 146
- echo twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 146, $this->source); })()), "serviciosTexto", [], "any", false, false, false, 146);
- echo "
- </div>
- <div id=\"mapa\" class=\"container\">
- <div id=\"map\"></div>
- <div id=\"texto-mapa\">
- <p>";
- // line 155
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 155, $this->source); })()), "direccion", [], "any", false, false, false, 155), "html", null, true);
- echo "</p>
- <a target=\"_blank\" href=\"https://www.google.com/maps/dir/Current+Location/";
- // line 156
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 156, $this->source); })()), "latitud", [], "any", false, false, false, 156), "html", null, true);
- echo ",";
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 156, $this->source); })()), "longitud", [], "any", false, false, false, 156), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("¿Cómo llegar? >"), "html", null, true);
- echo "</a>
- </div>
- </div>
- <div id=\"resto\" class=\"container\">
- <p id=\"ind\">";
- // line 161
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Indicaciones para llegar:"), "html", null, true);
- echo "</p>
- ";
- // line 162
- echo twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 162, $this->source); })()), "indicaciones", [], "any", false, false, false, 162);
- echo "
- </div>
- </div>
- ";
- // line 166
- $this->displayBlock('empresas', $context, $blocks);
- // line 169
- echo "
- ";
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 166
- public function block_empresas($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", "empresas"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "empresas"));
- // line 167
- echo " ";
- echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::empresas"));
- echo "
- ";
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 174
- public function block_javascripts_footer($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_footer"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts_footer"));
- // line 175
- echo " ";
- $this->displayParentBlock("javascripts_footer", $context, $blocks);
- echo "
- <script>
- // function initMap() {
- //
- // var mapElement = document.getElementById('map');
- //
- // if (mapElement) {
- //
- // var map = new google.maps.Map(mapElement, {
- // center: { lat: ";
- // line 185
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 185, $this->source); })()), "latitud", [], "any", false, false, false, 185), "html", null, true);
- echo ", lng: ";
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 185, $this->source); })()), "longitud", [], "any", false, false, false, 185), "html", null, true);
- echo " },
- // zoom: 12
- // });
- // }
- // }
- </script>
- ";
- // line 193
- $this->loadTemplate("includes/mapa_javascript.html.twig", "default/ficha_oficina.html.twig", 193)->display(twig_to_array(["oficinasMapa" => [0 => (isset($context["oficina"]) || array_key_exists("oficina", $context) ? $context["oficina"] : (function () { throw new RuntimeError('Variable "oficina" does not exist.', 193, $this->source); })())]]));
- // line 194
- echo "
- ";
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- public function getTemplateName()
- {
- return "default/ficha_oficina.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 589 => 194, 587 => 193, 574 => 185, 560 => 175, 550 => 174, 537 => 167, 527 => 166, 516 => 169, 514 => 166, 507 => 162, 503 => 161, 491 => 156, 487 => 155, 475 => 146, 471 => 144, 466 => 141, 454 => 135, 451 => 134, 445 => 132, 443 => 131, 438 => 130, 436 => 129, 432 => 127, 428 => 126, 421 => 123, 419 => 122, 410 => 116, 407 => 115, 399 => 114, 395 => 112, 387 => 109, 383 => 107, 377 => 105, 375 => 104, 372 => 103, 370 => 102, 366 => 100, 360 => 98, 356 => 96, 354 => 95, 351 => 94, 349 => 93, 342 => 90, 336 => 88, 334 => 87, 330 => 86, 325 => 85, 319 => 83, 317 => 82, 313 => 81, 307 => 79, 303 => 78, 298 => 76, 294 => 75, 290 => 74, 283 => 70, 277 => 67, 273 => 66, 264 => 60, 258 => 56, 252 => 55, 249 => 54, 233 => 51, 230 => 50, 225 => 49, 223 => 48, 220 => 47, 217 => 46, 214 => 45, 212 => 44, 209 => 43, 206 => 42, 201 => 41, 198 => 40, 191 => 38, 183 => 36, 178 => 35, 173 => 34, 168 => 32, 164 => 31, 158 => 28, 151 => 23, 146 => 17, 136 => 16, 117 => 14, 107 => 12, 101 => 11, 91 => 9, 82 => 7, 77 => 6, 72 => 5, 62 => 4, 39 => 2,);
- }
- public function getSourceContext()
- {
- return new Source("{# {% extends 'default/contenido.html.twig' %} #}
- {% extends 'base.html.twig' %}
- {% block idiomas %}
- {% for k,idioma in locales %}
- {% if k == app.request.locale %}
- <option selected value=\"{{ path(app.request.get('_route', 'index'), app.request.get('_route_params', [])|merge({_locale: k})) }}\" title=\"{{ idioma }}\">{{ k | upper}}</option>
- {% else %}
- <option value=\"{{ path(app.request.get('_route', 'index'), app.request.get('_route_params', [])|merge({_locale: k, slugP: oficina.provincia.translate(k).slug(), slugL: oficina.localidad.slug, slugO: oficina.translate(k).slug() })) }}\" title=\"{{ idioma }}\">{{ k | upper}}</option>
- {% endif %}
- {% endfor %}
- {% endblock %}
- {% block bodyId %}ficha-oficina{% endblock %}
- {% block body %}
- <div id=\"cab-fi-ofi\" class=\"container\">
- <div id=\"img-ofi\">
- {#{% if oficina.imagen %}
- {{ sonata_media(oficina.imagen, 'cabecera') }}
- {% endif %}#}
- <img src=\"/img/banner_currency_offices.png\"/>
- </div>
- <div id=\"horario\" class=\"row\">
- <div id=\"franjas\" class=\"col-12 col-md-8\">
- <div id=\"nomH\">
- <span>{{ 'Horarios' | trans}}</span>
- </div>
- <div id=\"textH\">
- {% for franja in oficina.franjas %}
- >{{ franja.nombre }}:
- {# FOR DE LAS HORAS #}
- {% for horas in franja.franjaHoras %}
- <strong> {{ horas.horaInicio |date('H:i') }}
- a {{ horas.horaFin |date('H:i') }} </strong>
- {% endfor %}
- <br/>
- {% endfor %}
- {% set hoy = \"now\"|date(\"Y-m-d\") %}
- {% for festivo in oficina.dayoffs %}
- {% set fechaFestivo = festivo.date|date(\"Y-m-d\") %}
- {% set segundosEnUnDia = 86400 %}
- {% set segundosDeDiferencia = fechaFestivo|date(\"U\") - hoy|date(\"U\") %}
- {% set diasDeDiferencia = segundosDeDiferencia / segundosEnUnDia %}
- {% if fechaFestivo == hoy or diasDeDiferencia >= -2 and diasDeDiferencia <= 30 %}
- {% for hor in festivo.horarioReducidos %}
- <div>
- >Festivo: <strong>{{ festivo.date |date('d/m/Y') }}{% if hor.horaInicio|date('H:i') != '00:00' %} - {{ hor.horaInicio |date('H:i') }} a {{ hor.horaFin |date('H:i') }} {% endif %}</strong>
- </div>
- {% endfor %}
- {% endif %}
- {% endfor %}
- </div>
- </div>
- <div id=\"tel\" class=\"col-12 col-md-4\">
- <span>{{ oficina.telefono }}</span>
- </div>
- </div>
- <div id=\"info-ofi\">
- <div id=\"lin-ofi\" class=\"row\">
- <div class=\"texto col-12 col-lg-6\">
- <p id=\"title\">{{ oficina.title }}</p>
- {{ oficina.descripcion|raw }}
- </div>
- <div class=\"tabla col-12 col-lg-6\">
- <p class=\"precios\">{{ 'Precios' | trans}}</p>
- <div class=\"cont-table\">
- <table id=\"tabla-cot\">
- <tr>
- <th>{{ 'Divisa' | trans}}</th>
- <th>{{ 'Compramos' | trans}}</th>
- <th>{{ 'Vendemos' | trans}}</th>
- </tr>
- {% for cotizacion in cotizaciones %}
- <tr data-oficina=\"{{ cotizacion.oficina }}\">
- <td>
- <a class=\"d-none d-sm-block\" href=\"{{ path('divisas', {'nombre': cotizacion.shortName.slug(app.request.locale)}) }}\"><span class=\"banderas\">
- {% if cotizacion.shortName.imagen %}
- {{ sonata_thumbnail(cotizacion.shortName.imagen, 'flag') }}
- {% endif %}
- </span>{{ cotizacion.shortName.nombre }}</a>
- <a class=\"d-block d-sm-none\" href=\"{{ path('divisas', {'nombre': cotizacion.shortName.slug(app.request.locale)}) }}\"><span class=\"banderas\">
- {% if cotizacion.shortName.imagen %}
- {{ sonata_thumbnail(cotizacion.shortName.imagen, 'flag') }}
- {% endif %}
- </span>{{ cotizacion.shortName }}</a>
- </td>
- <td>
- {% if cotizacion.oficina.id == 66 %}
- -
- {% elseif oficina.franjas is empty %}
- -
- {% else %}
- {{ cotizacion.precioCompra|number_format(cotizacion.shortName.numDecimales) }}
- {% endif %}
- </td>
- <td>
- {% if oficina.franjas is empty %}
- -
- {% elseif cotizacion.oficina.permiteCompra == 1 %}
- {{ cotizacion.precioVenta|number_format(cotizacion.shortName.numDecimales) }}
- {% else %}
- -
- {% endif %}
- </td>
- </tr>
- {% endfor %}
- </table>
- </div>
- {% if oficina != \"\" %}<p class=\"info-select\">{{ 'Precios para' | trans}} {{ diaMax }}</p>{% endif %}
- <div id=\"mas-cot\">
- <a href=\"/cotizaciones\">{{ 'Ver mas cotizaciones >' | trans}}</a>
- </div>
- </div>
- </div>
- </div>
- {% if oficina.servicios | length > 0 %}
- <h2>{{ 'Servicios disponibles en esta oficina de cambio' | trans }}</h2>
- <div id=\"ofi-servicios\" class=\"row\">
- <ul>
- {% for servicio in oficina.servicios %}
- <li >
- <div class=\"card\">
- {% if servicio.imagenCabecera %}
- {{ sonata_thumbnail(servicio.imagenCabecera, 'reference') }}
- {% elseif servicio.translate('es').imagenCabecera %}
- {{ sonata_thumbnail(servicio.translate('es').imagenCabecera, 'reference') }}
- {% endif %}
- <div class=\"card-body\">
- <h5 class=\"card-title\">{{ servicio.texto }}</h5>
- </div>
- </div>
- <li>
- {% endfor %}
- <ul>
- </div>
- {% endif %}
- <div id=\"text-servicios\">
- {{ oficina.serviciosTexto|raw }}
- </div>
- <div id=\"mapa\" class=\"container\">
- <div id=\"map\"></div>
- <div id=\"texto-mapa\">
- <p>{{ oficina.direccion }}</p>
- <a target=\"_blank\" href=\"https://www.google.com/maps/dir/Current+Location/{{ oficina.latitud }},{{ oficina.longitud }}\">{{ '¿Cómo llegar? >' | trans}}</a>
- </div>
- </div>
- <div id=\"resto\" class=\"container\">
- <p id=\"ind\">{{ 'Indicaciones para llegar:' | trans}}</p>
- {{ oficina.indicaciones|raw }}
- </div>
- </div>
- {% block empresas %}
- {{ render(controller('App\\\\Controller\\\\DefaultController::empresas' )) }}
- {% endblock %}
- {# {{ dump(oficinaIdioma) }} #}
- {% endblock %}
- {% block javascripts_footer %}
- {{ parent() }}
- <script>
- // function initMap() {
- //
- // var mapElement = document.getElementById('map');
- //
- // if (mapElement) {
- //
- // var map = new google.maps.Map(mapElement, {
- // center: { lat: {{ oficina.latitud }}, lng: {{ oficina.longitud }} },
- // zoom: 12
- // });
- // }
- // }
- </script>
- {% include \"includes/mapa_javascript.html.twig\" with { oficinasMapa:[oficina] } only %}
- {% endblock %}
- ", "default/ficha_oficina.html.twig", "/home/alien/www/eurochange/templates/default/ficha_oficina.html.twig");
- }
- }