Changeset 29808 for extensions/LLGBO2/include/manage_picture_content.php
- Timestamp:
- Sep 27, 2014, 9:54:32 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LLGBO2/include/manage_picture_content.php
r29484 r29808 70 70 $PictSizeWH[1] = $PictSizeWH[1] + $frame_border; 71 71 $frame_size = "\n".'<div id="llgbo0" class="llgbo" style="border:0 ;width:'.$PictSizeWH[0].'px; height:'.$PictSizeWH[1].'px;">'; 72 72 $frame_title = ""; 73 73 if ($conf['LLGBO2']['titleframe']) { 74 $frame_title = "\n".'<!-- Begin LLGBO -->'."\n".'<span id="llgboh2" style ="background:transparent;z-index:3;color:'.$conf['LLGBO2']['FR-titlecolor'].'">' .$element_info['name'].'</span>';74 $frame_title = "\n".'<!-- Begin LLGBO -->'."\n".'<span id="llgboh2" style ="background:transparent;z-index:3;color:'.$conf['LLGBO2']['FR-titlecolor'].'">'; 75 75 } 76 76 77 77 $template->append('llgbo', array( 78 'FRAME_TITLE' => $frame_title, 78 'FRAME_TITLE1' => $frame_title, 79 'FRAME_TITLE3' => '</span>', 79 80 'FRAME_SIZE' => $frame_size , 80 81 'FRAME_BEGIN' => $frame_begin, … … 115 116 // -------------------------------------- 116 117 $patern = '/'.'<img(.*)id="theMainImage"(.*)>'.'/'; 117 $replacement = $replacement.'{ $llgbo.FRAME_TITLE}'.'{$llgbo.FRAME_SIZE}'.'{$llgbo.FRAME_BEGIN}'."\n".'<img $1 id="theMainImage" $2>'.'{$llgbo.FRAME_END}';118 $replacement = $replacement.'{if !empty($llgbo.FRAME_TITLE1)}{$llgbo.FRAME_TITLE1}{$current.TITLE} {$llgbo.FRAME_TITLE3}{/if}{$llgbo.FRAME_SIZE}{$llgbo.FRAME_BEGIN}'."\n".'<img $1 id="theMainImage" $2>'.'{$llgbo.FRAME_END}'; 118 119 $content = preg_replace($patern, $replacement, $content); 119 120 return $content;
Note: See TracChangeset
for help on using the changeset viewer.