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

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

[extensions] Autosize fix compatibility with 2.4, update

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