Plugin Directory

Changeset 1947611


Ignore:
Timestamp:
09/26/2018 07:36:44 PM (8 years ago)
Author:
rvwoens
Message:

incremental

Location:
map-pins/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • map-pins/trunk/include/mappins.php

    r1947610 r1947611  
    314314        <table class="form-table"><?php
    315315            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            );
    318319            xcos::TrFormInput('categories',__('Categories:<br>(comma separated list)', 'mappins'),xcos::ifset($options['categories'],'first,second'),array('size'=>40));       
    319320            xcos::TrFormSelect('defcountry',__('Default country', 'mappins'),xcos::ifset($options['defcountry'],'NL'),xcos_country::getCountries());       
  • map-pins/trunk/include/xcos.php

    r1947508 r1947611  
    3131    }
    3232   
    33     static public function TrFormInput($name,$label,$value='',$args=array()) {
     33    static public function TrFormInput($name,$label,$value='',$args=array(),$helptext='') {
    3434        $fullid="mappin_map_$name";
    3535        $fullname="mappin_map[$name]";
     
    3838                <th scope="row"><label for="'.$fullid.'">'.$label.'</label></th>
    3939                <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>
    4243            </tr>';
    4344    }
  • map-pins/trunk/map-pins.php

    r1947610 r1947611  
    44 * Plugin URI: http://mappins.innovader.nl
    55 * Description: Show pins on a map from an admin defined table
    6  * Version: 1.10
     6 * Version: 1.11
    77 * Author: Innovader BV
    88 * Author URI: http://innovader.nl
Note: See TracChangeset for help on using the changeset viewer.