Skip to content

Commit

Permalink
Ensure all translations are run throgh esc_x and other linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gin0115 committed Nov 19, 2024
1 parent 146bb88 commit 08040fe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions themes/osi/template-parts/content-archive-board-member.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

?>
<?php $content_size = ( 'post' !== get_post_type() && !is_search() ) ? 'three-column' : 'two-column'; ?>
<?php $content_size = ( 'post' !== get_post_type() && ! is_search() ) ? 'three-column' : 'two-column'; ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'archive wp-block-column ' . $content_size ); ?>>
<?php get_template_part( 'template-parts/featured-image', 'cropped' ); ?>
<section class="post--summary osi-list--post-content">
Expand All @@ -20,7 +20,7 @@
</header><!-- .entry-header -->

<div class="entry-content post--summary">
<p class="member-details">
<p class="member-details">
<?php if ( osi_field_check( 'pronouns' ) ) : ?>
<span class="member-pronouns">
<?php osi_the_valid_field( 'pronouns' ); ?>
Expand All @@ -33,13 +33,13 @@
</span>
<?php endif; ?>
</p>
<?php if( osi_field_check( 'current_term_start_date' ) ) : ?>
<?php if ( osi_field_check( 'current_term_start_date' ) ) : ?>
<p class="member-dates">
<?php
echo __( 'Current Term:', 'osi' ) . ' ';
<?php
echo esc_html__( 'Current Term:', 'osi' ) . ' ';
osi_the_valid_date_field( 'current_term_start_date', 'M Y' );
if( osi_field_check( 'current_term_end_date' ) ) :
echo ' ' . __( 'to', 'osi' ) . ' ';
if ( osi_field_check( 'current_term_end_date' ) ) :
echo ' ' . esc_html__( 'to', 'osi' ) . ' ';
osi_the_valid_date_field( 'current_term_end_date', 'M Y' );
endif;
?>
Expand Down

0 comments on commit 08040fe

Please sign in to comment.