| 1 |
|
| 2 |
<div class="postbox frm_with_icons" > |
| 3 |
<h3 class="hndle"> |
| 4 |
<span><?php esc_html_e( 'Entry Details', 'formidable' ) ?></span> |
| 5 |
<?php if ( FrmAppHelper::get_param( 'frm_action' ) != 'show' ) { ?> |
| 6 |
<a href="?page=formidable-entries&frm_action=show&id=<?php echo absint( $entry->id ); ?>" class="alignright"> |
| 7 |
<?php esc_html_e( 'View Entry', 'formidable' ) ?> |
| 8 |
</a> |
| 9 |
<?php } ?> |
| 10 |
</h3> |
| 11 |
<div class="inside"> |
| 12 |
<?php include( FrmAppHelper::plugin_path() . '/classes/views/frm-entries/_sidebar-shared-pub.php' ); ?> |
| 13 |
|
| 14 |
<?php if ( $entry->post_id ) { ?> |
| 15 |
<div class="misc-pub-section frm_no_print"> |
| 16 |
<span class="dashicons dashicons-admin-post wp-media-buttons-icon"></span> |
| 17 |
<?php esc_html_e( 'Post', 'formidable' ) ?>: |
| 18 |
<b><?php echo esc_html( get_the_title( $entry->post_id ) ); ?></b> |
| 19 |
<span> |
| 20 |
<a href="<?php echo esc_url( admin_url( 'post.php?post=' . $entry->post_id . '&action=edit' ) ) ?>"> |
| 21 |
<?php esc_html_e( 'Edit', 'formidable' ) ?> |
| 22 |
</a> |
| 23 |
<a href="<?php echo esc_url( get_permalink( $entry->post_id ) ) ?>"> |
| 24 |
<?php esc_html_e( 'View', 'formidable' ) ?> |
| 25 |
</a> |
| 26 |
</span> |
| 27 |
</div> |
| 28 |
<?php } ?> |
| 29 |
|
| 30 |
<div class="misc-pub-section"> |
| 31 |
<span class="dashicons dashicons-id wp-media-buttons-icon"></span> |
| 32 |
<?php esc_html_e( 'Entry ID', 'formidable' ) ?>: |
| 33 |
<b><?php echo absint( $entry->id ) ?></b> |
| 34 |
</div> |
| 35 |
|
| 36 |
<div class="misc-pub-section"> |
| 37 |
<span class="dashicons dashicons-post-status wp-media-buttons-icon"></span> |
| 38 |
<?php esc_html_e( 'Entry Key', 'formidable' ) ?>: |
| 39 |
<b><?php echo esc_html( $entry->item_key ) ?></b> |
| 40 |
</div> |
| 41 |
|
| 42 |
<?php if ( FrmAppHelper::pro_is_installed() ) { ?> |
| 43 |
<?php if ( $entry->user_id ) { ?> |
| 44 |
<div class="misc-pub-section"> |
| 45 |
<span class="dashicons dashicons-admin-users wp-media-buttons-icon"></span> |
| 46 |
<?php |
| 47 |
printf( |
| 48 |
esc_html__( 'Created by: %1$s', 'formidable' ), |
| 49 |
FrmAppHelper::kses( FrmFieldsHelper::get_user_display_name( $entry->user_id, 'display_name', array( 'link' => true ) ), array( 'a' ) ) |
| 50 |
); // WPCS: XSS ok. |
| 51 |
?> |
| 52 |
</div> |
| 53 |
<?php } ?> |
| 54 |
|
| 55 |
<?php if ( $entry->updated_by && $entry->updated_by != $entry->user_id ) { ?> |
| 56 |
<div class="misc-pub-section"> |
| 57 |
<span class="dashicons dashicons-admin-users wp-media-buttons-icon"></span> |
| 58 |
<?php |
| 59 |
printf( |
| 60 |
esc_html__( 'Updated by: %1$s', 'formidable' ), |
| 61 |
FrmAppHelper::kses( FrmFieldsHelper::get_user_display_name( $entry->updated_by, 'display_name', array( 'link' => true ) ), array( 'a' ) ) |
| 62 |
); // WPCS: XSS ok. |
| 63 |
?> |
| 64 |
</div> |
| 65 |
<?php } ?> |
| 66 |
<?php } ?> |
| 67 |
|
| 68 |
</div> |
| 69 |
</div> |
| 70 |
|
| 71 |
<div class="postbox"> |
| 72 |
<h3 class="hndle"><span><?php esc_html_e( 'User Information', 'formidable' ) ?></span></h3> |
| 73 |
<div class="inside"> |
| 74 |
<?php if ( ! empty( $entry->ip ) ) { ?> |
| 75 |
<div class="misc-pub-section"> |
| 76 |
<?php esc_html_e( 'IP Address', 'formidable' ) ?>: |
| 77 |
<b><?php echo esc_html( $entry->ip ); ?></b> |
| 78 |
</div> |
| 79 |
<?php } ?> |
| 80 |
|
| 81 |
<?php if ( isset( $browser ) ) { ?> |
| 82 |
<div class="misc-pub-section"> |
| 83 |
<b><?php esc_html_e( 'Browser/OS', 'formidable' ) ?></b>:<br/> |
| 84 |
<?php echo wp_kses_post( $browser ); ?> |
| 85 |
</div> |
| 86 |
<?php } ?> |
| 87 |
|
| 88 |
<?php if ( isset( $data['referrer'] ) ) { ?> |
| 89 |
<div class="misc-pub-section frm_force_wrap"> |
| 90 |
<b><?php esc_html_e( 'Referrer', 'formidable' ) ?></b>:<br/> |
| 91 |
<?php echo wp_kses_post( str_replace( "\r\n", '<br/>', $data['referrer'] ) ); ?> |
| 92 |
</div> |
| 93 |
<?php } ?> |
| 94 |
|
| 95 |
<?php |
| 96 |
foreach ( (array) $data as $k => $d ) { |
| 97 |
if ( in_array( $k, array( 'browser', 'referrer' ) ) ) { |
| 98 |
continue; |
| 99 |
} |
| 100 |
?> |
| 101 |
<div class="misc-pub-section"> |
| 102 |
<b><?php echo esc_html( ucfirst( str_replace( '-', ' ', $k ) ) ); ?></b>: |
| 103 |
<?php echo wp_kses_post( implode( ', ', (array) $d ) ); ?> |
| 104 |
</div> |
| 105 |
<?php |
| 106 |
unset( $k, $d ); |
| 107 |
} |
| 108 |
?> |
| 109 |
</div> |
| 110 |
</div> |
| 111 |
|