Add team logo template
This commit is contained in:
22
templates/team-logo.php
Normal file
22
templates/team-logo.php
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Team Logo
|
||||||
|
*
|
||||||
|
* @author ThemeBoy
|
||||||
|
* @package SportsPress/Templates
|
||||||
|
* @version 1.4
|
||||||
|
*/
|
||||||
|
|
||||||
|
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
|
if ( get_option( 'sportspress_team_show_logo', 'yes' ) === 'no' ) return;
|
||||||
|
|
||||||
|
if ( ! isset( $id ) )
|
||||||
|
$id = get_the_ID();
|
||||||
|
|
||||||
|
if ( has_post_thumbnail( $id ) ):
|
||||||
|
?>
|
||||||
|
<div class="sp-template sp-template-team-logo sp-template-logo sp-team-logo">
|
||||||
|
<?php echo get_the_post_thumbnail( $id, 'sportspress-fit-icon' ); ?>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
Reference in New Issue
Block a user