Skip to content

Commit

Permalink
Minor style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Nov 4, 2024
1 parent 6aed9ad commit 923f5df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/my-calendar-categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ class='edit'><?php echo wp_kses_post( $edit_cat ); ?></a> |
if ( ! $icon ) {
$icon_bg = 'transparent';
}
$style = ( '' !== $icon_bg ) ? ' style="background-color:' . esc_attr( $icon_bg ) . '"' : '';
$style = ( '' !== $icon_bg ) ? ' style="text-align:center;vertical-align:middle;background-color:' . esc_attr( $icon_bg ) . '"' : '';
?>
<td<?php echo $style; ?>><?php echo ( $icon ) ? wp_kses( $icon, mc_kses_elements() ) : ''; ?></td>
<?php
Expand All @@ -948,7 +948,7 @@ class='edit'><?php echo wp_kses_post( $edit_cat ); ?></a> |
$fg = '';
}
?>
<td style="background-color:<?php echo esc_attr( $bg ); ?>;color: <?php echo esc_attr( $fg ); ?>;"><?php echo ( '#' !== $background ) ? esc_attr( $background ) : 'N/A'; ?></td>
<td style="font-size:1.3rem;text-align:center;vertical-align:middle;background-color:<?php echo esc_attr( $bg ); ?>;color: <?php echo esc_attr( $fg ); ?>;"><?php echo ( '#' !== $background ) ? esc_attr( $background ) : 'N/A'; ?></td>
<?php
}
?>
Expand Down

0 comments on commit 923f5df

Please sign in to comment.