PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.7.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.7.2
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 / sidebar-shared.php

sidebar-shared.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.7.2, at classes/views/frm-entries/sidebar-shared.php

147 lines 5.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5 ?>
6 <div class="frm_with_icons frm_no_print">
7 <h3>
8 <?php esc_html_e( 'Entry Actions', 'formidable' ); ?>
9 </h3>
10 <div class="inside">
11 <?php FrmEntriesHelper::actions_dropdown( compact( 'id', 'entry' ) ); ?>
12 <?php do_action( 'frm_entry_major_pub', $entry ); ?>
13 <div class="clear"></div>
14
15 <?php if ( has_action( 'frm_show_entry_publish_box' ) ) { ?>
16 <div id="minor-publishing" class="frm_remove_border">
17 <div class="misc-pub-section">
18 <?php do_action( 'frm_show_entry_publish_box', $entry ); ?>
19 <div class="clear"></div>
20 </div>
21 </div>
22 <?php } ?>
23 </div>
24 </div>
25
26 <div class="frm_with_icons">
27 <h3>
28 <?php esc_html_e( 'Entry Details', 'formidable' ); ?>
29 </h3>
30 <div class="inside">
31 <?php include( FrmAppHelper::plugin_path() . '/classes/views/frm-entries/_sidebar-shared-pub.php' ); ?>
32
33 <?php if ( $entry->post_id ) { ?>
34 <div class="misc-pub-section frm_no_print">
35 <?php FrmAppHelper::icon_by_class( 'frmfont frm_calendar_icon', array( 'aria-hidden' => 'true' ) ); ?>
36 <?php esc_html_e( 'Post', 'formidable' ); ?>:
37 <b><?php echo esc_html( get_the_title( $entry->post_id ) ); ?></b>
38 <span>
39 <a href="<?php echo esc_url( admin_url( 'post.php?post=' . $entry->post_id . '&action=edit' ) ); ?>">
40 <?php esc_html_e( 'Edit', 'formidable' ); ?>
41 </a>
42 <a href="<?php echo esc_url( get_permalink( $entry->post_id ) ); ?>">
43 <?php esc_html_e( 'View', 'formidable' ); ?>
44 </a>
45 </span>
46 </div>
47 <?php } ?>
48
49 <div class="misc-pub-section">
50 <?php FrmAppHelper::icon_by_class( 'frmfont frm_fingerprint_icon', array( 'aria-hidden' => 'true' ) ); ?>
51 <?php esc_html_e( 'Entry ID', 'formidable' ); ?>:
52 <b><?php echo absint( $entry->id ); ?></b>
53 </div>
54
55 <div class="misc-pub-section">
56 <?php FrmAppHelper::icon_by_class( 'frmfont frm_key_icon', array( 'aria-hidden' => 'true' ) ); ?>
57 <?php esc_html_e( 'Entry Key', 'formidable' ); ?>:
58 <b><?php echo esc_html( $entry->item_key ); ?></b>
59 </div>
60
61 <?php if ( $entry->parent_item_id ) { ?>
62 <div class="misc-pub-section">
63 <?php FrmAppHelper::icon_by_class( 'frmfont frm_sitemap_icon', array( 'aria-hidden' => 'true' ) ); ?>
64 <?php esc_html_e( 'Parent Entry ID', 'formidable' ); ?>:
65 <b><?php echo esc_html( $entry->parent_item_id ); ?></b>
66 </div>
67 <?php } ?>
68
69 <?php FrmEntriesHelper::maybe_render_captcha_score( $entry->id ); ?>
70 </div>
71 </div>
72
73 <?php do_action( 'frm_entry_shared_sidebar_middle', $entry ); ?>
74
75 <div class="frm_with_icons">
76 <h3><?php esc_html_e( 'User Information', 'formidable' ); ?></h3>
77 <div class="inside">
78 <?php if ( $entry->user_id ) { ?>
79 <div class="misc-pub-section">
80 <?php
81 FrmAppHelper::icon_by_class( 'frmfont frm_user_icon', array( 'aria-hidden' => 'true' ) );
82
83 printf(
84 /* translators: %1$s: User display name. */
85 esc_html__( 'Created by: %1$s', 'formidable' ),
86 FrmAppHelper::kses( FrmFieldsHelper::get_user_display_name( $entry->user_id, 'display_name', array( 'link' => true ) ), array( 'a' ) ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
87 );
88 ?>
89 </div>
90 <?php } ?>
91
92 <?php if ( $entry->updated_by && $entry->updated_by != $entry->user_id ) { ?>
93 <div class="misc-pub-section">
94 <?php
95 FrmAppHelper::icon_by_class( 'frmfont frm_user_icon', array( 'aria-hidden' => 'true' ) );
96
97 printf(
98 /* translators: %1$s: User display name. */
99 esc_html__( 'Updated by: %1$s', 'formidable' ),
100 FrmAppHelper::kses( FrmFieldsHelper::get_user_display_name( $entry->updated_by, 'display_name', array( 'link' => true ) ), array( 'a' ) ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
101 );
102 ?>
103 </div>
104 <?php } ?>
105
106 <?php if ( ! empty( $entry->ip ) ) { ?>
107 <div class="misc-pub-section">
108 <?php FrmAppHelper::icon_by_class( 'frmfont frm_location_icon', array( 'aria-hidden' => 'true' ) ); ?>
109 <?php esc_html_e( 'IP Address:', 'formidable' ); ?>
110 <b><?php echo esc_html( $entry->ip ); ?></b>
111 </div>
112 <?php } ?>
113
114 <?php if ( isset( $browser ) ) { ?>
115 <div class="misc-pub-section">
116 <?php FrmAppHelper::icon_by_class( 'frmfont frm_browser_icon', array( 'aria-hidden' => 'true' ) ); ?>
117 <?php esc_html_e( 'Browser/OS:', 'formidable' ); ?>
118 <b><?php echo wp_kses_post( $browser ); ?></b>
119 </div>
120 <?php } ?>
121
122 <?php if ( isset( $data['referrer'] ) ) { ?>
123 <div class="misc-pub-section frm_force_wrap">
124 <?php FrmAppHelper::icon_by_class( 'frmfont frm_history_icon', array( 'aria-hidden' => 'true' ) ); ?>
125 <?php esc_html_e( 'Referrer:', 'formidable' ); ?>
126 <?php echo wp_kses_post( str_replace( "\r\n", '<br/>', $data['referrer'] ) ); ?>
127 </div>
128 <?php } ?>
129
130 <?php
131 foreach ( (array) $data as $k => $d ) {
132 if ( in_array( $k, array( 'browser', 'referrer', 'user_journey' ) ) ) {
133 continue;
134 }
135 ?>
136 <div class="misc-pub-section">
137 <?php FrmAppHelper::icon_by_class( 'frmfont frm_attach_file_icon', array( 'aria-hidden' => 'true' ) ); ?>
138 <?php echo esc_html( ucfirst( str_replace( '-', ' ', $k ) ) ); ?>:
139 <b><?php echo wp_kses_post( implode( ', ', (array) $d ) ); ?></b>
140 </div>
141 <?php
142 unset( $k, $d );
143 }
144 ?>
145 </div>
146 </div>
147