
<?php
$class = $this->uri->segment(1);
$method = $this->uri->segment(2);
?>

<nav class="navbar navbar-inverse" role="navigation">
	<div class="container site-container">

		<ul class="nav navbar-nav">
			<li<?php if ($class == 'posts') {echo ' class="active"';} ?>>
				<?php echo anchor(base_url().'posts/', 'Posts'); ?>
			</li>
			<li>
				<?php echo anchor(base_url().'admin/', 'Admin section'); ?>
			</li>
		</ul>

	</div>
</nav>

