芝麻web文件管理V1.00
编辑当前文件:/home/projzpbv/www/wp-content/plugins/cookie-law-info/lite/admin/modules/banners/class-banners.php
load_apis(); $this->controller = Controller::get_instance(); add_action( 'admin_init', array( $this->controller, 'install_tables' ) ); add_action( 'cky_after_update_banner', array( $this->controller, 'delete_cache' ) ); add_action( 'admin_init', array( $this->controller, 'reset_cache' ) ); add_action( 'admin_init', array( Template::get_instance(), 'delete_cache' ) ); add_filter( 'cky_registered_admin_menus', array( $this, 'register_menus' ) ); add_action( 'cky_reinstall_tables', array( $this->controller, 'reinstall' ) ); } /** * Load API files * * @return void */ public function load_apis() { new Api(); } /** * Register menus for this module. * * @param array $menus Registered menus. * @return array */ public function register_menus( $menus ) { $menus['customize'] = array( 'name' => __( 'Cookie Banner', 'cookie-law-info' ), 'callback' => array( $this, 'menu_page_template' ), 'order' => 2, 'redirect' => CKY_APP_URL . '/customize', ); return $menus; } /** * Main menu template * * @return void */ public function menu_page_template() { echo '
'; } }