d label. * * @since 1.8.1 * * @param array $field Field data and settings. * @param array $form_data Form data and settings. * * @noinspection HtmlUnknownAttribute * @noinspection PhpUnusedParameterInspection */ public function field_label( $field, $form_data ) { if ( empty( $field['properties']['label'] ) ) { return; } $label = $field['properties']['label']; $required = $label['required'] ? wpforms_get_field_required_label() : ''; printf( '', wpforms_html_attributes( $label['id'], $label['class'], $label['data'], $label['attr'] ), esc_html( $label['value'] ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped $required ); } /** * Field error. * * @since 1.8.1 * * @param array $field Field data and settings. * @param array $form_data Form data and settings. * * @noinspection HtmlUnknownAttribute * @noinspection PhpUnusedParameterInspection */ public function field_error( $field, $form_data ) { if ( empty( $field['properties']['error'] ) ) { return; } $error = $field['properties']['error']; printf( '', wpforms_html_attributes( $error['id'], $error['class'], $error['data'], $error['attr'] ), esc_html( $error['value'] ) ); } /** * Field description. * * @since 1.8.1 * * @param array $field Field data and settings. * @param array $form_data Form data and settings. * * @noinspection HtmlUnknownAttribute * @noinspection PhpUnusedParameterInspection */ public function field_description( $field, $form_data ) { if ( empty( $field['properties']['description'] ) ) { return; } $description = $field['properties']['description']; printf( '
%s
', wpforms_html_attributes( $description['id'], $description['class'], $description['data'], $description['attr'] ), do_shortcode( $description['value'] ) ); } /** * Confirmation. * * @since 1.8.1 * * @param string $confirmation_message Confirmation message. * @param string $class CSS class. * @param array $form_data Form data and settings. */ public function confirmation( $confirmation_message, $class, $form_data ) { $form_id = isset( $form_data['id'] ) ? $form_data['id'] : 0; printf( '
%s
', wpforms_sanitize_classes( $class ), absint( $form_id ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped $confirmation_message ); } /** * Form head container. Form title and description. * * @since 1.8.1 * * @param bool $title Whether to display form title. * @param bool $description Whether to display form description. * @param array $form_data Form data. */ public function form_head_container( $title, $description, $form_data ) { $settings = $form_data['settings']; echo '
'; if ( $title === true && ! empty( $settings['form_title'] ) ) { echo '
' . esc_html( $settings['form_title'] ) . '
'; } if ( $description === true && ! empty( $settings['form_desc'] ) ) { echo '
'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo wpforms_process_smart_tags( $settings['form_desc'], $form_data ); echo '
'; } echo '
'; } /** * Open submit container. * * @since 1.8.1 * * @param int $pages Information for multi-page forms. * @param array $form_data Form data and settings. * * @noinspection PhpUnusedParameterInspection * @noinspection HtmlUnknownAttribute */ public function submit_container_open( $pages, $form_data ) { printf( '
', $pages ? 'style="display:none;"' : '' ); } /** * Submit button. * * @since 1.8.1 * * @param int $form_id Form ID. * @param string $submit Submit text. * @param array $classes CSS classes. * @param array $data_attrs Data attributes. * @param array $attrs Other attributes. * @param array $form_data Form data and settings. * * @noinspection PhpUnusedParameterInspection */ public function submit_button( $form_id, $submit, $classes, $data_attrs, $attrs, $form_data ) { printf( '', wpforms_html_attributes( sprintf( 'wpforms-submit-%d', absint( $form_id ) ), $classes, $data_attrs, $attrs ), esc_html( $submit ) ); } /** * Submit button. * * @since 1.8.1 * * @param string $src Spinner image src attribute. * @param array $form_data Form data and settings. * * @noinspection PhpUnusedParameterInspection */ public function submit_spinner( $src, $form_data ) { printf( '', esc_url( $src ), esc_attr__( 'Loading', 'wpforms-lite' ) ); } /** * Open submit container. * * @since 1.8.1 * * @param array $form_data Form data and settings. * * @noinspection PhpUnusedParameterInspection */ public function submit_container_close( $form_data ) { echo '
'; } } d label. * * @since 1.8.1 * * @param array $field Field data and settings. * @param array $form_data Form data and settings. * * @noinspection HtmlUnknownAttribute * @noinspection PhpUnusedParameterInspection */ public function field_label( $field, $form_data ) { if ( empty( $field['properties']['label'] ) ) { return; } $label = $field['properties']['label']; $required = $label['required'] ? wpforms_get_field_required_label() : ''; printf( '', wpforms_html_attributes( $label['id'], $label['class'], $label['data'], $label['attr'] ), esc_html( $label['value'] ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped $required ); } /** * Field error. * * @since 1.8.1 * * @param array $field Field data and settings. * @param array $form_data Form data and settings. * * @noinspection HtmlUnknownAttribute * @noinspection PhpUnusedParameterInspection */ public function field_error( $field, $form_data ) { if ( empty( $field['properties']['error'] ) ) { return; } $error = $field['properties']['error']; printf( '', wpforms_html_attributes( $error['id'], $error['class'], $error['data'], $error['attr'] ), esc_html( $error['value'] ) ); } /** * Field description. * * @since 1.8.1 * * @param array $field Field data and settings. * @param array $form_data Form data and settings. * * @noinspection HtmlUnknownAttribute * @noinspection PhpUnusedParameterInspection */ public function field_description( $field, $form_data ) { if ( empty( $field['properties']['description'] ) ) { return; } $description = $field['properties']['description']; printf( '
%s
', wpforms_html_attributes( $description['id'], $description['class'], $description['data'], $description['attr'] ), do_shortcode( $description['value'] ) ); } /** * Confirmation. * * @since 1.8.1 * * @param string $confirmation_message Confirmation message. * @param string $class CSS class. * @param array $form_data Form data and settings. */ public function confirmation( $confirmation_message, $class, $form_data ) { $form_id = isset( $form_data['id'] ) ? $form_data['id'] : 0; printf( '
%s
', wpforms_sanitize_classes( $class ), absint( $form_id ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped $confirmation_message ); } /** * Form head container. Form title and description. * * @since 1.8.1 * * @param bool $title Whether to display form title. * @param bool $description Whether to display form description. * @param array $form_data Form data. */ public function form_head_container( $title, $description, $form_data ) { $settings = $form_data['settings']; echo '
'; if ( $title === true && ! empty( $settings['form_title'] ) ) { echo '
' . esc_html( $settings['form_title'] ) . '
'; } if ( $description === true && ! empty( $settings['form_desc'] ) ) { echo '
'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo wpforms_process_smart_tags( $settings['form_desc'], $form_data ); echo '
'; } echo '
'; } /** * Open submit container. * * @since 1.8.1 * * @param int $pages Information for multi-page forms. * @param array $form_data Form data and settings. * * @noinspection PhpUnusedParameterInspection * @noinspection HtmlUnknownAttribute */ public function submit_container_open( $pages, $form_data ) { printf( '
', $pages ? 'style="display:none;"' : '' ); } /** * Submit button. * * @since 1.8.1 * * @param int $form_id Form ID. * @param string $submit Submit text. * @param array $classes CSS classes. * @param array $data_attrs Data attributes. * @param array $attrs Other attributes. * @param array $form_data Form data and settings. * * @noinspection PhpUnusedParameterInspection */ public function submit_button( $form_id, $submit, $classes, $data_attrs, $attrs, $form_data ) { printf( '', wpforms_html_attributes( sprintf( 'wpforms-submit-%d', absint( $form_id ) ), $classes, $data_attrs, $attrs ), esc_html( $submit ) ); } /** * Submit button. * * @since 1.8.1 * * @param string $src Spinner image src attribute. * @param array $form_data Form data and settings. * * @noinspection PhpUnusedParameterInspection */ public function submit_spinner( $src, $form_data ) { printf( '', esc_url( $src ), esc_attr__( 'Loading', 'wpforms-lite' ) ); } /** * Open submit container. * * @since 1.8.1 * * @param array $form_data Form data and settings. * * @noinspection PhpUnusedParameterInspection */ public function submit_container_close( $form_data ) { echo '
'; } }
Fatal error: Uncaught Error: Class "WPForms\Frontend\Classic" not found in /htdocs/wp-content/plugins/wpforms-lite/src/Frontend/Modern.php:10 Stack trace: #0 /htdocs/wp-content/plugins/better-wp-security/vendor-prod/composer/ClassLoader.php(576): include() #1 /htdocs/wp-content/plugins/better-wp-security/vendor-prod/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/htdocs/wp-cont...') #2 [internal function]: Composer\Autoload\ClassLoader->loadClass('WPForms\\Fronten...') #3 /htdocs/wp-content/plugins/wpforms-lite/src/WPForms.php(359): class_exists('\\WPForms\\Fronte...') #4 /htdocs/wp-content/plugins/wpforms-lite/src/WPForms.php(417): WPForms\WPForms->register(Array) #5 /htdocs/wp-content/plugins/wpforms-lite/src/Loader.php(30): WPForms\WPForms->register_bulk(Array) #6 /htdocs/wp-content/plugins/wpforms-lite/src/WPForms.php(377): WPForms\Loader->init() #7 /htdocs/wp-content/plugins/wpforms-lite/src/WPForms.php(384): WPForms\WPForms->WPForms\{closure}() #8 /htdocs/wp-content/plugins/wpforms-lite/src/WPForms.php(255): WPForms\WPForms->register(Array) #9 /htdocs/wp-content/plugins/wpforms-lite/src/WPForms.php(184): WPForms\WPForms->includes_magic() #10 /htdocs/wp-content/plugins/wpforms-lite/src/WPForms.php(135): WPForms\WPForms->includes() #11 /htdocs/wp-content/plugins/wpforms-lite/src/WPForms.php(507): WPForms\WPForms::instance() #12 /htdocs/wp-content/plugins/wpforms-lite/wpforms.php(343): wpforms() #13 /htdocs/wp-settings.php(526): include_once('/htdocs/wp-cont...') #14 /htdocs/wp-config.php(108): require_once('/htdocs/wp-sett...') #15 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #16 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #17 /htdocs/index.php(17): require('/htdocs/wp-blog...') #18 {main} thrown in /htdocs/wp-content/plugins/wpforms-lite/src/Frontend/Modern.php on line 10