| 1 |
<?php |
| 2 |
/** |
| 3 |
* GPX Shortcode |
| 4 |
* |
| 5 |
* Use with [leaflet-gpx src="..."] |
| 6 |
* |
| 7 |
* PHP Version 5.5 |
| 8 |
* |
| 9 |
* @category Shortcode |
| 10 |
* @author Benjamin J DeLong <ben@bozdoz.com> |
| 11 |
*/ |
| 12 |
|
| 13 |
// Exit if accessed directly |
| 14 |
if (!defined('ABSPATH')) { |
| 15 |
exit; |
| 16 |
} |
| 17 |
|
| 18 |
require_once LEAFLET_MAP__PLUGIN_DIR . 'shortcodes/class.geojson-shortcode.php'; |
| 19 |
|
| 20 |
/** |
| 21 |
* Leaflet GPX Shortcode |
| 22 |
*/ |
| 23 |
class Leaflet_Gpx_Shortcode extends Leaflet_Geojson_Shortcode |
| 24 |
{ |
| 25 |
/** |
| 26 |
* How leaflet renders the src |
| 27 |
* |
| 28 |
* @var string $type |
| 29 |
*/ |
| 30 |
public static $type = 'gpx'; |
| 31 |
} |