'Bing Map ') ); } //front end public function widget( $args, $instance ){ $title = apply_filters( 'widget_title', $instance['title'] ); echo $args['before_widget']; if( ! empty( $title ) ){ echo $args['before_title'].$title.$args['after_title']; } //this is where you display the content of the widget $display .= "
"; echo $display; //---------------------------- echo $args['after_widget']; } //back end public function form( $instance ){ if( isset( $instance['title'] ) ){ $title = $instance['title']; }else{ $title = __('', 'wpb_widget_domain'); } $html_class = $instance['html_class']; ?>

"; return $display; } function tuskcode_map_putStyleInHeader(){ $css_url = plugins_url('/admin/css/style.css', __FILE__); wp_enqueue_style('style', $css_url, 'all'); // echo ''; } function tuskcode_map_putScriptInFooter(){ $img_url = plugins_url('/images/icons/icon1.png', __FILE__ ); $icon_url = plugins_url('/images/icons/'); $map_api_key = get_option('tuskcode_bing_map_api_key', ''); $map_address = get_option('tuskcode_bing_map_address', ''); $map_width = get_option('tuskcode_bing_map_width', '100%'); $map_height = get_option('tuskcode_bing_map_height', '350px'); $map_pin = get_option('tuskcode_bing_map_pin', 'default.png'); $map_type = get_option('tuskcode_bing_map_type', 'street'); $map_zoom = get_option('tuskcode_bing_map_zoom', '15'); $map_custom_pin_url = get_option('tuskcode_bing_map_custom_pin_url', ''); $map_scroll = get_option('tuskcode_bing_map_scroll'); $icon_url = plugins_url('/admin/images/icons/', __FILE__).$map_pin; ?>
Settings have been saved

Bing Map Settings

          Free API Key: www.bingmapsportal.com and follow the instructions!

clear ***If custom pin url is empty, map pin will be displayed as default ***

map icon

  *** Can be of type: px, %, em, cm, mm, vh, vw, pt ***

  *** Can be of type: px, %, em, cm, mm, vh, vw, pt ***

/>

  *** Copy and paste the short code inside any page body ***

*** Don't forget to save after making changes ***