chore: indenting

This commit is contained in:
Ben Goldsworthy 2022-04-12 22:34:33 +01:00
parent 2f3ed12adf
commit a9c17dbfc2
6 changed files with 72 additions and 75 deletions

View file

@ -21,7 +21,7 @@
<a class="item" href="<?php echo esc_url( $post_link ); ?>"<?php echo ( $links_externally ) ? ' target="_blank" rel="noopener noreferrer"' : ''; ?>>
<article id="post-<?php the_ID(); ?>" class="tile col-m-6 col-4 col-w-3" style="background-image: url('<?php the_post_thumbnail_url(); ?>');">
<?php
$title_length = strlen( get_the_title() );
$title_length = strlen(get_the_title());
if ( $title_length > 70 ) {
$small = 'vsmall';
} elseif ( $title_length > 35 ) {
@ -51,9 +51,9 @@
<?php
$subtitle = get_post_meta( get_the_ID(), 'Subtitle', true );
if ( $subtitle ) :
?>
?>
<h2>
<?php echo wp_kses_post( $subtitle ); ?>
<?php echo wp_kses_post( $subtitle ); ?>
</h2>
<?php endif; ?>