Plugin Directory

Changeset 1313005


Ignore:
Timestamp:
12/20/2015 06:30:43 PM (10 years ago)
Author:
parelius
Message:
  • Adapted code to a change in MapToolKit Widgets
Location:
xmap/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • xmap/trunk/includes/shortcodes.php

    r896760 r1313005  
    2222            'route' => '',
    2323            'user' => '',
    24             'extended' => $options['extended'] == '1' ? 'true' : 'false',
     24            'extended' => $options['extended'] == 'true' ? 1 : 0,
    2525            'unit' => $options['unit'],
    2626            'width' => $options['width'],
     
    4141       
    4242        $maptype = xmap_maptype_id($type);
     43        $ext = $extended == "true" || $extended == 1 ? 1 : 0;
    4344
    44         $src = "http://$domain/$dir/widget?width=$width&height=$height&extended=$extended&unit=$unit&redirect=no";
     45        $src = "http://$domain/$dir/widget?width=$width&height=$height&extended=$ext&unit=$unit";
    4546       
    46         return xmap_print_map($src, (int) $width, $extended == 'true' ? (int) $height + 105 : (int) $height);
     47        return xmap_print_map($src, (int) $width, $ext == 1 ? (int) $height + 105 : (int) $height);
    4748}
    4849
  • xmap/trunk/readme.txt

    r1312552 r1313005  
    44Requires at least: 3.0
    55Tested up to: 4.5
    6 Stable tag: 1.2
     6Stable tag: 1.3
    77
    88XMap lets you embed maptoolkit maps (like www.bikemap.net) into your WordPress blog.
     
    6060== Changelog ==
    6161
     62= 1.3 =
     63* Adapted code to a change in MapToolKit Widgets
     64
    6265= 1.2 =
    6366* Fixed a problem with included file paths that prevented plugin from being activated
  • xmap/trunk/xmap.php

    r1312559 r1313005  
    33Plugin Name: XMap
    44Description: Embed maps from the following domains into WordPress: <a href='http://www.bikemap.net'>bikemap.net</a>, <a href='http://www.runmap.net'>runmap.net</a>, <a href='http://www.inlinemap.net'>inlinemap.net</a>, <a href='http://www.wandermap.net'>wandermap.net</a>, <a href='http://www.mopedmap.net'>mopedmap.net</a>
    5 Version: 1.2
     5Version: 1.3
    66Text Domain: xmap
    77Author: Matthias Scheidl <dev@scheidl.name>
Note: See TracChangeset for help on using the changeset viewer.