Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class citic {
- public function __construct(){
- add_action('admin_init',array(&$this,'admin_init'));
- add_action('admin_head',array(&$this,'admin_head'));
- add_action('admin_head',array(&$this,'admin_menu'));
- }
- public function admin_init(){
- wp_enqueue_script('jquery');
- }
- public function admin_head(){}
- public function admin_menu(){
- add_submenu_page('themes.php', 'CI Theme Installer', 'Add Themes', 'install_themes','ci-theme-installer',array(&$this,'installer_page'));
- }
- public function installer_page(){
- echo '<h1>test</h1>';
- }
- }
- $citic = new citic();
- ?>
Add Comment
Please, Sign In to add comment