<?php

use function Seventhqueen\Typer\typer;

?>

<div class="post-excerpt">
	<?php if ( $quote ) : ?>
		<a href="<?php the_permalink() ?>" class="post-quote-link"></a>
		<?php typer()->get_template_part(
			'template-parts/archive/article-format/quote',
			null,
			compact( 'quote' ) ); ?>
	<?php endif; ?>

	<?php if ( get_post_format() === 'audio' ) : ?>
		<?php typer()->get_template_part( 'template-parts/content/panel/audio' ) ?>
	<?php endif; ?>

	<?php if ( ! $quote ) : ?>
		<a href="<?php the_permalink() ?>" class="screen-reader-link">
			<?php echo typer()->get_excerpt() ?>
		</a>
	<?php endif; ?>
</div>
