root/extensions/typetags/main.inc.php @ 9829

Revision 9829, 0.9 KB (checked in by mistic100, 2 years ago)

[extensions] TypeTags
- compatibility with 2.2.0

Line 
1<?php
2/*
3Plugin Name: TypeT@gs
4Version: 2.2.0
5Description: Allow to manage color of tags, as you want...
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=166
7Author: Sakkhho & P@t & Mistic
8*/
9
10if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
11
12global $prefixeTable ;
13
14define('typetags_DIR' , basename(dirname(__FILE__)));
15define('typetags_PATH' , PHPWG_PLUGINS_PATH . typetags_DIR . '/');
16define('typetags_TABLE' , $prefixeTable . 'typetags');
17
18function typetags_admin_menu($menu)
19{
20  array_push($menu, array(
21    'NAME' => 'TypeT@gs',
22    'URL' => get_root_url().'admin.php?page=plugin-' . typetags_DIR,
23  ));
24  return $menu;
25}
26
27function typetags()
28{
29  include(typetags_PATH . 'typetags.php');
30}
31
32if (script_basename() == 'tags')
33{
34  add_event_handler('loc_begin_page_header', 'typetags', 60);
35}
36
37add_event_handler('get_admin_plugin_menu_links', 'typetags_admin_menu');
38
39?>
Note: See TracBrowser for help on using the browser.