Use global linking options per post type

This commit is contained in:
Brian Miyaji
2014-08-14 19:34:42 +10:00
parent 3eba75ca36
commit 6f49c5e0fe
14 changed files with 56 additions and 80 deletions

View File

@@ -5,7 +5,7 @@
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin
* @version 0.8
* @version 1.3
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -40,6 +40,14 @@ class SP_Settings_Teams extends SP_Settings_Page {
array( 'title' => __( 'Team Options', 'sportspress' ), 'type' => 'title','desc' => '', 'id' => 'team_options' ),
array(
'title' => __( 'Link', 'sportspress' ),
'desc' => __( 'Link teams', 'sportspress' ),
'id' => 'sportspress_link_teams',
'default' => 'no',
'type' => 'checkbox',
),
array( 'type' => 'sectionend', 'id' => 'team_options' ),
array( 'title' => __( 'League Tables', 'sportspress' ), 'type' => 'title', 'id' => 'table_options' ),
@@ -50,15 +58,6 @@ class SP_Settings_Teams extends SP_Settings_Page {
'id' => 'sportspress_table_show_logos',
'default' => 'yes',
'type' => 'checkbox',
'checkboxgroup' => 'start',
),
array(
'desc' => __( 'Link teams', 'sportspress' ),
'id' => 'sportspress_table_link_teams',
'default' => 'no',
'type' => 'checkbox',
'checkboxgroup' => 'end',
),
array(