Load Bootstrap CSS via WAM with HTMLHelper fallback
Some checks failed
Repo Health / Access control (push) Successful in 1s
Auto-Update SHA Hash / Update SHA-256 Hash in updates.xml (release) Failing after 4s
Repo Health / Release configuration (push) Failing after 4s
Repo Health / Scripts governance (push) Successful in 4s
Repo Health / Repository health (push) Failing after 3s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Miller
2026-04-18 15:05:39 -05:00
parent ba4f1cacaf
commit dddb55671d

View File

@@ -90,8 +90,13 @@ if ($params_developmentmode) {
} }
$wa->useScript('user.js'); $wa->useScript('user.js');
// Bootstrap (accordion) // Bootstrap CSS + JS (accordion, responsive grid, utilities)
HTMLHelper::_('bootstrap.loadCss', true, $doc); try {
$wa->useStyle('bootstrap.css');
} catch (\Exception $e) {
// Fallback: load via HTMLHelper
HTMLHelper::_('bootstrap.loadCss', true, $doc);
}
HTMLHelper::_('bootstrap.framework'); HTMLHelper::_('bootstrap.framework');
/* ----------------------- /* -----------------------