source: extensions/derivatives/main.inc.php @ 12770

Revision 12770, 641 bytes checked in by rvelices, 8 years ago (diff)
Line 
1<?php /*
2Plugin Name: Dynamic images
3Version: 0
4*/
5
6global $conf;
7// 0-'auto', 1-'derivative' 2-'script'
8$conf['derivative_url_style']=0;
9
10defined('PWG_DERIVATIVE_DIR') or define('PWG_DERIVATIVE_DIR', PWG_LOCAL_DIR.'i/');
11
12include_once( dirname(__FILE__) .'/include/derivative_params.inc.php');
13include_once( dirname(__FILE__) .'/include/derivative_std_params.inc.php');
14include_once( dirname(__FILE__) .'/include/derivative.inc.php');
15
16ImageStdParams::load_from_db();
17
18add_event_handler('get_thumbnail_url', 'dyn_thumb_url', 60, 2);
19
20function dyn_thumb_url($url, $infos)
21{
22  $url2 = DerivativeImage::thumb_url($infos);
23  return $url2;
24}
25
26?>
Note: See TracBrowser for help on using the repository browser.