Example #1
0
Yii::app()->clientScript->registerScriptFile($baseThemeUrl . '/js/scrollto.js', CClientScript::POS_END);
$this->renderPartial('//layouts/_common');
?>
</head>

<body id="top">
<div id="fb-root"></div>

<?php 
if (isFree()) {
    $rightItems = array(array('label' => tc('Log out'), 'url' => $baseUrl . '/site/logout'));
} else {
    $rightItems = array(array('label' => tc('Language'), 'url' => '#', 'items' => Lang::getAdminMenuLangs()), array('label' => tc('Currency'), 'url' => '#', 'items' => Currency::getActiveCurrencyArray(4)), array('label' => tc('Log out'), 'url' => $baseUrl . '/site/logout'));
}
$this->widget('bootstrap.widgets.TbNavbar', array('fixed' => 'top', 'brand' => 'Raui', 'brandUrl' => $baseUrl . '/', 'collapse' => false, 'items' => array(array('class' => 'bootstrap.widgets.TbMenu', 'items' => array(array('label' => tc('Control panel'), 'url' => '#', 'active' => true), array('label' => tc('Menu'), 'url' => '#', 'items' => $this->infoPages)), 'encodeLabel' => false), array('class' => 'bootstrap.widgets.TbMenu', 'htmlOptions' => array('class' => 'pull-right'), 'items' => $rightItems))));
$countApartmentModeration = Apartment::getCountModeration();
$bageListings = $countApartmentModeration > 0 ? "&nbsp<span class=\"badge\">{$countApartmentModeration}</span>" : '';
$bagePayments = '';
if (issetModule('payment')) {
    $countPaymentWait = Payments::getCountWait();
    $bagePayments = $countPaymentWait > 0 ? "&nbsp<span class=\"badge\">{$countPaymentWait}</span>" : '';
}
$bageComments = '';
if (issetModule('comments')) {
    $countCommentPending = Comment::getCountPending();
    $bageComments = $countCommentPending > 0 ? "&nbsp<span class=\"badge\">{$countCommentPending}</span>" : '';
}
$bageComplain = '';
if (issetModule('apartmentsComplain')) {
    $countComplainPending = ApartmentsComplain::getCountPending();
    $bageComplain = $countComplainPending > 0 ? "&nbsp<span class=\"badge\">{$countComplainPending}</span>" : '';