Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /home/claqxcrl/anfangola.com/wp-content/plugins/sportspress/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/claqxcrl/anfangola.com/wp-content/plugins/sportspress/templates/team-details.php
<?php
/**
 * Team Details
 *
 * @author      ThemeBoy
 * @package     SportsPress/Templates
 * @version   2.7.1
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}
if ( get_option( 'sportspress_team_show_details', 'no' ) === 'no' ) {
	return;
}

if ( ! isset( $id ) ) {
	$id = get_the_ID();
}

$data = array();

$terms = get_the_terms( $id, 'sp_league' );
if ( $terms ) :
	$leagues = array();
	foreach ( $terms as $term ) :
		$leagues[] = $term->name;
	endforeach;
	$data[ esc_attr__( 'Leagues', 'sportspress' ) ] = implode( ', ', $leagues );
endif;

$terms = get_the_terms( $id, 'sp_season' );
if ( $terms ) :
	$seasons = array();
	foreach ( $terms as $term ) :
		$seasons[] = $term->name;
	endforeach;
	$data[ esc_attr__( 'Seasons', 'sportspress' ) ] = implode( ', ', $seasons );
endif;

$terms = get_the_terms( $id, 'sp_venue' );
if ( $terms ) :
	if ( get_option( 'sportspress_team_link_venues', 'no' ) === 'yes' ) :
		$data[ esc_attr__( 'Home', 'sportspress' ) ] = get_the_term_list( $id, 'sp_venue', '', ', ' );
	else :
		$venues = array();
		foreach ( $terms as $term ) :
			$venues[] = $term->name;
		endforeach;
		$data[ esc_attr__( 'Home', 'sportspress' ) ] = implode( ', ', $venues );
	endif;
endif;

$output = '<div class="sp-list-wrapper">' .
	'<dl class="sp-team-details">';

foreach ( $data as $label => $value ) :

	$output .= '<dt>' . $label . '</dt><dd>' . $value . '</dd>';

endforeach;

$output .= '</dl></div>';
?>
<div class="sp-template sp-template-team-details sp-template-details">
	<?php echo wp_kses_post( $output ); ?>
</div>

ZeroDay Forums Mini