diff --git a/CHANGELOG_DEV.md b/CHANGELOG_DEV.md index 16ea91a62d..62e0610249 100644 --- a/CHANGELOG_DEV.md +++ b/CHANGELOG_DEV.md @@ -5,6 +5,7 @@ - Fix #5612: Fix RichText post process event pass data - Enh #5610: Show menu item "Add Licence Key" for purchased modules - Enh #5599: Introduce a variables in the Space model to call ProfileImage and ProfileBannerImage classes +- Enh #5621: Optimize footer views - Fix #5616: Don't display oEmbed confirmation in text field diff --git a/protected/humhub/widgets/PoweredBy.php b/protected/humhub/widgets/PoweredBy.php index 0a27768e54..d677f12b89 100644 --- a/protected/humhub/widgets/PoweredBy.php +++ b/protected/humhub/widgets/PoweredBy.php @@ -37,7 +37,7 @@ class PoweredBy extends Widget public function run() { - if (isset(Yii::$app->params['hidePoweredBy'])) { + if (static::isHidden()) { return ''; } @@ -54,4 +54,9 @@ class PoweredBy extends Widget ]); } + public static function isHidden() + { + return isset(Yii::$app->params['hidePoweredBy']); + } + } diff --git a/protected/humhub/widgets/views/footerNavigation.php b/protected/humhub/widgets/views/footerNavigation.php index 3a9f8f55ce..4c224faa92 100644 --- a/protected/humhub/widgets/views/footerNavigation.php +++ b/protected/humhub/widgets/views/footerNavigation.php @@ -5,17 +5,30 @@ * @license https://www.humhub.com/licences */ +use humhub\modules\ui\menu\MenuLink; use humhub\widgets\PoweredBy; use yii\helpers\Html; +/* @var $this \humhub\modules\ui\view\components\View */ +/* @var $entries MenuLink[] */ +/* @var $options array */ +/* @var $menu \humhub\widgets\FooterMenu */ + ?> - 0): ?> -