Ignore:
Timestamp:
Jul 8, 2014, 1:55:14 PM (10 years ago)
Author:
gbo
Message:

Only 1 setting in database

Location:
extensions/LLGBO2/include
Files:
2 edited

Legend:

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

    r28990 r29005  
    44//----------------------------------------------------
    55if (!isset($page_name)) {$page_name ='index';}
    6 if ($CF_LLGBO['manageheader'])
     6if ($conf['LLGBO2']['manageheader'])
    77        {$no_header = false;
    88        $input= $_SERVER['PHP_SELF'];
     
    1313         
    1414        if  ( strpos( $input,'index') == true )
    15         {       foreach($CF_LLGBO['HD-dispheader'] as $cle  => $valeur)
     15        {       foreach($conf['LLGBO2']['HD-dispheader'] as $cle  => $valeur)
    1616                        { if ($valeur  == false) {
    1717                                        if($cle == 'home' ) {$cle = 'index.php';}
     
    2323         else
    2424        {       
    25                  if (isset($CF_LLGBO['HD-dispheader'][$page_name]) and ($CF_LLGBO['HD-dispheader'][$page_name] == false) ) {$no_header = true;}
     25                 if (isset($conf['LLGBO2']['HD-dispheader'][$page_name]) and ($conf['LLGBO2']['HD-dispheader'][$page_name] == false) ) {$no_header = true;}
    2626        } 
    2727         if ($no_header == true)
  • extensions/LLGBO2/include/manage_picture_content.php

    r28990 r29005  
    66/*      LLGBO Manage Picture_content                       */
    77//----------------------------------------------------
    8         global $template,$conf,$CF_LLGBO;       
     8        global $template,$conf;
    99         
    1010        $template->assign('LLGBO_PATH',LLGBO_PATH);
    1111        include_once(LLGBO_PATH.'/css/sweettitles.css.php');   
    12         $CF_LLGBO['rendercontent']  = false;
     12        $conf['LLGBO2']['rendercontent']  = false;
    1313        //-----------------------------------------------------------------
    1414        // -----------  add CSS tooltip in footer --------------------
    1515        //-----------------------------------------------------------------
    16          If (($CF_LLGBO['tooltipdisp']  )  or  ($CF_LLGBO['exifunderbt']))   
     16         If (($conf['LLGBO2']['tooltipdisp']  )  or  ($conf['LLGBO2']['exifunderbt']))   
    1717                {       $template->append('footer_elements',$sweetcss);
    1818                        $template->append('llgbo', array( 'TOOLTIP' => 'ok' ), true);}
     
    2323         if (!in_array($ext, $conf['picture_ext']))
    2424                                {return $content;}
    25                 $CF_LLGBO['rendercontent'] = true;      // $content ok for update
     25                $conf['LLGBO2']['rendercontent'] = true;        // $content ok for update
    2626               
    2727        //-----------------------------------------------------------------
     
    3232                 $autosize_in_place = $template->get_template_vars('is_automatic_size');
    3333                 $autosize_selected = $template->get_template_vars('automatic_size');
    34                  unset ($CF_LLGBO['PictSizeWH'] );
     34                 unset ($conf['LLGBO2']['PictSizeWH'] );
    3535                        if ((isset($autosize_in_place))  and  (isset($autosize_selected)) )
    36                                 {$CF_LLGBO['PictSizeWH'] =  $element_info['derivatives'][$autosize_selected]->get_size();
     36                                {$conf['LLGBO2']['PictSizeWH'] =  $element_info['derivatives'][$autosize_selected]->get_size();
    3737                                          }
    3838                else
     
    4444//----------------------------------------------------
    4545         
    46         If ($CF_LLGBO['tooltipdisp'] )//   tooltip 
     46        If ($conf['LLGBO2']['tooltipdisp'] )//   tooltip 
    4747        {       $prev = $template->get_template_vars('previous');
    4848                $next  = $template->get_template_vars('next');
     
    5353        }       
    5454       
    55         If (($CF_LLGBO['frame'])   ) //Frame
     55        If (($conf['LLGBO2']['frame'])   ) //Frame
    5656        {       $template->set_prefilter('default_content', 'LLGBO_prefilter_Content_Frame');
    5757        //----------------------------------------------------   
     
    6868                           {$themestyle = 'default';}
    6969                           $frame_end = '';
    70                          foreach ($CF_LLGBO['FR-sizes'] as  $value)
     70                         foreach ($conf['LLGBO2']['FR-sizes'] as  $value)
    7171                                {if ( $value > 0)       // boder value > 0     
    7272                                        {       $frame_end = $frame_end.'</div>';}
Note: See TracChangeset for help on using the changeset viewer.