Last change
on this file since 20090 was
20090,
checked in by mistic100, 11 years ago
|
- add webservices
- add mail function
- add admin list
- add admin export function
- try to deal with Gthumb+
- activate multisize dropdown menu of collection page
TODO : use webservices instead of toggle_image.php
|
File size:
1.4 KB
|
Line | |
---|
1 | <?php |
---|
2 | defined('USER_COLLEC_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | if (defined('USER_COLLEC_REMOVE_GTHUMB')) |
---|
5 | { |
---|
6 | global $uc_nb_image_page_save; |
---|
7 | |
---|
8 | $user['nb_image_page'] = $uc_nb_image_page_save['user']; |
---|
9 | $page['nb_image_page'] = $uc_nb_image_page_save['page']; |
---|
10 | remove_event_handler('loc_end_index_thumbnails', 'process_GThumb', 50); |
---|
11 | remove_event_handler('loc_end_index', 'GThumb_remove_thumb_size'); |
---|
12 | } |
---|
13 | |
---|
14 | // navigation bar |
---|
15 | $page['start'] = isset($_GET['start']) ? $_GET['start'] : 0; |
---|
16 | if (count($page['items']) > $page['nb_image_page']) |
---|
17 | { |
---|
18 | $page['navigation_bar'] = create_navigation_bar( |
---|
19 | $self_url, |
---|
20 | count($page['items']), |
---|
21 | $page['start'], |
---|
22 | $page['nb_image_page'], |
---|
23 | false |
---|
24 | ); |
---|
25 | $template->assign('navbar', $page['navigation_bar']); |
---|
26 | } |
---|
27 | |
---|
28 | // display |
---|
29 | include(PHPWG_ROOT_PATH . 'include/category_default.inc.php'); |
---|
30 | |
---|
31 | // multisize link |
---|
32 | $url = add_url_params( |
---|
33 | $self_url, |
---|
34 | array('display' => '') |
---|
35 | ); |
---|
36 | |
---|
37 | $selected_type = $template->get_template_vars('derivative_params')->type; |
---|
38 | $template->clear_assign( 'derivative_params' ); |
---|
39 | $type_map = ImageStdParams::get_defined_type_map(); |
---|
40 | unset($type_map[IMG_XXLARGE], $type_map[IMG_XLARGE]); |
---|
41 | |
---|
42 | foreach($type_map as $params) |
---|
43 | { |
---|
44 | $template->append( |
---|
45 | 'image_derivatives', |
---|
46 | array( |
---|
47 | 'DISPLAY' => l10n($params->type), |
---|
48 | 'URL' => $url.$params->type, |
---|
49 | 'SELECTED' => ($params->type == $selected_type ? true:false), |
---|
50 | ) |
---|
51 | ); |
---|
52 | } |
---|
53 | |
---|
54 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.