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,26 +2,29 @@
/**
* Event Video
*
* @author ThemeBoy
* @package SportsPress/Templates
* @author ThemeBoy
* @package SportsPress/Templates
* @version 1.4
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( ! isset( $id ) )
if ( ! isset( $id ) ) {
$id = get_the_ID();
}
$video_url = get_post_meta( $id, 'sp_video', true );
if ( $video_url ):
if ( $video_url ) :
?>
<div class="sp-template sp-template-event-video sp-event-video">
<h4 class="sp-table-caption"><?php _e( 'Video', 'sportspress' ); ?></h4>
<?php
global $wp_embed;
echo $wp_embed->autoembed( $video_url );
?>
global $wp_embed;
echo $wp_embed->autoembed( $video_url );
?>
</div>
<?php
<?php
endif;
?>
?>