<?php
/**
* @version 1.0.0
* @package Anahita SocialEngine
* @copyright Copyright (C) 2008 - 2010 rmd Studio Inc. and Peerglobe Technology Inc. All rights reserved.
* @license GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
* @link http://www.anahitapolis.com
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
$tmpl_name = KFactory::get('lib.joomla.application')->getTemplate();
$templatePath = $this->baseurl.'/templates/'.$tmpl_name;
$component_width = '100%';
if(($this->countModules('component.left') || $this->countModules('left')) && ($this->countModules('component.right') || $this->countModules('right')) )
{
$component_width = '480px';
}
else if($this->countModules('component.left') || $this->countModules('left'))
{
$component_width = '808px';
}
else if($this->countModules('component.right') || $this->countModules('right'))
{
$component_width = '648px';
}
else
{
$component_width = '978px';
}
?>
<!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; ?>" >
<head>
<link rel="stylesheet" href="<?php print $templatePath ?>/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php print $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php print $templatePath ?>/css/main.css" type="text/css" />
<link rel="stylesheet" href="<?php print $templatePath ?>/css/menu.css" type="text/css" />
<script type="text/javascript" src="<?php print $this->baseurl ?>/media/plg_socialengine/uikit/mootools.js"></script>
<?php if ( $this->params->get('mootools_legacy', false) ) : ?>
<script type="text/javascript" src="<?php print $this->baseurl ?>/media/plg_socialengine/uikit/mootools_compat.js"></script>
<?php endif?>
<script type="text/javascript" src="<?php print $this->baseurl ?>/media/plg_socialengine/uikit/anahita.js"></script>
<jdoc:include type="head" />
<script src="<?php print $templatePath ?>/js/menu.js" ></script>
<script>Clientcide.setAssetLocation("<?php print $this->baseurl ?>/media/plg_socialengine/clientcide/");</script>
<script language="JavaScript">
window.addEvent('domready',function(){
try {
document.getElement('.menu').id = 'nav';
var myMenu = new MenuMatic();
}catch(e) {
}
});
</script>
<!--[if IE]>
<script src="<?php print $templatePath ?>/js/round.js" ></script>
<script>
DD_roundies.addRule('.rounded, .an-se-rounded, #nav a', '4px');
</script>
<style>
.button { padding:0 15px; margin:0 4px }
</style>
<![endif]-->
</head>
<body>
<div id="wrapper" class="wrapper">
<?php if($this->countModules('top')) :?>
<div id="top">
<jdoc:include type="modules" name="top" />
<div class="clr"></div>
</div>
<?php endif ;?>
<div id="header">
<div id="logo">
<img src="<?php print $templatePath ?>/images/logo.png" alt="Anahita Social Engine Logo" />
</div>
<?php if( $this->countModules('login')) :?>
<div id="login" class="rounded">
<jdoc:include type="modules" name="login" />
</div>
<?php endif; ?>
<div class="clr"></div>
</div>
<?php if( $this->countModules('breadcrumb')) :?>
<div id="breadcrumb" class="rounded">
<jdoc:include type="modules" name="breadcrumb" style="xhtml" />
</div>
<?php endif; ?>
<div id="main" class="rounded">
<?php if ( $this->countModules('component.left') || $this->countModules('left')) : ?>
<div id="left">
<jdoc:include type="modules" name="component.left"/>
<jdoc:include type="modules" name="left" style="rounded" />
</div>
<?php endif; ?>
<?php if( ($this->countModules('component.right') || $this->countModules('right')) ) :?>
<div id="right">
<jdoc:include type="modules" name="component.right"/>
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
<div id="component" style="width: <?php print $component_width ?>" >
<?php if($this->countModules('component.header')): ?>
<div id="component-header">
<jdoc:include type="modules" name="component.header" />
</div>
<?php endif ?>
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
<div class="clr"></div>
</div>
<div id="footer">
<jdoc:include type="modules" name="footer" />
</div>
</div>
</body>
</html>