source: extensions/Ajax_Thumbnailer/main.inc.php @ 10441

Revision 10441, 897 bytes checked in by patdenice, 9 years ago (diff)

Compatible with piwigo 2.2

RevLine 
[4549]1<?php
2/*
3Plugin Name: Ajax Thumbnailer
4Version: 0.3
5Description: gestion de miniatures en masse / mass thumbnail generator
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=327
7Author: Bruno Hondelatte
8Author URI: http://morefnu.org
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
[10441]13add_event_handler('ws_add_methods', 'add_thumbnail_create_method');
14
15function add_thumbnail_create_method($arr)
[4549]16{
[10441]17  include_once('ws_functions.inc.php');
18}
[4549]19
[10441]20add_event_handler('loc_begin_admin', 'ajaxThumbnailer_admin_modify');
[4549]21
[10441]22function ajaxThumbnailer_admin_modify()
23{
24  global $page, $template;
[4549]25
[10441]26  if (isset($_GET['page']) and $_GET['page'] == 'thumbnail')
27  {
28    load_language('plugin.lang', dirname(__FILE__).'/');
29    $template->set_extent(dirname(__FILE__).'/AjaxThumbnailer.tpl', 'thumbnail');
30  }
[4549]31}
32
[10441]33//add_event_handler('get_admin_plugin_menu_links', 'ajaxThumbnailer_admin_menu');
[4549]34
[10441]35?>
Note: See TracBrowser for help on using the repository browser.