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

Revision 8057, 4.0 KB checked in by cljosse, 9 years ago (diff)

[Autosize][beta] fix warning on jquery


Line 
1{html_head}  {* $Id: autosize/template/autosize.tpl  *}
2<!-- autosize/template/autosize.tpl  -->
3    {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js" now=1}
4    {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
5    {known_script id="dimensions" src=$AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js"}
6 <script type="text/javascript">
7    var fade_in = '{$fade_in}';
8    var cl_visible = "{$cl_visible}" =="true";
9    var thumbnail = '{$thumbnail}';
10    var scaled_width =  '{$SCALED_WIDTH}'; // valeur par defaut
11    var scaled_height = '{$SCALED_HEIGHT}'; // valeur par defaut
12    var img_width='{$IMG_WIDTH }';
13    var img_height = '{ $IMG_HEIGHT }';
14
15    var marge_basse='{ $MARGE_BASSE }';
16    var echelle_max='{ $ECHELLE_MAX }';
17    var mini_width='{ $MINI_WIDTH   }';
18    var mini_height = '{ $MINI_HEIGHT   }';
19    var mini_width2 = '{ $MINI_WIDTH2 }';
20    var mini_height2 = '{ $MINI_HEIGHT2 }';
21
22    var webmaster_width='{$webmaster_width   }';
23    var webmaster_height = '{ $webmaster_height   }';
24    var webmaster_enabled = '{ $webmaster_enabled   }';
25
26    var admin_width='{ $admin_width   }';
27    var admin_height = '{ $admin_height   }';
28    var admin_enabled = '{ $admin_enabled   }';
29
30    var generic_width='{ $generic_width   }';
31    var generic_height = '{ $generic_height   }';
32    var generic_enabled = '{ $generic_enabled   }';
33
34    var guest_width='{ $guest_width   }';
35    var guest_height = '{$guest_height}';
36    var guest_enabled = '{ $guest_enabled   }';
37
38    var normal_width='{$normal_width}';
39    var normal_height = '{$normal_height}';
40    var normal_enabled = '{ $normal_enabled   }';
41
42    var user_status='{$user_status}';
43   
44    var check_auto_w = '{$check_auto_w}';
45    var check_desc_v = '{$check_desc_v}';
46     </script>
47
48{known_script id="Affiche_script" src=$AUTOSIZE_PATH|@cat:"js/Affiche_script.js"}
49<link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" />
50 <!--  << autosize/template/autosize.tpl   -->
51{/html_head} 
52<script type="text/javascript">
53    var DEBUG = '{$DEBUG}';
54    var visible = '{$visible}';
55   </script>
56{if $DEBUG == "true"}
57  {assign var="visible" value="block"}
58<!---  autosize/template/autosize.tpl  body --->
59<style type="text/css">
60    {literal}
61.debug {
62    display: inline-block;
63    width: 45px;
64    height: 45px;
65    background-color: black;
66    margin: 2px;
67}
68.debugOn {
69    background-color: yellow;
70    border: solid 1px black;
71    width: 43px;
72    height: 43px;
73}
74
75.jssource {font-size:.8em;color:#000; }
76pre {font-size:.9em;background-color:#ffc;overflow-x:auto; padding: 5px;}
77pre em {color:#009;}
78pre b {color:#900;}
79pre strong {color:#099;}
80pre i,
81pre i *{color:#090;}
82
83</style>
84
85<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>
86<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>
87<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>
88<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>
89<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>
90<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>
91
92<p><button id="adddebugs">Add a debug</button></p>
93
94<div id="debugsContainer"><div class="debug"></div></div>
95    {/literal}
96    {else}
97  {assign var="visible" value="none"} {/if}
98 
99  <!--  << autosize/template/autosize.tpl body  -->
Note: See TracBrowser for help on using the repository browser.