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
RevLine 
[8957]1 {* $Id: autosize/template/autosize.tpl  *}
2{html_head} <!-- autosize/template/autosize.tpl  -->
[18716]3 <script type="text/javascript">
[16931]4var  Autosize_options={ldelim}
[19030]5        ideal_size_width:'{$ideal_size_width}' ,
6        ideal_size_height:'{$ideal_size_height}' ,
7
[18735]8        cl_version :'{$cl_version}',
9        Version_pwg:'{$Version_pwg}',
[18716]10        COOKIE_PATH:'{$COOKIE_PATH}',
11        has_pamoorama: '{$has_pamoorama}',
[19003]12        slideshow: '{$slide_show}',
[22218]13        AUTOSIZE_PATH:'{$AUTOSIZE_PATH}',
[18716]14        pictureSelType:'{$pictureSelType}',       
[17503]15        pictureDeriv :'{$pictureDeriv}' ,
[18716]16        imgSrc : '{$SRC_IMG}',
17
[17503]18        liste_type:new Array()   ,
[18716]19        DEBUG_autosize:'{$DEBUG_autosize}',
20        theme:'{$theme}',
21       
22        fade_in : '{$fade_in}',
23        cl_visible : "{$cl_visible}" =="true",
24        thumbnail : '{$thumbnail}',
[6953]25
[16931]26     scaled_width :  '{$SCALED_WIDTH}', // valeur par defaut
27     scaled_height : '{$SCALED_HEIGHT}', // valeur par defaut
[18716]28      ratio:'{$ratio }' ,
29     theMainImageWidth:'{$theImageWidth }',
30     theMainImageHeight : '{ $theImageHeight }',
[12527]31
[17503]32     windowWidth:'{$windowWidth }',           
33     windowHeight : '{ $windowHeight}',
[12527]34
[16931]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 }',
[7124]41
[16931]42     webmaster_type:'{$webmaster_type.SELECTED  }',
43     webmaster_enabled : '{ $webmaster_enabled   }',
[7394]44
[16931]45     admin_type : '{ $admin_type.SELECTED    }',
46     admin_enabled : '{ $admin_enabled   }',
[7394]47
[16931]48     generic_type:'{ $generic_type.SELECTED    }',
49     generic_enabled : '{ $generic_enabled   }',
[7394]50
[16931]51     guest_type:'{ $guest_type.SELECTED    }',
52     guest_enabled : '{ $guest_enabled   }',
[7394]53
[16931]54     normal_type:'{$normal_type.SELECTED }',
55     normal_enabled : '{ $normal_enabled   }',
[7394]56
[16931]57     user_status:'{$user_status}',   
58     check_auto_w : '{$check_auto_w}',     
[17503]59     check_desc_v :  '{$check_desc_v}' ,
[18716]60     defaut_type:  '{$defaut_type}' ,
[17503]61     Size : new Array()
[16931]62    } ;
[17503]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   
[16931]71
[17503]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}
[18325]76     {/if}   
[8864]77 </script>
[7805]78<link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" />
[18325]79<script type="text/javascript"> var visible = '{$visible}'; </script>   
80{/html_head}
[10845]81{if $DEBUG_autosize == "true"}
[7536]82  {assign var="visible" value="block"}
[7805]83<!---  autosize/template/autosize.tpl  body --->
[7867]84<style type="text/css">
[18325]85 {literal}
[7867]86.debug {
87    display: inline-block;
[12527]88    width: 12px;
89    height:12px;
[7867]90    background-color: black;
91    margin: 2px;
92}
93.debugOn {
94    background-color: yellow;
95    border: solid 1px black;
96}
97</style>
[17192]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>
[11961]104 <div id="Debug6"  align=center style="display:none"></div>
[12527]105<div id="debugsContainer"><button id="adddebugs"  style="display:none">Add a debug</button>
106<div class="debug"></div>
107</div>
[7867]108    {/literal}
109    {else}
[8957]110  {assign var="visible" value="none"}
111  {/if}
[18716]112  <!--  << autosize/template/autosize.tpl body  -->
Note: See TracBrowser for help on using the repository browser.