1 | <?php |
---|
2 | |
---|
3 | $visible=(isset($visible))?$visible:false; |
---|
4 | $img_width=isset($picture['current']['width'])?$picture['current']['width']:480; |
---|
5 | $img_height=isset($picture['current']['height'])?$picture['current']['height']:320; |
---|
6 | $version=isset($version)?$version:""; |
---|
7 | $theme=$user['theme']; |
---|
8 | $user_status = $user['status'] ; |
---|
9 | |
---|
10 | $template->assign( |
---|
11 | array( |
---|
12 | 'fade_in' =>$autosize_parametres->fade_in, |
---|
13 | 'thumbnail' => $conf['prefix_thumbnail'], |
---|
14 | 'visible' => $visible, |
---|
15 | 'version' => $version, |
---|
16 | 'AUTOSIZE_PATH' => AUTOSIZE_PATH, |
---|
17 | 'theme' => $theme, |
---|
18 | 'SCALED_WIDTH' => $picture['current']['scaled_width'], |
---|
19 | 'SCALED_HEIGHT' => $picture['current']['scaled_height'], |
---|
20 | 'IMG_WIDTH' => $img_width, |
---|
21 | 'IMG_HEIGHT' => $img_height, |
---|
22 | 'MINI_HEIGHT' => $autosize_parametres->mini_height, |
---|
23 | 'MINI_WIDTH' => $autosize_parametres->mini_width, |
---|
24 | 'MARGE_BASSE' => $autosize_parametres->marge_basse, |
---|
25 | 'ECHELLE_MAX' => $autosize_parametres->echelle_max, |
---|
26 | |
---|
27 | 'check_auto_w' => ($autosize_parametres->check_auto_w == 'on') ? 'checked="checked"' : '' , |
---|
28 | 'check_icon_v' => ($autosize_parametres->check_icon_v == 'on') ? 'checked="checked"' : '' , |
---|
29 | 'check_desc_v' => ($autosize_parametres->check_desc_v == 'on') ? 'checked="checked"' : '' , |
---|
30 | |
---|
31 | 'webmaster_width' => $autosize_parametres->webmaster_width, |
---|
32 | 'webmaster_height' => $autosize_parametres->webmaster_height, |
---|
33 | 'webmaster_enabled' => ($autosize_parametres->webmaster_enabled == 'on') ? 'checked="checked"' : '' , |
---|
34 | |
---|
35 | 'admin_width' => $autosize_parametres->admin_width, |
---|
36 | 'admin_height' => $autosize_parametres->admin_height, |
---|
37 | 'admin_enabled' => ($autosize_parametres->admin_enabled == 'on') ? 'checked="checked"' : '' , |
---|
38 | |
---|
39 | 'generic_width' => $autosize_parametres->generic_width, |
---|
40 | 'generic_height' => $autosize_parametres->generic_height, |
---|
41 | 'generic_enabled' => ($autosize_parametres->generic_enabled == 'on') ? 'checked="checked"' : '' , |
---|
42 | |
---|
43 | 'guest_width' => $autosize_parametres->guest_width, |
---|
44 | 'guest_height' => $autosize_parametres->guest_height, |
---|
45 | 'guest_enabled' => ($autosize_parametres->guest_enabled == 'on') ? 'checked="checked"' : '' , |
---|
46 | |
---|
47 | 'normal_width' => $autosize_parametres->normal_width, |
---|
48 | 'normal_height' => $autosize_parametres->normal_height, |
---|
49 | 'normal_enabled' => ($autosize_parametres->normal_enabled == 'on') ? 'checked="checked"' : '' , |
---|
50 | |
---|
51 | 'user_status' => get_user_status($user_status) |
---|
52 | |
---|
53 | ) |
---|
54 | ); |
---|
55 | |
---|
56 | |
---|
57 | //unset($_POST); |
---|
58 | ?> |
---|