Ignore:
Timestamp:
Sep 28, 2012, 11:13:50 AM (12 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4, add theme directive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/template/autosize.tpl

    r17503 r18325  
    33 <script type="text/javascript">
    44var  Autosize_options={ldelim}
     5        slideshow: '{$slideshow}',
    56        select_type:'{$select_type}',
    67        maxi_img:'{$maxi_img}',       
     
    1617     scaled_width :  '{$SCALED_WIDTH}', // valeur par defaut
    1718     scaled_height : '{$SCALED_HEIGHT}', // valeur par defaut
    18 ratio:'{$IMG_WIDTH/$IMG_HEIGHT }' ,
     19      ratio:'{$IMG_WIDTH/$IMG_HEIGHT }' ,
    1920     img_width:'{$IMG_WIDTH }',
    2021     img_height : '{ $IMG_HEIGHT }',
     
    6364         Autosize_options.Size.push( {ldelim}'{$value}':{$cl_size}}  )       
    6465        {/foreach}
    65      {/if}
    66    
    67 
     66     {/if}   
    6867 </script>
    69 
    7068<link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" />
    71  <!--  << autosize/template/autosize.tpl   -->
    72 
    73 <script type="text/javascript">
    74        var visible = '{$visible}';
    75    </script>
    76    
    77     {/html_head}
     69<script type="text/javascript"> var visible = '{$visible}'; </script>   
     70{/html_head}
    7871{if $DEBUG_autosize == "true"}
    7972  {assign var="visible" value="block"}
    8073<!---  autosize/template/autosize.tpl  body --->
    8174<style type="text/css">
    82     {literal}
     75 {literal}
    8376.debug {
    8477    display: inline-block;
     
    8881    margin: 2px;
    8982}
    90 
    9183.debugOn {
    9284    background-color: yellow;
    9385    border: solid 1px black;
    9486}
    95 
    96 .jssource {font-size:.8em;color:#000; }
    97 pre {font-size:.9em;background-color:#ffc;overflow-x:auto; padding: 5px;}
    98 pre em {color:#009;}
    99 pre b {color:#900;}
    100 pre strong {color:#099;}
    101 pre i,
    102 pre i *{color:#090;}
    103 
    10487</style>
    10588<div id="Debug0"  ></div>
     
    11093<div id="Debug5" ></div>
    11194 <div id="Debug6"  align=center style="display:none"></div>
    112 
    113 
    11495<div id="debugsContainer"><button id="adddebugs"  style="display:none">Add a debug</button>
    11596<div class="debug"></div>
     
    119100  {assign var="visible" value="none"}
    120101  {/if}
    121 
    122 
    123102  <!--  << autosize/template/autosize.tpl body  -->
    124 
    125 
    126103<div style="display:none">
    127104<form action='' method='post' name='form_autosize_picture' id='form_autosize_picture'  type='submit'  >
     
    133110<input id='zoom'  name='zoom' type='hidden' value='' />
    134111</form ></div>
    135 
    136112<img id='loading' src='{$AUTOSIZE_PATH}images/loading.gif' style='position:absolute;left:50%;top:50%;z-index:10; display:none' />
Note: See TracChangeset for help on using the changeset viewer.