<?php

/*

# ------------------------------------------------------------------------

# JA T3v2 Plugin - Template framework for Joomla 1.5

# ------------------------------------------------------------------------

# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.

# @license - GNU/GPL V2, http://www.gnu.org/licenses/gpl2.html. For details 

# on licensing, Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.

# Author: JoomlArt.com

# Websites: http://www.joomlart.com - http://www.joomlancers.com.

# ------------------------------------------------------------------------

*/

?>

<?php

$positions = preg_split ('/,/', T3Common::node_data($block));

$parent = 'middle';

$style = $this->getBlockStyle ($block, $parent);

if (!$this->countModules (T3Common::node_data($block))) return;

?>

<?php $this->genMiddleBlockBegin ($block) ?>



<?php foreach ($positions as $position) : 

	if ($this->countModules($position)) : 

	?>

		<jdoc:include type="modules" name="<?php echo $position ?>" style="<?php echo $style ?>" />		

<?php endif; 

endforeach ?>



<?php $this->genMiddleBlockEnd ($block) ?>	 