PluginProbe ʕ •ᴥ•ʔ
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 2.0.3
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v2.0.3
3.5.2 3.5.1 3.5.0 3.4.8 3.4.7 3.4.6 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5.1 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.6.1 1.6.7 1.7.0 1.7.0.1 1.7.0.2 1.7.0.3 1.7.1 1.7.2 1.7.2.1 1.7.2.2 1.7.3 1.7.4 1.7.5 1.7.5.1 1.7.5.2 1.7.6 1.7.7 1.7.7.1 1.7.7.2 1.7.8 1.7.9 1.8.0 1.8.0.1 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.0.1 1.9.1 1.9.2 1.9.3 1.9.4 1.9.4.1 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.0.1 2.0.1 2.0.2 2.0.3 2.0.3.1 2.0.4 2.0.4.1 2.0.5 2.0.6 2.0.7 2.0.8 2.0.8.1 2.0.9 3.0.0 3.0.0.1 3.0.1 3.0.2 3.0.3 3.0.3.1 3.0.4 3.0.4.1 3.0.4.2 3.0.5 3.0.5.1 3.0.5.2 3.0.6 3.0.6.1 3.0.7.1 3.0.8 3.0.8.1 3.0.9 3.0.9.1 3.0.9.2 3.0.9.3 3.0.9.4 3.0.9.5 3.1.0 3.1.1 3.1.2 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.3.0 3.4.0 3.4.1 3.4.2 3.4.2.1 3.4.3 3.4.4 3.4.5 trunk 1.0 1.0.1 1.0.2 1.0.3
everest-forms / templates / notices / success.php
everest-forms / templates / notices Last commit date
error.php 2 years ago notice.php 2 years ago success.php 2 years ago
success.php
84 lines
1 <?php
2 /**
3 * Show success messages
4 *
5 * This template can be overridden by copying it to yourtheme/everest-forms/notices/success.php.
6 *
7 * HOWEVER, on occasion Everest Forms will need to update template files and you
8 * and you (the theme developer) will need to copy the new files to your theme to
9 * maintain compatibility. We try to do this as little as possible, but it does
10 * happen. When this occurs the version of the template file will be bumped and
11 * the readme will list any important changes.
12 *
13 * @see https://docs.everestforms.net/
14 * @package EverestForms/Templates
15 * @version 1.0.0
16 */
17
18 defined( 'ABSPATH' ) || exit;
19
20 $classes = apply_filters(
21 'everest_forms_success_notice_class',
22 array(
23 'everest-forms-notice--success',
24 )
25 );
26
27 global $__everest_form_id;
28 global $__everest_form_entry_id;
29
30 ?>
31
32 <?php if ( $messages ) : ?>
33 <?php foreach ( $messages as $message ) : ?>
34 <div class="everest-forms-notice <?php echo esc_attr( implode( ' ', $classes ) ); ?>" role="alert">
35 <?php
36 echo wp_kses(
37 $message,
38 array(
39 'div' => array(
40 'class' => true,
41 'style' => true,
42 ),
43 'input' => array(
44 'type' => true,
45 'value' => true,
46 'class' => true,
47 'disabled' => true,
48 'checked' => true,
49 ),
50 'ul' => array(
51 'class' => true,
52 ),
53 'li' => array(
54 'class' => true,
55 ),
56 )
57 );
58
59 if ( ! empty( $__everest_form_id ) && ! empty( $__everest_form_entry_id ) ) {
60 $pdf_download_message = get_option( 'everest_forms_pdf_custom_download_text', '' );
61 $form = json_decode( evf()->form->get( $__everest_form_id )->post_content, true );
62 $pdf_submission = isset( $form['settings']['pdf_submission']['enable_pdf_submission'] ) && 0 !== $form['settings']['pdf_submission']['enable_pdf_submission'] ? $form['settings']['pdf_submission'] : '';
63
64 if ( isset( $pdf_submission['everest_forms_pdf_custom_download_text'] ) ) {
65 $pdf_download_message = $pdf_submission['everest_forms_pdf_custom_download_text'];
66 }
67
68 if ( empty( $pdf_download_message ) ) {
69 $pdf_download_message = __( 'Download your form submission in PDF format', 'everest-forms' );
70 }
71
72 printf(
73 '%s%s%s',
74 '<br><small><a href="?page=evf-entries-pdf&form_id=' . esc_attr( $__everest_form_id ) . '&entry_id=' . esc_attr( $__everest_form_entry_id ) . '">',
75 esc_html( $pdf_download_message ),
76 '</a></small>'
77 );
78 }
79
80 ?>
81 </div>
82 <?php endforeach; ?>
83 <?php endif; ?>
84