diff --git a/misuzu.php b/misuzu.php index 43e1b3f..aaf1fcf 100644 --- a/misuzu.php +++ b/misuzu.php @@ -153,6 +153,7 @@ Template::set('globals', [ 'site_description' => $cfg->getValue('site.desc', IConfig::T_STR), 'site_url' => $cfg->getValue('site.url', IConfig::T_STR), 'site_twitter' => $cfg->getValue('social.twitter', IConfig::T_STR), + 'site_chat' => $cfg->getValue('sockChat.chatPath.normal', IConfig::T_STR), ]); Template::addPath(MSZ_TEMPLATES); diff --git a/templates/master.twig b/templates/master.twig index e0be252..2b0872b 100644 --- a/templates/master.twig +++ b/templates/master.twig @@ -50,7 +50,8 @@ }, { 'title': 'Twitter', - 'url': 'https://twitter.com/flashiinet', + 'url': 'https://twitter.com/' ~ globals.site_twitter|default(''), + 'display': globals.site_twitter is defined and globals.site_twitter is not empty, }, ], }, @@ -71,7 +72,8 @@ }, { 'title': 'Chat', - 'url': 'https://chat.flashii.net', + 'url': globals.site_chat|default(''), + 'display': globals.site_chat is defined and globals.site_chat is not empty, }, ] %}