Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Icons Set |
---|
4 | Version: auto |
---|
5 | Description: Allow you to use other icons for any themes |
---|
6 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid= |
---|
7 | Author: Flop25 |
---|
8 | Author URI: http://www.planete-flop.fr/ |
---|
9 | */ |
---|
10 | |
---|
11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
12 | define('ICONSET_DIR' , basename(dirname(__FILE__))); |
---|
13 | define('ICONSET_PATH' , PHPWG_PLUGINS_PATH . ICONSET_DIR . '/'); |
---|
14 | define('ICONS_PATH' , PHPWG_PLUGINS_PATH . ICONSET_DIR . '/icons/'); |
---|
15 | |
---|
16 | add_event_handler('get_admin_plugin_menu_links', 'iconset_admin_menu'); |
---|
17 | function iconset_admin_menu($menu) |
---|
18 | { |
---|
19 | global $conf; |
---|
20 | |
---|
21 | array_push($menu, array( |
---|
22 | 'NAME' => 'Icons Set', |
---|
23 | 'URL' => get_root_url().'admin.php?page=plugin-'.ICONSET_DIR |
---|
24 | ) |
---|
25 | ); |
---|
26 | return $menu; |
---|
27 | } |
---|
28 | |
---|
29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.