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

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

[extensions] Autosize fix compatibility with 2.4, add option: SelMax / Autosize (default setting)

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