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

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

$defaults = array(
	'id'         => get_the_ID(),
	'index'      => 0,
	'link_posts' => get_option( 'sportspress_link_staff', 'yes' ) == 'yes' ? true : false,
);

$staffs = array_filter( sp_array_between( (array) get_post_meta( $id, 'sp_staff', false ), 0, $index ) );

if ( ! $staffs ) {
	return;
}

extract( $defaults, EXTR_SKIP );
?>
<div class="sp-template sp-template-event-staff">
	<p class="sp-event-staff">
	<?php
	foreach ( $staffs as $staff_id ) :

		if ( ! $staff_id ) {
			continue;
		}

		$name = get_the_title( $staff_id );

		if ( ! $name ) {
			continue;
		}

		$staff = new SP_Staff( $staff_id );

		$roles = $staff->roles();
		if ( ! empty( $roles ) ) :
			$roles = wp_list_pluck( $roles, 'name' );
			echo wp_kses_post( implode( '<span class="sp-staff-role-delimiter">/</span>', $roles ) );
		else :
			esc_attr_e( 'Staff', 'sportspress' );
		endif;

		echo ': ';

		if ( $link_posts ) :
			$permalink = get_post_permalink( $staff_id );
			$name      = '<a href="' . $permalink . '">' . $name . '</a>';
		endif;

		echo wp_kses_post( $name ) . '<br>';

	endforeach;
	?>
	</p>
</div>

ZeroDay Forums Mini