source: extensions/ContactForm/main.inc.php @ 16549

Last change on this file since 16549 was 16549, checked in by plg, 12 years ago

make sure the Contact link in menubar won't be hidden when AMenuManager is activated

File size: 1.3 KB
Line 
1<?php
2/*
3Plugin Name: Contact Form
4Version: auto
5Description: Add a "Contact" item in the Menu block to offer a contact form to users
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=304
7Author: Criss, Gotcha
8Author URI: http://piwigo.org/
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13define('CF_PATH',     PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
14define('CF_ROOT',     dirname(__FILE__).'/');
15include_once(CF_PATH . 'include/cf_common.inc.php');
16
17$cf_plugin = new CF_Plugin($plugin['id']);
18add_event_handler('loc_begin_index',             
19                  array(&$cf_plugin, 'loc_begin_index'));
20add_event_handler('loc_begin_page_tail',             
21                  array(&$cf_plugin, 'loc_begin_page_header'));
22add_event_handler('blockmanager_apply',             
23                  array(&$cf_plugin, 'blockmanager_apply'),
24                  EVENT_HANDLER_PRIORITY_NEUTRAL+10);
25add_event_handler('loc_end_index',             
26                  array(&$cf_plugin, 'loc_end_index'));
27add_event_handler('loc_end_page_tail',
28                  array(&$cf_plugin, 'loc_end_page_tail'));
29if(defined('IN_ADMIN')) {
30  add_event_handler('get_admin_plugin_menu_links',
31                    array(&$cf_plugin, 'get_admin_plugin_menu_links'));
32}
33set_plugin_data($plugin['id'], $cf_plugin);
34?>
Note: See TracBrowser for help on using the repository browser.