source: extensions/Autosize/template/autosize.tpl @ 17308

Last change on this file since 17308 was 17308, checked in by cljosse, 12 years ago

[extensions] Autosize fix compatibility with 2.4, clean up...

File size: 3.7 KB
Line 
1 {* $Id: autosize/template/autosize.tpl  *}
2{html_head} <!-- autosize/template/autosize.tpl  -->
3 <script type="text/javascript">
4 
5var  Autosize_options={ldelim}
6   
7    cookies :{$cookies} ,
8    deriv_type :'{$deriv_type}' ,
9    liste_type:'{$liste_type}'   ,
10
11    type_size:'{$deriv_type}' ,
12      DEBUG_autosize:'{$DEBUG_autosize}',
13     theme:'{$theme}',
14     src_img : '{$SRC_IMG}',
15     fade_in : '{$fade_in}',
16     cl_visible : "{$cl_visible}" =="true",
17     thumbnail : '{$thumbnail}',
18
19     scaled_width :  '{$SCALED_WIDTH}', // valeur par defaut
20     scaled_height : '{$SCALED_HEIGHT}', // valeur par defaut
21ratio:'{$IMG_WIDTH/$IMG_HEIGHT }' ,
22     img_width:'{$IMG_WIDTH }',
23     img_height : '{ $IMG_HEIGHT }',
24
25     cookie_width:'{$COOKIE_WIDTH }',
26     cookie_height : '{ $COOKIE_HEIGHT }',
27
28     marge_basse:'{ $MARGE_BASSE }',
29     echelle_max:'{ $ECHELLE_MAX }',
30     mini_width:'{ $MINI_WIDTH   }',
31     mini_height : '{ $MINI_HEIGHT   }',
32     mini_width2 : '{ $MINI_WIDTH2 }',
33     mini_height2 : '{ $MINI_HEIGHT2 }',
34
35     webmaster_type:'{$webmaster_type.SELECTED  }',
36     webmaster_enabled : '{ $webmaster_enabled   }',
37
38     admin_type : '{ $admin_type.SELECTED    }',
39     admin_enabled : '{ $admin_enabled   }',
40
41     generic_type:'{ $generic_type.SELECTED    }',
42     generic_enabled : '{ $generic_enabled   }',
43
44     guest_type:'{ $guest_type.SELECTED    }',
45     guest_enabled : '{ $guest_enabled   }',
46
47     normal_type:'{$normal_type.SELECTED }',
48     normal_enabled : '{ $normal_enabled   }',
49
50     user_status:'{$user_status}',   
51     check_auto_w : '{$check_auto_w}',     
52     check_desc_v :  '{$check_desc_v}'
53    } ;
54
55 </script>
56
57<link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" />
58 <!--  << autosize/template/autosize.tpl   -->
59
60<script type="text/javascript">
61       var visible = '{$visible}';
62   </script>
63   
64    {/html_head}
65{if $DEBUG_autosize == "true"}
66  {assign var="visible" value="block"}
67<!---  autosize/template/autosize.tpl  body --->
68<style type="text/css">
69    {literal}
70.debug {
71    display: inline-block;
72    width: 12px;
73    height:12px;
74    background-color: black;
75    margin: 2px;
76}
77
78.debugOn {
79    background-color: yellow;
80    border: solid 1px black;
81}
82
83.jssource {font-size:.8em;color:#000; }
84pre {font-size:.9em;background-color:#ffc;overflow-x:auto; padding: 5px;}
85pre em {color:#009;}
86pre b {color:#900;}
87pre strong {color:#099;}
88pre i,
89pre i *{color:#090;}
90
91</style>
92<div id="Debug0"  ></div>
93<div id="Debug1"  ></div>
94<div id="Debug2"  ></div>
95<div id="Debug3"  ></div>
96<div id="Debug4"  ></div>
97<div id="Debug5" ></div>
98 <div id="Debug6"  align=center style="display:none"></div>
99
100
101<div id="debugsContainer"><button id="adddebugs"  style="display:none">Add a debug</button>
102<div class="debug"></div>
103</div>
104    {/literal}
105    {else}
106  {assign var="visible" value="none"}
107  {/if}
108
109
110  <!--  << autosize/template/autosize.tpl body  -->
111
112
113<div style="display:none">
114<form action='' method='post' name='form_autosize_picture' id='form_autosize_picture'  type='submit'  >
115<input id='ret_autosize' name='ret_autosize' type='hidden' value='' />
116<input id='src_img_h' name='src_img_h' type='hidden' value='' />
117<input id='src_img_w' name='src_img_w'  type='hidden' value='' />
118<input id='window_height' name='window_height' type='hidden' value='' />
119<input id='window_width'  name='window_width' type='hidden' value='' />
120<input id='zoom'  name='zoom' type='hidden' value='' />
121</form ></div>
122
123<img id='loading' src='{$AUTOSIZE_PATH}images/loading.gif' style='position:absolute;left:50%;top:50%;z-index:10; display:none' />
Note: See TracBrowser for help on using the repository browser.