Add staff layout options
This commit is contained in:
@@ -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' ),
|
||||
|
||||
Reference in New Issue
Block a user