forked from bozdoz/wp-plugin-leaflet-map
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bozdoz
committed
Apr 2, 2018
1 parent
653219b
commit ee13546
Showing
3 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,11 @@ | |
* Marker Shortcode | ||
* | ||
* Use with [leaflet-marker ...] | ||
* | ||
* PHP Version 5.5 | ||
* | ||
* @category Shortcode | ||
* @author Benjamin J DeLong <[email protected]> | ||
*/ | ||
|
||
// Exit if accessed directly | ||
|
@@ -12,8 +17,21 @@ | |
|
||
require_once LEAFLET_MAP__PLUGIN_DIR . 'shortcodes/class.shortcode.php'; | ||
|
||
class Leaflet_Marker_Shortcode extends Leaflet_Shortcode { | ||
protected function getHTML ($atts='', $content=null) { | ||
/** | ||
* Leaflet Marker Shortcode Class | ||
*/ | ||
class Leaflet_Marker_Shortcode extends Leaflet_Shortcode | ||
{ | ||
/** | ||
* Get Script for Shortcode | ||
* | ||
* @param string $atts could be an array | ||
* @param string $content optional | ||
* | ||
* @return null | ||
*/ | ||
protected function getHTML($atts='', $content=null) | ||
{ | ||
if (!empty($atts)) { | ||
extract($atts); | ||
} | ||
|