<?php
//Меню аккаунта
function now_url($url) {
$now_r = parse_url($_SERVER['REQUEST_URI']);
$now_p = $now_r['path'];
if ($url == '/account/' && $now_p == '/account/') { return ' class="active"'; }
if (stristr($now_p, $url) && ($url != '/account/')) {
return ' class="active"';
} else { return false; }
}
?>

<ul class="nav nav-pills nav-justified">
<li<?php echo now_url('/account/'); ?>><a href="/account"><i class="icon-profile"></i>Аккаунт</a></li>
<li<?php echo now_url('/account/cashadd'); echo now_url('/account/cashout'); echo now_url('/account/operations'); ?>><a href="/account/cashadd"><i class="icon-coin"></i>Средства</a></li>
<li<?php echo now_url('/account/notifications'); ?>><a href="/account/notifications"><i class="icon-info"></i>Уведомления</a></li>
<li<?php echo now_url('/account/messages'); ?>><a href="/account/messages"><i class="icon-bubbles4"></i>Сообщения</a></li>
<li<?php echo now_url('/account/support'); ?>><a href="/account/support"><i class="icon-call-incoming"></i>Поддержка</a></li>
<li<?php echo now_url('/account/referals'); ?>><a href="/account/referals"><i class="icon-users2"></i>Рефералы</a></li>
<li<?php echo now_url('/account/rating'); ?>><a href="/account/rating"><i class="icon-rating3"></i>Рейтинг</a></li>
</ul>
<br />