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