source: extensions/Autosize/template/autosize.tpl

Last change on this file was 22218, checked in by cljosse, 11 years ago

[extensions] Autosize update to piwigo 2.5 (fix bugs)

File size: 3.6 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        ideal_size_width:'{$ideal_size_width}' ,
6        ideal_size_height:'{$ideal_size_height}' ,
7
8        cl_version :'{$cl_version}',
9        Version_pwg:'{$Version_pwg}',
10        COOKIE_PATH:'{$COOKIE_PATH}',
11        has_pamoorama: '{$has_pamoorama}',
12        slideshow: '{$slide_show}',
13        AUTOSIZE_PATH:'{$AUTOSIZE_PATH}',
14        pictureSelType:'{$pictureSelType}',       
15        pictureDeriv :'{$pictureDeriv}' ,
16        imgSrc : '{$SRC_IMG}',
17
18        liste_type:new Array()   ,
19        DEBUG_autosize:'{$DEBUG_autosize}',
20        theme:'{$theme}',
21       
22        fade_in : '{$fade_in}',
23        cl_visible : "{$cl_visible}" =="true",
24        thumbnail : '{$thumbnail}',
25
26     scaled_width :  '{$SCALED_WIDTH}', // valeur par defaut
27     scaled_height : '{$SCALED_HEIGHT}', // valeur par defaut
28      ratio:'{$ratio }' ,
29     theMainImageWidth:'{$theImageWidth }',
30     theMainImageHeight : '{ $theImageHeight }',
31
32     windowWidth:'{$windowWidth }',           
33     windowHeight : '{ $windowHeight}',
34
35     marge_basse:'{ $MARGE_BASSE }',
36     echelle_max:'{ $ECHELLE_MAX }',
37     mini_width:'{ $MINI_WIDTH   }',
38     mini_height : '{ $MINI_HEIGHT   }',
39     mini_width2 : '{ $MINI_WIDTH2 }',
40     mini_height2 : '{ $MINI_HEIGHT2 }',
41
42     webmaster_type:'{$webmaster_type.SELECTED  }',
43     webmaster_enabled : '{ $webmaster_enabled   }',
44
45     admin_type : '{ $admin_type.SELECTED    }',
46     admin_enabled : '{ $admin_enabled   }',
47
48     generic_type:'{ $generic_type.SELECTED    }',
49     generic_enabled : '{ $generic_enabled   }',
50
51     guest_type:'{ $guest_type.SELECTED    }',
52     guest_enabled : '{ $guest_enabled   }',
53
54     normal_type:'{$normal_type.SELECTED }',
55     normal_enabled : '{ $normal_enabled   }',
56
57     user_status:'{$user_status}',   
58     check_auto_w : '{$check_auto_w}',     
59     check_desc_v :  '{$check_desc_v}' ,
60     defaut_type:  '{$defaut_type}' ,
61     Size : new Array()
62    } ;
63     
64       
65     {if not empty($liste_type)}   
66            {foreach from=$liste_type item=cl_size key=value}           
67         Autosize_options.liste_type.push('{$cl_size}'  )       
68        {/foreach}
69     {/if}
70   
71
72     {if not empty($Size )}   
73            {foreach from=$Size item=cl_size key=value}
74         Autosize_options.Size.push( {ldelim}'{$value}':{$cl_size}}  )       
75        {/foreach}
76     {/if}   
77 </script>
78<link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" />
79<script type="text/javascript"> var visible = '{$visible}'; </script>   
80{/html_head}
81{if $DEBUG_autosize == "true"}
82  {assign var="visible" value="block"}
83<!---  autosize/template/autosize.tpl  body --->
84<style type="text/css">
85 {literal}
86.debug {
87    display: inline-block;
88    width: 12px;
89    height:12px;
90    background-color: black;
91    margin: 2px;
92}
93.debugOn {
94    background-color: yellow;
95    border: solid 1px black;
96}
97</style>
98<div id="Debug0"  ></div>
99<div id="Debug1"  ></div>
100<div id="Debug2"  ></div>
101<div id="Debug3"  ></div>
102<div id="Debug4"  ></div>
103<div id="Debug5" ></div>
104 <div id="Debug6"  align=center style="display:none"></div>
105<div id="debugsContainer"><button id="adddebugs"  style="display:none">Add a debug</button>
106<div class="debug"></div>
107</div>
108    {/literal}
109    {else}
110  {assign var="visible" value="none"}
111  {/if}
112  <!--  << autosize/template/autosize.tpl body  -->
Note: See TracBrowser for help on using the repository browser.