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/event-officials.php
<?php
/**
 * Event Officials
 *
 * @author      ThemeBoy
 * @package     SportsPress/Templates
 * @version   2.5
 */

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

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

$event = new SP_Event( $id );

// Get appointed officials from event
$data = $event->appointments();

// Return if no officials are in event
if ( empty( $data ) ) {
	return;
}

// The first row should be column labels
$labels = $data[0];
unset( $data[0] );

$link_officials = get_option( 'sportspress_link_officials', 'no' ) == 'yes' ? true : false;
$format         = get_option( 'sportspress_event_officials_format', 'table' );

switch ( $format ) :
	case 'list':
		sp_get_template(
			'event-officials-list.php',
			array(
				'labels'         => $labels,
				'data'           => $data,
				'link_officials' => $link_officials,
			)
		);
		break;
	default:
		sp_get_template(
			'event-officials-table.php',
			array(
				'labels'         => $labels,
				'data'           => $data,
				'link_officials' => $link_officials,
			)
		);
endswitch;

ZeroDay Forums Mini