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

Last change on this file since 3749 was 3749, checked in by Criss, 15 years ago

Add configuration option to define menu link or not

File size: 2.0 KB
Line 
1<?php
2/*
3 Plugin Name: Contact Form
4 Version: 1.0.3
5 Description: Add a "Contact" item in the Menu block to offer a contact form to users
6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=304
7 Author: Criss
8 Author URI: http://piwigo.org/
9*/
10
11/** History **
12
13  2009-08-18 1.0.3
14                    Add configuration option to define menu link or not
15
16  2009-08-18 1.0.2
17                    Add configuration option to define template variable or not
18
19  2009-08-17 1.0.1
20                    Add default value to language translation
21
22  2009-08-17 1.0.0
23                    Put under SVN control
24
25  2009-08-17 0.1.f
26                    Add obsolete list
27
28  2009-08-17 0.1.e
29                    Add language configuration for items texts
30                    Add template variable
31
32  2009-08-14 0.1.d
33                    Add a redirection page when successfully sent message
34
35  2009-08-13 0.1.c
36                    Fix regexp bug in mail format check in javascript
37
38  2009-08-13 0.1.b
39                    Add admin management
40
41  2009-08-13 0.1.a
42                    Plugin creation
43
44*/
45if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
46
47define('CF_PATH',     PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
48define('CF_ROOT',     dirname(__FILE__).'/');
49include_once(CF_PATH . 'include/cf_common.inc.php');
50
51$cf_plugin = new CF_Plugin($plugin['id']);
52add_event_handler('loc_begin_page_tail',             
53                  array(&$cf_plugin, 'loc_begin_page_header'));
54add_event_handler('blockmanager_apply',             
55                  array(&$cf_plugin, 'blockmanager_apply'));
56add_event_handler('loc_end_index',             
57                  array(&$cf_plugin, 'loc_end_index'));
58add_event_handler('loc_end_page_tail',
59                  array(&$cf_plugin, 'loc_end_page_tail'));
60if(defined('IN_ADMIN')) {
61  add_event_handler('get_admin_plugin_menu_links',
62                    array(&$cf_plugin, 'get_admin_plugin_menu_links'));
63}
64set_plugin_data($plugin['id'], $cf_plugin);
65?>
Note: See TracBrowser for help on using the repository browser.