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

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

Spanish added

  • Property svn:eol-style set to LF
File size: 1.2 KB
Line 
1<?php
2/*
3Plugin Name: Media Icon
4Version: 2.4.c
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.'/');
15
16/* +-----------------------------------------------------------------------+
17 * | Plugin admin                                                          |
18 * +-----------------------------------------------------------------------+ */
19
20// Add an entry to the plugins menu
21add_event_handler('get_admin_plugin_menu_links', 'media_icon_admin_menu');
22
23function media_icon_admin_menu($menu) {
24        array_push(
25                $menu, array(
26                        'NAME'  => 'Media Icon',
27                        'URL'   => get_admin_plugin_menu_link(dirname(__FILE__)).'/admin/admin.php',
28                )
29        );     
30        return $menu;
31}
32
33/* +-----------------------------------------------------------------------+
34 * | Plugin code                                                          |
35 * +-----------------------------------------------------------------------+ */
36       
37include_once(MEDIA_ICON_PATH.'thumbnails.php');
38?>
Note: See TracBrowser for help on using the repository browser.