Ignore:
Timestamp:
Apr 25, 2013, 2:56:51 PM (11 years ago)
Author:
cljosse
Message:

[extensions] Autosize update to piwigo 2.5 (fix bugs with pamooramics, charlies's )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/include/affiche.php

    r19844 r22360  
    1212$cookies="' x '";
    1313global $imgSizeWH ;
    14 if(isset($_COOKIE['windowHeight'])){
    15 $windowHeight=$_COOKIE['windowHeight'];
    16 $windowWidth=$_COOKIE['windowWidth'];
    17 }else{
    18 $windowHeight=600;
    19 $windowWidth=800;
    20 }
    21 global $size ;
    22 
    23 if(!isset($imgSizeWH)){
    24  $imgSizeWH[0]=100;
    25 $imgSizeWH[1]=100;
    26 }
    27  
     14global          $events ,$windowHeight , $windowWidth;
     15global $size ;
     16global $DEBUG_autosize;
     17                global $autosize_parametres,$user_status;
     18                global  $has_pamoorama,$pictureSelType,$pictureDeriv;
     19//===========================================================================
    2820$size=  array(
    2921            'src_img_h' => $imgSizeWH[1],
     
    3224            'window_width' => $windowWidth
    3325          );
    34    
    35        
     26if($imgSizeWH[1]==0){
     27          print_r($size);
     28          }
     29          $ratio=$imgSizeWH[0]/$imgSizeWH[1];
     30        if(preg_match("|fin_affiche|", $DEBUG_autosize, $val)){
     31echo "<pre>";
     32echo $DEBUG_autosize.$infos_message."
     33";
     34print_r(explode(",","$infos_message"));
     35print_r($events);
     36
     37 echo  $pictureDeriv . " " . $pictureDeriv . " " . $pictureSelType;
     38
     39echo "WH: " . $windowHeight . "x " .$windowWidth;
     40print_r($imgSizeWH);
     41        print_r($_COOKIE);
     42
     43
     44die();
     45}       
     46
     47
    3648  $my_path = AUTOSIZE_PATH_ABS;
    3749  $theme=$user['theme'];
    3850 
    3951  $user_status = $user['status'] ;
    40                    $template->assign( array(
     52  $template->assign( array(
    4153                   'AUTOSIZE_PATH_ABS' => AUTOSIZE_PATH_ABS,
    4254                   'ROOT_URL' => ROOT_URL,
     
    5668    } 
    5769 $autosize_parametres = cl_autosize_Get_Options();
    58  //===========================================
    59 $COOKIE_PATH= cookie_path() ;
    60  global $DEBUG_autosize;
    61 
    6270          $user_type= get_user_status($user_status)."_type";
    6371          $user_type=  $autosize_parametres->$user_type ; 
     
    6876              $ideal_size[1]=$imgSizeWH[1];
    6977          }
     78
     79 //===========================================
     80$COOKIE_PATH= cookie_path() ;
     81
     82
    7083
    7184 $slide_show = isset($page['slideshow'])?$page['slideshow']:false;
     
    8598            'slide_show' => $slide_show,
    8699             
    87             'ratio' =>$imgSizeWH[0]/$imgSizeWH[1] ,   
     100            'ratio' =>$ratio ,   
    88101             
    89102            'webmaster_type' => array(
Note: See TracChangeset for help on using the changeset viewer.