```php switch ($this->user->group) { case 'administrator': _e('管理员'); break; case 'editor': _e('编辑'); break; case 'contributor': _e('贡献者'); break; case 'subscriber': ...
制作typecho主题时,有时候需要判断是否是首页,然后显示相对应的内容 <?php if($this->is('index')): ?> //首页 <?php else: ?> //不是首页 <?php endif; ?>