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