[14421] | 1 | <?php |
---|
| 2 | $prev = $template->get_template_vars('previous'); |
---|
| 3 | $next = $template->get_template_vars('next'); |
---|
[15076] | 4 | $current = $template->get_template_vars('current'); |
---|
| 5 | $themeconf = $template->get_template_vars('themeconf'); |
---|
[14421] | 6 | //print_r($next); |
---|
| 7 | $swtimg = '||<img src='; |
---|
| 8 | //---------------------------------------------------- |
---|
| 9 | //------- Tooltip ------------- |
---|
| 10 | //---------------------------------------------------- |
---|
| 11 | If ($conf['LLGBO_SETTINGS'][1] == 'true' )// tooltip |
---|
[15076] | 12 | { if (isset($prev)){$template->append('previous', array('TITLE' => $prev['TITLE'].$swtimg.$prev['THUMB_SRC'].'>'),TRUE);} |
---|
| 13 | if (isset($next)){$template->append('next', array('TITLE' => $next['TITLE'].$swtimg.$next['THUMB_SRC'].'>'),TRUE);} |
---|
[14421] | 14 | $template->append('llgbo', array('tooltipCSS' => $sweetcss), true); |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | //---------------------------------------------------- |
---|
| 18 | /* HTML frame */ |
---|
| 19 | //---------------------------------------------------- |
---|
| 20 | If (($conf['LLGBO_SETTINGS'] [0] == 'true') ) //Frame |
---|
[15076] | 21 | { |
---|
| 22 | $template->set_prefilter('default_content', 'LLGBO_prefilter_Frame'); |
---|
[14421] | 23 | // selected picture Size |
---|
| 24 | $deriv_type = pwg_get_session_var('picture_deriv', IMG_LARGE); |
---|
| 25 | $PictSizeWH = $element_info['derivatives'][$deriv_type]->get_size(); |
---|
| 26 | $frame_width = $PictSizeWH[0]; |
---|
| 27 | $frame_height = $PictSizeWH[1]; |
---|
| 28 | $lastbrdpx = 0; |
---|
| 29 | $frame_begin =''; |
---|
| 30 | $frame_end=''; |
---|
| 31 | for ($x = 1 ;$x < 32 ; $x =$x +2) |
---|
| 32 | { if ((isset($conf['LLGBO_FRAME'][$x+1])) and ($conf['LLGBO_FRAME'][$x+1] > 0)) // boder value > 0 |
---|
| 33 | { $bordpx= $conf['LLGBO_FRAME'][$x+1]; |
---|
| 34 | $frame_width = $frame_width + ( 2* $lastbrdpx); |
---|
| 35 | $frame_height = $frame_height + ( 2* $lastbrdpx); |
---|
| 36 | $bordcolor = $conf['LLGBO_FRAME'][$x]; |
---|
| 37 | $frame_begin = '<div id ="llgboframe'.$x.'" style="border:'.$bordpx.'px solid '.$bordcolor.';width:'.$frame_width.'px; height:'.$frame_height.'px;">'."\n".$frame_begin; |
---|
| 38 | $frame_end = $frame_end .'</div>'; |
---|
| 39 | $lastbrdpx = $bordpx;} |
---|
| 40 | } |
---|
[15076] | 41 | $csstheme = 'default'; |
---|
| 42 | $themeconf = $template->get_template_vars('themeconf'); |
---|
| 43 | if (( strpos(strtoupper($themeconf['name']) , 'STRIPPED') === 0) ) |
---|
| 44 | { $csstheme = 'stripped';} |
---|
[14421] | 45 | $frame_width = $frame_width + ( 2* $lastbrdpx); |
---|
| 46 | $frame_height = $frame_height + ( 2* $lastbrdpx); |
---|
| 47 | $frame_size = 'style="border:0 ;width:'.$frame_width.'px; height:'.$frame_height.'px;"'; |
---|
| 48 | $template->append('llgbo', array( |
---|
| 49 | 'FRAME_SIZE' => $frame_size, |
---|
| 50 | 'FRAME_BEGIN' => $frame_begin, |
---|
| 51 | 'FRAME_END' => $frame_end, |
---|
[15076] | 52 | 'GBOCSS' => LLGBO_PATH."css/llgbo_content_".$csstheme.".css" ), true); |
---|
[14421] | 53 | |
---|
| 54 | |
---|
[15076] | 55 | If (($conf['LLGBO_SETTINGS'] [5] == 'true' ) /* title on frame */ |
---|
| 56 | and ($conf['LLGBO_SETTINGS'] [0] == 'true' ) )// frame |
---|
[14421] | 57 | { $template->append('llgbo', array( |
---|
[15076] | 58 | 'TITLE_FRAME_COLOR' => $conf['LLGBO_FRAME'][0], |
---|
| 59 | 'TITLE_FRAME' => $current['name'] ), true); |
---|
[14421] | 60 | $template->assign('SHOW_PICTURE_NAME_ON_TITLE' , false); |
---|
[15076] | 61 | |
---|
[14421] | 62 | } |
---|
| 63 | } // end frame |
---|
| 64 | ?> |
---|