- if ($conf->exists('pagetitle')) {
- $this->tpl->assign('pagetitle', $conf->get('pagetitle'));
- }
- $this->tpl->assign('shaarlititle', $conf->get('title', 'Shaarli'));
- $this->tpl->assign('openshaarli', $conf->get('config.OPEN_SHAARLI', false));
- $this->tpl->assign('showatom', $conf->get('config.SHOW_ATOM', false));
- $this->tpl->assign('hide_timestamps', $conf->get('config.HIDE_TIMESTAMPS', false));
- // FIXME! Globals
- if (!empty($GLOBALS['plugin_errors'])) {
- $this->tpl->assign('plugin_errors', $GLOBALS['plugin_errors']);
+ $this->tpl->assign('shaarlititle', $this->conf->get('general.title', 'Shaarli'));
+ $this->tpl->assign('openshaarli', $this->conf->get('security.open_shaarli', false));
+ $this->tpl->assign('showatom', $this->conf->get('feed.show_atom', true));
+ $this->tpl->assign('feed_type', $this->conf->get('feed.show_atom', true) !== false ? 'atom' : 'rss');
+ $this->tpl->assign('hide_timestamps', $this->conf->get('privacy.hide_timestamps', false));
+ $this->tpl->assign('token', $this->token);
+
+ if ($this->linkDB !== null) {
+ $this->tpl->assign('tags', $this->linkDB->linksCountPerTag());