'', 'beauty_studio_widget_title' => '', 'sub_title' => '', 'map_latitude' => 34.052235, 'map_longitude' => -118.243683, 'map_zoom_level' => 8, 'map_icon' => '' ); function __construct() { parent::__construct( /*Base ID of your widget*/ 'beauty_studio_map', /*Widget name will appear in UI*/ esc_html__('AT Map Section', 'beauty-studio'), /*Widget description*/ array( 'description' => esc_html__( 'Advanced Map Section.', 'beauty-studio' ), ) ); } /*Widget Backend*/ public function form( $instance ) { $instance = wp_parse_args( (array) $instance, $this->defaults ); /*default values*/ $unique_id = esc_attr( $instance['unique_id'] ); $title = esc_attr( $instance[ 'beauty_studio_widget_title' ] ); $sub_title = esc_textarea( $instance['sub_title'] ); $map_latitude = esc_attr( $instance[ 'map_latitude' ] ); $map_longitude = esc_attr( $instance[ 'map_longitude' ] ); $map_zoom_level = absint( $instance[ 'map_zoom_level' ] ); $map_icon = esc_url( $instance[ 'map_icon' ] ); ?>


> <?php esc_html_e( 'Image preview', 'beauty-studio' ); ?>

defaults); /*default values*/ $unique_id = ! empty( $instance['unique_id'] ) ? esc_attr( $instance['unique_id'] ) : esc_attr( $this->id ); $title = apply_filters( 'widget_title', !empty( $instance['beauty_studio_widget_title'] ) ? $instance['beauty_studio_widget_title'] : '', $instance, $this->id_base ); $sub_title = apply_filters( 'widget_text', !empty( $instance['sub_title'] ) ? $instance['sub_title'] : '' , $instance ); $map_latitude = esc_html( $instance[ 'map_latitude' ] ); $map_longitude = esc_attr( $instance[ 'map_longitude' ] ); $map_zoom_level = esc_attr( $instance[ 'map_zoom_level' ] ); $map_icon = esc_attr( $instance['map_icon'] ); echo $args['before_widget']; $animation = "init-animate zoomIn"; ?>
"; if ( ! empty( $title ) ) { echo $args['before_title'] . esc_html( $title ) . $args['after_title']; } if( !empty( $sub_title ) ) { ?>

"; } ?>