Changeset 30030 for extensions/LLGBO2


Ignore:
Timestamp:
Oct 13, 2014, 9:58:09 PM (10 years ago)
Author:
gbo
Message:

2.7.D fix bug with frame and theme P0w0
improve compatibility with Automatic Size

Location:
extensions/LLGBO2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/include/manage_picture_content.php

    r29841 r30030  
    3434                                                {return $content;}                                             
    3535                }
     36        //--------------Autosize compatibility with out frame -------------------------------------------
     37                $autosize_type = $template->get_template_vars('automatic_size');
     38                if (isset($autosize_type)) // auto size
     39                        { $update_tpl = true ;}
    3640        //-----------------------------------------------------------------
    3741        if (($conf['LLGBO2']['frame'])   ) //Frame
    3842        {       $deriv_type = pwg_get_session_var('picture_deriv', $conf['derivative_default_size']);
    3943                $PictSizeWH =  $element_info['derivatives'][$deriv_type]->get_size();  // default conf
    40                
    41                 $autosize_type = $template->get_template_vars('automatic_size');
    42                
     44                                       
    4345                if (isset($autosize_type)) // auto size
    4446                        {       $PictSizeWH =  $element_info['derivatives'][$autosize_type]->get_size();
    4547                                $update_tpl = true ;}
    46                        
     48                               
    4749                if (isset($current['selected_derivative'])) // modus
    4850                        {       $PictSizeWH =  $current['selected_derivative']->get_size();
     
    8385                                                         'GBOCSS' => LLGBO_PATH."css/llgbo_content_".$themestyle.".css" ), true);
    8486                                                         
    85                         $template->set_prefilter('default_content', 'LLGBO_prefilter_Content_Frame');                                                           
     87                        $template->set_prefilter('default_content', 'LLGBO_prefilter_Content_Frame');           
     88
     89                if (isset($conf['automatic_size_width_margin'])) // auto size  must take care of frame size
     90                        { $template->assign( array(
     91                        'asize_width_margin' => $conf['automatic_size_width_margin'] + $frame_border,
     92                        'asize_height_margin' => $conf['automatic_size_height_margin'] + $frame_border,));
     93                        $template->parse('asize_picture_js');} 
    8694        } // end frame                                 
    8795//----------------------------------------------------   
  • extensions/LLGBO2/main.inc.php

    r29913 r30030  
    1616                2.7.C change PHP array_replace by internal function
    1717                2.7.D fix bug with frame and theme P0w0
     18                        improve compatibility with Automatic Size       
    1819 */
    1920if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
Note: See TracChangeset for help on using the changeset viewer.