PluginProbe ʕ •ᴥ•ʔ
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 1.3.3
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v1.3.3
3.6.1 3.6.0 3.5.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 / includes / admin / views / html-admin-page-entries-view.php
everest-forms / includes / admin / views Last commit date
html-admin-page-addons.php 7 years ago html-admin-page-builder-setup.php 8 years ago html-admin-page-builder.php 7 years ago html-admin-page-entries-view.php 8 years ago html-admin-page-status-logs.php 8 years ago html-admin-page-status.php 8 years ago html-admin-settings.php 7 years ago html-notice-custom.php 8 years ago html-notice-update.php 8 years ago html-notice-updated.php 8 years ago html-notice-updating.php 8 years ago
html-admin-page-entries-view.php
184 lines
1 <?php
2 /**
3 * Admin View: Entries
4 *
5 * @package EverestForms/Admin/Entries/Views
6 */
7
8 defined( 'ABSPATH' ) || exit;
9
10 $hide_empty = isset( $_COOKIE['everest_forms_entry_hide_empty'] ) && 'true' === $_COOKIE['everest_forms_entry_hide_empty'];
11
12 ?>
13 <div class="wrap everest-forms">
14 <h1 class="wp-heading-inline"><?php esc_html_e( 'View Entry', 'everest-forms' ); ?></h1>
15 <a href="<?php echo esc_url( admin_url( 'admin.php?page=evf-entries&amp;form_id=' . $form_id ) ); ?>" class="page-title-action"><?php esc_html_e( 'Back to All Entries', 'everest-forms' ); ?></a>
16 <hr class="wp-header-end">
17 <div class="everest-forms-entry">
18 <div id="poststuff">
19 <div id="post-body" class="metabox-holder columns-2">
20 <!-- Entry Fields metabox -->
21 <div id="post-body-content" style="position: relative;">
22 <div id="everest-forms-entry-fields" class="postbox">
23 <h2 class="hndle">
24 <span><?php printf( __( '%s : Entry #%s', 'everest-forms' ), esc_html( _draft_or_post_title( $form_id ) ), absint( $entry_id ) ); ?></span>
25 <a href="#" class="everest-forms-empty-field-toggle">
26 <?php echo $hide_empty ? esc_html__( 'Show Empty Fields', 'everest-forms' ) : esc_html__( 'Hide Empty Fields', 'everest-forms' ); ?>
27 </a>
28 </h2>
29 <div class="inside">
30 <table class="wp-list-table widefat fixed striped posts">
31 <tbody>
32 <?php
33 $entry_meta = apply_filters( 'everest_forms_entry_single_data', $entry->meta );
34
35 if ( empty( $entry_meta ) ) {
36 // Whoops, no fields! This shouldn't happen under normal use cases.
37 echo '<p class="no-fields">' . esc_html__( 'This entry does not have any fields.', 'everest-forms' ) . '</p>';
38 } else {
39 // Display the fields and their values.
40 foreach ( $entry_meta as $meta_key => $meta_value ) {
41 // Check if hidden fields exists.
42 if ( in_array( $meta_key, apply_filters( 'everest_forms_hidden_entry_fields', array() ), true ) ) {
43 continue;
44 }
45
46 $meta_value = is_serialized( $meta_value ) ? $meta_value : wp_strip_all_tags( $meta_value );
47 $field_value = apply_filters( 'everest_forms_html_field_value', $meta_value, $entry_meta[ $meta_key ], $entry_meta, 'entry-single' );
48 $field_class = empty( $field_value ) ? ' empty' : '';
49 $field_style = $hide_empty && empty( $field_value ) ? 'display:none;' : '';
50
51 // Field name.
52 echo '<tr class="everest-forms-entry-field field-name' . $field_class . '" style="' . $field_style . '"><th><strong>';
53 $value = evf_get_form_data_by_meta_key( $form_id, $meta_key );
54
55 if ( $value ) {
56 echo esc_html( $value );
57 } else {
58 esc_html_e( 'Field ID', 'everest-forms' );
59 }
60 echo '</strong></th></tr>';
61
62 // Field value.
63 echo '<tr class="everest-forms-entry-field field-value' . $field_class . '" style="' . $field_style . '"><td>';
64 if ( ! empty( $field_value ) ) {
65 if ( is_serialized( $field_value ) ) {
66 $field_value = maybe_unserialize( $field_value );
67
68 foreach ( $field_value as $field => $value ) {
69 echo '<span class="list">' . wp_strip_all_tags( $value ) . '</span>';
70 }
71 } else {
72 echo nl2br( make_clickable( $field_value ) );
73 }
74 } else {
75 esc_html_e( 'Empty', 'everest-forms' );
76 }
77 echo '</td></tr>';
78 }
79 }
80 ?>
81 </tbody>
82 </table>
83 </div>
84 </div>
85
86 <?php do_action( 'everest_forms_entry_details_content', $entry, $form_id ); ?>
87 </div>
88 <!-- Entry Details metabox -->
89 <div id="postbox-container-1" class="postbox-container">
90 <div id="everest-forms-entry-details" class="postbox">
91 <h2 class="hndle">
92 <span><?php esc_html_e( 'Entry Details' , 'everest-forms' ); ?></span>
93 </h2>
94 <div class="inside">
95 <div class="everest-forms-entry-details-meta">
96 <p class="everest-forms-entry-id">
97 <span class="dashicons dashicons-admin-network"></span>
98 <?php esc_html_e( 'Entry ID:', 'everest-forms' ); ?>
99 <strong><?php echo absint( $entry_id ); ?></strong>
100 </p>
101
102 <p class="everest-forms-entry-date">
103 <span class="dashicons dashicons-calendar"></span>
104 <?php esc_html_e( 'Submitted:', 'everest-forms' ); ?>
105 <strong><?php echo date_i18n( esc_html__( 'M j, Y @ g:ia', 'everest-forms' ), strtotime( $entry->date_created ) + ( get_option( 'gmt_offset' ) * 3600 ) ); ?> </strong>
106 </p>
107
108 <?php if ( ! empty( $entry->user_id ) && 0 !== $entry->user_id ) : ?>
109 <p class="everest-forms-entry-user">
110 <span class="dashicons dashicons-admin-users"></span>
111 <?php
112 esc_html_e( 'User:', 'everest-forms' );
113 $user = get_userdata( $entry->user_id );
114 $user_name = esc_html( ! empty( $user->display_name ) ? $user->display_name : $user->user_login );
115 $user_url = esc_url(
116 add_query_arg(
117 array(
118 'user_id' => absint( $user->ID ),
119 ),
120 admin_url( 'user-edit.php' )
121 )
122 );
123 ?>
124 <strong><a href="<?php echo $user_url; ?>"><?php echo $user_name; ?></a></strong>
125 </p>
126 <?php endif; ?>
127
128 <?php if ( ! empty( $entry->user_ip_address ) ) : ?>
129 <p class="everest-forms-entry-ip">
130 <span class="dashicons dashicons-location"></span>
131 <?php esc_html_e( 'User IP:', 'everest-forms' ); ?>
132 <strong><?php echo esc_html( $entry->user_ip_address ); ?></strong>
133 </p>
134 <?php endif; ?>
135
136 <?php if ( apply_filters( 'everest_forms_entry_details_sidebar_details_status', false, $entry ) ) : ?>
137 <p class="everest-forms-entry-status">
138 <span class="dashicons dashicons-category"></span>
139 <?php esc_html_e( 'Status:', 'everest-forms' ); ?>
140 <strong><?php echo ! empty( $entry->status ) ? ucwords( sanitize_text_field( $entry->status ) ) : esc_html__( 'Completed', 'everest-forms' ); ?></strong>
141 </p>
142 <?php endif; ?>
143
144 <?php do_action( 'everest_forms_entry_details_sidebar_details', $entry, $entry_meta ); ?>
145 </div>
146
147 <div id="major-publishing-actions">
148 <div id="delete-action">
149 <a class="submitdelete" aria-label="<?php echo esc_attr__( 'Move to trash', 'everest-forms' ); ?>" href="<?php echo esc_url( wp_nonce_url( add_query_arg( array(
150 'trash' => $entry_id,
151 ), admin_url( 'admin.php?page=evf-entries&amp;form_id=' . $form_id ) ), 'trash-entry' ) ); ?>"><?php esc_html_e( 'Move to trash', 'everest-forms' ); ?></a>
152 </div>
153 <div class="clear"></div>
154 </div>
155 </div>
156 </div>
157 <?php do_action( 'everest_forms_after_entry_details', $entry, $entry_meta ); ?>
158 </div>
159 </div>
160 </div>
161 </div>
162 </div>
163 <!-- Toggle displaying empty fields. -->
164 <script type="text/javascript">
165 jQuery( document ).on( 'click', '#everest-forms-entry-fields .everest-forms-empty-field-toggle', function( event ) {
166 event.preventDefault();
167
168 // Handle cookie.
169 if ( wpCookies.get( 'everest_forms_entry_hide_empty' ) === 'true' ) {
170
171 // User was hiding empty fields, so now display them.
172 wpCookies.remove( 'everest_forms_entry_hide_empty' );
173 jQuery( this ).text( 'Hide Empty Fields' );
174 } else {
175
176 // User was seeing empty fields, so now hide them.
177 wpCookies.set( 'everest_forms_entry_hide_empty', 'true', 2592000 ); // 1month.
178 jQuery( this ).text( 'Show Empty Fields' );
179 }
180
181 jQuery( '.everest-forms-entry-field.empty' ).toggle();
182 });
183 </script>
184