Theme Migration to HumHub 0.20 ¶
As you know, HumHub based on the Yii Framework. In the new 0.20 release, the Framework was changed from Yii 1.1 to Yii 2. With this change the style.css in webroot/css/ was removed and from now all styles are merged in the theme.css under webroot/themes/humhub/css/.
Follow this steps to migrate an older theme ot 0.20:
Get the latest style.css here and copy it to webroot/themes/yourtheme-css/
Open the file
`head.php` in /themes/yourtheme-views/layouts/
Remove this code snippet:
<?php $ver = HVersion::VERSION; ?>
To load the old style.css, insert this code to the first line:
<link href="<?php echo $this->theme->getBaseUrl() . '/css/style.css'; ?>" rel="stylesheet">
Change the structure of all reference calls for your additional theme files from
`<link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/theme.css?ver=<?php echo $ver; ?>" rel="stylesheet">
<link href="<?php echo $this->theme->getBaseUrl() . '/css/theme.css'; ?>" rel="stylesheet">`.
Check if everything works well, and fix optical issues at your theme file, if necessery.