| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
* @Author ParaTheme |
| 5 |
* Copyright: 2015 ParaTheme |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! defined('ABSPATH')) exit; // if direct access |
| 9 |
|
| 10 |
|
| 11 |
class team_class_settings { |
| 12 |
|
| 13 |
|
| 14 |
public function __construct() |
| 15 |
{ |
| 16 |
|
| 17 |
|
| 18 |
//$this->settings_page = new Team_Settings(); |
| 19 |
|
| 20 |
|
| 21 |
add_action( 'admin_menu', array( $this, 'admin_menu' ), 12 ); |
| 22 |
|
| 23 |
} |
| 24 |
|
| 25 |
|
| 26 |
public function admin_menu() { |
| 27 |
add_submenu_page( 'edit.php?post_type=team', __( 'Settings', 'team' ), __( 'Settings', 'team' ), 'manage_options', 'team-settings', array( $this, 'settings_page' ) ); |
| 28 |
|
| 29 |
|
| 30 |
} |
| 31 |
|
| 32 |
public function settings_page(){ |
| 33 |
|
| 34 |
include( 'menu/settings.php' ); |
| 35 |
|
| 36 |
} |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
} |
| 47 |
|
| 48 |
|
| 49 |
new team_class_settings(); |
| 50 |
|
| 51 |
|