v3.2 which I released yesterday, introduced conditional css loading. This means that the plugin´s css files are only loaded, if you use a shortcode within your content. The solution behind this had one disadvantage: if you added maps directly to your template files via do_shortcode(), the css files were not loaded. As I assumed that if a person changed the template file, he/she is also capable of adding additional code to header.php, I implemented a manual fallback – displaying an infobox with what to do if you used this method to add maps to your site.
What I didn´t think about was that the person using a WordPress template is not necessary the one who added do_shortcode() to the files. Beside that, I wasn´t very happy with this approach either, as I want my plugin to be usable out of the box – without having users to change something within their template files.
This is the reason why I released v3.2.1 today where I implemented a different solution for checking for do_shortcode() within template files and if the string [mapsmarker is found, the css files get enqueued to your site´s header.
One personal request: as WordPress added a new review feature for plugins hosted on wordpress.org, I kindly invite you to leave your opinion about my plugin at http://wordpress.org/support/view/plugin-reviews/leaflet-maps-marker.
Thanks to many motivated contributors, v3.2.1 comes with the following translation updates:
- Chinese thanks to John Shen, http://www.synyan.net
If you want to contribute to translations (Persian would be great 😉 ), please visit http://translate.mapsmarker.com/projects/lmm for more information.
- recent marker widget showed error message with WordPress 3.5
- margin was added within basemap control box on some templates
Full changelog (show previous changelogs)
|no more manual template edits needed if you use do_shortcode() to display maps|
|updated Chinese translation thanks to John Shen, http://www.synyan.net|
|updated German translation|
|recent marker widget showed error message with WordPress 3.5|
|margin was added within basemap control box on some templates|
Please let me what you think of this new release. If you have any issues, please see this page on how to get support. If an important feature is missing, please add your feature requests on Github. I am also looking for more translations – if you would like to contribute a new one, please visit this page for more information. And of course I´d very appreciate your review for my plugin on wordpress.org 😉