![]() 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/ |
<?php /** * Team Staff * * @author ThemeBoy * @package SportsPress/Templates * @version 2.5.5 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } if ( ! isset( $id ) ) { $id = get_the_ID(); } $team = new SP_Team( $id ); $members = $team->staff(); $link_staff = get_option( 'sportspress_team_link_staff', 'no' ) === 'yes' ? true : false; foreach ( $members as $staff ) : $id = $staff->ID; $name = $staff->post_title; $staff = new SP_Staff( $id ); $roles = $staff->roles(); if ( ! empty( $roles ) ) : $roles = wp_list_pluck( $roles, 'name' ); $name = '<span class="sp-staff-role">' . implode( '<span class="sp-staff-role-delimiter">/</span>', $roles ) . '</span> ' . $name; endif; ?> <h4 class="sp-staff-name"><?php echo $link_staff ? '<a href="' . esc_url( get_permalink( $id ) ) . '">' . wp_kses_post( $name ) . '</a>' : wp_kses_post( $name ); ?></h4> <?php sp_get_template( 'staff-photo.php', array( 'id' => $id ) ); sp_get_template( 'staff-details.php', array( 'id' => $id ) ); endforeach;