__('A contact form widget.', 'gdl_back_office'))); } // Output of the widget function widget( $args, $instance ) { extract( $args ); $title = apply_filters( 'widget_title', $instance['title'] ); $email = $instance['email']; wp_reset_query(); // Opening of widget echo $before_widget; // Open of title tag if ( $title ){ echo $before_title . $title . $after_title; } global $gdl_admin_translator; if( $gdl_admin_translator == 'enable' ){ $gdl_name_string = get_option(THEME_SHORT_NAME.'_translator_name_contact_form', 'Name'); $gdl_name_error_string = get_option(THEME_SHORT_NAME.'_translator_name_error_contact_form', 'Please enter your name'); $gdl_email_string = get_option(THEME_SHORT_NAME.'_translator_email_contact_form', 'Email'); $gdl_email_error_string = get_option(THEME_SHORT_NAME.'_translator_email_error_contact_form', 'Please enter a valid email address'); $gdl_message_string = get_option(THEME_SHORT_NAME.'_translator_message_contact_form', 'Message'); $gdl_message_error_string = get_option(THEME_SHORT_NAME.'_translator_message_error_contact_form', 'Please enter message'); $gdl_submit_button = get_option(THEME_SHORT_NAME.'_translator_submit_contact_form','Submit'); }else{ $gdl_name_string = __('Name','gdl_front_end'); $gdl_name_error_string = __('Please enter your name','gdl_front_end'); $gdl_email_string = __('Email','gdl_front_end'); $gdl_email_error_string = __('Please enter a valid email address','gdl_front_end'); $gdl_message_string = __('Message','gdl_front_end'); $gdl_message_error_string = __('Please enter message','gdl_front_end'); $gdl_submit_button = __('Submit','gdl_front_end'); } ?>