cl01/wp-content/themes/hester/template-parts/entry/entry-summary.php
2025-02-24 12:39:24 +08:00

34 lines
705 B
PHP
Executable File

<?php
/**
* Template part for displaying entry content (summary).
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Hester
* @author Peregrine Themes
* @since 1.0.0
*/
/**
* Do not allow direct script access.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<?php do_action( 'hester_before_entry_summary' ); ?>
<div class="entry-summary hester-entry"<?php hester_schema_markup( 'text' ); ?>>
<?php
if ( post_password_required() ) {
esc_html_e( 'This content is password protected. To view it please go to the post page and enter the password.', 'hester' );
} else {
hester_excerpt();
}
?>
</div>
<?php do_action( 'hester_after_entry_summary' ); ?>