Clean up spaces, tabs, indentation, and bracket formatting

This commit is contained in:
Brian Miyaji
2021-11-10 15:41:40 +09:00
parent e58beb1201
commit 3dff686a00
285 changed files with 29638 additions and 24147 deletions

View File

@@ -2,23 +2,28 @@
/**
* Staff Excerpt
*
* @author ThemeBoy
* @package SportsPress/Templates
* @author ThemeBoy
* @package SportsPress/Templates
* @version 2.5.5
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( get_option( 'sportspress_staff_show_excerpt', 'yes' ) === 'no' ) return;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( get_option( 'sportspress_staff_show_excerpt', 'yes' ) === 'no' ) {
return;
}
if ( ! isset( $id ) )
$id = get_the_ID();
if ( ! isset( $id ) ) {
$id = get_the_ID();
}
$post = get_post( $id );
$post = get_post( $id );
$excerpt = $post->post_excerpt;
if ( $excerpt ) {
?>
<p class="sp-excerpt">
<?php echo $excerpt; ?>
</p>
<?php
}
?>
<p class="sp-excerpt">
<?php echo $excerpt; ?>
</p>
<?php
}