source: extensions/gvideo/main.inc.php @ 17357

Last change on this file since 17357 was 17307, checked in by mistic100, 12 years ago

new version for Piwigo 2.4 (renamed into 'Embedded Videos')

File size: 1.1 KB
Line 
1<?php 
2/*
3Plugin Name: Embedded Videos
4Version: auto
5Description: Add videos from Dailymotion, Youtube, Vimeo, Wideo, videobb and Wat.
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=136
7Author: Mistic & P@t
8Author URI: http://www.strangeplanet.fr
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13global $prefixeTable;
14
15define('GVIDEO_PATH', PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
16define('GVIDEO_ADMIN', get_root_url() . 'admin.php?page=plugin-' . basename(dirname(__FILE__)));
17define('GVIDEO_TABLE', $prefixeTable.'image_video');
18
19include(GVIDEO_PATH . 'include/gvideo.inc.php');
20
21add_event_handler('render_element_content', 'gvideo_element_content', EVENT_HANDLER_PRIORITY_NEUTRAL-10, 2);
22
23if (defined('IN_ADMIN'))
24{
25  add_event_handler('delete_elements', 'gvideo_delete_elements');
26  add_event_handler('loc_begin_admin_page', 'gvideo_photo_edit');
27  add_event_handler('get_admin_plugin_menu_links', 'gvideo_admin_menu');
28
29  function gvideo_admin_menu($menu) 
30  {
31    array_push($menu, array(
32      'NAME' => 'Embedded Videos',
33      'URL' => GVIDEO_ADMIN,
34    ));
35    return $menu;
36  }
37}
38
39?>
Note: See TracBrowser for help on using the repository browser.