|
Revision 10443, 0.8 KB
(checked in by patdenice, 2 years ago)
|
|
Add descriptions.txt
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /* |
|---|
| 3 | Plugin Name: Ajax Thumbnailer |
|---|
| 4 | Version: auto |
|---|
| 5 | Description: Mass thumbnail generator. |
|---|
| 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=327 |
|---|
| 7 | Author: Bruno Hondelatte |
|---|
| 8 | Author URI: http://morefnu.org |
|---|
| 9 | */ |
|---|
| 10 | |
|---|
| 11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
|---|
| 12 | |
|---|
| 13 | add_event_handler('ws_add_methods', 'add_thumbnail_create_method'); |
|---|
| 14 | |
|---|
| 15 | function add_thumbnail_create_method($arr) |
|---|
| 16 | { |
|---|
| 17 | include_once('ws_functions.inc.php'); |
|---|
| 18 | } |
|---|
| 19 | |
|---|
| 20 | add_event_handler('loc_begin_admin', 'ajaxThumbnailer_admin_modify'); |
|---|
| 21 | |
|---|
| 22 | function ajaxThumbnailer_admin_modify() |
|---|
| 23 | { |
|---|
| 24 | global $page, $template; |
|---|
| 25 | |
|---|
| 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 | } |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | ?> |
|---|