48 lines
1.5 KiB
PHP
Executable File
48 lines
1.5 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Template part for displaying quote format entry.
|
|
*
|
|
* @link https://codex.wordpress.org/Template_Hierarchy
|
|
*
|
|
* @package Bloglo
|
|
* @author Peregrine Themes
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
/**
|
|
* Do not allow direct script access.
|
|
*/
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
if ( post_password_required() ) {
|
|
return;
|
|
}
|
|
|
|
$bloglo_quote_content = apply_filters( 'bloglo_post_format_quote_content', get_the_content() );
|
|
$bloglo_quote_author = apply_filters( 'bloglo_post_format_quote_author', get_the_title() );
|
|
$bloglo_quote_bg = has_post_thumbnail() ? ' style="background-image: url(\'' . esc_url( get_the_post_thumbnail_url() ) . '\')"' : '';
|
|
?>
|
|
|
|
<div class="bloglo-blog-entry-content">
|
|
<div class="entry-content bloglo-entry"<?php bloglo_schema_markup( 'text' ); ?>>
|
|
|
|
<?php if ( ! is_single() ) { ?>
|
|
<a href="<?php the_permalink(); ?>" class="quote-link" aria-label="<?php esc_attr_e( 'Read more', 'bloglo' ); ?>"></a>
|
|
<?php } ?>
|
|
|
|
<div class="quote-post-bg"<?php echo $bloglo_quote_bg; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>></div>
|
|
|
|
<div class="quote-inner">
|
|
|
|
<?php echo bloglo()->icons->get_svg( 'quote', array( 'class' => 'icon-quote' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
|
|
|
<h3><?php echo wp_kses( $bloglo_quote_content, bloglo_get_allowed_html_tags() ); ?></h3>
|
|
<div class="author"><?php echo wp_kses( $bloglo_quote_author, bloglo_get_allowed_html_tags() ); ?></div>
|
|
|
|
</div><!-- END .quote-inner -->
|
|
|
|
</div>
|
|
</div><!-- END .bloglo-blog-entry-content -->
|