source: extensions/UserCollections/main.inc.php @ 17519

Last change on this file since 17519 was 17519, checked in by mistic100, 12 years ago

clean definition of USER_COLLEC_PUBLIC
missing one template var for themes compatibility

File size: 1.6 KB
Line 
1<?php 
2/*
3Plugin Name: User Collections
4Version: auto
5Description: Registered users can select pictures from the gallery and save them into collections, like advanced favorites.
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=615
7Author: Mistic
8Author URI: http://www.strangeplanet.fr
9*/
10
11defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
12
13global $conf, $prefixeTable;
14
15define('USER_COLLEC_PATH',       PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
16define('COLLECTIONS_TABLE',      $prefixeTable.'collections');
17define('COLLECTION_IMAGES_TABLE',$prefixeTable.'collection_images');
18define('USER_COLLEC_ADMIN',      get_root_url() . 'admin.php?page=plugin-' . basename(dirname(__FILE__)));
19define('USER_COLLEC_PUBLIC',     get_absolute_root_url() . make_index_url(array('section' => 'collections')) . '/');
20
21add_event_handler('init', 'user_collections_init');
22
23add_event_handler('loc_end_section_init', 'user_collections_section_init');
24add_event_handler('loc_end_index', 'user_collections_page', EVENT_HANDLER_PRIORITY_NEUTRAL-10);
25
26add_event_handler('loc_end_index', 'user_collections_index_actions');
27add_event_handler('loc_end_index_thumbnails', 'user_collections_thumbnails_list', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
28
29add_event_handler('loc_end_picture', 'user_collections_picture_page');
30
31add_event_handler('blockmanager_register_blocks', 'user_collections_add_menublock');
32add_event_handler('blockmanager_apply', 'user_collections_applymenu');
33
34require(USER_COLLEC_PATH . 'include/functions.inc.php');
35require(USER_COLLEC_PATH . 'include/UserCollection.class.php');
36require(USER_COLLEC_PATH . 'include/events.inc.php');
37
38?>
Note: See TracBrowser for help on using the repository browser.