<!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="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta name="language" content="en"/>

	<link rel="icon" href="<?php echo Yii::app()->request->baseUrl; ?>/favicon.ico" type="image/x-icon"/>
	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css"
	      media="screen, projection"/>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css"
	      media="print"/>
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css"
	      media="screen, projection"/>
	<![endif]-->

	<title><?php echo CHtml::encode($this->pageTitle);?></title>
</head>

<body>
<div class="container" id="page">
	<?php $this->widget('booster.widgets.TbNavbar', array(
	'type' => 'inverse', // null or 'inverse'
	'brand' => '<img src="' . Yii::app()->baseUrl . '/images/logo.gif" height="30px" /> Indonesian-Atheists.org',
	'brandUrl' => '/',
	'collapse' => true, // requires bootstrap-responsive.css
    'fluid' => true,
	'items' => array(
		array(
			'class' => 'booster.widgets.TbMenu',//'application.components.YiiSmartMenu',
            'htmlOptions' => array('class' => 'nav navbar-nav navbar-right'),
			'items' => array(
                array('label' => 'Navigation', 'url' => '#'),
                array('label' => 'Member Area', 'url' => '/user'),
                array('url'=>Yii::app()->getModule('user')->logoutUrl, 'label'=>Yii::app()->getModule('user')->t("Logout").' ('.Yii::app()->user->name.')', 'visible'=>!Yii::app()->user->isGuest)
            ),
		),
		//'<form class="navbar-search pull-left" action=""><input type="text" class="search-query span2" placeholder="Search"></form>',
		/*
        array(
			'class' => 'bootstrap.widgets.TbMenu',
			'htmlOptions' => array('class' => 'pull-right'),
			'items' => array(
				array('label' => 'Link', 'url' => '#'),
				'---',
				array('label' => 'Dropdown', 'url' => '#', 'items' => array(
					array('label' => 'Action', 'url' => '#'),
					array('label' => 'Another action', 'url' => '#'),
					array('label' => 'Something else here', 'url' => '#'),
					'---',
					array('label' => 'Separated link', 'url' => '#'),
				)),
			),
		),
		*/
	),
)); ?>
	<!-- mainmenu -->

	<div class="container" style="margin-top:80px">
		<?php if (isset($this->breadcrumbs)): ?>
			<?php $this->widget('booster.widgets.TbBreadcrumbs', array(
			'links' => $this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
		<?php endif?>

		<?php echo $content; ?>
		<hr/>
		<div id="footer">
			Copyright &copy; <?php echo date('Y'); ?>, Indonesian Atheists
			<?php //echo Yii::powered(); ?>
            <div class="pull-right">
                <?php
                $this->widget(
                    'booster.widgets.TbMenu',
                    array(
                        'type' => 'pills',
                        'items' => array(
                            array(
                                'label' => 'IA Facebook',
                                'icon' => 'fa fa-facebook',
                                'url' => 'https://www.facebook.com/groups/indonesianatheists/',
                                'linkOptions' => array(
                                    'target' => '_blank'
                                )
                            ),
                            array(
                                'label' => 'IA Youtube',
                                'icon' => 'fa fa-youtube-play',
                                'url' => 'http://www.youtube.com/IndonesianAtheists',
                                'linkOptions' => array(
                                    'target' => '_blank'
                                )
                            ),
                            array(
                                'label' => 'IA Twitter',
                                'icon' => 'fa fa-twitter',
                                'url' => 'https://twitter.com/indoatheists',
                                'linkOptions' => array(
                                    'target' => '_blank'
                                )
                            ),
                            array(
                                'label' => 'ABAM Facebook',
                                'icon' => 'fa fa-facebook',
                                'url' => 'https://www.facebook.com/ateis.menjawab2',
                                'linkOptions' => array(
                                    'target' => '_blank'
                                )
                            ),
                        )
                    )
                );
                ?>
            </div>

		</div>

		<!-- footer -->
	</div>
</div>
<!-- page -->
</body>
</html>
