From ac92a5b7956087f22d2f69ff0997f65f700148c0 Mon Sep 17 00:00:00 2001 From: Welington De Lima Olegario Date: Thu, 26 Dec 2024 15:04:03 -0300 Subject: [PATCH] =?UTF-8?q?Cria=20chave=20de=20configura=C3=A7=C3=A3o=20ti?= =?UTF-8?q?leserver?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev/config.d/0.main.php | 2 ++ docker/common/config.d/0.main.php | 2 ++ themes/IberCulturaViva/Theme.php | 6 ++++++ 3 files changed, 10 insertions(+) diff --git a/dev/config.d/0.main.php b/dev/config.d/0.main.php index 05f4e0e..61bec22 100644 --- a/dev/config.d/0.main.php +++ b/dev/config.d/0.main.php @@ -6,6 +6,8 @@ 'app.verifiedSealsIds' => '1', 'cep.token' => '', + 'maps.tileServer' => 'https://tileserver.map.as/{z}/{x}/{y}.png?lang=pt', + 'themes.active' => 'IberCulturaViva', 'slim.debug' => true, diff --git a/docker/common/config.d/0.main.php b/docker/common/config.d/0.main.php index 6c62d69..239744d 100644 --- a/docker/common/config.d/0.main.php +++ b/docker/common/config.d/0.main.php @@ -4,6 +4,8 @@ 'app.siteName' => 'Mapa IberCultura Viva', 'app.siteDescription' => 'O Mapas Culturais é uma plataforma colaborativa que reúne informações sobre agentes, espaços, eventos, projetos culturais e oportunidades', + + 'maps.tileServer' => 'https://tileserver.map.as/{z}/{x}/{y}.png?lang=pt', // Define o tema ativo no site principal. Deve ser informado o namespace do tema e neste deve existir uma classe Theme. 'themes.active' => 'IberCulturaViva', diff --git a/themes/IberCulturaViva/Theme.php b/themes/IberCulturaViva/Theme.php index 263b921..c211963 100644 --- a/themes/IberCulturaViva/Theme.php +++ b/themes/IberCulturaViva/Theme.php @@ -52,6 +52,12 @@ function _init() $this->config['text:home-developers.description'] = "El Mapa IberCultura Viva es un software libre, desarrollado de manera colaborativa con instituciones, organizaciones y colectivos culturales. Puedes contribuir al desarrollo de la plataforma accediendo al código en GitHub y participando en esta construcción colectiva que fortalece la cultura en Iberoamérica."; $this->config["text:home-map.description"] = "Los agentes, los espacios y los eventos registrados cuentan con la geolocalización de sus direcciones, encontralos acá:"; } + + if ($this->config['app.lcode'] == 'pt_BR') { + $this->config['maps.tileServer'] = 'https://tileserver.map.as/{z}/{x}/{y}.png?lang=pt'; + } else { + $this->config['maps.tileServer'] = 'https://tileserver.map.as/{z}/{x}/{y}.png?lang=es'; + } }); } }