source: extensions/Front2Back/main.inc.php @ 14919

Last change on this file since 14919 was 11217, checked in by mistic100, 13 years ago

clean code, add some options

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 847 bytes
RevLine 
[9782]1<?php 
2/*
[3339]3Plugin Name: Front2Back
[10985]4Version: auto
[9782]5Description: Add a link on picture's page to show a alternative version of the pic (for postcards for example)
[10985]6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=183
[9782]7Author: VDigital & Mistic
[3339]8*/
9
[9782]10if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
[3339]11
[9782]12define('F2B_DIR', basename(dirname(__FILE__)));
13define('F2B_PATH', PHPWG_PLUGINS_PATH . F2B_DIR . '/');
[3339]14
[9782]15include_once(F2B_PATH . 'Front2Back.php');
16add_event_handler('render_element_content', 'Front2Back_content', 99, 2);
[11217]17 
[9784]18if (script_basename() == 'admin')
19{
[11217]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  }
[9784]28}
29
[3339]30?>
Note: See TracBrowser for help on using the repository browser.