Site Name and Version 8
<?php echo Config::get('concrete.site'); ?>
Does anyone know of the current way to echo the site name?
$mh->addParameter('site', tc('SiteName', $config->get('concrete.site')));
It's not Config::get anymore. Try this:
$site = Core::make('site')->getSite(); $config = $site->getConfigRepository(); echo $config->get('site');
If that didn't work, I will paste the correct code tomorrow. I'm not on my desktop, so quite limited.
I think ramonleenders' code would work like this
The old code is going to be a big problem, because many of the themes use this, which will break a lot of sites that are using it, if they upgrade to 8 and newer.
<?php echo Config::get('site.sites.default.name'); ?>
Quick workaround to cover 5.7 and 5.8. Needs a bit of work to target versions (Shows two links in source code).