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

Revision 7394, 2.5 KB checked in by cljosse, 9 years ago (diff)

[Autosize][beta] Add the option validation of the autosize according to the status

Line 
1 {* $Id: autosize/template/picture.tpl  *}
2 <!-- autosize/template/picture.tpl  -->   
3
4  {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js" now=1}
5  {known_script id="conflit_script" src=$AUTOSIZE_PATH|@cat:"js/conflit.js"}
6   {known_script id="dimensions" src=$AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js"}
7{*jQuery is always available by default*}
8 <script type="text/javascript">
9    var thumbnail = '{$thumbnail}';
10    var theme = '{$theme}';
11    var visible = '{$visible}';
12    var version = '{$version}';
13
14    var scaled_width =  '{$SCALED_WIDTH}'; // valeur par defaut
15    var scaled_height = '{$SCALED_HEIGHT}'; // valeur par defaut
16    var img_width='{$IMG_WIDTH }';
17    var img_height = '{ $IMG_HEIGHT }';
18
19    var marge_basse='{ $MARGE_BASSE }';
20    var echelle_max='{ $ECHELLE_MAX }';
21    var mini_width='{ $MINI_WIDTH   }';
22    var mini_height = '{ $MINI_HEIGHT   }';
23
24    var webmaster_width='{$webmaster_width   }';
25    var webmaster_height = '{ $webmaster_height   }';
26    var webmaster_enabled = '{ $webmaster_enabled   }';
27
28    var admin_width='{ $admin_width   }';
29    var admin_height = '{ $admin_height   }';
30    var admin_enabled = '{ $admin_enabled   }';
31
32    var generic_width='{ $generic_width   }';
33    var generic_height = '{ $generic_height   }';
34    var generic_enabled = '{ $generic_enabled   }';
35
36    var guest_width='{ $guest_width   }';
37    var guest_height = '{$guest_height}';
38    var guest_enabled = '{ $guest_enabled   }';
39
40    var normal_width='{$normal_width}';
41    var normal_height = '{$normal_height}';
42    var normal_enabled = '{ $normal_enabled   }';
43
44    var user_status='{$user_status}';
45   
46    var check_auto_w = '{$check_auto_w}';
47    var check_desc_v = '{$check_desc_v}';
48     </script>
49
50
51
52 <!--  << autosize/template/picture.tpl   -->
53
54<!---  autosize/template/picture.tpl  body --->
55{known_script id="Affiche_script" src=$AUTOSIZE_PATH|@cat:"js/Affiche_script.js"}
56 <!--  << autosize/template/picture.tpl body  -->
57 {html_head} 
58  {/html_head} 
59  <div id="Debug"  align=center style="color:black;z-index:2000;position:absolute; background-color:Beige; top:0px;left:0px;width:800px;margin:auto;"></div>
60   <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>
61  <div id="Debug2"  align=center style="color:black;z-index:2000;position:absolute; background-color:Beige; top:0px;left:0px;width:800px;margin:auto;"></div>
Note: See TracBrowser for help on using the repository browser.