source: extensions/rotateImage/main.inc.php @ 12410

Last change on this file since 12410 was 12410, checked in by Dsls, 13 years ago

Fixed plugin URI, thx P@t
Version 0.2 tagged

File size: 915 bytes
Line 
1<?php
2/*
3Plugin Name: Rotate Image
4Version: 0.2
5Description: enables to rotate images in batch processing
6Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=578
7*/
8if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
9
10add_event_handler('loc_begin_element_set_global', 'rotate_image_set_template_data');
11add_event_handler('ws_add_methods', 'add_image_rotate_method');
12
13function add_image_rotate_method($arr)
14{
15  include_once('ws_functions.inc.php');
16}
17
18function rotate_image_set_template_data() {
19        global $template,$lang;
20    load_language('plugin.lang', dirname(__FILE__).'/');
21        $template->set_filename('rotate_image', realpath(dirname(__FILE__).'/rotate_image.tpl'));
22        $template->append('element_set_global_plugins_actions', array(
23    'ID' => 'rotateImg',
24    'NAME' => l10n('Rotate images'),
25    'CONTENT' => $template->parse('rotate_image', true),
26    )
27  );
28}
29
30
31
32?>
Note: See TracBrowser for help on using the repository browser.