1 | <?php |
---|
2 | $visible=(isset($visible))?$visible:false; |
---|
3 | $img_width=isset($picture['current']['width'])?$picture['current']['width']:480; |
---|
4 | $img_height=isset($picture['current']['height'])?$picture['current']['height']:320; |
---|
5 | |
---|
6 | $img_scaled_width=isset($picture['current']['scaled_width'])?$picture['current']['scaled_width']:480; |
---|
7 | $img_scaled_height=isset($picture['current']['scaled_height'])?$picture['current']['scaled_height']:320; |
---|
8 | |
---|
9 | $cl_version=isset($cl_version)?$cl_version:""; |
---|
10 | $cl_plugin=isset($cl_plugin)?$cl_plugin:""; |
---|
11 | $cl_visible=isset($conf['cl_auto']) ? $conf['cl_auto'] : 'true' ; |
---|
12 | //================================================================================================= |
---|
13 | $DEBUG_autosize = isset($_POST['cl_debug_conflit']) ? $_POST['cl_debug_conflit'] : "false" ; |
---|
14 | $DEBUG_autosize = isset($_GET['cl_debug_conflit']) ? $_GET['cl_debug_conflit'] : $DEBUG_autosize ; |
---|
15 | $DEBUG_autosize = isset($conf['cl_debug_conflit']) ? $conf['cl_debug_conflit'] : $DEBUG_autosize ; |
---|
16 | //================================================================================================= |
---|
17 | $AUTOSIZE_PATH = AUTOSIZE_PATH_ABS; |
---|
18 | $theme=$user['theme']; |
---|
19 | $user_status = $user['status'] ; |
---|
20 | |
---|
21 | $template->assign( array( |
---|
22 | 'AUTOSIZE_PATH_ABS' => AUTOSIZE_PATH_ABS, |
---|
23 | 'ROOT_URL' => ROOT_URL, |
---|
24 | 'AUTOSIZE_PATH' => AUTOSIZE_PATH, |
---|
25 | ) |
---|
26 | ); |
---|
27 | |
---|
28 | |
---|
29 | |
---|
30 | $template->assign( |
---|
31 | array( |
---|
32 | 'DEBUG_autosize' => $DEBUG_autosize , |
---|
33 | 'cl_visible' => $cl_visible, |
---|
34 | 'cl_version' => $cl_version, |
---|
35 | 'cl_plugin' => $cl_plugin, |
---|
36 | |
---|
37 | 'fade_in' => $autosize_parametres->fade_in, |
---|
38 | 'thumbnail' => $conf['prefix_thumbnail'], |
---|
39 | 'visible' => $visible, |
---|
40 | |
---|
41 | 'theme' => $theme, |
---|
42 | 'SCALED_WIDTH' => $img_scaled_width, |
---|
43 | 'SCALED_HEIGHT' => $img_scaled_height, |
---|
44 | 'IMG_WIDTH' => $img_width, |
---|
45 | 'IMG_HEIGHT' => $img_height, |
---|
46 | |
---|
47 | 'MINI_HEIGHT' => $autosize_parametres->mini_height, |
---|
48 | 'MINI_WIDTH' => $autosize_parametres->mini_width, |
---|
49 | 'MINI_HEIGHT2' => $autosize_parametres->mini_height2, |
---|
50 | 'MINI_WIDTH2' => $autosize_parametres->mini_width2, |
---|
51 | |
---|
52 | 'MARGE_BASSE' => $autosize_parametres->marge_basse, |
---|
53 | 'ECHELLE_MAX' => $autosize_parametres->echelle_max, |
---|
54 | |
---|
55 | 'check_auto_w' => ($autosize_parametres->check_auto_w == 'on') ? 'checked="checked"' : '' , |
---|
56 | 'check_icon_v' => ($autosize_parametres->check_icon_v == 'on') ? 'checked="checked"' : '' , |
---|
57 | 'check_desc_v' => ($autosize_parametres->check_desc_v == 'on') ? 'checked="checked"' : '' , |
---|
58 | |
---|
59 | 'webmaster_width' => $autosize_parametres->webmaster_width, |
---|
60 | 'webmaster_height' => $autosize_parametres->webmaster_height, |
---|
61 | 'webmaster_enabled' => ($autosize_parametres->webmaster_enabled == 'on') ? 'checked="checked"' : '' , |
---|
62 | |
---|
63 | 'admin_width' => $autosize_parametres->admin_width, |
---|
64 | 'admin_height' => $autosize_parametres->admin_height, |
---|
65 | 'admin_enabled' => ($autosize_parametres->admin_enabled == 'on') ? 'checked="checked"' : '' , |
---|
66 | |
---|
67 | 'generic_width' => $autosize_parametres->generic_width, |
---|
68 | 'generic_height' => $autosize_parametres->generic_height, |
---|
69 | 'generic_enabled' => ($autosize_parametres->generic_enabled == 'on') ? 'checked="checked"' : '' , |
---|
70 | |
---|
71 | 'guest_width' => $autosize_parametres->guest_width, |
---|
72 | 'guest_height' => $autosize_parametres->guest_height, |
---|
73 | 'guest_enabled' => ($autosize_parametres->guest_enabled == 'on') ? 'checked="checked"' : '' , |
---|
74 | |
---|
75 | 'normal_width' => $autosize_parametres->normal_width, |
---|
76 | 'normal_height' => $autosize_parametres->normal_height, |
---|
77 | 'normal_enabled' => ($autosize_parametres->normal_enabled == 'on') ? 'checked="checked"' : '' , |
---|
78 | |
---|
79 | 'user_status' => get_user_status($user_status) |
---|
80 | |
---|
81 | ) |
---|
82 | ); |
---|
83 | |
---|
84 | |
---|
85 | //unset($_POST); |
---|
86 | ?> |
---|