| @@ -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"> |