source: extensions/typetags/main.inc.php @ 11217

Last change on this file since 11217 was 10987, checked in by mistic100, 13 years ago

code cleanup

File size: 931 bytes
RevLine 
[3609]1<?php
2/*
3Plugin Name: TypeT@gs
[10987]4Version: auto
[3609]5Description: Allow to manage color of tags, as you want...
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=166
[9829]7Author: Sakkhho & P@t & Mistic
[3609]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');
[9863]17define('typetags_ADMIN', get_root_url().'admin.php?page=plugin-' . typetags_DIR);
[3609]18
19function typetags_admin_menu($menu)
20{
21  array_push($menu, array(
22    'NAME' => 'TypeT@gs',
[9863]23    'URL' => typetags_ADMIN,
[9829]24  ));
[3609]25  return $menu;
26}
27
28function typetags()
29{
30  include(typetags_PATH . 'typetags.php');
31}
32
33if (script_basename() == 'tags')
34{
35  add_event_handler('loc_begin_page_header', 'typetags', 60);
36}
37
38add_event_handler('get_admin_plugin_menu_links', 'typetags_admin_menu');
39
[3301]40?>
Note: See TracBrowser for help on using the repository browser.