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
← All changes | classes/views/frm-entries/show.php +34 -5 6.4 → trunk View file →
@@ -1,5 +1,16 @@
1 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 +
2 13 if ( ! defined( 'ABSPATH' ) ) {
3 14 die( 'You are not allowed to call this page directly.' );
4 15 }
5 16 ?>
@@ -7,12 +18,12 @@
7 18 <div>
8 19 <?php
9 20 FrmAppHelper::get_admin_header(
10 21 array(
11 - 'label' => __( 'View Entry', 'formidable' ),
12 - 'form' => $form,
13 - 'hide_title' => true,
14 - 'close' => '?page=formidable-entries&form=' . $form->id,
22 + 'label' => __( 'View Entry', 'formidable' ),
23 + 'form' => $form,
24 + 'hide_title' => true,
25 + 'close' => '?page=formidable-entries&form=' . $form->id,
15 26 )
16 27 );
17 28 ?>
18 29
@@ -18,11 +29,28 @@
18 29
19 30 <div class="columns-2">
20 31
21 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 +
22 50 <div class="wrap frm-with-margin frm_form_fields">
23 51 <div class="postbox">
24 - <a href="#" class="alignright frm-pre-hndle" data-frmtoggle=".frm-empty-row" data-toggletext="<?php esc_attr_e( 'Hide empty fields', 'formidable' ); ?>">
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' ); ?>">
25 53 <?php esc_html_e( 'Show empty fields', 'formidable' ); ?>
26 54 </a>
27 55 <h3 class="hndle">
28 56 <span><?php esc_html_e( 'Entry', 'formidable' ); ?></span>
@@ -58,8 +86,9 @@
58 86 *
59 87 * @param array $show_args The arguments.
60 88 * @param array $args Includes `form`.
61 89 */
90 + // skipcq: PHP-W1020
62 91 $show_args = apply_filters( 'frm_entries_show_args', $show_args, compact( 'form' ) );
63 92
64 93 echo FrmEntriesController::show_entry_shortcode( $show_args ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
65 94 ?>