From 44d651c0a7bec25d481839ccf2e0f64694ab8203 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Fri, 29 Mar 2024 08:27:04 -0300 Subject: [PATCH] Update last changes `ui/awesome-html-component-bootstrap5`. --- src/Framework/resource/layout/component/alert.php | 2 +- src/Framework/resource/layout/component/menu.php | 2 +- src/Framework/resource/layout/component/toggle_language.php | 2 +- src/Framework/resource/layout/footer.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Framework/resource/layout/component/alert.php b/src/Framework/resource/layout/component/alert.php index ad581b8..422038d 100644 --- a/src/Framework/resource/layout/component/alert.php +++ b/src/Framework/resource/layout/component/alert.php @@ -10,7 +10,7 @@ foreach ($flashMessages as $type => $message) { if (in_array($type, ['danger', 'dark', 'info', 'success', 'warning'], true) === true) { - $html[] = Alert::widget()->definition('dismissible', $type)->content($message); + $html[] = Alert::widget()->cookbook('dismissible', $type)->content($message); } } diff --git a/src/Framework/resource/layout/component/menu.php b/src/Framework/resource/layout/component/menu.php index 4874380..e43eea2 100644 --- a/src/Framework/resource/layout/component/menu.php +++ b/src/Framework/resource/layout/component/menu.php @@ -47,6 +47,6 @@ ->width(200) ) ->brandLink(Yii::$app->homeUrl) - ->definition('align-right') + ->cookbook('align-right') ->menu(Menu::widget()->currentPath(Yii::$app->request->url)->items(...$items)) ->render(); diff --git a/src/Framework/resource/layout/component/toggle_language.php b/src/Framework/resource/layout/component/toggle_language.php index cb6b709..cea71bd 100644 --- a/src/Framework/resource/layout/component/toggle_language.php +++ b/src/Framework/resource/layout/component/toggle_language.php @@ -34,4 +34,4 @@ ->active(Yii::$app->language === $value); } -echo Dropdown::widget()->definition('language')->items(...$items); +echo Dropdown::widget()->cookbook('language')->items(...$items); diff --git a/src/Framework/resource/layout/footer.php b/src/Framework/resource/layout/footer.php index 046405e..1ec02cf 100644 --- a/src/Framework/resource/layout/footer.php +++ b/src/Framework/resource/layout/footer.php @@ -39,7 +39,7 @@ ->class('col-md-4 justify-content-end d-flex align-items-center') ->content( $this->render('component/footer-icons'), - Toggle::Widget()->definition('selector-theme')->id('theme-toggle'), + Toggle::Widget()->cookbook('selector-theme')->id('theme-toggle'), $this->render('component/toggle_language') ) )