Changeset 30030
- Timestamp:
- Oct 13, 2014, 9:58:09 PM (10 years ago)
- Location:
- extensions/LLGBO2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/include/manage_picture_content.php
r29841 r30030 34 34 {return $content;} 35 35 } 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 ;} 36 40 //----------------------------------------------------------------- 37 41 if (($conf['LLGBO2']['frame']) ) //Frame 38 42 { $deriv_type = pwg_get_session_var('picture_deriv', $conf['derivative_default_size']); 39 43 $PictSizeWH = $element_info['derivatives'][$deriv_type]->get_size(); // default conf 40 41 $autosize_type = $template->get_template_vars('automatic_size'); 42 44 43 45 if (isset($autosize_type)) // auto size 44 46 { $PictSizeWH = $element_info['derivatives'][$autosize_type]->get_size(); 45 47 $update_tpl = true ;} 46 48 47 49 if (isset($current['selected_derivative'])) // modus 48 50 { $PictSizeWH = $current['selected_derivative']->get_size(); … … 83 85 'GBOCSS' => LLGBO_PATH."css/llgbo_content_".$themestyle.".css" ), true); 84 86 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');} 86 94 } // end frame 87 95 //---------------------------------------------------- -
extensions/LLGBO2/main.inc.php
r29913 r30030 16 16 2.7.C change PHP array_replace by internal function 17 17 2.7.D fix bug with frame and theme P0w0 18 improve compatibility with Automatic Size 18 19 */ 19 20 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
Note: See TracChangeset
for help on using the changeset viewer.