YaWK
24.1
Yet another WebKit
|
Helper function to output custom (overriden) bootstrap css (settings.css) More...
Public Member Functions | |
init () | |
Init calls setBootstrapComponents and return all css code as string on success or null on error. More... | |
outputCssCode () | |
Check CSS code and return it on success as string, otherwise return null. More... | |
setBootstrapComponents () | |
Check if Bootstrap is version 3 or 4 and load the required component methods. More... | |
Public Attributes | |
$cssCode = '' | |
$tplSettings = '' | |
$version = '' | |
Helper function to output custom (overriden) bootstrap css (settings.css)
Bootstrap CSS check version + return corresponding css
This is a helper function, used by admin/includes/template-save.php. It generates the custom css code for the current loaded bootstrap version, depending on the selection of the fields within the backend.
Definition at line 17 of file cssFramework.php.
YAWK\FRAMEWORK\cssFramework::init | ( | ) |
Init calls setBootstrapComponents and return all css code as string on success or null on error.
Initialize and start check function
Reimplemented in YAWK\FRAMEWORK\BOOTSTRAP4\bootstrap4, and YAWK\FRAMEWORK\BOOTSTRAP3\bootstrap3.
Definition at line 83 of file cssFramework.php.
References YAWK\FRAMEWORK\cssFramework\$cssCode, and YAWK\FRAMEWORK\cssFramework\setBootstrapComponents().
YAWK\FRAMEWORK\cssFramework::outputCssCode | ( | ) |
Check CSS code and return it on success as string, otherwise return null.
Check and return generated CSS Code as string
Definition at line 102 of file cssFramework.php.
References YAWK\FRAMEWORK\cssFramework\$cssCode.
YAWK\FRAMEWORK\cssFramework::setBootstrapComponents | ( | ) |
Check if Bootstrap is version 3 or 4 and load the required component methods.
Return true after executing component methods or false if Bootstrap version is unknown
Definition at line 119 of file cssFramework.php.
Referenced by YAWK\FRAMEWORK\cssFramework\init().
YAWK\FRAMEWORK\cssFramework::$cssCode = '' |
string | all the css as string |
Definition at line 24 of file cssFramework.php.
Referenced by YAWK\FRAMEWORK\cssFramework\init(), and YAWK\FRAMEWORK\cssFramework\outputCssCode().
YAWK\FRAMEWORK\cssFramework::$tplSettings = '' |
array | template settings array |
Definition at line 22 of file cssFramework.php.
YAWK\FRAMEWORK\cssFramework::$version = '' |
int | current loaded bootstrap version |
Definition at line 20 of file cssFramework.php.