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

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

First rotateImage commit

File size: 892 bytes
RevLine 
[12409]1<?php
2/*
3Plugin Name: Rotate Image
4Version: 0.1
5Description: enables to rotate images in batch processing
6Plugin URI: http://www.phpwebgallery.net
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.