PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.26.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.26.1
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-pub.php

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

63 lines 1.7 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 if ( ! isset( $entry ) ) {
7 $entry = $record;
8 }
9 ?>
10
11 <div class="misc-pub-section">
12 <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_calendar_icon', array( 'aria-hidden' => 'true' ) ); ?>
13 <span id="timestamp">
14 <?php
15
16 $date_format = get_option( 'date_format' );
17
18 if ( $date_format ) {
19 // Use short months since the sidebar space is limited.
20 $date_format = str_replace( 'F', 'M', $date_format );
21 } else {
22 // Fallback if there is no option in the database.
23 $date_format = __( 'M j, Y', 'formidable' );
24 }
25
26 /**
27 * @since 6.25
28 *
29 * @param string $text
30 * @param stdClass $entry
31 */
32 $additional_timestamp_text = apply_filters( 'frm_additional_timestamp_text', '', $entry );
33
34 printf(
35 /* translators: %1$s: Entry status, %2$s: <b> open tag, %3$s: The date, %4$s: Possible additional text, %5$s: </b> close tag */
36 esc_html__( '%1$s: %2$s%3$s%4$s%5$s', 'formidable' ),
37 esc_html( FrmEntriesHelper::get_entry_status_label( $entry->is_draft ) ),
38 '<b>',
39 esc_html( FrmAppHelper::get_formatted_time( $entry->created_at, $date_format ) ),
40 esc_html( $additional_timestamp_text ),
41 '</b>'
42 );
43 ?>
44 </span>
45 </div>
46
47 <?php if ( $entry->updated_at && $entry->updated_at != $entry->created_at ) { ?>
48 <div class="misc-pub-section">
49 <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_calendar_icon', array( 'aria-hidden' => 'true' ) ); ?>
50 <span id="timestamp">
51 <?php
52 printf(
53 /* translators: %1$s: The date */
54 esc_html__( 'Updated: %1$s', 'formidable' ),
55 '<b>' . esc_html( FrmAppHelper::get_formatted_time( $entry->updated_at, $date_format ) ) . '</b>'
56 );
57 ?>
58 </span>
59 </div>
60 <?php } ?>
61
62 <?php do_action( 'frm_entry_shared_sidebar', $entry ); ?>
63