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,21 +2,26 @@
/**
* Staff Photo
*
* @author ThemeBoy
* @package SportsPress/Templates
* @author ThemeBoy
* @package SportsPress/Templates
* @version 1.4
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( get_option( 'sportspress_staff_show_photo', 'yes' ) === 'no' ) return;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( get_option( 'sportspress_staff_show_photo', 'yes' ) === 'no' ) {
return;
}
if ( ! isset( $id ) )
if ( ! isset( $id ) ) {
$id = get_the_ID();
}
if ( has_post_thumbnail( $id ) ):
if ( has_post_thumbnail( $id ) ) :
?>
<div class="sp-template sp-template-staff-photo sp-template-photo sp-staff-photo">
<?php echo get_the_post_thumbnail( $id, 'sportspress-fit-medium' ); ?>
</div>
<?php
endif;
endif;