mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +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 #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
|
- Fix #7375: Use default language for email invitation and show language chooser on registration form
|
||||||
- Enh #7383: Improve SelfTest for Base URL
|
- Enh #7383: Improve SelfTest for Base URL
|
||||||
|
- Enh #5426: Show language chooser for guest on the sidebar footer
|
||||||
|
|
||||||
1.17.0 (January 13, 2025)
|
1.17.0 (January 13, 2025)
|
||||||
-------------------------
|
-------------------------
|
||||||
|
@ -32,6 +32,14 @@ use yii\base\Widget;
|
|||||||
*/
|
*/
|
||||||
class LanguageChooser extends Widget
|
class LanguageChooser extends Widget
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public function beforeRun()
|
||||||
|
{
|
||||||
|
return parent::beforeRun() && Yii::$app->user->isGuest;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays / Run the Widget
|
* Displays / Run the Widget
|
||||||
*/
|
*/
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use humhub\modules\ui\menu\MenuLink;
|
use humhub\modules\ui\menu\MenuLink;
|
||||||
|
use humhub\widgets\LanguageChooser;
|
||||||
use humhub\widgets\PoweredBy;
|
use humhub\widgets\PoweredBy;
|
||||||
use yii\helpers\Html;
|
use yii\helpers\Html;
|
||||||
|
|
||||||
@ -28,7 +29,9 @@ use yii\helpers\Html;
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
||||||
<?= PoweredBy::widget(); ?>
|
<?= PoweredBy::widget() ?>
|
||||||
|
|
||||||
|
<?= LanguageChooser::widget() ?>
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use humhub\modules\ui\menu\MenuLink;
|
use humhub\modules\ui\menu\MenuLink;
|
||||||
|
use humhub\widgets\LanguageChooser;
|
||||||
use humhub\widgets\PoweredBy;
|
use humhub\widgets\PoweredBy;
|
||||||
use yii\helpers\Html;
|
use yii\helpers\Html;
|
||||||
|
|
||||||
@ -30,6 +31,8 @@ use yii\helpers\Html;
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
||||||
<?= PoweredBy::widget(); ?>
|
<?= PoweredBy::widget(); ?>
|
||||||
|
|
||||||
|
<?= LanguageChooser::widget() ?>
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user