diff --git a/init/dicionario.js b/init/dicionario.js index 2f486bc..f97af97 100755 --- a/init/dicionario.js +++ b/init/dicionario.js @@ -244,5 +244,40 @@ g_traducao_init = en : "", es : "" } + ], + 36 : [ + { + pt : "Abrir", + en : "Open", + es : "Abrir" + } + ], + "mapas" : [ + { + pt : "Mapas", + en : "Maps", + es : "Mapas" + } + ], + "docs" : [ + { + pt : "Docs", + en : "Docs", + es : "DOcs" + } + ], + "admin" : [ + { + pt : "Admin", + en : "Admin", + es : "Admin" + } + ], + "comunidade" : [ + { + pt : "Comunidade", + en : "", + es : "" + } ] }; diff --git a/init/index.js b/init/index.js index 6d39f06..8d2e80f 100755 --- a/init/index.js +++ b/init/index.js @@ -1,19 +1,5 @@ -botoesIni = []; -botoesIni.push({ - "img":"certificate-server.png", - "href":"../testainstal.php", - "titulo":$trad(2,g_traducao_init), - "subtitulo": "Verifica se a instalação do i3Geo está correta e mostra algumas das características do servidor, como as versões dos softwares básicos instalados.", - "fa": "check", - "atalho": false -},{ - "img":"applications-development-web.png", - "href":"../admin", - "titulo":$trad(3,g_traducao_init), - "subtitulo": "", - "fa": "cogs", - "atalho": true -},{ +botoesIni = [ +{ "img":"openlayers.png", "href":"..//black_ol.htm", "titulo":$trad(4,g_traducao_init), @@ -21,13 +7,6 @@ botoesIni.push({ "fa": "map-o", "atalho": true },{ - "img":"openlayersdebug.png", - "href":"..//openlayersdebug.htm", - "titulo":$trad(5,g_traducao_init), - "subtitulo": "", - "fa": "map-o", - "atalho": true -},{ "img":"osm.png", "href":"..//black_osm.htm", "titulo":$trad(23,g_traducao_init), @@ -119,6 +98,27 @@ botoesIni.push({ "fa": "link", "atalho": false },{ + "img":"openlayersdebug.png", + "href":"..//openlayersdebug.htm", + "titulo":$trad(5,g_traducao_init), + "subtitulo": "", + "fa": "map-o", + "atalho": true +},{ + "img":"certificate-server.png", + "href":"../testainstal.php", + "titulo":$trad(2,g_traducao_init), + "subtitulo": "Verifica se a instalação do i3Geo está correta e mostra algumas das características do servidor, como as versões dos softwares básicos instalados.", + "fa": "check", + "atalho": false +},{ + "img":"applications-development-web.png", + "href":"../admin", + "titulo":$trad(3,g_traducao_init), + "subtitulo": "", + "fa": "cogs", + "atalho": true +},{ "img":"folder-image.png", "href":"../exemplos", "titulo":$trad(14,g_traducao_init), @@ -181,10 +181,9 @@ botoesIni.push({ "fa": "envelope", "atalho": true } -); +]; function mostraBotoes(){ $i("mensagemLogin").innerHTML = men; - i3GEO.configura = {"locaplic" : ".."}; i3GEO.idioma.IDSELETOR = "bandeiras"; i3GEO.idioma.mostraSeletor(); @@ -202,20 +201,24 @@ function mostraBotoes(){ $i("conteudo").style.height = i3GEO.util.getScrollHeight() + "px"; } //TODO um dia, remover as imagens da pasta init e deixar apenas as da pasta init/imagens -function mostraBotoesBT(template,men){ +function mostraBotoesBT(men){ + var html = ""; + //menu + html = Mustache.to_html( + $("#menuTpl").html(), + i3GEO.idioma.objetoIdioma(g_traducao_init) + ); + $("#menuTpl").html(html); + // $i("mensagemLogin").innerHTML = men; $i("jumbotron").innerHTML = "

"+$trad(35,g_traducao_init)+"

"; i3GEO.configura = {"locaplic" : ".."}; i3GEO.idioma.IDSELETOR = "bandeiras"; i3GEO.idioma.mostraSeletor(); - //i3GEO.barraDeBotoes.ATIVA = false; - var ins = [],i,n = botoesIni.length; - for(i=0;i{{{titulo}}}', botoesIni[i])); - //} - } - $i("botoes").innerHTML = ins.join(""); + html = Mustache.to_html( + "{{#d}}" + $("#botoesTpl").html() + "{{/d}}", + {"d":botoesIni,"abrir" : $trad(36,g_traducao_init)} + ); + $("#botoesTpl").html(html); } + diff --git a/init/nindex.php b/init/nindex.php index 6fbaf43..54cd540 100755 --- a/init/nindex.php +++ b/init/nindex.php @@ -99,9 +99,27 @@ define ( "ONDEI3GEO", ".." ); - + + @@ -113,9 +131,29 @@ define ( "ONDEI3GEO", ".." );
-
-
- + +
+
+
+
+
+ +
+

{{{titulo}}}

+
+

{{{subtitulo}}}

+
+
+ +
+
+