SOLVED What Is This Codes Function


Subject: What Is This Codes Function
HI

I was wondering if someone could tell me what this piece of code is for....I understand it is part of the cms but I was wondering what is its function...

it is in includes/page_header.php

Code: [Download] [Hide] [Select]
if( empty($gen_simple_header) && (!defined('HAS_DIED')) && (!defined('IN_LOGIN')) && ( ($cms_wide_blocks == true) || !empty($cms_page_id) ) && ($board_config['board_disable'] == false) )
{
$template->assign_block_vars('switch_importal', array(
'SPACER' => $images['spacer'],
)
);

$template->set_filenames(array('portal_header' => 'portal_page_header.tpl'));
cms_parse_blocks($cms_page_id, !empty($cms_page_id), $cms_wide_blocks, 'header');
$template->assign_var('PORTAL_HEADER', cms_assign_var_from_handle($template, 'portal_header'));

$template->set_filenames(array('portal_headerleft' => 'portal_page_headerleft.tpl'));
if (cms_parse_blocks($cms_page_id, !empty($cms_page_id), $cms_wide_blocks, 'headerleft'))
{
$template->assign_var('HEADER_WIDTH', $cms_config_vars['header_width']);
$template->assign_var('PORTAL_HEADERLEFT', cms_assign_var_from_handle($template, 'portal_headerleft'));
}

$template->set_filenames(array('portal_headercenter' => 'portal_page_headercenter.tpl'));
if (cms_parse_blocks($cms_page_id, !empty($cms_page_id), $cms_wide_blocks, 'headercenter'))
{
$template->assign_var('PORTAL_HEADERCENTER', cms_assign_var_from_handle($template, 'portal_headercenter'));
}


and this smal bit found in the same file

Code: [Download] [Hide] [Select]
$nav_cat_desc = make_cat_nav_tree($nav_key, $nav_pgm);



thanks for any help.

Subject: Re: What Is This Codes Function
I figured this out after some time so all is good..


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0854s (PHP: 19% SQL: 81%)
SQL queries: 10 - Debug Off - GZIP Enabled