Changeset 29019
- Timestamp:
- Jul 10, 2014, 12:28:44 PM (10 years ago)
- Location:
- extensions/LLGBO2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/include/manage_picture_content.php
r29005 r29019 10 10 $template->assign('LLGBO_PATH',LLGBO_PATH); 11 11 include_once(LLGBO_PATH.'/css/sweettitles.css.php'); 12 $conf['LLGBO2']['rendercontent'] = false; 12 13 13 //----------------------------------------------------------------- 14 14 // ----------- add CSS tooltip in footer -------------------- … … 20 20 // Frame is only available on picture extension 21 21 //----------------------------------------------------------------- 22 unset ($conf['LLGBO2']['rendercontent']); 22 23 $ext = get_extension($element_info['path']); 23 24 if (!in_array($ext, $conf['picture_ext'])) … … 30 31 if ( !empty($content) ) 31 32 { // 2.6 paticular case automatic size management 32 $autosize_in_place = $template->get_template_vars('is_automatic_size'); 33 $autosize_selected = $template->get_template_vars('automatic_size'); 33 $autosize_on = $template->get_template_vars('is_automatic_size'); 34 if (empty($autosize_on) ) 35 {return $content;} 36 37 $autosize_type = $template->get_template_vars('automatic_size'); 34 38 unset ($conf['LLGBO2']['PictSizeWH'] ); 35 if ((isset($autosize_in_place)) and (isset($autosize_selected)) ) 36 {$conf['LLGBO2']['PictSizeWH'] = $element_info['derivatives'][$autosize_selected]->get_size(); 37 } 38 else 39 {return $content;} 39 if (isset($autosize_type)) 40 {$conf['LLGBO2']['PictSizeWH'] = $element_info['derivatives'][$autosize_type]->get_size(); 41 } 40 42 } 41 43 … … 68 70 {$themestyle = 'default';} 69 71 $frame_end = ''; 72 70 73 foreach ($conf['LLGBO2']['FR-sizes'] as $value) 71 74 {if ( $value > 0) // boder value > 0 72 75 { $frame_end = $frame_end.'</div>';} 73 76 } 74 77 75 78 $template->append('llgbo', array( 76 79 'FRAME_END' => $frame_end, … … 79 82 } // end frame 80 83 // 2.6 paticular case automatic size management 81 if ((isset($autosize_ in_place)) and (isset ($autosize_selected)) )82 { 84 if ((isset($autosize_on)) and (isset ($autosize_type)) ) 85 { return $template->parse( 'default_content', true);} 83 86 84 87 } //end --> llgbo_RenderContent -
extensions/LLGBO2/main.inc.php
r29005 r29019 51 51 { 52 52 global $conf; 53 Load_language('plugin.lang', LLGBO_PATH);53 load_language('plugin.lang', LLGBO_PATH); 54 54 55 55 $conf['LLGBO2'] = safe_unserialize($conf['LLGBO2_Settings']); … … 103 103 104 104 If (($conf['LLGBO2']['frame']) //Frame 105 and ( $conf['LLGBO2']['rendercontent']) )// $content ok for update105 and (!empty($conf['LLGBO2']['rendercontent'])) )// $content ok for update 106 106 { $target = 'picture'; 107 107 if ($page['slideshow'] and $conf['light_slideshow']) … … 247 247 add_event_handler('loc_begin_page_header', 'llgbo_beginheader'); 248 248 add_event_handler('loc_end_page_header', 'llgbo_endHeader'); 249 Add_event_handler( 'loc_begin_picture','llgbo_BeginPicture');250 Add_event_handler( 'loc_end_picture', 'llgbo_EndPicture');249 add_event_handler( 'loc_begin_picture','llgbo_BeginPicture'); 250 add_event_handler( 'loc_end_picture', 'llgbo_EndPicture'); 251 251 add_event_handler('render_element_content', 'llgbo_RenderContent', EVENT_HANDLER_PRIORITY_NEUTRAL-1, 20 ); 252 252 }
Note: See TracChangeset
for help on using the changeset viewer.