1 | <?php |
---|
2 | $prev = $template->get_template_vars('previous'); |
---|
3 | $next = $template->get_template_vars('next'); |
---|
4 | $current = $template->get_template_vars('current'); |
---|
5 | $themeconf = $template->get_template_vars('themeconf'); |
---|
6 | |
---|
7 | //print_r($next); |
---|
8 | $swtimg = '||<img src='; |
---|
9 | //---------------------------------------------------- |
---|
10 | //------- Tooltip ------------- |
---|
11 | //---------------------------------------------------- |
---|
12 | If ($conf['LLGBO_SETTINGS'][1] == 'true' )// tooltip |
---|
13 | { if (isset($prev)){$template->append('previous', array('TITLE' => $prev['TITLE'].$swtimg.$prev['THUMB_SRC'].'>'),TRUE);} |
---|
14 | if (isset($next)){$template->append('next', array('TITLE' => $next['TITLE'].$swtimg.$next['THUMB_SRC'].'>'),TRUE);} |
---|
15 | $template->append('llgbo', array('tooltipCSS' => $sweetcss), true); |
---|
16 | } |
---|
17 | If (($conf['LLGBO_SETTINGS'] [0] == 'true') ) //Frame |
---|
18 | { |
---|
19 | $template->set_prefilter('default_content', 'LLGBO_prefilter_Content_Frame'); |
---|
20 | |
---|
21 | //---------------------------------------------------- |
---|
22 | /* HTML End frame on Picture_content */ |
---|
23 | //---------------------------------------------------- |
---|
24 | $frame_end=''; |
---|
25 | for ($x = 1 ;$x < 32 ; $x =$x +2) |
---|
26 | { if ((isset($conf['LLGBO_FRAME'][$x+1])) and ($conf['LLGBO_FRAME'][$x+1] > 0)) // boder value > 0 |
---|
27 | { $frame_end = $frame_end .'</div>'; } |
---|
28 | } |
---|
29 | $csstheme = 'default'; |
---|
30 | $themeconf = $template->get_template_vars('themeconf'); |
---|
31 | // dedicated Css by parent theme |
---|
32 | $themestyle = 'default'; |
---|
33 | if (isset ($themeconf['parent'])) |
---|
34 | { $themestyle = $themeconf['parent'];} |
---|
35 | If ($themestyle == 'default') |
---|
36 | { $themestyle = $themeconf['id'];} |
---|
37 | $template->append('llgbo', array( |
---|
38 | 'FRAME_END' => $frame_end, |
---|
39 | 'GBOCSS' => LLGBO_PATH."css/llgbo_content_".$themestyle.".css" ), true); |
---|
40 | |
---|
41 | } // end frame |
---|
42 | |
---|
43 | ?> |
---|