Commit 92ef7cd7609c95169898a101f6cc57151637b2e5
1 parent
d0e934b9
Exists in
master
and in
7 other branches
Incluido o botão "curtir" do facebook como uma opção de um tema na árvore de camadas
Showing
4 changed files
with
25 additions
and
4 deletions
Show diff stats
admin/admin.db
No preview for this file type
classesjs/classe_arvoredecamadas.js
| ... | ... | @@ -246,7 +246,9 @@ i3GEO.arvoreDeCamadas = { |
| 246 | 246 | |
| 247 | 247 | "editorsql":"sim", |
| 248 | 248 | |
| 249 | - "iconetema":"" | |
| 249 | + "iconetema":"", | |
| 250 | + | |
| 251 | + "permitecomentario":"" | |
| 250 | 252 | } |
| 251 | 253 | ] |
| 252 | 254 | |
| ... | ... | @@ -698,6 +700,20 @@ i3GEO.arvoreDeCamadas = { |
| 698 | 700 | iconesNode = new YAHOO.widget.HTMLNode(d, node, false,true); |
| 699 | 701 | iconesNode.enableHighlight = false; |
| 700 | 702 | iconesNode.isLeaf = true; |
| 703 | + | |
| 704 | + if(ltema.permitecomentario.toLowerCase() !== "nao" && i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios == true) | |
| 705 | + { | |
| 706 | + temp = i3GEO.configura.locaplic+"/ms_criamapa.php?layers="+ltema.name; | |
| 707 | + tnome = "<iframe src='http://www.facebook.com/plugins/like.php?href="+temp+"&layout=button_count&show_faces=false&width=100&action=like&colorscheme=light&height=21' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:100px; height:21px;' allowTransparency='true'></iframe>"; | |
| 708 | + d = {html:tnome}; | |
| 709 | + iconesNode = new YAHOO.widget.HTMLNode(d, node, false,true); | |
| 710 | + iconesNode.enableHighlight = false; | |
| 711 | + iconesNode.isLeaf = true; | |
| 712 | + | |
| 713 | + } | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 701 | 717 | } |
| 702 | 718 | if(i3GEO.arvoreDeCamadas.OPCOESTEMAS === true){ |
| 703 | 719 | conteudo = $trad("t18a"); |
| ... | ... | @@ -778,9 +794,10 @@ i3GEO.arvoreDeCamadas = { |
| 778 | 794 | //i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t43"),$trad("t43"),'i3GEO.tema.dialogo.aplicarsld(\"'+ltema.name+'\")',node); |
| 779 | 795 | if(ltema.editorsql == "sim" || ltema.editorsql == "SIM") |
| 780 | 796 | {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t40"),$trad("t41"),'i3GEO.tema.dialogo.editorsql(\"'+ltema.name+'\")',node);} |
| 781 | - if(ltema.permitecomentario.toLowerCase() !== "nao") | |
| 782 | - {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t45"),$trad("t45"),'i3GEO.tema.dialogo.comentario(\"'+ltema.name+'\")',node);} | |
| 783 | - | |
| 797 | + if(ltema.permitecomentario.toLowerCase() !== "nao" && i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios == true) | |
| 798 | + { | |
| 799 | + i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t45"),$trad("t45"),'i3GEO.tema.dialogo.comentario(\"'+ltema.name+'\")',node); | |
| 800 | + } | |
| 784 | 801 | if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir == true) |
| 785 | 802 | {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t44"),"<span style=color:red >"+$trad("t44")+"</span>",'i3GEO.tema.dialogo.salvaMapfile(\"'+ltema.name+'\")',node);} |
| 786 | 803 | node.loadComplete(); | ... | ... |
interface/openlayers.htm
| ... | ... | @@ -204,6 +204,7 @@ i3GEO.idioma.IDSELETOR = "seletorIdiomas"; |
| 204 | 204 | i3GEO.Interface.ATIVAMENUCONTEXTO = false; |
| 205 | 205 | i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; |
| 206 | 206 | i3GEO.arvoreDeTemas.ATIVATEMAIMEDIATO = true; |
| 207 | +i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios = true; | |
| 207 | 208 | // |
| 208 | 209 | //esta é uma variável interna do OpenLayers que define o endereço do diretório onde estão as imagens usadas nos ícones |
| 209 | 210 | // | ... | ... |
ms_criamapa.php