getName()
Get product name.
addHtmlAttribute(scope, name, value)
Add HTML attributes by scope. copy {{ theme.addHtmlAttribute(scope, name, value) }}
addHtmlAttributes(scope, attributes)
Add multiple HTML attributes by scope. copy {{ theme.addHtmlAttributes(scope, attributes) }}
addHtmlClass(scope, value)
Add HTML class by scope. copy {{ theme.addHtmlClass(scope, value) }}
printHtmlAttributes(scope)
Print HTML attributes for the HTML template. copy {{ theme.printHtmlAttributes(scope) }}
printHtmlClasses(scope, full = true)
Print HTML classes for the HTML template. copy {{ theme.printHtmlClasses(scope, full = true) }}
getIcon(path, classNames = 'svg-icon', folder = 'lib/assets/media/icons/')
Get SVG icon content. copy {{ theme.getIcon(path, classNames = 'svg-icon') }}
asset(path)
Get an assets path in assets folder by path.
setModeSwitch(flag)
Set dark mode enabled status. copy {{ theme.setModeSwitch(flag) }}
isModeSwitchEnabled()
Check dark mode status. copy {{ theme.isModeSwitchEnabled() }}
setModeDefault(mode)
Set the mode to dark or light. copy {{ theme.setModeDefault(mode) }}
getModeDefault()
Get current mode. copy {{ theme.getModeDefault() }}
setDirection(direction)
Set style direction. copy {{ theme.setDirection(direction) }}
getDirection()
Get style direction. copy {{ theme.getDirection() }}
isRtlDirection()
Check if style direction is RTL. copy {{ theme.isRtlDirection() }}
extendCssFilename(path)
Extend CSS file name with RTL or dark mode. copy {{ theme.extendCssFilename(path) }}
includeFavicon()
Include favicon from settings. copy {{ theme.includeFavicon() }}
includeFonts()
Include the fonts from settings. copy {{ theme.includeFonts() }}
getGlobalAssets(type)
Get the global assets. copy {{ theme.getGlobalAssets(type) }}
addVendors(vendors)
Add multiple vendors to the page by name. Refer to settings KT_THEME_VENDORS. copy {{ theme.addVendors(vendors) }}
addVendor(vendor)
Add single vendor to the page by name. Refer to settings KT_THEME_VENDORS. copy {{ theme.addVendor(vendor) }}
addJavascriptFile(file)
Add custom javascript file to the page. copy {{ theme.addJavascriptFile(file) }}
addCssFile(file)
Add custom CSS file to the page. copy {{ theme.addCssFile(file) }}
getVendors(type)
Get vendor files from settings. Refer to settings KT_THEME_VENDORS. copy {{ theme.getVendors(type) }}
getCustomJs
Get custom js files from the settings. copy {{ theme.getCustomJs() }}
getCustomCss
Get custom css files from the settings. copy {{ theme.getCustomCss() }}
getHtmlAttribute(scope, attribute)
Get HTML attribute based on the scope. copy {{ theme.getHtmlAttribute(scope, attribute) }}
getName()
Get product name.
addHtmlAttribute(scope, name, value)
Add HTML attributes by scope. copy theme.addHtmlAttribute(scope, name, value)
addHtmlAttributes(scope, attributes)
Add multiple HTML attributes by scope. copy theme.addHtmlAttributes(scope, attributes)
addHtmlClass(scope, value)
Add HTML class by scope. copy theme.addHtmlClass(scope, value)
printHtmlAttributes(scope)
Print HTML attributes for the HTML template. copy theme.printHtmlAttributes(scope)
printHtmlClasses(scope, full = true)
Print HTML classes for the HTML template. copy theme.printHtmlClasses(scope, full = true)
getIcon(path, classNames = 'svg-icon', folder = 'lib/assets/media/icons/')
Get SVG icon content. copy theme.getIcon(path, classNames = 'svg-icon')
asset(path)
Get an assets path in assets folder by path.
setModeSwitch(flag)
Set dark mode enabled status. copy theme.setModeSwitch(flag)
isModeSwitchEnabled()
Check dark mode status. copy theme.isModeSwitchEnabled()
setModeDefault(mode)
Set the mode to dark or light. copy theme.setModeDefault(mode)
getModeDefault()
Get current mode.
setDirection(direction)
Set style direction. copy theme.setDirection(direction)
getDirection()
Get style direction.
isRtlDirection()
Check if style direction is RTL.
extendCssFilename(path)
Extend CSS file name with RTL or dark mode. copy theme.extendCssFilename(path)
includeFavicon()
Include favicon from settings.
includeFonts()
Include the fonts from settings.
getGlobalAssets(type)
Get the global assets. copy theme.getGlobalAssets(type)
addVendors(vendors)
Add multiple vendors to the page by name. Refer to settings KT_THEME_VENDORS. copy theme.addVendors(vendors)
addVendor(vendor)
Add single vendor to the page by name. Refer to settings KT_THEME_VENDORS.
addJavascriptFile(file)
Add custom javascript file to the page. copy theme.addJavascriptFile(file)
addCssFile(file)
Add custom CSS file to the page.
getVendors(type)
Get vendor files from settings. Refer to settings KT_THEME_VENDORS.
getCustomJs
Get custom js files from the settings.
getCustomCss
Get custom css files from the settings.
getHtmlAttribute(scope, attribute)
Get HTML attribute based on the scope. copy theme.getHtmlAttribute(scope, attribute)