![]() 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/includes/ |
<?php /** * SportsPress formats * * The SportsPress formats class stores preset sport data. * * @class SP_Formats * @version 2.4 * @package SportsPress/Classes * @category Class * @author ThemeBoy */ class SP_Formats { /** @var array Array of formats */ private $data; /** * Constructor for the formats class - defines all preset formats. * * @access public * @return void */ public function __construct() { $this->data = apply_filters( 'sportspress_formats', array( 'event' => array( 'league' => esc_attr__( 'Competitive', 'sportspress' ), 'friendly' => esc_attr__( 'Friendly', 'sportspress' ), ), 'calendar' => array( 'calendar' => esc_attr__( 'Calendar', 'sportspress' ), 'list' => esc_attr__( 'List', 'sportspress' ), 'blocks' => esc_attr__( 'Blocks', 'sportspress' ), ), 'table' => array( 'standings' => esc_attr__( 'Standings', 'sportspress' ), 'gallery' => esc_attr__( 'Gallery', 'sportspress' ), ), 'list' => array( 'list' => esc_attr__( 'List', 'sportspress' ), 'gallery' => esc_attr__( 'Gallery', 'sportspress' ), ), ) ); } public function __get( $key ) { return ( array_key_exists( $key, $this->data ) ? $this->data[ $key ] : null ); } public function __set( $key, $value ) { $this->data[ $key ] = $value; } }