Add post excerpt to events and combine overview section

This commit is contained in:
Brian Miyaji
2015-09-17 12:26:30 +10:00
parent 3b551c460a
commit 735cbdbd2b
4 changed files with 111 additions and 15 deletions

View File

@@ -0,0 +1,14 @@
<?php
/**
* Event Results/Details
*
* @author ThemeBoy
* @package SportsPress/Templates
* @version 1.9
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>
<div class="sp-event-overview">
<?php do_action( 'sportspress_event_overview_content' ); ?>
</div>

View File

@@ -0,0 +1,19 @@
<?php
/**
* Post Excerpt
*
* @author ThemeBoy
* @package SportsPress/Templates
* @version 1.9
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
$id = get_the_ID();
$post = get_post( $id );
$excerpt = $post->post_excerpt;
if ( $excerpt ) {
?>
<p class="sp-excerpt"><?php echo $excerpt; ?></p>
<?php
}