child_branding_options; if ( isset( $_POST['submit'] ) ) { if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ), '_contactNonce' ) ) { return false; } $this->render_submit_message( $opts ); return; } $from_page = ''; if ( isset( $_GET['from_page'] ) ) { $from_page = isset( $_GET['from_page'] ) ? rawurldecode( wp_unslash( $_GET['from_page'] ) ) : ''; //phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized } else { $protocol = isset( $_SERVER['HTTPS'] ) && strcasecmp( sanitize_text_field( wp_unslash( $_SERVER['HTTPS'] ) ), 'off' ) ? 'https://' : 'http://'; $fullurl = isset( $_SERVER['HTTP_HOST'] ) && isset( $_SERVER['REQUEST_URI'] ) ? esc_url_raw( wp_unslash( $_SERVER['HTTP_HOST'] ) ) . sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : ''; $fullurl = $protocol . str_replace( array( 'https://', 'http://' ), '', $fullurl ); $from_page = rawurldecode( $fullurl ); } $support_message = $opts['support_message']; $support_message = nl2br( stripslashes( $support_message ) ); $from_email = $current_user ? $current_user->user_email : ''; ?>




'mainwp_branding_contact_message_content', 'textarea_rows' => 10, 'teeny' => true, 'wpautop' => true, 'media_buttons' => false, ) ); ?>

' . esc_html( $back_link ) . '' : ''; if ( MainWP_Utility::instance()->send_support_mail() ) { $send_email_message = isset( $opts['send_email_message'] ) ? $opts['send_email_message'] : ''; if ( ! empty( $send_email_message ) ) { $send_email_message = stripslashes( $send_email_message ); } else { $send_email_message = esc_html__( 'Message has been submitted successfully.', 'mainwp-child' ); } } else { $send_email_message = esc_html__( 'Sending email failed!', 'mainwp-child' ); } ?>
$data ) { if ( in_array( $slug, $hide_slugs ) ) { ++$count_hide; } } } if ( 0 === $count_hide ) { return; } ?> $data ) { if ( in_array( $slug, $hide_slugs ) ) { ++$count_hide; } } } if ( 0 === $count_hide ) { return; } ?>