| 1 |
<?php |
| 2 |
if ( ! isset( $entry ) ) { |
| 3 |
$entry = $record; |
| 4 |
} ?> |
| 5 |
|
| 6 |
<div class="misc-pub-section curtime misc-pub-curtime"> |
| 7 |
<span id="timestamp"> |
| 8 |
<?php |
| 9 |
$date_format = __( 'M j, Y @ G:i', 'formidable' ); |
| 10 |
printf( esc_html__( 'Published on: %1$s', 'formidable' ), '<b>' . esc_html( FrmAppHelper::get_localized_date( $date_format, $entry->created_at ) ) . '</b>' ); |
| 11 |
?> |
| 12 |
</span> |
| 13 |
</div> |
| 14 |
<?php if ( FrmAppHelper::get_param( 'frm_action' ) == 'show' ) { ?> |
| 15 |
<div class="misc-pub-section frm_no_print"> |
| 16 |
<span class="dashicons dashicons-format-aside wp-media-buttons-icon"></span> |
| 17 |
<a href="#" onclick="window.print();return false;"><?php esc_html_e( 'Print', 'formidable' ) ?></a> |
| 18 |
</div> |
| 19 |
<?php } ?> |
| 20 |
<?php if ( $entry->updated_at && $entry->updated_at != $entry->created_at ) { ?> |
| 21 |
<div class="misc-pub-section curtime misc-pub-curtime"> |
| 22 |
<span id="timestamp"> |
| 23 |
<?php printf( esc_html__( 'Updated on: %1$s', 'formidable' ), '<b>' . esc_html( FrmAppHelper::get_localized_date( $date_format, $entry->updated_at ) ) . '</b>' ); ?> |
| 24 |
</span> |
| 25 |
</div> |
| 26 |
<?php } ?> |
| 27 |
|
| 28 |
<?php do_action( 'frm_entry_shared_sidebar', $entry ); ?> |
| 29 |
|