Complete template system overhaul: CSS variables, theme management, and UI improvements #74
@@ -87,6 +87,12 @@ try {
|
|||||||
// Scripts
|
// Scripts
|
||||||
$wa->useScript('template.js');
|
$wa->useScript('template.js');
|
||||||
|
|
||||||
|
// Smart Bootstrap component loading - only load what's needed
|
||||||
|
if ($this->countModules('drawer-left', true) || $this->countModules('drawer-right', true)) {
|
||||||
|
// Load Bootstrap Offcanvas component for drawers
|
||||||
|
HTMLHelper::_('bootstrap.offcanvas');
|
||||||
|
}
|
||||||
|
|
||||||
// Meta
|
// Meta
|
||||||
$this->setMetaData('viewport', 'width=device-width, initial-scale=1');
|
$this->setMetaData('viewport', 'width=device-width, initial-scale=1');
|
||||||
|
|
||||||
|
|||||||
@@ -205,6 +205,12 @@ if ($this->countModules('sidebar-right', true)) { $hasClass .= ' has-sidebar-rig
|
|||||||
if ($this->countModules('drawer-left', true)) { $hasClass .= ' has-drawer-left'; }
|
if ($this->countModules('drawer-left', true)) { $hasClass .= ' has-drawer-left'; }
|
||||||
if ($this->countModules('drawer-right', true)) { $hasClass .= ' has-drawer-right'; }
|
if ($this->countModules('drawer-right', true)) { $hasClass .= ' has-drawer-right'; }
|
||||||
|
|
||||||
|
// Smart Bootstrap component loading - only load what's needed
|
||||||
|
if ($this->countModules('drawer-left', true) || $this->countModules('drawer-right', true)) {
|
||||||
|
// Load Bootstrap Offcanvas component for drawers
|
||||||
|
HTMLHelper::_('bootstrap.offcanvas');
|
||||||
|
}
|
||||||
|
|
||||||
// Container
|
// Container
|
||||||
$wrapper = $this->params->get('fluidContainer') ? 'wrapper-fluid' : 'wrapper-static';
|
$wrapper = $this->params->get('fluidContainer') ? 'wrapper-fluid' : 'wrapper-static';
|
||||||
$stickyHeader = $this->params->get('stickyHeader') ? 'position-sticky sticky-top' : '';
|
$stickyHeader = $this->params->get('stickyHeader') ? 'position-sticky sticky-top' : '';
|
||||||
|
|||||||
Reference in New Issue
Block a user