About', 'Settings', 'Templates', ); return array_merge( $links, $mylinks ); } /** * Autoload the files required for the plugin. * * @since 1.0.0 */ function aalb_autoload() { //Load the autoloader for mustache. require_once( MUSTACHE_AUTOLOADER_PHP ); Mustache_Autoloader::register(); //Load the autoloader for plugin files. require_once( AALB_AUTOLOADER ); Aalb_Autoloader::register(); } aalb_autoload(); register_activation_hook( __FILE__, array( new Aalb_Activator(), 'activate' ) ); /** * The code to run on deactivation * * @since 1.0.0 */ function aalb_deactivate() { $aalb_deactivator = new Aalb_Deactivator(); $aalb_deactivator->remove_cache(); } register_deactivation_hook( __FILE__, 'aalb_deactivate' ); /** * The code to run on uninstalltion * * @since 1.0.0 */ function aalb_uninstall() { $aalb_deactivator = new Aalb_Deactivator(); $aalb_deactivator->remove_settings(); $aalb_deactivator->remove_uploads_dir(); } register_uninstall_hook( __FILE__, 'aalb_uninstall' ); /** * Execute the plugin * * @since 1.0.0 */ function aalb_execute() { $aalb_manager = new Aalb_Manager(); $aalb_manager->execute(); } aalb_execute(); ?>