Kernel::Output::HTML::Layout::Loader - CSS/JavaScript
All valid functions.
Generate the minified CSS files and the tags referencing them, taking a list from the Loader::Agent::CommonCSS config item.
$LayoutObject->LoaderCreateAgentCSSCalls( Skin => 'MySkin', # optional, if not provided skin is the configured by default );
Generate the minified JavaScript files and the tags referencing them, taking a list from the Loader::Agent::CommonJS config item.
$LayoutObject->LoaderCreateAgentJSCalls();
Generate a minified file for the template data that needs to be present on the client side for JavaScript based templates.
$LayoutObject->LoaderCreateJavaScriptTemplateData();
Generate a minified file for the translation data that needs to be present on the client side for JavaScript based translations.
$LayoutObject->LoaderCreateJavaScriptTranslationData();
Generate the minified CSS files and the tags referencing them, taking a list from the Loader::Customer::CommonCSS config item.
$LayoutObject->LoaderCreateCustomerCSSCalls();
Generate the minified JavaScript files and the tags referencing them, taking a list from the Loader::Customer::CommonJS config item.
$LayoutObject->LoaderCreateCustomerJSCalls();
Returns 1 if skin is available for Agent or Customer frontends and 0 if not.
my $SkinIsValid = $LayoutObject->SkinValidate( UserType => 'Agent' # Agent or Customer, Skin => 'ExampleSkin', );
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.