source: extensions/Media_Icon/main.inc.php @ 19325

Last change on this file since 19325 was 19325, checked in by julien1311, 11 years ago

change link to admin

  • Property svn:eol-style set to LF
File size: 1.3 KB
Line 
1<?php
2/*
3Plugin Name: Media Icon
4Version: auto
5Description: add an icon to non-picture files
6Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=654
7Author: Julien1311
8*/
9
10//Check whether we are indeed included by Piwigo.
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13define('MEDIA_ICON_DIR' , basename(dirname(__FILE__)));
14define('MEDIA_ICON_PATH' , PHPWG_PLUGINS_PATH.MEDIA_ICON_DIR.'/');
15define('MEDIA_ICON_ADMIN',   get_root_url() . 'admin.php?page=plugin-media_icon');
16
17/* +-----------------------------------------------------------------------+
18 * | Plugin admin                                                          |
19 * +-----------------------------------------------------------------------+ */
20
21// Add an entry to the plugins menu
22add_event_handler('get_admin_plugin_menu_links', 'media_icon_admin_menu');
23
24function media_icon_admin_menu($menu) {
25        array_push(
26                $menu, array(
27                        'NAME'  => 'Media Icon',
28                        'URL'   => MEDIA_ICON_ADMIN,
29                )
30        );     
31        return $menu;
32}
33
34/* +-----------------------------------------------------------------------+
35 * | Plugin code                                                          |
36 * +-----------------------------------------------------------------------+ */
37       
38include_once(MEDIA_ICON_PATH.'thumbnails.php');
39include_once(MEDIA_ICON_PATH.'picture.php');
40?>
Note: See TracBrowser for help on using the repository browser.