Changeset 29484 for extensions/LLGBO2/include
- Timestamp:
- Sep 11, 2014, 2:03:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/include/manage_picture_content.php
r29049 r29484 89 89 if ($conf['LLGBO2']['tooltipdisp'] )// tooltip 90 90 { $prev = $template->get_template_vars('previous'); 91 $next = $template->get_template_vars('next'); 92 $swtimg = '||<img src='; 93 if (isset($prev)){$template->append('previous', array('TITLE_ESC' => $prev['TITLE_ESC'].$swtimg.$prev['THUMB_SRC'].'>'),TRUE);} 94 if (isset($next)){$template->append('next', array('TITLE_ESC' => $next['TITLE_ESC'].$swtimg.$next['THUMB_SRC'].'>'),TRUE);} 91 $next = $template->get_template_vars('next'); 92 93 if (isset($prev)){ 94 $prev_thumbimg = '||<img src='.$prev['derivatives']['thumb']->get_url(); 95 $template->append('previous', array('TITLE_ESC' => $prev['TITLE_ESC'].$prev_thumbimg.'>'),TRUE); 96 } 97 if (isset($next)){ 98 $next_thumbimg = '||<img src='.$next['derivatives']['thumb']->get_url(); 99 $template->append('next', array('TITLE_ESC' => $next['TITLE_ESC'].$next_thumbimg.'>'),TRUE); 100 } 95 101 $template->append('llgbo', array('tooltipCSS' => $sweetcss), true); 96 } 97 // 2.6 paticular case automatic size and modus management 102 } 103 // ----------------------------------------------------------- 104 // 2.6 paticular case automatic size and modus management 105 // ----------------------------------------------------------- 98 106 if ($update_tpl) 99 107 {return $template->parse( 'default_content', true);} … … 107 115 // -------------------------------------- 108 116 $patern = '/'.'<img(.*)id="theMainImage"(.*)>'.'/'; 109 $replacement = $replacement.'{$llgbo.FRAME_TITLE}'.'{$llgbo.FRAME_SIZE}'.'{$llgbo.FRAME_BEGIN}'."\n".'<img $1 id="theMainImage" $2> 117 $replacement = $replacement.'{$llgbo.FRAME_TITLE}'.'{$llgbo.FRAME_SIZE}'.'{$llgbo.FRAME_BEGIN}'."\n".'<img $1 id="theMainImage" $2>'.'{$llgbo.FRAME_END}'; 110 118 $content = preg_replace($patern, $replacement, $content); 111 119 return $content;
Note: See TracChangeset
for help on using the changeset viewer.