Skip to content

Commit

Permalink
Ready Version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
parsaatef committed May 3, 2017
1 parent 71a9701 commit 826a896
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 86 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**Tags:** google map, map, google, site editor, site builder, page builder, theme builder, responsive, front end editor, drag-and-drop, wordpress, elements, modules, support, seo,
**Requires at least:** 4.7
**Tested up to:** 4.7.4
**Stable tag:** 1.0.0
**Stable tag:** 1.0.1
**License:** GPLv3
**License URI:** https://www.gnu.org/licenses/gpl-3.0.html

Expand All @@ -18,7 +18,7 @@ This plugin is a extension for [Site Editor](https://wordpress.org/plugins/site-

**OUR OFFICIAL WEBSITE & GITHUB**

[SiteEditor.ORG](https://www.siteeditor.org)
[SiteEditor.ORG](http://www.siteeditor.org)

[SiteEditor GitHub Repository](https://github.com/SiteEditor/google-map)

Expand Down Expand Up @@ -76,4 +76,12 @@ Troubleshooting:

* Initial release

= 1.0.1 =

**1.0.1 - Released: May 2th, 2017**

* Remove Extra Settings

* Add New Settings

# Upgrade Notice
178 changes: 97 additions & 81 deletions modules/google-map/google-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@
class PBGoogleMapShortcode extends PBShortcodeClass{

static $sed_counter_id = 0;
function __construct() {
parent::__construct( array(
function __construct() {
parent::__construct( array(
"name" => "sed_google_map", //*require
"title" => __("Google Map","site-editor"), //*require for toolbar
"description" => __("","site-editor"),
"icon" => "icon-googlemap", //*require for icon toolbar
"icon" => "sedico-google-map", //*require for icon toolbar
"module" => "google-map" //*require
) // Args
);
);

}
}

function get_atts(){

$atts = array(
'setting_address' => __('500 Terry Francois Street, 6th Floor. San Francisco, CA 94158', 'site-editor'),
'setting_address' => __('500 Terry Francois Street, 6th Floor. San Francisco, CA 94158', 'site-editor'),
'setting_description' => __("Stars Ideas Office","site-editor"),
'setting_type' => 'roadmap',
'setting_width' => 100, // %
'setting_height' => 300, //px
'setting_zoom' => 14,
'setting_type' => 'roadmap',
'setting_width' => 100, // %
'setting_height' => 300, //px
'setting_zoom' => 14,
'setting_map_type_control' => true,
'setting_pan_control' => true,
'setting_street_view_control' => true,
Expand Down Expand Up @@ -95,117 +95,133 @@ function shortcode_settings(){
$options_zoom[$i] = $i ;
}


$this->add_panel( 'google_map_settings_panel_outer' , array(
'title' => __('Google Map Settings',"site-editor") ,
'capability' => 'edit_theme_options' ,
'type' => 'inner_box' ,
'priority' => 9 ,
'btn_style' => 'menu' ,
'has_border_box' => false ,
'icon' => 'sedico-google-map' ,
'field_spacing' => 'sm'
) );

$this->add_panel( 'google_map_settings_panel' , array(
'title' => __('Google Map Settings',"site-editor") ,
'capability' => 'edit_theme_options' ,
'type' => 'default' ,
'description' => '' ,
'priority' => 9 ,
'title' => __('Google Map Settings',"site-editor") ,
'capability' => 'edit_theme_options' ,
'type' => 'default' ,
'parent_id' => "google_map_settings_panel_outer",
'priority' => 9 ,
) );

$params = array(
'setting_address' => array(
'type' => 'textarea',
'label' => __('Address', 'site-editor'),
'description' => __('Your physical address. To have multiple map markers, separate two addresses with a vertical line. For example, 579 Allen Road Basking Ridge, NJ 07920 | Mount Arlington, NJ 07856.', 'site-editor'),
'setting_address' => array(
'type' => 'textarea',
'label' => __('Address', 'site-editor'),
'description' => __('Your physical address. To have multiple map markers, separate two addresses with a vertical line. For example, 579 Allen Road Basking Ridge, NJ 07920 | Mount Arlington, NJ 07856.', 'site-editor'),
'priority' => 8 ,
'panel' => 'google_map_settings_panel_outer',

),
'setting_description' => array(
'type' => 'textarea',
'label' => __('Description', 'site-editor'),
'description' => __('', 'site-editor'),
),
'setting_description' => array(
'type' => 'textarea',
'label' => __('Description', 'site-editor'),
'description' => __('', 'site-editor'),
'priority' => 8 ,
),
'setting_type' => array(
'type' => 'select',
'label' => __('Map Type', 'site-editor'),
'description' => __('Can be one of these values: roadmap, terrain, hybrid, or satellite. Sets the type of Google Map to display.', 'site-editor'),
'panel' => 'google_map_settings_panel_outer',
),
'setting_type' => array(
'type' => 'select',
'label' => __('Map Type', 'site-editor'),
'description' => __('Can be one of these values: roadmap, terrain, hybrid, or satellite. Sets the type of Google Map to display.', 'site-editor'),
'choices' =>array(
'roadmap' => __('Roadmap', 'site-editor'),
'satellite' => __('Satellite', 'site-editor'),
'hybrid' => __('Hybrid', 'site-editor'),
'terrain' => __('Terrain', 'site-editor'),
),
'panel' => 'google_map_settings_panel',
),
'setting_zoom' => array(
'type' => 'select',
'label' => __('Zoom Level', 'site-editor'),
'description' => __('Accepts a numerical value that represents the map zoom level. The higher the number, the more it will zoom in.', 'site-editor'),
),
'setting_zoom' => array(
'type' => 'select',
'label' => __('Zoom Level', 'site-editor'),
'description' => __('Accepts a numerical value that represents the map zoom level. The higher the number, the more it will zoom in.', 'site-editor'),
'choices' => $options_zoom,
'panel' => 'google_map_settings_panel',
),
),

'setting_overlay_color' => array(
'type' => 'color',
'label' => __('Color', 'site-editor'),
'description' => __('This option allows you to set whatever color you would like for the icons.', 'site-editor'),
'type' => 'color',
'label' => __('Color', 'site-editor'),
'description' => __('This option allows you to set whatever color you would like for the icons.', 'site-editor'),
"panel" => "google_map_settings_panel",
),

'setting_width' => array(
'type' => 'number',
'setting_width' => array(
'type' => 'number',
'after_field' => '%',
'label' => __('Width', 'site-editor'),
'description' => __('Accepts a percentage value. For example 50%. Sets the map\'s width.', 'site-editor'),
'label' => __('Width', 'site-editor'),
'description' => __('Accepts a percentage value. For example 50%. Sets the map\'s width.', 'site-editor'),
'panel' => 'google_map_settings_panel',
),
'setting_height' => array(
'type' => 'number',
),
'setting_height' => array(
'type' => 'number',
'after_field' => 'px',
'label' => __('Height', 'site-editor'),
'description' => __('Accepts a pixel value. For example 25px. Sets the map\'s height.', 'site-editor'),
'label' => __('Height', 'site-editor'),
'description' => __('Accepts a pixel value. For example 25px. Sets the map\'s height.', 'site-editor'),
'panel' => 'google_map_settings_panel',
),
'setting_map_type_control' => array(
'type' => 'checkbox',
'label' => __('Show Control map type', 'site-editor'),
'description' => __('This feature allows you to select whether or not to show control map type in the map. (This feature allows your users, using this control, to convert the map type (including roadmap, terrain, hybrid, or satellite) to their desired option.) ', 'site-editor'),
'type' => 'checkbox',
'label' => __('Show Control map type', 'site-editor'),
'description' => __('This feature allows you to select whether or not to show control map type in the map. (This feature allows your users, using this control, to convert the map type (including roadmap, terrain, hybrid, or satellite) to their desired option.) ', 'site-editor'),
'choices' =>'',
'panel' => 'google_map_settings_panel',
),
),
'setting_pan_control' => array(
'type' => 'checkbox',
'label' => __('Show Pan Control on Map', 'site-editor'),
'description' => __('This feature allows you to select whether or not to show Pan Control in the map.', 'site-editor'),
'type' => 'checkbox',
'label' => __('Show Pan Control on Map', 'site-editor'),
'description' => __('This feature allows you to select whether or not to show Pan Control in the map.', 'site-editor'),
'choices' =>'',
'panel' => 'google_map_settings_panel',
),
),
'setting_street_view_control' => array(
'type' => 'checkbox',
'label' => __('Show Street view control', 'site-editor'),
'description' => __('This feature allows you to whether or not to show street view pegman control.', 'site-editor'),
'type' => 'checkbox',
'label' => __('Show Street view control', 'site-editor'),
'description' => __('This feature allows you to whether or not to show street view pegman control.', 'site-editor'),
'choices' =>'',
'panel' => 'google_map_settings_panel',
),
),
'setting_scrollwheel' => array(
'type' => 'checkbox',
'label' => __('Scrollwheel on Map', 'site-editor'),
'description' => __("Enable zooming using a mouse's scroll wheel", 'site-editor'),
'type' => 'checkbox',
'label' => __('Scrollwheel on Map', 'site-editor'),
'description' => __("Enable zooming using a mouse's scroll wheel", 'site-editor'),
'choices' =>'',
'panel' => 'google_map_settings_panel',
),
),
'setting_scale_control' => array(
'type' => 'checkbox',
'label' => __('Show Scale Control on Map', 'site-editor'),
'description' => __('This feature allows you to select whether or not to show Scale Control in the map.', 'site-editor'),
'type' => 'checkbox',
'label' => __('Show Scale Control on Map', 'site-editor'),
'description' => __('This feature allows you to select whether or not to show Scale Control in the map.', 'site-editor'),
'choices' =>'',
'panel' => 'google_map_settings_panel',
),
'spacing' => array(
"type" => "spacing" ,
"label" => __("Spacing", "site-editor"),
"default" => "0 0 0 0" ,
),
"align" => array(
"type" => "align" ,
"label" => __("Align", "site-editor"),
"default" => "center"
),

'row_container' => array(
'type' => 'row_container',
'label' => __('Module Wrapper Settings', 'site-editor')
),

"animation" => array(
"type" => "animation" ,
"label" => __("Animation Settings", "site-editor"),
),
"type" => "animation" ,
"label" => __("Animation Settings", "site-editor"),
'button_style' => 'menu' ,
'has_border_box' => false ,
'icon' => 'sedico-animation' ,
'field_spacing' => 'sm' ,
'priority' => 530 ,
)

//'row_container' => 'row_container'
);
Expand All @@ -230,8 +246,8 @@ function contextmenu( $context_menu ){
"group" => "apps" ,
"name" => "google-map",
"title" => __("Google Map","site-editor"),
"description" => __("","site-editor"),
"icon" => "icon-googlemap",
"description" => __("","site-editor"),
"icon" => "sedico-google-map",
"shortcode" => "sed_google_map",
//"js_plugin" => '',
"js_module" => array( 'sed_google_map_module_script', 'google-map/js/gmap-ui-editor.min.js', array('sed-frontend-editor') )
Expand Down
12 changes: 10 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: wpsiteeditor
Tags: google map, map, google, site editor, site builder, page builder, theme builder, responsive, front end editor, drag-and-drop, wordpress, elements, modules, support, seo,
Requires at least: 4.7
Tested up to: 4.7.4
Stable tag: 1.0.0
Stable tag: 1.0.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand All @@ -17,7 +17,7 @@ This plugin is a extension for [Site Editor](https://wordpress.org/plugins/site-

**OUR OFFICIAL WEBSITE & GITHUB**

[SiteEditor.ORG](https://www.siteeditor.org)
[SiteEditor.ORG](http://www.siteeditor.org)

[SiteEditor GitHub Repository](https://github.com/SiteEditor/google-map)

Expand Down Expand Up @@ -66,5 +66,13 @@ Troubleshooting:

* Initial release

= 1.0.1 =

**1.0.1 - Released: May 2th, 2017**

* Remove Extra Settings

* Add New Settings


== Upgrade Notice ==
2 changes: 1 addition & 1 deletion site-editor-google-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: Site Editor Google Map added simple google map to your site with site editor
Author: Site Editor Team
Author URI: http://www.siteeditor.org
Version: 1.0.0
Version: 1.0.1
*/

if(!defined('DS'))
Expand Down

0 comments on commit 826a896

Please sign in to comment.