source: extensions/LLGBO2/include/manage_header.php @ 31795

Last change on this file since 31795 was 29049, checked in by gbo, 10 years ago

[llgbo2-27A] compatible with modus and more theme

File size: 1.1 KB
Line 
1<?php
2//----------------------------------------------------   
3/*      LLGBO Manage header                                        */
4//----------------------------------------------------
5global $template,$conf;
6$page_name = script_basename();
7if (!isset($page_name)) {$page_name ='index';}
8if ($conf['LLGBO2']['manageheader']) 
9        {$no_header = false;
10                $input= $_SERVER['PHP_SELF'];
11                if ($conf['question_mark_in_urls'] == true)
12                        {       foreach($_GET as $cle  =>$valeur) 
13                                {$input= $input.$cle ;}
14                } 
15                 
16                if  ( strpos( $input,'index') == true )
17                {       foreach($conf['LLGBO2']['HD-dispheader'] as $cle  => $valeur) 
18                                { if ($valeur  == false) {
19                                                if($cle == 'home' ) {$cle = 'index.php';} 
20                                                if (strpos( $input, $cle) == true ) 
21                                                        {$no_header = true;}
22                                                }
23                                }
24                } 
25                 else 
26                {       if (isset($conf['LLGBO2']['HD-dispheader'][$page_name]) and ($conf['LLGBO2']['HD-dispheader'][$page_name] == false) ) {$no_header = true;} 
27                } 
28        if ($no_header == true)
29                {$template->append('head_elements','<!-- llgbo no header-->'."\n".'<STYLE type="text/css">'."\n".'#theHeader{display: none}'."\n".'header_msgs {position:static}'."\n".'</STYLE>');}
30}       
31?>
Note: See TracBrowser for help on using the repository browser.