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

Last change on this file since 28853 was 28853, checked in by mistic100, 10 years ago

use new maintain class

File size: 1.3 KB
Line 
1<?php
2/*
3Plugin Name: Colored Tags (TypeT@gs)
4Version: auto
5Description: Allow to manage color of tags, as you want...
6Plugin URI: auto
7Author: Mistic
8*/
9
10defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
11
12global $prefixeTable, $conf;
13
14define('TYPETAGS_ID',     basename(dirname(__FILE__)));
15define('TYPETAGS_PATH' ,  PHPWG_PLUGINS_PATH . TYPETAGS_ID . '/');
16define('TYPETAGS_TABLE' , $prefixeTable . 'typetags');
17define('TYPETAGS_ADMIN',  get_root_url().'admin.php?page=plugin-' . TYPETAGS_ID);
18
19include_once(TYPETAGS_PATH . 'include/events_public.inc.php');
20
21
22$conf['TypeTags'] = safe_unserialize($conf['TypeTags']);
23
24
25// tags on picture page
26/*if (script_basename() == 'picture')
27{
28  add_event_handler('loc_end_picture', 'typetags_picture');
29}*/
30
31// tags everywhere
32if ($conf['TypeTags']['show_all'] and script_basename() != 'tags')
33{
34  add_event_handler('render_tag_name', 'typetags_render', 0, 2);
35}
36
37// tags on tags page
38add_event_handler('loc_end_tags', 'typetags_tags');
39
40// escape keywords meta
41add_event_handler('loc_begin_page_header', 'typetags_escape');
42
43
44if (defined('IN_ADMIN'))
45{
46  add_event_handler('get_admin_plugin_menu_links', 'typetags_admin_menu');
47
48  add_event_handler('loc_begin_admin_page', 'typetags_admin');
49
50  include_once(TYPETAGS_PATH . 'include/events_admin.inc.php');
51}
Note: See TracBrowser for help on using the repository browser.