PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 4.11.02
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v4.11.02
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 4.11.02, at classes/views/frm-entries/sidebar-shared.php

143 lines 4.9 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_keyalt_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 </div>
69 </div>
70
71 <div class="frm_with_icons">
72 <h3><?php esc_html_e( 'User Information', 'formidable' ); ?></h3>
73 <div class="inside">
74 <?php if ( $entry->user_id ) { ?>
75 <div class="misc-pub-section">
76 <?php
77 FrmAppHelper::icon_by_class( 'frmfont frm_user_icon', array( 'aria-hidden' => 'true' ) );
78
79 printf(
80 /* translators: %1$s: User display name. */
81 esc_html__( 'Created by: %1$s', 'formidable' ),
82 FrmAppHelper::kses( FrmFieldsHelper::get_user_display_name( $entry->user_id, 'display_name', array( 'link' => true ) ), array( 'a' ) )
83 ); // WPCS: XSS ok.
84 ?>
85 </div>
86 <?php } ?>
87
88 <?php if ( $entry->updated_by && $entry->updated_by != $entry->user_id ) { ?>
89 <div class="misc-pub-section">
90 <?php
91 FrmAppHelper::icon_by_class( 'frmfont frm_user_icon', array( 'aria-hidden' => 'true' ) );
92
93 printf(
94 /* translators: %1$s: User display name. */
95 esc_html__( 'Updated by: %1$s', 'formidable' ),
96 FrmAppHelper::kses( FrmFieldsHelper::get_user_display_name( $entry->updated_by, 'display_name', array( 'link' => true ) ), array( 'a' ) )
97 ); // WPCS: XSS ok.
98 ?>
99 </div>
100 <?php } ?>
101
102 <?php if ( ! empty( $entry->ip ) ) { ?>
103 <div class="misc-pub-section">
104 <?php FrmAppHelper::icon_by_class( 'frmfont frm_location_icon', array( 'aria-hidden' => 'true' ) ); ?>
105 <?php esc_html_e( 'IP Address:', 'formidable' ); ?>
106 <b><?php echo esc_html( $entry->ip ); ?></b>
107 </div>
108 <?php } ?>
109
110 <?php if ( isset( $browser ) ) { ?>
111 <div class="misc-pub-section">
112 <?php FrmAppHelper::icon_by_class( 'frmfont frm_browser_icon', array( 'aria-hidden' => 'true' ) ); ?>
113 <?php esc_html_e( 'Browser/OS:', 'formidable' ); ?>
114 <b><?php echo wp_kses_post( $browser ); ?></b>
115 </div>
116 <?php } ?>
117
118 <?php if ( isset( $data['referrer'] ) ) { ?>
119 <div class="misc-pub-section frm_force_wrap">
120 <?php FrmAppHelper::icon_by_class( 'frmfont frm_history_icon', array( 'aria-hidden' => 'true' ) ); ?>
121 <?php esc_html_e( 'Referrer:', 'formidable' ); ?>
122 <?php echo wp_kses_post( str_replace( "\r\n", '<br/>', $data['referrer'] ) ); ?>
123 </div>
124 <?php } ?>
125
126 <?php
127 foreach ( (array) $data as $k => $d ) {
128 if ( in_array( $k, array( 'browser', 'referrer' ) ) ) {
129 continue;
130 }
131 ?>
132 <div class="misc-pub-section">
133 <?php FrmAppHelper::icon_by_class( 'frmfont frm_attach_file_icon', array( 'aria-hidden' => 'true' ) ); ?>
134 <?php echo esc_html( ucfirst( str_replace( '-', ' ', $k ) ) ); ?>:
135 <b><?php echo wp_kses_post( implode( ', ', (array) $d ) ); ?></b>
136 </div>
137 <?php
138 unset( $k, $d );
139 }
140 ?>
141 </div>
142 </div>
143