Initial Commit
The initial public commit of MVGL website code.
This commit is contained in:
commit
b39ecf1638
2043 changed files with 215154 additions and 0 deletions
47
app/Core/Adapters/BootstrapBase.php
Normal file
47
app/Core/Adapters/BootstrapBase.php
Normal file
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
|
||||
namespace App\Core\Adapters;
|
||||
|
||||
abstract class BootstrapBase
|
||||
{
|
||||
public static function initBase()
|
||||
{
|
||||
theme()->addHtmlAttribute('body', 'id', 'kt_body');
|
||||
|
||||
if (theme()->isDarkModeEnabled() && theme()->getCurrentMode() === 'dark') {
|
||||
theme()->addHtmlClass('body', 'dark-mode');
|
||||
}
|
||||
|
||||
if (theme()->getOption('layout', 'main/body/background-image')) {
|
||||
theme()->addHtmlAttribute('body', 'style', 'background-image: url(' . asset(theme()->getMediaUrlPath() . theme()->getOption('layout', 'main/body/background-image')) . ')');
|
||||
}
|
||||
|
||||
if (theme()->getOption('layout', 'main/body/class')) {
|
||||
theme()->addHtmlClass('body', theme()->getOption('layout', 'main/body/class'));
|
||||
}
|
||||
|
||||
if (theme()->getOption('layout', 'main/body/attributes')) {
|
||||
theme()->addHtmlAttributes('body', theme()->getOption('layout', 'main/body/attributes'));
|
||||
}
|
||||
|
||||
if (theme()->getOption('layout', 'loader/display') === true) {
|
||||
theme()->addHtmlClass('body', 'page-loading-enabled');
|
||||
theme()->addHtmlClass('body', 'page-loading');
|
||||
}
|
||||
}
|
||||
|
||||
public static function run()
|
||||
{
|
||||
if (theme()->getOption('layout', 'base') === 'docs') {
|
||||
return;
|
||||
}
|
||||
|
||||
// Init base
|
||||
static::initBase();
|
||||
|
||||
// Init layout
|
||||
if (theme()->getOption('layout', 'main/type') === 'default') {
|
||||
static::initLayout();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue