Skip to content

Commit

Permalink
PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
renintw committed May 20, 2024
1 parent ba7061a commit c95dfa4
Showing 1 changed file with 13 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,33 +1,28 @@
<?php

namespace WordCamp\Budgets\Reimbursement_Requests;
defined( 'WPINC' ) or die();

?>

<?php if ( empty ( $existing_notes ) ) : ?>

<?php _e( 'There are no notes yet.', 'wordcamporg' ); ?>

<?php else : ?>

<?php foreach ( $existing_notes as $note ) : ?>
if ( ! defined( 'WPINC' ) ) {
die();
}

if ( empty( $existing_notes ) ) :
esc_html_e( 'There are no private notes yet.', 'wordcamporg' );
else :
foreach ( $existing_notes as $note ) : ?>
<div class="wcbrr-note">
<span class="wcbrr-note-meta">
<?php echo esc_html( date( 'Y-m-d', $note['timestamp'] ) ); ?>
<?php echo esc_html( \WordCamp_Budgets::get_requester_name( $note['author_id'] ) ); ?>:
<?php echo esc_html( gmdate( 'Y-m-d', $note['timestamp'] ) ); ?>
<?php echo esc_html( WordCamp_Budgets::get_requester_name( $note['author_id'] ) ); ?>:
</span>

<?php echo esc_html( $note['message'] ); ?>
</div>
<?php endforeach; ?>

<?php endif; ?>
<?php endforeach;
endif; ?>

<div>
<h3>
<label for="wcbrr_new_note">
<?php _e( 'Add a Note', 'wordcamporg' ); ?>
<?php esc_html_e( 'Add a Note', 'wordcamporg' ); ?>
</label>

<?php if ( current_user_can( 'manage_network' ) ) : ?>
Expand Down

0 comments on commit c95dfa4

Please sign in to comment.