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

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

Add default value to language translation

File size: 1.8 KB
Line 
1<?php
2/*
3 Plugin Name: Contact Form
4 Version: 1.0.1
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-17 1.0.1
14                    Add default value to language translation
15
16  2009-08-17 1.0.0
17                    Put under SVN control
18
19  2009-08-17 0.1.f
20                    Add obsolete list
21
22  2009-08-17 0.1.e
23                    Add language configuration for items texts
24                    Add template variable
25
26  2009-08-14 0.1.d
27                    Add a redirection page when successfully sent message
28
29  2009-08-13 0.1.c
30                    Fix regexp bug in mail format check in javascript
31
32  2009-08-13 0.1.b
33                    Add admin management
34
35  2009-08-13 0.1.a
36                    Plugin creation
37
38*/
39if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
40
41define('CF_PATH',     PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
42define('CF_ROOT',     dirname(__FILE__).'/');
43include_once(CF_PATH . 'include/cf_common.inc.php');
44
45$cf_plugin = new CF_Plugin($plugin['id']);
46add_event_handler('loc_begin_page_tail',             
47                  array(&$cf_plugin, 'loc_begin_page_header'));
48add_event_handler('blockmanager_apply',             
49                  array(&$cf_plugin, 'blockmanager_apply'));
50add_event_handler('loc_end_index',             
51                  array(&$cf_plugin, 'loc_end_index'));
52add_event_handler('loc_end_page_tail',
53                  array(&$cf_plugin, 'loc_end_page_tail'));
54if(defined('IN_ADMIN')) {
55  add_event_handler('get_admin_plugin_menu_links',
56                    array(&$cf_plugin, 'get_admin_plugin_menu_links'));
57}
58set_plugin_data($plugin['id'], $cf_plugin);
59?>
Note: See TracBrowser for help on using the repository browser.