__( 'A widget that displays an about logo, description and contact info', 'eagle' ), 'classname' => 'about-footer' ) ); } public function widget( $args, $instance ) { extract( $args ); if(empty($instance)){ $instance = array( 'image' => '', 'height' => '30', 'description' => '', 'address' => '', 'phone' => '', 'email' => '', 'web' => '', 'social_media_label' => '', 'facebook' => '', 'instagram' => '', 'twitter' => '', 'youtube' => '', 'airbnb' => '', 'tripadvisor' => '', 'social_media_new_tab' => '' ); } $image = $instance['image'] ?? '' ; $height = $instance['height'] ?? ''; $description = $instance['description'] ?? ''; $address = $instance['address'] ?? ''; $phone = $instance['phone'] ?? ''; $email = $instance['email'] ?? ''; $web = $instance['web'] ?? ''; $web = $instance['web'] ?? ''; $facebook = $instance['facebook'] ?? ''; $social_media_label = $instance['social_media_label'] ?? ''; $instagram = $instance['instagram'] ?? ''; $twitter = $instance['twitter'] ?? ''; $youtube = $instance['youtube'] ?? ''; $airbnb = $instance['airbnb'] ?? ''; $tripadvisor = $instance['tripadvisor'] ?? ''; $social_media_new_tab = $instance['social_media_new_tab'] ?? ''; echo wp_kses_post($args['before_widget']); if ( $social_media_new_tab == true ) { $target = '_blank'; } else { $target = '_self'; } $image_full = wp_get_attachment_image_src( $image, 'full' ); $title = get_bloginfo( 'name' ); if ( $image_full != '' ) : ?> style="height: px" >

'', 'height' => '', 'description' => '', 'address' => '', 'phone' => '', 'email' => '', 'web' => '', 'social_media_label' => '', 'facebook' => '', 'instagram' => '', 'twitter' => '', 'youtube' => '', 'airbnb' => '', 'tripadvisor' => '', 'social_media_new_tab' => '', ); $instance = wp_parse_args( (array) $instance, $defaults ); $image_full = wp_get_attachment_image_src($instance['image'], 'full'); ?>