Add staff layout options

This commit is contained in:
Brian Miyaji
2016-04-02 18:41:41 +11:00
parent e611b00a92
commit e8944809f2

View File

@@ -23,9 +23,13 @@ class SP_Settings_Staff extends SP_Settings_Page {
public function __construct() {
$this->id = 'staff';
$this->label = __( 'Staff', 'sportspress' );
$this->template = 'staff';
$this->templates = SP()->templates->staff;
add_filter( 'sportspress_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
add_action( 'sportspress_settings_' . $this->id, array( $this, 'output' ) );
add_action( 'sportspress_admin_field_staff_layout', array( $this, 'layout_setting' ) );
add_action( 'sportspress_settings_save_' . $this->id, array( $this, 'save' ) );
}
@@ -42,6 +46,8 @@ class SP_Settings_Staff extends SP_Settings_Page {
),
apply_filters( 'sportspress_staff_options', array(
array( 'type' => 'staff_layout' ),
array(
'title' => __( 'Link', 'sportspress' ),
'desc' => __( 'Link staff', 'sportspress' ),