Changeset 9784 for extensions/Front2Back/main.inc.php
- Timestamp:
- Mar 20, 2011, 12:58:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Front2Back/main.inc.php
r9782 r9784 2 2 /* 3 3 Plugin Name: Front2Back 4 Version: 2.2. 04 Version: 2.2.a 5 5 Description: Add a link on picture's page to show a alternative version of the pic (for postcards for example) 6 6 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=183 … … 13 13 define('F2B_PATH', PHPWG_PLUGINS_PATH . F2B_DIR . '/'); 14 14 15 load_language('plugin.lang', F2B_PATH);16 15 include_once(F2B_PATH . 'Front2Back.php'); 17 16 add_event_handler('render_element_content', 'Front2Back_content', 99, 2); 18 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 19 30 ?>
Note: See TracChangeset
for help on using the changeset viewer.