PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 3.06.06
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v3.06.06
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / frm-entries / show.php

show.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 3.06.06, at classes/views/frm-entries/show.php

86 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div id="form_show_entry_page" class="frm_wrap frm_single_entry_page">
2 <div class="frm_forms">
3
4 <div id="poststuff" class="frm_page_container">
5 <div id="post-body" class="metabox-holder columns-2">
6 <div id="post-body-content">
7 <?php
8 FrmAppHelper::get_admin_header(
9 array(
10 'label' => __( 'View Entry', 'formidable' ),
11 'link_hook' => array(
12 'hook' => 'frm_entry_inside_h2',
13 'param' => $form,
14 ),
15 'form' => $form,
16 )
17 );
18 ?>
19 <div class="frm_form_fields">
20 <div class="postbox">
21 <h3 class="hndle"><span><?php esc_html_e( 'Entry', 'formidable' ) ?></span></h3>
22 <div class="inside">
23 <table class="form-table"><tbody>
24 <?php
25 $first_h3 = 'frm_first_h3';
26 foreach ( $fields as $field ) {
27 if ( in_array( $field->type, array( 'captcha', 'html', 'end_divider', 'form' ), true ) ) {
28 continue;
29 }
30
31 if ( in_array( $field->type, array( 'break', 'divider' ), true ) ) {
32 ?>
33 </tbody></table>
34 <br/><h3 class="<?php echo esc_attr( $first_h3 ) ?>"><?php echo esc_html( $field->name ) ?></h3>
35 <table class="form-table"><tbody>
36 <?php
37 $first_h3 = '';
38 } else {
39 ?>
40 <tr>
41 <th scope="row"><?php echo esc_html( $field->name ) ?>:</th>
42 <td>
43 <?php
44 $embedded_field_id = ( $entry->form_id !== $field->form_id ) ? 'form' . $field->form_id : 0;
45 $atts = array(
46 'type' => $field->type,
47 'post_id' => $entry->post_id,
48 'show_filename' => true,
49 'show_icon' => true,
50 'entry_id' => $entry->id,
51 'embedded_field_id' => $embedded_field_id,
52 );
53 $display_value = FrmEntriesHelper::prepare_display_value( $entry, $field, $atts );
54 echo $display_value; // WPCS: XSS ok.
55
56 if ( is_email( $display_value ) && ! in_array( $display_value, $to_emails ) ) {
57 $to_emails[] = $display_value;
58 }
59 ?>
60 </td>
61 </tr>
62 <?php
63 }
64 }
65 ?>
66
67 <?php if ( $entry->parent_item_id ) { ?>
68 <tr><th><?php esc_html_e( 'Parent Entry ID', 'formidable' ) ?>:</th>
69 <td><?php echo absint( $entry->parent_item_id ) ?>
70 </td></tr>
71 <?php } ?>
72 </tbody></table>
73 <?php do_action( 'frm_show_entry', $entry ); ?>
74 </div>
75 </div>
76
77 <?php do_action( 'frm_after_show_entry', $entry ); ?>
78 </div>
79 </div>
80 <?php require( FrmAppHelper::plugin_path() . '/classes/views/frm-entries/sidebar-show.php' ); ?>
81 </div>
82 </div>
83 </div>
84 </div>
85 <br/>
86