context->subTitle)): ?>
context->title, $this->context->subTitle) ?>
context->title ?>
context->stylesheets) as $name): ?>
context->scripts) as $name): ?>
context->user, Privilege::ListPosts)) $nav []= ['Browse', \Chibi\UrlHelper::route('post', 'list')]; if (PrivilegesHelper::confirm($this->context->user, Privilege::ListComments)) $nav []= ['Comments', \Chibi\UrlHelper::route('comment', 'list')]; if (PrivilegesHelper::confirm($this->context->user, Privilege::ListPosts)) $nav []= ['Favorites', \Chibi\UrlHelper::route('post', 'favorites')]; if (PrivilegesHelper::confirm($this->context->user, Privilege::ListTags)) $nav []= ['Tags', \Chibi\UrlHelper::route('tag', 'list')]; if (PrivilegesHelper::confirm($this->context->user, Privilege::UploadPost)) $nav []= ['Upload', \Chibi\UrlHelper::route('post', 'upload')]; if (PrivilegesHelper::confirm($this->context->user, Privilege::ListUsers)) $nav []= ['Users', \Chibi\UrlHelper::route('user', 'list')]; if (!$this->context->loggedIn) { $nav []= ['Log in', \Chibi\UrlHelper::route('auth', 'login')]; $nav []= ['Register', \Chibi\UrlHelper::route('auth', 'register')]; } else { $nav []= ['My account', \Chibi\UrlHelper::route('user', 'show', ['name' => $this->context->user->name])]; $nav []= ['Log out', \Chibi\UrlHelper::route('auth', 'logout')]; } $nav []= ['Help', \Chibi\UrlHelper::route('index', 'help')]; foreach ($nav as $navItem) { list ($text, $link) = $navItem; echo '
'; echo '
' . $text . '
'; echo '
'; } ?>
renderView() ?>