esc_html__( 'Support a In-article ad unit for Google AdSense.', 'simple-days' ), ) // Args ); } public function widget( $args, $instance ) { $data_ad_client = get_theme_mod( 'simple_days_google_ad_publisher_id' , ''); $data_ad_slot = get_theme_mod( 'simple_days_google_ad_data_ad_slot_inarticle' , ''); if ( $data_ad_client != '' && ( $data_ad_slot != '' || !empty( $instance['data_ad_slot'] ) ) ){ echo str_replace(' simple_days_box_shadow' , '' , $args['before_widget']); $ad_labeling = get_theme_mod( 'simple_days_google_ad_labeling' , '0'); if ($ad_labeling == '1'){ $ad_labeling = esc_html__( 'Advertisements', 'simple-days' ); }else if ($ad_labeling == '2'){ $ad_labeling = esc_html__( 'Sponsored Links', 'simple-days' ); }else{ $ad_labeling = ''; } if(!empty( $instance['data_ad_slot'] ))$data_ad_slot = $instance['data_ad_slot']; if ( $ad_labeling != '' ) { echo '