source: extensions/LLGBO2/include/manage_picture_content.php @ 16754

Last change on this file since 16754 was 16754, checked in by gbo, 12 years ago

2.4F improve frame management first size and JS resize

File size: 1.9 KB
Line 
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$slideshow = $template->get_template_vars('U_SLIDESHOW');
7//print_r($next);
8$swtimg =   '||<img src=';     
9//----------------------------------------------------   
10//-------      Tooltip                   -------------   
11//----------------------------------------------------   
12If ($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        }       
17If (($conf['LLGBO_SETTINGS'] [0] == 'true') and (!isset($slideshow))  ) //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?>
Note: See TracBrowser for help on using the repository browser.