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