File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 157157 'link ' => $ _POST ['osm_right_link ' ],
158158 'linkcss ' => $ _POST ['osm_right_linkcss ' ],
159159 'showosm ' => get_boolean ($ _POST ['osm_showosm ' ]),
160+ 'showlatlon ' => get_boolean ($ _POST ['osm_showlatlon ' ]),
160161 ),
161162 'left_menu ' => array (
162163 'enabled ' => get_boolean ($ _POST ['osm_left_menu ' ]),
Original file line number Diff line number Diff line change @@ -68,6 +68,12 @@ Refer to the <a href="https://github.com/xbgmsharp/piwigo-openstreetmap/wiki" ta
6868 <label ><input type =" radio" name =" osm_showosm" value =" false" { if not $right_panel .showosm} checked =" checked" { /if } /> { ' No' |@translate} </label >
6969 <br /><small >{ ' SHOWOSM_DESC' |@translate} </small >
7070 </li >
71+ <li >
72+ <label >{ ' SHOWLATLON' |@translate} : </label >
73+ <label ><input type =" radio" name =" osm_showlatlon" value =" true" { if $right_panel .showlatlon} checked =" checked" { /if } /> { ' Yes' |@translate} </label >
74+ <label ><input type =" radio" name =" osm_showlatlon" value =" false" { if not $right_panel .showlatlon} checked =" checked" { /if } /> { ' No' |@translate} </label >
75+ <br /><small >{ ' SHOWLATLON_DESC' |@translate} </small >
76+ </li >
7177 </ul >
7278 </fieldset >
7379 <fieldset >
Original file line number Diff line number Diff line change 1515$ lang ['RIGHTLINKCSS_DESC ' ] = 'Custom CSS style to apply to the location header. ' ;
1616$ lang ['SHOWOSM ' ] = "Display 'View on OpenStreetMap' " ;
1717$ lang ['SHOWOSM_DESC ' ] = "Add a link after the map to view it on OpenStreetMap. " ;
18+ $ lang ['SHOWLATLON ' ] = "Display latitude and longitude " ;
19+ $ lang ['SHOWLATLON_DESC ' ] = "Add latitude and longitude values next to the map. " ;
1820$ lang ['L_MAP ' ] = "Left menu configuration " ;
1921$ lang ['SHOWWORLDMAPLEFT ' ] = "Add a world map menu on the left " ;
2022$ lang ['SHOWWORLDMAPLEFT_DESC ' ] = 'Show a world map menu on the left menu, will display all the images in the gallery. ' ;
Original file line number Diff line number Diff line change 1515$ lang ['RIGHTLINKCSS_DESC ' ] = 'Style de CSS à appliquer au titre. ' ;
1616$ lang ['SHOWOSM ' ] = 'Affiche \'Voir sur OpenStreetMap \'' ;
1717$ lang ['SHOWOSM_DESC ' ] = 'Ajoute un lien après la carte pour être visualiser sur le site web OpenStreetMap. ' ;
18+ $ lang ['SHOWLATLON ' ] = "Affiche la latitude et la longitude " ;
19+ $ lang ['SHOWLATLON_DESC ' ] = "Ajoute les valeurs de latitude et longitude à côté de la carte. " ;
1820
1921$ lang ['L_MAP ' ] = 'Configuration du menu de gauche ' ;
2022$ lang ['SHOWWORLDMAPLEFT ' ] = 'Ajoute un menu "carte mondiale" sur la gauche ' ;
132134$ lang ['OSM_NEW_PLACE ' ] = 'Nouveau lieu ' ;
133135$ lang ['OSM_ADD_PLACE ' ] = 'Ajouter un lieu ' ;
134136$ lang ['EDIT_PLACES ' ] = 'Éditer les lieux sélectionnés ' ;
135- $ lang ['DELETE_PLACES ' ] = 'Supprimer les lieux sélectionnés ' ;
137+ $ lang ['DELETE_PLACES ' ] = 'Supprimer les lieux sélectionnés ' ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ class piwigo_openstreetmap_maintain extends PluginMaintain
1717 'link ' => 'Location ' ,
1818 'linkcss ' => null ,
1919 'showosm ' => true ,
20+ 'showlatlon ' => false ,
2021 ),
2122 'left_menu ' => array (
2223 'enabled ' => true ,
@@ -213,4 +214,4 @@ function uninstall()
213214 @unlink (PHPWG_ROOT_PATH .'osmmap.php ' );
214215 }
215216 }
216- }
217+ }
Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ function osm_insert_map($content)
7575 {if $SHOWOSM}
7676 <a href="{$OSMLINK}" target="_blank">{"VIEW_OSM"|@translate}</a>
7777 {/if}
78+ {if $SHOWLATLON}
79+ <br><span>{$OSMNAME} : {$LAT} {$LON}</span>
80+ {/if}
7881 </dd>
7982</div>
8083{/if}
@@ -111,6 +114,7 @@ function osm_render_element_content()
111114 $ osmname = isset ($ conf ['osm_conf ' ]['right_panel ' ]['link ' ]) ? $ conf ['osm_conf ' ]['right_panel ' ]['link ' ] : 'Location ' ;
112115 $ osmnamecss = isset ($ conf ['osm_conf ' ]['right_panel ' ]['linkcss ' ]) ? $ conf ['osm_conf ' ]['right_panel ' ]['linkcss ' ] : '' ;
113116 $ showosm = isset ($ conf ['osm_conf ' ]['right_panel ' ]['showosm ' ]) ? $ conf ['osm_conf ' ]['right_panel ' ]['showosm ' ] : 'true ' ;
117+ $ showlatlon = isset ($ conf ['osm_conf ' ]['right_panel ' ]['showlatlon ' ]) ? $ conf ['osm_conf ' ]['right_panel ' ]['showlatlon ' ] : 'true ' ;
114118 if (strlen ($ osmnamecss ) != 0 )
115119 {
116120 $ osmnamecss = "style=' " .$ osmnamecss ."' " ;
@@ -145,6 +149,9 @@ function osm_render_element_content()
145149 'OSMNAMECSS ' => $ osmnamecss ,
146150 'SHOWOSM ' => $ showosm ,
147151 'OSMLINK ' => $ osmlink ,
152+ 'SHOWLATLON ' => $ showlatlon ,
153+ 'LAT ' => $ lat ,
154+ 'LON ' => $ lon ,
148155 )
149156 );
150157
You can’t perform that action at this time.
0 commit comments