mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 13:51:42 +01:00
Show language chooser for guest on the sidebar footer (#7384)
* Show language chooser for guest on the sidebar footer * Add language chooser to main footer navigation * Remove static/js/humhub-app.js.tmp that was added by error --------- Co-authored-by: Marc Farré <contact@marc.fun>
This commit is contained in:
parent
056e0d4654
commit
c2737c384c
@ -6,6 +6,7 @@ HumHub Changelog
|
||||
- Fix #7377: Configured Redis cache key prefix was overwritten by the default value
|
||||
- Fix #7375: Use default language for email invitation and show language chooser on registration form
|
||||
- Enh #7383: Improve SelfTest for Base URL
|
||||
- Enh #5426: Show language chooser for guest on the sidebar footer
|
||||
|
||||
1.17.0 (January 13, 2025)
|
||||
-------------------------
|
||||
|
@ -32,6 +32,14 @@ use yii\base\Widget;
|
||||
*/
|
||||
class LanguageChooser extends Widget
|
||||
{
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function beforeRun()
|
||||
{
|
||||
return parent::beforeRun() && Yii::$app->user->isGuest;
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays / Run the Widget
|
||||
*/
|
||||
|
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
use humhub\modules\ui\menu\MenuLink;
|
||||
use humhub\widgets\LanguageChooser;
|
||||
use humhub\widgets\PoweredBy;
|
||||
use yii\helpers\Html;
|
||||
|
||||
@ -28,7 +29,9 @@ use yii\helpers\Html;
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?= PoweredBy::widget(); ?>
|
||||
<?= PoweredBy::widget() ?>
|
||||
|
||||
<?= LanguageChooser::widget() ?>
|
||||
</small>
|
||||
</div>
|
||||
<br/>
|
||||
|
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
use humhub\modules\ui\menu\MenuLink;
|
||||
use humhub\widgets\LanguageChooser;
|
||||
use humhub\widgets\PoweredBy;
|
||||
use yii\helpers\Html;
|
||||
|
||||
@ -30,6 +31,8 @@ use yii\helpers\Html;
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?= PoweredBy::widget(); ?>
|
||||
|
||||
<?= LanguageChooser::widget() ?>
|
||||
</small>
|
||||
</div>
|
||||
<br/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user