PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.7.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.7.2
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 6.7.2, at classes/views/frm-entries/show.php

101 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5 ?>
6 <div id="form_show_entry_page" class="frm_wrap frm_single_entry_page">
7 <div>
8 <?php
9 FrmAppHelper::get_admin_header(
10 array(
11 'label' => __( 'View Entry', 'formidable' ),
12 'form' => $form,
13 'hide_title' => true,
14 'close' => '?page=formidable-entries&form=' . $form->id,
15 )
16 );
17 ?>
18
19 <div class="columns-2">
20
21 <div id="post-body-content" class="frm-fields">
22 <?php
23 /**
24 * Fires after the `#post-body-content` element on the entry show page.
25 *
26 * This action is used in Pro to display the pagination buttons. It allows developers
27 * to add custom HTML content after the main post body content.
28 *
29 * @since 6.4.1
30 *
31 * @param array $args Associative array with 'id' for entry ID and 'form' for form object.
32 *
33 * @type int $args['id'] The ID of the entry.
34 * @type object $args['form'] The form object.
35 */
36 do_action( 'frm_show_entry_start_content', compact( 'id', 'form' ) );
37 ?>
38
39 <div class="wrap frm-with-margin frm_form_fields">
40 <div class="postbox">
41 <a href="#" id="frm-entry-show-empty-fields" class="alignright frm-pre-hndle" data-frmtoggle=".frm-empty-row" data-toggletext="<?php esc_attr_e( 'Hide empty fields', 'formidable' ); ?>">
42 <?php esc_html_e( 'Show empty fields', 'formidable' ); ?>
43 </a>
44 <h3 class="hndle">
45 <span><?php esc_html_e( 'Entry', 'formidable' ); ?></span>
46 <span class="frm-sub-label">
47 <?php
48 printf(
49 /* translators: %d: Entry ID */
50 esc_html__( '(ID %d)', 'formidable' ),
51 esc_attr( $entry->id )
52 );
53 ?>
54 </span>
55 </h3>
56 <?php
57 $show_args = array(
58 'id' => $entry->id,
59 'entry' => $entry,
60 'fields' => $fields,
61 'include_blank' => true,
62 'include_extras' => 'page, section, password',
63 'inline_style' => 0,
64 'class' => 'frm-alt-table',
65 'show_filename' => true,
66 'show_image' => true,
67 'size' => 'thumbnail',
68 'add_link' => true,
69 );
70
71 /**
72 * Allows modifying the arguments when showing entry in the Entries page.
73 *
74 * @since 5.0.16
75 *
76 * @param array $show_args The arguments.
77 * @param array $args Includes `form`.
78 */
79 $show_args = apply_filters( 'frm_entries_show_args', $show_args, compact( 'form' ) );
80
81 echo FrmEntriesController::show_entry_shortcode( $show_args ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
82 ?>
83
84 <?php do_action( 'frm_show_entry', $entry ); ?>
85 </div>
86
87 <?php do_action( 'frm_after_show_entry', $entry ); ?>
88 </div>
89 </div>
90
91 <div class="frm-right-panel">
92 <?php
93 do_action( 'frm_show_entry_sidebar', $entry );
94 FrmEntriesController::entry_sidebar( $entry );
95 ?>
96 </div>
97
98 </div>
99 </div>
100 </div>
101