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

Last change on this file since 8911 was 8911, checked in by cljosse, 13 years ago

[Autosize][beta] compatibility whith piwigo 2.2


File size: 3.8 KB
Line 
1{html_head}  {* $Id: autosize/template/autosize.tpl  *}
2<!-- autosize/template/autosize.tpl  -->
3 <script type="text/javascript">
4    var src_img = '{$SRC_IMG}';
5    var fade_in = '{$fade_in}';
6    var cl_visible = "{$cl_visible}" =="true";
7    var thumbnail = '{$thumbnail}';
8    var scaled_width =  '{$SCALED_WIDTH}'; // valeur par defaut
9    var scaled_height = '{$SCALED_HEIGHT}'; // valeur par defaut
10    var img_width='{$IMG_WIDTH }';
11    var img_height = '{ $IMG_HEIGHT }';
12
13    var marge_basse='{ $MARGE_BASSE }';
14    var echelle_max='{ $ECHELLE_MAX }';
15    var mini_width='{ $MINI_WIDTH   }';
16    var mini_height = '{ $MINI_HEIGHT   }';
17    var mini_width2 = '{ $MINI_WIDTH2 }';
18    var mini_height2 = '{ $MINI_HEIGHT2 }';
19
20    var webmaster_width='{$webmaster_width   }';
21    var webmaster_height = '{ $webmaster_height   }';
22    var webmaster_enabled = '{ $webmaster_enabled   }';
23
24    var admin_width='{ $admin_width   }';
25    var admin_height = '{ $admin_height   }';
26    var admin_enabled = '{ $admin_enabled   }';
27
28    var generic_width='{ $generic_width   }';
29    var generic_height = '{ $generic_height   }';
30    var generic_enabled = '{ $generic_enabled   }';
31
32    var guest_width='{ $guest_width   }';
33    var guest_height = '{$guest_height}';
34    var guest_enabled = '{ $guest_enabled   }';
35
36    var normal_width='{$normal_width}';
37    var normal_height = '{$normal_height}';
38    var normal_enabled = '{ $normal_enabled   }';
39
40    var user_status='{$user_status}';
41   
42    var check_auto_w = '{$check_auto_w}';
43    var check_desc_v = '{$check_desc_v}';
44 </script>
45{if PHPWG_VERSION < 2.2 }
46 {include file=$AUTOSIZE_PATH_ABS|@cat:'template/picture_2_1.tpl'}
47{else}
48{include file= $AUTOSIZE_PATH_ABS|@cat:'template/picture_2_2.tpl'}
49{/if}
50<link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" />
51 <!--  << autosize/template/autosize.tpl   -->
52{/html_head}
53<script type="text/javascript">
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.