Last change
on this file since 4469 was
3609,
checked in by patdenice, 15 years ago
|
Convert all php and tpl files in Unix format for my plugins.
|
File size:
893 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: TypeT@gs |
---|
4 | Version: 2.0.d |
---|
5 | Description: Allow to manage color of tags, as you want... |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=166 |
---|
7 | Author: Sakkhho & P@t |
---|
8 | */ |
---|
9 | |
---|
10 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
11 | |
---|
12 | global $prefixeTable ; |
---|
13 | |
---|
14 | define('typetags_DIR' , basename(dirname(__FILE__))); |
---|
15 | define('typetags_PATH' , PHPWG_PLUGINS_PATH . typetags_DIR . '/'); |
---|
16 | define('typetags_TABLE' , $prefixeTable . 'typetags'); |
---|
17 | |
---|
18 | function typetags_admin_menu($menu) |
---|
19 | { |
---|
20 | array_push($menu, array( |
---|
21 | 'NAME' => 'TypeT@gs', |
---|
22 | 'URL' => get_admin_plugin_menu_link(typetags_PATH . 'admin/typetags_admin.php'))); |
---|
23 | return $menu; |
---|
24 | } |
---|
25 | |
---|
26 | function typetags() |
---|
27 | { |
---|
28 | include(typetags_PATH . 'typetags.php'); |
---|
29 | } |
---|
30 | |
---|
31 | if (script_basename() == 'tags') |
---|
32 | { |
---|
33 | add_event_handler('loc_begin_page_header', 'typetags', 60); |
---|
34 | } |
---|
35 | |
---|
36 | add_event_handler('get_admin_plugin_menu_links', 'typetags_admin_menu'); |
---|
37 | |
---|
38 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.