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