Last change
on this file since 10451 was
10165,
checked in by mistic100, 14 years ago
|
add config check for activation
|
-
Property svn:eol-style set to
LF
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
840 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Front2Back |
---|
4 | Version: 2.2.b |
---|
5 | Description: Add a link on picture's page to show a alternative version of the pic (for postcards for example) |
---|
6 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=183 |
---|
7 | Author: VDigital & Mistic |
---|
8 | */ |
---|
9 | |
---|
10 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
11 | |
---|
12 | define('F2B_DIR', basename(dirname(__FILE__))); |
---|
13 | define('F2B_PATH', PHPWG_PLUGINS_PATH . F2B_DIR . '/'); |
---|
14 | |
---|
15 | include_once(F2B_PATH . 'Front2Back.php'); |
---|
16 | add_event_handler('render_element_content', 'Front2Back_content', 99, 2); |
---|
17 | |
---|
18 | if (script_basename() == 'admin') |
---|
19 | { |
---|
20 | add_event_handler('get_admin_plugin_menu_links', 'Front2Back_admin_menu'); |
---|
21 | function Front2Back_admin_menu($menu) |
---|
22 | { |
---|
23 | array_push($menu, array( |
---|
24 | 'NAME' => 'Front2Back', |
---|
25 | 'URL' => get_root_url().'admin.php?page=plugin-' . F2B_DIR)); |
---|
26 | return $menu; |
---|
27 | } |
---|
28 | } |
---|
29 | |
---|
30 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.