Version Description
- Fixed: Minor bugs
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.0.25 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.24 to 1.0.25
- admin/controllers/GMWDControllerMaps_gmwd.php +42 -37
- featured/featured.php +8 -1
- featured/images/mailchimp.png +0 -0
- featured/style.css +1 -0
- framework/GMWDHelper.php +5 -5
- gmwd_admin_class.php +1 -1
- readme.txt +4 -1
- wd-google-maps.php +1 -1
admin/controllers/GMWDControllerMaps_gmwd.php
CHANGED
|
@@ -113,49 +113,54 @@ class GMWDControllerMaps_gmwd extends GMWDController{
|
|
| 113 |
|
| 114 |
protected function dublicate($table_name = ""){
|
| 115 |
global $wpdb;
|
|
|
|
| 116 |
if(isset($_POST["ids"])){
|
| 117 |
$ids = $_POST["ids"] ;
|
| 118 |
}
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
$wpdb->insert( $wpdb->prefix . "gmwd_maps", $data, $format );
|
| 138 |
-
$last_map_id = $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "gmwd_maps");
|
| 139 |
-
|
| 140 |
-
$this->shortcode_id = $max_shortcode_id + 1;
|
| 141 |
-
$this->map = $last_map_id;
|
| 142 |
-
$this->store_shortcode();
|
| 143 |
-
|
| 144 |
-
foreach($pois as $poi){
|
| 145 |
-
$columns = GMWDModel::get_columns("gmwd_".$poi);
|
| 146 |
-
unset($columns[0]);
|
| 147 |
-
$inserted_columns = $columns;
|
| 148 |
-
$inserted_columns[array_search("map_id",$inserted_columns)] = $last_map_id;
|
| 149 |
-
$columns = implode(",", $columns);
|
| 150 |
-
$inserted_columns = implode(",", $inserted_columns);
|
| 151 |
-
$rows_poi = $wpdb->query("INSERT INTO " . $wpdb->prefix . "gmwd_".$poi." (".$columns.")
|
| 152 |
-
SELECT ".$inserted_columns." FROM " . $wpdb->prefix . "gmwd_".$poi." WHERE map_id = '". (int)$id."'");
|
| 153 |
|
| 154 |
-
|
| 155 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
$view = $this->view;
|
| 158 |
-
GMWDHelper::message(__("Item Succesfully Dublicated.","gmwd"),'updated');
|
| 159 |
$view->display();
|
| 160 |
}
|
| 161 |
|
| 113 |
|
| 114 |
protected function dublicate($table_name = ""){
|
| 115 |
global $wpdb;
|
| 116 |
+
$ids = array();
|
| 117 |
if(isset($_POST["ids"])){
|
| 118 |
$ids = $_POST["ids"] ;
|
| 119 |
}
|
| 120 |
+
if(empty($ids) === false){
|
| 121 |
+
$map_columns = GMWDModel::get_columns("gmwd_maps");
|
| 122 |
+
$map_column_types = GMWDModel::column_types("gmwd_maps");
|
| 123 |
+
|
| 124 |
+
$pois = array("markers", "polygons", "polylines");
|
| 125 |
+
foreach($ids as $id){
|
| 126 |
+
$row = $wpdb->get_row($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "gmwd_maps WHERE id = '%d'", (int)$id ));
|
| 127 |
+
$data = array();
|
| 128 |
+
$format = array();
|
| 129 |
+
foreach($map_columns as $column_name){
|
| 130 |
+
$data[$column_name] = esc_html(stripslashes($row->$column_name));
|
| 131 |
+
$format[] = $map_column_types[$column_name];
|
| 132 |
+
}
|
| 133 |
+
$data["id"] = "";
|
| 134 |
+
$max_shortcode_id = $wpdb->get_var("SELECT MAX(id) FROM ". $wpdb->prefix . "gmwd_shortcodes");
|
| 135 |
+
$data["shortcode_id"] = $max_shortcode_id + 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
|
| 137 |
+
|
| 138 |
+
$wpdb->insert( $wpdb->prefix . "gmwd_maps", $data, $format );
|
| 139 |
+
$last_map_id = $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "gmwd_maps");
|
| 140 |
+
|
| 141 |
+
$this->shortcode_id = $max_shortcode_id + 1;
|
| 142 |
+
$this->map = $last_map_id;
|
| 143 |
+
$this->store_shortcode();
|
| 144 |
+
|
| 145 |
+
foreach($pois as $poi){
|
| 146 |
+
$columns = GMWDModel::get_columns("gmwd_".$poi);
|
| 147 |
+
unset($columns[0]);
|
| 148 |
+
$inserted_columns = $columns;
|
| 149 |
+
$inserted_columns[array_search("map_id",$inserted_columns)] = $last_map_id;
|
| 150 |
+
$columns = implode(",", $columns);
|
| 151 |
+
$inserted_columns = implode(",", $inserted_columns);
|
| 152 |
+
$rows_poi = $wpdb->query("INSERT INTO " . $wpdb->prefix . "gmwd_".$poi." (".$columns.")
|
| 153 |
+
SELECT ".$inserted_columns." FROM " . $wpdb->prefix . "gmwd_".$poi." WHERE map_id = '". (int)$id."'");
|
| 154 |
|
| 155 |
+
}
|
| 156 |
+
}
|
| 157 |
+
GMWDHelper::message(__("Item Succesfully Duplicated.","gmwd"),'updated');
|
| 158 |
+
}
|
| 159 |
+
else{
|
| 160 |
+
GMWDHelper::message(__("You Must Select At Least One Item.","gmwd"),'updated');
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
$view = $this->view;
|
|
|
|
| 164 |
$view->display();
|
| 165 |
}
|
| 166 |
|
featured/featured.php
CHANGED
|
@@ -7,6 +7,12 @@ function spider_featured($current_plugin = '') {
|
|
| 7 |
'content' => 'Form Maker is a modern and advanced tool for creating WordPress forms easily and fast.',
|
| 8 |
'href' => 'https://web-dorado.com/products/wordpress-form.html'
|
| 9 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
"photo-gallery" => array(
|
| 11 |
'title' => 'Photo Gallery',
|
| 12 |
'text' => 'WordPress Photo Gallery plugin',
|
|
@@ -132,7 +138,8 @@ function spider_featured($current_plugin = '') {
|
|
| 132 |
'text' => 'Facebook Feed WD plugin',
|
| 133 |
'content' => 'Facebook Feed WD is a comprehensive tool for displaying Facebook feed, events and photos in your website.',
|
| 134 |
'href' => 'https://web-dorado.com/products/wordpress-facebook-feed-plugin.html'
|
| 135 |
-
),
|
|
|
|
| 136 |
);
|
| 137 |
?>
|
| 138 |
<div id="main_featured_plugins_page">
|
| 7 |
'content' => 'Form Maker is a modern and advanced tool for creating WordPress forms easily and fast.',
|
| 8 |
'href' => 'https://web-dorado.com/products/wordpress-form.html'
|
| 9 |
),
|
| 10 |
+
"mailchimp" => array(
|
| 11 |
+
'title' => 'MailChimp WD',
|
| 12 |
+
'text' => 'MailChimp WD plugin',
|
| 13 |
+
'content' => 'MailChimp WD is a functional plugin developed to create MailChimp subscribe/unsubscribe forms and manage lists from your WordPress site.',
|
| 14 |
+
'href' => 'https://web-dorado.com/products/wordpress-mailchimp-wd.html'
|
| 15 |
+
),
|
| 16 |
"photo-gallery" => array(
|
| 17 |
'title' => 'Photo Gallery',
|
| 18 |
'text' => 'WordPress Photo Gallery plugin',
|
| 138 |
'text' => 'Facebook Feed WD plugin',
|
| 139 |
'content' => 'Facebook Feed WD is a comprehensive tool for displaying Facebook feed, events and photos in your website.',
|
| 140 |
'href' => 'https://web-dorado.com/products/wordpress-facebook-feed-plugin.html'
|
| 141 |
+
),
|
| 142 |
+
|
| 143 |
);
|
| 144 |
?>
|
| 145 |
<div id="main_featured_plugins_page">
|
featured/images/mailchimp.png
ADDED
|
Binary file
|
featured/style.css
CHANGED
|
@@ -74,6 +74,7 @@
|
|
| 74 |
#main_featured_plugins_page #featured-plugins-list li.instagram_feed .product {background:url("images/instagram_feed.png") center center no-repeat;}
|
| 75 |
#main_featured_plugins_page #featured-plugins-list li.post-slider .product {background:url("images/post-slider.png") center center no-repeat;}
|
| 76 |
#main_featured_plugins_page #featured-plugins-list li.facebook-feed .product {background:url("images/facebook-feed.png") center center no-repeat;}
|
|
|
|
| 77 |
|
| 78 |
#main_featured_plugins_page #featured-plugins-list li .title .heading {
|
| 79 |
display: block;
|
| 74 |
#main_featured_plugins_page #featured-plugins-list li.instagram_feed .product {background:url("images/instagram_feed.png") center center no-repeat;}
|
| 75 |
#main_featured_plugins_page #featured-plugins-list li.post-slider .product {background:url("images/post-slider.png") center center no-repeat;}
|
| 76 |
#main_featured_plugins_page #featured-plugins-list li.facebook-feed .product {background:url("images/facebook-feed.png") center center no-repeat;}
|
| 77 |
+
#main_featured_plugins_page #featured-plugins-list li.mailchimp .product {background:url("images/mailchimp.png") center center no-repeat;}
|
| 78 |
|
| 79 |
#main_featured_plugins_page #featured-plugins-list li .title .heading {
|
| 80 |
display: block;
|
framework/GMWDHelper.php
CHANGED
|
@@ -256,11 +256,11 @@ class GMWDHelper {
|
|
| 256 |
break;
|
| 257 |
// save as copy
|
| 258 |
case "2":
|
| 259 |
-
echo '<div style="width:99%"><div class="updated"><p><strong>'.__("Item Succesfully
|
| 260 |
break;
|
| 261 |
// dublicate
|
| 262 |
case "3":
|
| 263 |
-
echo '<div style="width:99%"><div class="updated"><p><strong>'.__("Item(s) Succesfully
|
| 264 |
break;
|
| 265 |
//remove
|
| 266 |
case "4":
|
|
@@ -272,7 +272,7 @@ class GMWDHelper {
|
|
| 272 |
break;
|
| 273 |
//unpublish
|
| 274 |
case "6":
|
| 275 |
-
echo '<div style="width:99%"><div class="updated"><p><strong>'.__("Item(s) Succesfully
|
| 276 |
break;
|
| 277 |
// one item
|
| 278 |
case "7":
|
|
@@ -282,9 +282,9 @@ class GMWDHelper {
|
|
| 282 |
case "8":
|
| 283 |
echo '<div style="width:99%"><div class="updated"><p><strong>'.__("Successfully Imported.","gmwd").'</strong></p></div></div>';
|
| 284 |
break;
|
| 285 |
-
//
|
| 286 |
case "9":
|
| 287 |
-
echo '<div style="width:99%"><div class="error"><p><strong>'.__("
|
| 288 |
break;
|
| 289 |
|
| 290 |
case "10":
|
| 256 |
break;
|
| 257 |
// save as copy
|
| 258 |
case "2":
|
| 259 |
+
echo '<div style="width:99%"><div class="updated"><p><strong>'.__("Item Succesfully Duplicated.","gmwd").'</strong></p></div></div>';
|
| 260 |
break;
|
| 261 |
// dublicate
|
| 262 |
case "3":
|
| 263 |
+
echo '<div style="width:99%"><div class="updated"><p><strong>'.__("Item(s) Succesfully Duplicated.","gmwd").'</strong></p></div></div>';
|
| 264 |
break;
|
| 265 |
//remove
|
| 266 |
case "4":
|
| 272 |
break;
|
| 273 |
//unpublish
|
| 274 |
case "6":
|
| 275 |
+
echo '<div style="width:99%"><div class="updated"><p><strong>'.__("Item(s) Succesfully Unpublished.","gmwd").'</strong></p></div></div>';
|
| 276 |
break;
|
| 277 |
// one item
|
| 278 |
case "7":
|
| 282 |
case "8":
|
| 283 |
echo '<div style="width:99%"><div class="updated"><p><strong>'.__("Successfully Imported.","gmwd").'</strong></p></div></div>';
|
| 284 |
break;
|
| 285 |
+
// unexpected file
|
| 286 |
case "9":
|
| 287 |
+
echo '<div style="width:99%"><div class="error"><p><strong>'.__("Unexpected File.","gmwd").'</strong></p></div></div>';
|
| 288 |
break;
|
| 289 |
|
| 290 |
case "10":
|
gmwd_admin_class.php
CHANGED
|
@@ -11,7 +11,7 @@ class GMWDAdmin{
|
|
| 11 |
// Variables //
|
| 12 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 13 |
protected static $instance = null;
|
| 14 |
-
private static $version = '1.0.
|
| 15 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 16 |
// Constructor & Destructor //
|
| 17 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 11 |
// Variables //
|
| 12 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 13 |
protected static $instance = null;
|
| 14 |
+
private static $version = '1.0.25';
|
| 15 |
////////////////////////////////////////////////////////////////////////////////////////
|
| 16 |
// Constructor & Destructor //
|
| 17 |
////////////////////////////////////////////////////////////////////////////////////////
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
|
| 4 |
Tags: directions, google map, google map plugin, google maps, google maps plugin, map, map markers, map plugin, map widget, maps, wp google map, wp google maps
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.6
|
| 7 |
-
Stable tag: 1.0.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -113,6 +113,9 @@ After downloading the ZIP file of the Google Maps WD plugin,
|
|
| 113 |
|
| 114 |
== Changelog ==
|
| 115 |
|
|
|
|
|
|
|
|
|
|
| 116 |
= 1.0.24 =
|
| 117 |
* Added: Default API keys
|
| 118 |
|
| 4 |
Tags: directions, google map, google map plugin, google maps, google maps plugin, map, map markers, map plugin, map widget, maps, wp google map, wp google maps
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.6
|
| 7 |
+
Stable tag: 1.0.25
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 113 |
|
| 114 |
== Changelog ==
|
| 115 |
|
| 116 |
+
= 1.0.25 =
|
| 117 |
+
* Fixed: Minor bugs
|
| 118 |
+
|
| 119 |
= 1.0.24 =
|
| 120 |
* Added: Default API keys
|
| 121 |
|
wd-google-maps.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
* Plugin Name: Google Maps WD
|
| 5 |
* Plugin URI: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
| 6 |
* Description: Google Maps WD is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
|
| 7 |
-
* Version: 1.0.
|
| 8 |
* Author: WebDorado
|
| 9 |
* Author URI: http://web-dorado.com/
|
| 10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 4 |
* Plugin Name: Google Maps WD
|
| 5 |
* Plugin URI: https://web-dorado.com/products/wordpress-google-maps-plugin.html
|
| 6 |
* Description: Google Maps WD is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.
|
| 7 |
+
* Version: 1.0.25
|
| 8 |
* Author: WebDorado
|
| 9 |
* Author URI: http://web-dorado.com/
|
| 10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
