'', 'market' =>'', 'zoom' =>'16', 'location' =>'', 'control' =>'yes', 'scrollwheel' =>'yes', 'disable_ui' =>'no', 'draggable' =>'yes', 'width' =>'100%', 'height' =>'500px' ),$attr)); wp_enqueue_script('s7t-lib-google-map'); wp_enqueue_script('s7t-google-map'); parse_str( urldecode( $location ), $locations); $location_text = ''; foreach ($locations as $values) { $location_text .= '|'; foreach ($values as $value) { $location_text .= $value.','; } } $img = array();$img[0]=''; if($market != '') { $img = wp_get_attachment_image_src($market,"full"); } $map_css = 'width:'.$width.';height:'.$height.';max-width-100%;'; $html .= '
'; return $html; } } stp_reg_shortcode('sv_map','sv_vc_map'); vc_map( array( "name" => esc_html__("SV GoogleMap", 'bigc'), "base" => "sv_map", "icon" => "icon-st", "category" => '7Up-theme', "params" => array( array( "type" => "dropdown", "holder" => "div", "heading" => esc_html__("Map Style",'bigc'), "param_name" => "style", 'value' => array( esc_html__('Default','bigc') => '', esc_html__('Grayscale','bigc') => 'grayscale', esc_html__('Blue','bigc') => 'blue', esc_html__('Dark','bigc') => 'dark', esc_html__('Pink','bigc') => 'pink', esc_html__('Light','bigc') => 'light', esc_html__('Blueessence','bigc') => 'blueessence', esc_html__('Bentley','bigc') => 'bentley', esc_html__('Retro','bigc') => 'retro', esc_html__('Cobalt','bigc') => 'cobalt', esc_html__('Brownie','bigc') => 'brownie' ), ), array( "type" => "add_location_map", "heading" => esc_html__( "Add Map Location", 'bigc' ), "param_name" => "location", "description" => esc_html__( "Click Add more button to add location.", 'bigc' ) ), array( "type" => "textfield", "holder" => "div", "heading" => esc_html__( "Map Zoom", 'bigc' ), "param_name" => "zoom", "description" => esc_html__( "Enter zoom for map. Default is 16", 'bigc' ), ), array( 'type' => 'attach_image', "holder" => "div", 'heading' => esc_html__( 'Marker Image', 'bigc' ), 'param_name' => 'market', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Map Width', 'bigc' ), 'param_name' => 'width', "description" => esc_html__( "This is value to set width for map. Unit % or px. Example: 100%,500px. Default is 100%", 'bigc' ) ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Map Height', 'bigc' ), 'param_name' => 'height', "description" => esc_html__( "This is value to set height for map. Unit % or px. Example: 100%,500px. Default is 500px", 'bigc' ) ), array( "type" => "dropdown", "heading" => esc_html__("MapTypeControl",'bigc'), "param_name" => "control", 'value' => array( esc_html__('Yes','bigc') => 'yes', esc_html__('No','bigc') => 'no', ), 'edit_field_class'=>'vc_col-sm-6 vc_column' ), array( "type" => "dropdown", "heading" => esc_html__("Scrollwheel",'bigc'), "param_name" => "scrollwheel", 'value' => array( esc_html__('Yes','bigc') => 'yes', esc_html__('No','bigc') => 'no', ), 'edit_field_class'=>'vc_col-sm-6 vc_column' ), array( "type" => "dropdown", "heading" => esc_html__("DisableDefaultUI",'bigc'), "param_name" => "disable_ui", 'value' => array( esc_html__('No','bigc') => 'no', esc_html__('Yes','bigc') => 'yes', ), 'edit_field_class'=>'vc_col-sm-6 vc_column' ), array( "type" => "dropdown", "heading" => esc_html__("Draggable",'bigc'), "param_name" => "draggable", 'value' => array( esc_html__('Yes','bigc') => 'yes', esc_html__('No','bigc') => 'no', ), 'edit_field_class'=>'vc_col-sm-6 vc_column' ) ) ));