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

Revision 7962, 3.9 KB checked in by cljosse, 9 years ago (diff)

[Autosize][beta] compatibility with simple


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