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/askdragao.com/wp-content/plugins/sportspress/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/claqxcrl/askdragao.com/wp-content/plugins/sportspress/templates/team-lists.php
<?php
/**
 * Team Player Lists
 *
 * @author      ThemeBoy
 * @package     SportsPress/Templates
 * @version     2.7.13
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

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

$team  = new SP_Team( $id );
$lists = $team->lists();

foreach ( $lists as $list ) :
	$id       = $list->ID;
	$grouping = get_post_meta( $id, 'sp_grouping', true );

	if ( $grouping == 'position' && sizeof( $lists ) > 1 ) :
		?>
		<h4 class="sp-table-caption"><?php echo wp_kses_post( $list->post_title ); ?></h4>
		<?php
	endif;

	$format = get_post_meta( $id, 'sp_format', true );
	if ( array_key_exists( $format, SP()->formats->list ) ) {
		sp_get_template( 'player-' . $format . '.php', array( 'id' => $id ) );
	} else {
		sp_get_template( 'player-list.php', array( 'id' => $id ) );
	}
endforeach;

ZeroDay Forums Mini