Changeset 8940


Ignore:
Timestamp:
Jan 27, 2011, 1:54:24 PM (10 years ago)
Author:
cljosse
Message:

[Autosize][beta] bug on template


Location:
extensions/Autosize
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/autosize.inc.php

    r8911 r8940  
    2727if (!defined('ROOT_URL'))
    2828define(  'ROOT_URL',  get_root_url().'/' );
     29
     30$AUTOSIZE_PATH_ABS=str_replace('\\','/',dirname(__FILE__) );
    2931if (!defined('AUTOSIZE_PATH_ABS'))
    3032define(
    31   'AUTOSIZE_PATH_ABS',
    32    dirname(__FILE__).'/'
     33  'AUTOSIZE_PATH_ABS',   $AUTOSIZE_PATH_ABS."/"
    3334);
    3435
     
    102103                           save_framework('".$ma_page."');
    103104                        </script>";
     105            $autoscript .="<input id='ret_autosize'  type='hidden' value='' />";
     106            $autoscript .="<input id='src_img_h'  type='hidden' value='' />";
     107            $autoscript .="<input id='src_img_w'   type='hidden' value='' />";
    104108                $template->append('footer_elements',$autoscript); 
    105109                return ;
  • extensions/Autosize/css/autosize.css

    r8792 r8940  
    2121    opacity: 0;
    2222    filter: alpha(opacity:0);
     23        padding-top: 0px;
    2324    padding-bottom: 0px;
    2425    padding-left: 0px;
    2526}
    26 #the_page{
    27 position:static ;
    28  
     27body{
     28margin:0px
     29}
     30#the_page{
     31margin-top:-5px;
     32top:0px ;
     33   position:static ;
     34 
    2935}
    3036#mapPicture{
  • extensions/Autosize/js/Affiche_script.js

    r8914 r8940  
    11131113    info_thePicturePage = jQuery("#thePicturePage").infos();
    11141114    if (theme.match(RegExp("stripped", "gi"))) {
    1115         optiontop = info_imageInfoBar.bottom + llgboframe.top;
     1115        optiontop =Info_the_page.top+ info_imageInfoBar.bottom + llgboframe.top + info_imageToolBar.top + info_imageToolBar.height;
    11161116    }
    11171117
  • extensions/Autosize/main.inc.php

    r8914 r8940  
    22/*
    33Plugin Name: AutoSize
    4 Version: 1.4.4
     4Version: 1.4.41
    55Description: Ajuste l'affichage des photos en fonction de la hauteur de la fenetre de navigation
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=448
  • extensions/Autosize/template/conflit.tpl

    r8911 r8940  
    1 {html_head}
    21{if PHPWG_VERSION < 2.2 } 
    3     {include file=$AUTOSIZE_PATH_ABS|@cat:'template/header_2_1.tpl'}
     2  {assign var= file value=$AUTOSIZE_PATH_ABS|@cat:'template/header_2_1.tpl' }
    43 {else}
    5     {include file= $AUTOSIZE_PATH_ABS|@cat:'template/header_2_2.tpl'}
    6  {/if}
    7 {/html_head}
    8 
     4  {assign var= file value=$AUTOSIZE_PATH_ABS|@cat:'template/header_2_2.tpl'
     5}
     6 {/if}  { include file= $file   }
    97<script type="text/javascript">
    108 
  • extensions/Autosize/template/header_2_1.tpl

    r8912 r8940  
    1 {known_script id="jquery" src = $ROOT_URL|@cat:"themes/default/js/jquery.packed.js" now=1}
    2 {known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
    3 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.core.js"}
    4 {known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.resizable.js"}
    5 {known_script id="jquery.ui.slider" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.slider.js"}
    6 {known_script id="jquery.ui.draggable" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.draggable.js"}
    7 
    8 {known_script id="conflit_script" src = $AUTOSIZE_PATH|@cat:"js/conflit.js"  }
    9 {known_script id="dimensions" src = $AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js"  }
    10 
    11 
     1{html_head}
     2{known_script id="jquery" src = $ROOT_URL|@cat:"themes/default/js/jquery.js" now=0}
     3{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.js"}
     4{known_script id="conflit_script" src = $AUTOSIZE_PATH|@cat:"js/conflit.js" }
     5{known_script id="dimensions" src = $AUTOSIZE_PATH|@cat:"js/jquery.dimensions.js" }
     6{/html_head}
  • extensions/Autosize/template/picture.tpl

    r8911 r8940  
    1818 var src3="{'cl_autosize_info_2'|@translate}";
    1919 var src4 = "{'cl_autosize_info'|@translate}";
     20 </script>
     21 {if PHPWG_VERSION < 2.2 } {assign var= file value=$AUTOSIZE_PATH_ABS|@cat:'template/picture_2_1.tpl'
     22} {else} {assign var= file value=$AUTOSIZE_PATH_ABS|@cat:'template/picture_2_2.tpl'
     23} {/if} { include file= $file }
    2024
    21  </script>
    22  
    23 <input id="ret_autosize"  type="hidden" value="" />
    24 <input id="src_img_h"  type="hidden" value="" />
    25 <input id="src_img_w"   type="hidden" value="" />
    2625
    2726 
Note: See TracChangeset for help on using the changeset viewer.