All pastes #2050270 Raw Edit

Stuff

public text v1 · immutable
#2050270 ·published 2011-04-24 23:43 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<?php
defined( '_JEXEC' ) or die;
$document =&JFactory::getDocument();
$params = $templateParameters->group->$layout; // We got $layout from the index.php

// Start of HEAD
?>
<head>
<?php
// Include the CSS files using the groups as defined in the layout parameters
echo xtcCSS($params->xtcstyle,$params->xtcgrid,$params->xtctypo);

// Get Xtc Menu library
$document->addScript($xtc->templateUrl.'js/xtcMenu.js'); 
$document->addScriptDeclaration("window.addEvent('load', function(){ xtcMenu(null, 'menu', 250,'h', new Fx.Transition(Fx.Transitions.Quint.easeInOut), 80, false, false); });");

// Include the Menu files, if any
//echo xtcMenu($params->xtcmenu);

?>
<jdoc:include type="head" />
<!--[if IE 7]><link rel="stylesheet" type="text/css" href="<?php echo $xtc->templateUrl; ?>css/ie7.css" /><![endif]-->
<!--[if IE 8]><link rel="stylesheet" type="text/css" href="<?php echo $xtc->templateUrl; ?>css/ie8.css" /><![endif]-->
</head>
<?php
// End of HEAD


// This layout uses custom stuff, so we need to get some extra vars
$user =&JFactory::getUser();

// For the columns, we want to know the wrapper width of the layout grid in use, so we pull its group to peek at its parameters.
$grid = $params->xtcgrid;	// Because the grid is a parameter in the layout config.xml
$gridParams = $templateParameters->group->$grid;	// Parameters for the selected grid

// Now with the HTML...

// Start of BODY
?>
<body>
	<?php if ( $document->getBuffer( 'message') ) { ?>
		<div id="xtcmessage">
			<jdoc:include type="message" />
		</div>
	<?php } ?>
	<div class="wrapper clearfix">
		<?php
			// Draw the regions in the specified order
			$regioncfg = $gridParams->regioncfg;
			foreach (explode(",",$regioncfg) as $region) {
				if ($region == '') continue;
				require 'layout_includes'.DS.'region'.$region.'.php';
			}
		?>
	</div>
</body>
<?php
// End of BODY
?>