Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Rotate Image |
---|
4 | Version: 0.1 |
---|
5 | Description: enables to rotate images in batch processing |
---|
6 | Plugin URI: http://www.phpwebgallery.net |
---|
7 | */ |
---|
8 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
9 | |
---|
10 | add_event_handler('loc_begin_element_set_global', 'rotate_image_set_template_data'); |
---|
11 | add_event_handler('ws_add_methods', 'add_image_rotate_method'); |
---|
12 | |
---|
13 | function add_image_rotate_method($arr) |
---|
14 | { |
---|
15 | include_once('ws_functions.inc.php'); |
---|
16 | } |
---|
17 | |
---|
18 | function 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.