Ignore:
Timestamp:
May 17, 2012, 8:38:07 PM (12 years ago)
Author:
gbo
Message:

2.4.B Compliance with Theme Stripped and plugin Piwishak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LLGBO2/include/manage_picture_content.php

    r14421 r15076  
    22$prev = $template->get_template_vars('previous');
    33$next  = $template->get_template_vars('next');
     4$current  = $template->get_template_vars('current');
     5$themeconf = $template->get_template_vars('themeconf');
    46//print_r($next);
    57$swtimg =   '||<img src=';     
     
    810//----------------------------------------------------   
    911If ($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);}
     12if (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);}
    1214        $template->append('llgbo', array('tooltipCSS'  => $sweetcss), true);
    1315        }       
     
    1719//----------------------------------------------------   
    1820If (($conf['LLGBO_SETTINGS'] [0] == 'true') ) //Frame
    19         {       $template->set_prefilter('default_content', 'LLGBO_prefilter_Frame');
     21        {       
     22        $template->set_prefilter('default_content', 'LLGBO_prefilter_Frame');
    2023        // selected picture Size                       
    2124        $deriv_type = pwg_get_session_var('picture_deriv', IMG_LARGE);
     
    3639                                $lastbrdpx = $bordpx;}
    3740                }
     41        $csstheme = 'default';
     42        $themeconf = $template->get_template_vars('themeconf');
     43         if (( strpos(strtoupper($themeconf['name']) , 'STRIPPED') === 0) )
     44                                                {  $csstheme = 'stripped';}
    3845                $frame_width = $frame_width + ( 2* $lastbrdpx);                         
    3946                $frame_height = $frame_height + ( 2* $lastbrdpx);
     
    4350                         'FRAME_BEGIN' => $frame_begin,
    4451                          'FRAME_END' => $frame_end,
    45                           'GBOCSS' => $gbolook ), true);
     52                          'GBOCSS' => LLGBO_PATH."css/llgbo_content_".$csstheme.".css" ), true);
    4653
    4754                         
    48         If ($conf['LLGBO_SETTINGS'] [5]  == 'true' )  /* title on frame */
     55        If (($conf['LLGBO_SETTINGS'] [5]  == 'true' )  /* title on frame */
     56        and ($conf['LLGBO_SETTINGS'] [0]  == 'true' ) )// frame
    4957                 {  $template->append('llgbo', array(
    50                                  'TITLE_FRAME_COLOR' => $conf['LLGBO_FRAME'][0],), true);
     58                                 'TITLE_FRAME_COLOR' => $conf['LLGBO_FRAME'][0],
     59                                 'TITLE_FRAME' => $current['name'] ), true);
    5160                        $template->assign('SHOW_PICTURE_NAME_ON_TITLE' , false);
     61       
    5262                        }
    5363} // end frame
Note: See TracChangeset for help on using the changeset viewer.