getShortcode(), $atts ); extract( $atts ); // phpcs:ignore WordPress.PHP.DontExtract.extract_extract do_action( 'stm_google_places_script', 'enqueue', true ); $css_class = ( ! empty( $css ) ) ? apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ) ) : ''; if ( ! empty( $el_class ) ) { $css_class .= ' ' . $el_class; } $random_id = wp_rand( 1, 99999 ); if ( empty( $lat ) ) { $lat = 36.169941; } if ( empty( $lng ) ) { $lng = - 115.139830; } $map_style = array(); if ( $map_width ) { $map_style['width'] = ' width: ' . $map_width . ';'; } if ( $map_height ) { $map_style['height'] = ' height: ' . $map_height . ';'; } if ( 'disable' === $disable_mouse_whell ) { $disable_mouse_whell = 'false'; } else { $disable_mouse_whell = 'true'; } if ( 'disable' === $disable_control_tools ) { $disable_control_tools = 'false'; } else { $disable_control_tools = 'true'; } $pin_url = apply_filters( 'stm_me_get_map_pin', '' ); if ( ! empty( $image ) ) { $image = explode( ',', $image ); if ( ! empty( $image[0] ) ) { $image = $image[0]; $image = wp_get_attachment_image_src( $image, 'full' ); $pin_url = $image[0]; } } ?>