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

Last change on this file since 18735 was 18735, checked in by cljosse, 12 years ago

[extensions] Autosize fix compatibility with 2.4 (option marge bottom)

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