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/sidebar-shared.php +15 -3 6.5.2 → trunk View file →
@@ -1,5 +1,16 @@
1 1 <?php
2 +/**
3 + * Shared entry sidebar.
4 + *
5 + * @package Formidable
6 + *
7 + * @var string $id Entry ID.
8 + * @var stdClass $entry Entry object.
9 + * @var string|null $browser Browser info string if available.
10 + * @var array|null $data Additional entry meta data (referrer, user_journey, etc.).
11 + */
12 +
2 13 if ( ! defined( 'ABSPATH' ) ) {
3 14 die( 'You are not allowed to call this page directly.' );
4 15 }
5 16 ?>
@@ -27,9 +38,9 @@
27 38 <h3>
28 39 <?php esc_html_e( 'Entry Details', 'formidable' ); ?>
29 40 </h3>
30 41 <div class="inside">
31 - <?php include( FrmAppHelper::plugin_path() . '/classes/views/frm-entries/_sidebar-shared-pub.php' ); ?>
42 + <?php require FrmAppHelper::plugin_path() . '/classes/views/frm-entries/_sidebar-shared-pub.php'; ?>
32 43
33 44 <?php if ( $entry->post_id ) { ?>
34 45 <div class="misc-pub-section frm_no_print">
35 46 <?php FrmAppHelper::icon_by_class( 'frmfont frm_calendar_icon', array( 'aria-hidden' => 'true' ) ); ?>
@@ -52,9 +63,9 @@
52 63 <b><?php echo absint( $entry->id ); ?></b>
53 64 </div>
54 65
55 66 <div class="misc-pub-section">
56 - <?php FrmAppHelper::icon_by_class( 'frmfont frm_keyalt_icon', array( 'aria-hidden' => 'true' ) ); ?>
67 + <?php FrmAppHelper::icon_by_class( 'frmfont frm_key_icon', array( 'aria-hidden' => 'true' ) ); ?>
57 68 <?php esc_html_e( 'Entry Key', 'formidable' ); ?>:
58 69 <b><?php echo esc_html( $entry->item_key ); ?></b>
59 70 </div>
60 71
@@ -88,8 +99,9 @@
88 99 ?>
89 100 </div>
90 101 <?php } ?>
91 102
103 + <?php // phpcs:ignore Universal.Operators.StrictComparisons ?>
92 104 <?php if ( $entry->updated_by && $entry->updated_by != $entry->user_id ) { ?>
93 105 <div class="misc-pub-section">
94 106 <?php
95 107 FrmAppHelper::icon_by_class( 'frmfont frm_user_icon', array( 'aria-hidden' => 'true' ) );
@@ -128,9 +140,9 @@
128 140 <?php } ?>
129 141
130 142 <?php
131 143 foreach ( (array) $data as $k => $d ) {
132 - if ( in_array( $k, array( 'browser', 'referrer' ) ) ) {
144 + if ( in_array( $k, array( 'browser', 'referrer', 'user_journey' ), true ) ) {
133 145 continue;
134 146 }
135 147 ?>
136 148 <div class="misc-pub-section">