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 +17 -3 6.4.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
@@ -69,8 +80,10 @@
69 80 <?php FrmEntriesHelper::maybe_render_captcha_score( $entry->id ); ?>
70 81 </div>
71 82 </div>
72 83
84 +<?php do_action( 'frm_entry_shared_sidebar_middle', $entry ); ?>
85 +
73 86 <div class="frm_with_icons">
74 87 <h3><?php esc_html_e( 'User Information', 'formidable' ); ?></h3>
75 88 <div class="inside">
76 89 <?php if ( $entry->user_id ) { ?>
@@ -86,8 +99,9 @@
86 99 ?>
87 100 </div>
88 101 <?php } ?>
89 102
103 + <?php // phpcs:ignore Universal.Operators.StrictComparisons ?>
90 104 <?php if ( $entry->updated_by && $entry->updated_by != $entry->user_id ) { ?>
91 105 <div class="misc-pub-section">
92 106 <?php
93 107 FrmAppHelper::icon_by_class( 'frmfont frm_user_icon', array( 'aria-hidden' => 'true' ) );
@@ -126,9 +140,9 @@
126 140 <?php } ?>
127 141
128 142 <?php
129 143 foreach ( (array) $data as $k => $d ) {
130 - if ( in_array( $k, array( 'browser', 'referrer' ) ) ) {
144 + if ( in_array( $k, array( 'browser', 'referrer', 'user_journey' ), true ) ) {
131 145 continue;
132 146 }
133 147 ?>
134 148 <div class="misc-pub-section">