From 8f0d1be0024f27c733e10e6b73ffb761dd84e22e Mon Sep 17 00:00:00 2001 From: Wilmer Arambula <42547589+terabytesoftw@users.noreply.github.com> Date: Thu, 22 Feb 2024 08:47:20 -0300 Subject: [PATCH] Refactor toggle buttons in language and theme components. (#75) --- src/Framework/resource/layout/component/toggle_language.php | 4 ++-- src/Framework/resource/layout/component/toggle_theme.php | 4 ++-- src/UseCase/Site/view/404.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Framework/resource/layout/component/toggle_language.php b/src/Framework/resource/layout/component/toggle_language.php index 95a72a3..c1bc0f1 100644 --- a/src/Framework/resource/layout/component/toggle_language.php +++ b/src/Framework/resource/layout/component/toggle_language.php @@ -5,7 +5,7 @@ use App\Framework\Asset\LocaleAsset; use PHPForge\Component\Dropdown; use PHPForge\Component\Item; -use PHPForge\Html\ButtonToggle; +use PHPForge\Component\Toggle; use yii\helpers\Url; use yii\web\View; @@ -64,7 +64,7 @@ ) ->listClass('dropdown-menu dropdown-menu-end shadow') ->toggleButton( - ButtonToggle::widget() + Toggle::widget() ->ariaExpanded('false') ->ariaLabel('Toggle language dropdown') ->class('btn btn-bd-primary dropdown-toggle d-flex align-items-center text-secondary-emphasis') diff --git a/src/Framework/resource/layout/component/toggle_theme.php b/src/Framework/resource/layout/component/toggle_theme.php index a3fe064..07da11b 100644 --- a/src/Framework/resource/layout/component/toggle_theme.php +++ b/src/Framework/resource/layout/component/toggle_theme.php @@ -5,7 +5,7 @@ use App\Framework\Asset\ToggleThemeAsset; use PHPForge\Component\Dropdown; use PHPForge\Component\Item; -use PHPForge\Html\ButtonToggle; +use PHPForge\Component\Toggle; use sjaakp\icon\Icon; use yii\web\View; @@ -60,7 +60,7 @@ ) ->listClass('dropdown-menu dropdown-menu-end shadow') ->toggleButton( - ButtonToggle::widget() + Toggle::widget() ->ariaExpanded('false') ->ariaLabel('Toggle theme (auto)') ->class('btn btn-bd-primary dropdown-toggle d-flex align-items-center') diff --git a/src/UseCase/Site/view/404.php b/src/UseCase/Site/view/404.php index 44266de..6537e36 100644 --- a/src/UseCase/Site/view/404.php +++ b/src/UseCase/Site/view/404.php @@ -4,7 +4,7 @@ use PHPForge\Html\Group\Div; use PHPForge\Html\Helper\Encode; -use PHPForge\Html\Img; +use PHPForge\Html\Multimedia\Img; use PHPForge\Html\Semantic\H; use yii\web\View;