REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.90 KB
Close
//home/nshryvcy/himaltourism.com/wp-content/plugins/wpforms-lite/src/Lite/Admin/Education/Builder/Confirmations.php
Text
Base64
<?php namespace WPForms\Lite\Admin\Education\Builder; use WPForms_Builder_Panel_Settings; use WPForms\Admin\Education\EducationInterface; /** * Confirmations Education feature. * * @since 1.6.9 */ class Confirmations implements EducationInterface { /** * Indicate if current Education feature is allowed to load. * * @since 1.6.9 * * @return bool */ public function allow_load() { return wpforms_is_admin_page( 'builder' ); } /** * Init. * * @since 1.6.9 */ public function init() { if ( ! $this->allow_load() ) { return; } $this->hooks(); } /** * Load hooks. * * @since 1.6.9 */ private function hooks() { add_action( 'wpforms_lite_form_settings_confirmations_single_after', [ $this, 'entry_preview_settings' ], 10, 2 ); } /** * Add education settings located in confirmation inside the message block. * * @since 1.6.9 * * @param WPForms_Builder_Panel_Settings $settings Builder panel settings. * @param int $field_id Field ID. */ public function entry_preview_settings( $settings, $field_id ) { wpforms_panel_field( 'toggle', 'confirmations', 'message_entry_preview', $settings->form_data, esc_html__( 'Show entry preview after confirmation', 'wpforms-lite' ), [ 'input_id' => 'wpforms-panel-field-confirmations-message_entry_preview-' . wpforms_validate_field_id( $field_id ), 'input_class' => 'wpforms-panel-field-confirmations-message_entry_preview education-modal', 'parent' => 'settings', 'subsection' => wpforms_validate_field_id( $field_id ), 'pro_badge' => true, 'data' => [ 'action' => 'upgrade', 'name' => esc_html__( 'Show Entry Preview', 'wpforms-lite' ), 'utm-content' => 'Show Entry Preview', 'licence' => 'pro', ], 'attrs' => [ 'disabled' => 'disabled', ], 'value' => false, ] ); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Confirmations.php
1.90 KB
lrw-r--r--
2025-01-05 05:34:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
DidYouKnow.php
2.11 KB
lrw-r--r--
2025-01-05 05:34:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Fields.php
2.96 KB
lrw-r--r--
2025-01-05 05:34:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Notifications.php
3.20 KB
lrw-r--r--
2025-01-05 05:34:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).