Thread: [Phpslash-commit] CVS: phpslash-ft/public_html about.php3,1.14,1.15
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2002-02-21 00:13:08
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv29211/phpslash-ft/public_html Modified Files: about.php3 Log Message: about page displays blocks Index: about.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/about.php3,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** about.php3 3 Feb 2002 22:09:12 -0000 1.14 --- about.php3 21 Feb 2002 00:13:04 -0000 1.15 *************** *** 1,16 **** <?php - /* $Id$ */ - $pagetitle="About"; require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); ! $xsiteobject = "About Page"; #Defines The META TAG Page Type ! // TODO: nh asks: Shouldn't this be slashhead() and slashfoot()? ! $header = getHeader($pagetitle,$xsiteobject); ! $footer = getFooter(); $about_templ = new Template($_PSL['templatedir']); --- 1,39 ---- <?php /* $Id$ */ + $pagetitle = "About"; // The name to be displayed in the header + $xsiteobject = "About Page"; // This Defines The META Tag Object Type require("config.php3"); + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); ! if(!empty($HTTP_GET_VARS['login'])) { ! $auth->login_if($HTTP_GET_VARS['login']); ! } ! // Objects ! $block = new Block_i; ! ! // Start of Page ! ! /* parse cmd line variables into array */ ! while ( list($key, $val) = each($HTTP_GET_VARS )) { ! $ary[$key] = $val; ! } ! /* defaults for main "index" page */ ! if ((!$section) AND (!$section_id)){ ! $section = $_PSL['site_homesection']; ! if(!$section) { ! $section = "Home"; ! } ! $ary['section'] = $section; ! } else { ! $pagetitle .= " - $section"; ! } ! ! $_PSL['metatags']['object'] = $xsiteobject; ! ! slashhead($pagetitle,$_PSL['metatags']); $about_templ = new Template($_PSL['templatedir']); *************** *** 18,29 **** 'main' => "about.tpl" )); ! $about_templ->set_var(array( ! 'HEADER' => $header, ! 'FOOTER' => $footer )); ! $about_templ->parse(OUT,"main"); ! $about_templ->p(OUT); page_close(); ?> --- 41,86 ---- 'main' => "about.tpl" )); ! ! $allstories = $about_templ->parse(OUT,"main"); ! $leftblocks = $block->getBlocks($ary, "left"); ! $centerblocks = $block->getBlocks($ary, "center"); ! $rightblocks = $block->getBlocks($ary, "right"); ! ! if (empty($leftblocks)) { ! if (empty($rightblocks)) { ! // $centerblocks = $block->getBlocks($ary); ! // $tplfile = "index1col.tpl"; ! // default to 2 column for transparent upgrade ! $rightblocks = $block->getBlocks($ary); ! $tplfile = "index2colright.tpl"; ! } else { ! $tplfile = "index2colright.tpl"; ! } ! } elseif (empty($rightblocks)) { ! $tplfile = "index2colleft.tpl"; ! } else { ! $tplfile = "index3col.tpl"; ! } ! ! $template = new Template($_PSL['templatedir']); ! $template->debug = 0; ! $template->set_file(array( ! 'index' => $tplfile //"index3col.tpl" ! )); ! ! $template->set_var(array( ! 'ROOTDIR' => $_PSL['rooturl'], ! 'IMAGEDIR' => $_PSL['imageurl'], ! 'BREADCRUMB' => '', ! 'STORY_COLUMN' => $allstories, ! 'LEFT_BLOCK_COLUMN' => $leftblocks, ! 'CENTER_BLOCK_COLUMN' => $centerblocks, ! 'RIGHT_BLOCK_COLUMN' => $rightblocks )); ! $template->parse('OUT',"index"); ! $template->p('OUT'); + slashfoot(); page_close(); ?> |