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

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

[extensions] Autosize fix compatibility with 2.4, new options

File size: 4.3 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    type_size:'{$deriv_type}' ,
10      DEBUG_autosize:'{$DEBUG_autosize}',
11     theme:'{$theme}',
12     src_img : '{$SRC_IMG}',
13     fade_in : '{$fade_in}',
14     cl_visible : "{$cl_visible}" =="true",
15     thumbnail : '{$thumbnail}',
16
17     scaled_width :  '{$SCALED_WIDTH}', // valeur par defaut
18     scaled_height : '{$SCALED_HEIGHT}', // valeur par defaut
19ratio:'{$IMG_WIDTH/$IMG_HEIGHT }' ,
20     img_width:'{$IMG_WIDTH }',
21     img_height : '{ $IMG_HEIGHT }',
22
23     cookie_width:'{$COOKIE_WIDTH }',
24     cookie_height : '{ $COOKIE_HEIGHT }',
25
26     marge_basse:'{ $MARGE_BASSE }',
27     echelle_max:'{ $ECHELLE_MAX }',
28     mini_width:'{ $MINI_WIDTH   }',
29     mini_height : '{ $MINI_HEIGHT   }',
30     mini_width2 : '{ $MINI_WIDTH2 }',
31     mini_height2 : '{ $MINI_HEIGHT2 }',
32
33     webmaster_type:'{$webmaster_type.SELECTED  }',
34     webmaster_enabled : '{ $webmaster_enabled   }',
35
36     admin_type : '{ $admin_type.SELECTED    }',
37     admin_enabled : '{ $admin_enabled   }',
38
39     generic_type:'{ $generic_type.SELECTED    }',
40     generic_enabled : '{ $generic_enabled   }',
41
42     guest_type:'{ $guest_type.SELECTED    }',
43     guest_enabled : '{ $guest_enabled   }',
44
45     normal_type:'{$normal_type.SELECTED }',
46     normal_enabled : '{ $normal_enabled   }',
47
48     user_status:'{$user_status}',   
49     check_auto_w : '{$check_auto_w}',     
50     check_desc_v :  '{$check_desc_v}'
51    } ;
52
53 </script>
54
55<link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" />
56 <!--  << autosize/template/autosize.tpl   -->
57
58<script type="text/javascript">
59       var visible = '{$visible}';
60   </script>
61   
62    {/html_head}
63{if $DEBUG_autosize == "true"}
64  {assign var="visible" value="block"}
65<!---  autosize/template/autosize.tpl  body --->
66<style type="text/css">
67    {literal}
68.debug {
69    display: inline-block;
70    width: 12px;
71    height:12px;
72    background-color: black;
73    margin: 2px;
74}
75
76.debugOn {
77    background-color: yellow;
78    border: solid 1px black;
79}
80
81.jssource {font-size:.8em;color:#000; }
82pre {font-size:.9em;background-color:#ffc;overflow-x:auto; padding: 5px;}
83pre em {color:#009;}
84pre b {color:#900;}
85pre strong {color:#099;}
86pre i,
87pre i *{color:#090;}
88
89</style>
90
91
92<div id="Debug0"  align=center style="color:black;z-index:2000;position:absolute; background-color:Beige; top:0px;left:0px;width:800px;margin:auto;"></div>
93<div id="Debug1"  align=center style="color:black;z-index:2000;position:absolute; background-color:Beige; top:0px;left:0px;width:800px;margin:auto;"></div>
94<div id="Debug2"  align=center style="color:black;z-index:2000;position:absolute; background-color:yellow; top:0px;left:0px;width:800px;margin:auto;"></div>
95<div id="Debug3"  align=center style="color:black;z-index:2000;position:absolute; background-color:blue; top:0px;left:0px;width:800px;margin:auto;"></div>
96<div id="Debug4"  align=center style="color:black;z-index:2000;position:absolute; background-color:green; top:0px;left:0px;width:800px;margin:auto;"></div>
97<div id="Debug5"  align=center style="color:black;z-index:2000;position:absolute; background-color:red; top:100px;left:0px;width:300px;margin:auto;"></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>
Note: See TracBrowser for help on using the repository browser.