Move sports presets class

This commit is contained in:
Brian Miyaji
2014-05-01 16:31:21 +10:00
parent 8344fa2748
commit b2cc43c134
10 changed files with 253 additions and 11 deletions

View File

@@ -0,0 +1,33 @@
<?php
/**
* SportsPress Baseball Preset
*
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin
* @version 0.8
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! class_exists( 'SP_Preset_Baseball' ) ) :
/**
* SP_Preset_Baseball
*/
class SP_Preset_Baseball extends SP_Preset_Sport {
/**
* Constructor.
*/
public function __construct() {
$this->id = 'baseball';
$this->label = __( 'Baseball', 'sportspress' );
add_filter( 'sportspress_sport_presets_array', array( $this, 'add_sport_preset' ), 20 );
}
}
endif;
return new SP_Preset_Baseball();