Changeset 1947611
- Timestamp:
- 09/26/2018 07:36:44 PM (8 years ago)
- Location:
- map-pins/trunk
- Files:
-
- 3 edited
-
include/mappins.php (modified) (1 diff)
-
include/xcos.php (modified) (2 diffs)
-
map-pins.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
map-pins/trunk/include/mappins.php
r1947610 r1947611 314 314 <table class="form-table"><?php 315 315 xcos::TrFormInput('adminmenu',__('Admin menu name:','mappins'),xcos::ifset($options['adminmenu'],'Map pins'),['size'=>40]); 316 xcos::TrFormInput('googlekey',__('Google Maps Api key:','mappins'),xcos::ifset($options['googlekey'],'GOOGLE-API-KEY'),['size'=>60]); 317 echo "<div>Get your <a href='https://developers.google.com/maps/documentation/javascript/get-api-key'>google maps API key</a></div>"; 316 xcos::TrFormInput('googlekey',__('Google Maps Api key:','mappins'),xcos::ifset($options['googlekey'],'GOOGLE-API-KEY'),['size'=>60], 317 "Get your <a href='https://developers.google.com/maps/documentation/javascript/get-api-key'>google maps API key</a>" 318 ); 318 319 xcos::TrFormInput('categories',__('Categories:<br>(comma separated list)', 'mappins'),xcos::ifset($options['categories'],'first,second'),array('size'=>40)); 319 320 xcos::TrFormSelect('defcountry',__('Default country', 'mappins'),xcos::ifset($options['defcountry'],'NL'),xcos_country::getCountries()); -
map-pins/trunk/include/xcos.php
r1947508 r1947611 31 31 } 32 32 33 static public function TrFormInput($name,$label,$value='',$args=array() ) {33 static public function TrFormInput($name,$label,$value='',$args=array(),$helptext='') { 34 34 $fullid="mappin_map_$name"; 35 35 $fullname="mappin_map[$name]"; … … 38 38 <th scope="row"><label for="'.$fullid.'">'.$label.'</label></th> 39 39 <td> 40 <input type="text" '.XCos::args2tags($args).' name="'.$fullname.'" id="'.$fullid.'" value="'.$value.'" /> 41 </td> 40 <input type="text" '.XCos::args2tags($args).' name="'.$fullname.'" id="'.$fullid.'" value="'.$value.'" />'. 41 ($helptext?'<div>'.$helptext.'</div>':''). 42 '</td> 42 43 </tr>'; 43 44 } -
map-pins/trunk/map-pins.php
r1947610 r1947611 4 4 * Plugin URI: http://mappins.innovader.nl 5 5 * Description: Show pins on a map from an admin defined table 6 * Version: 1.1 06 * Version: 1.11 7 7 * Author: Innovader BV 8 8 * Author URI: http://innovader.nl
Note: See TracChangeset
for help on using the changeset viewer.