__( 'Widget for Social icons section', 'ca-painting' ), ) ); } // Creating widget front-end // This is where the action happens public function widget( $args, $instance ) { ?>
'; $twitter_profile =''; $google_profile = ''; $linkedin_profile = ''; $pinterest_profile = ''; $tumblr_profile = ''; $instagram_profile = ''; $youtube_profile = ''; echo $args['before_widget']; if (!empty($title)) { echo $args['before_title'] . esc_html($title) . $args['after_title']; } echo '
'; echo (!empty($facebook) ) ? $facebook_profile : null; echo (!empty($twitter) ) ? $twitter_profile : null; echo (!empty($google) ) ? $google_profile : null; echo (!empty($linkedin) ) ? $linkedin_profile : null; echo (!empty($pinterest) ) ? $pinterest_profile : null; echo (!empty($tumblr) ) ? $tumblr_profile : null; echo (!empty($instagram) ) ? $instagram_profile : null; echo (!empty($youtube) ) ? $youtube_profile : null; echo '
'; echo $args['after_widget']; ?>