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

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