-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[6.0] Drop Bootstrap::framework #44991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dgrammatiko
wants to merge
16
commits into
joomla:6.0-dev
Choose a base branch
from
dgrammatiko:6.0-dev/remove-bs-fw
base: 6.0-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c27037e
Drop Bootstrap::framework
dgrammatiko 20644fc
move the code to the compat plg
dgrammatiko c8b03a9
add back the deprecation
dgrammatiko 2a5dd66
use own class, use toggler
dgrammatiko 7d26b0b
cs
dgrammatiko 0cdfd09
meh
dgrammatiko c05374c
refactor
dgrammatiko 81aa661
cs
dgrammatiko 4a42ebc
Update Bootstrap.php
dgrammatiko 935311b
fix conflicts
dgrammatiko b2d6991
meh
dgrammatiko b740bec
Update Compat6.php
dgrammatiko a280a32
Update Compat6.php
dgrammatiko 9c4941c
fixes
dgrammatiko 05a430f
Update plugins/behaviour/compat6/src/Extension/Compat6.php
dgrammatiko 9443e1e
Merge branch '6.0-dev' into 6.0-dev/remove-bs-fw
QuyTon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| <?php | ||
|
|
||
| /** | ||
| * @copyright (C) 2025 Open Source Matters, Inc. <https://www.joomla.org> | ||
| * @license GNU General Public License version 2 or later; see LICENSE.txt | ||
| */ | ||
|
|
||
| namespace Joomla\Plugin\Behaviour\Compat\HTMLHelper; | ||
|
|
||
| use Joomla\CMS\Factory; | ||
| use Joomla\CMS\HTML\Helpers\Bootstrap as OriginalBootstrap; | ||
|
|
||
| class Bootstrap extends OriginalBootstrap | ||
| { | ||
| /** | ||
| * Method to load the ALL the Bootstrap Components | ||
| * | ||
| * If debugging mode is on an uncompressed version of Bootstrap is included for easier debugging. | ||
| * | ||
| * @param mixed $debug Is debugging mode on? [optional] | ||
| * | ||
| * @return void | ||
| * | ||
| * @deprecated 4.0 will be removed in 7.0 | ||
| * Will be removed without replacement | ||
| * Load the different scripts with their individual method calls | ||
| */ | ||
| public static function framework($debug = null): void | ||
| { | ||
| $wa = Factory::getApplication()->getDocument()->getWebAssetManager(); | ||
|
|
||
| array_map( | ||
| function ($script) use ($wa) { | ||
| $wa->useScript('bootstrap.' . $script); | ||
| }, | ||
| ['alert', 'button', 'carousel', 'collapse', 'dropdown', 'modal', 'offcanvas', 'popover', 'scrollspy', 'tab', 'toast'] | ||
| ); | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.