<<

NAME

Kernel::Output::HTML::Layout::Loader - CSS/JavaScript

DESCRIPTION

All valid functions.

PUBLIC INTERFACE

LoaderCreateAgentCSSCalls()

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
    );

LoaderCreateAgentJSCalls()

Generate the minified JavaScript files and the tags referencing them, taking a list from the Loader::Agent::CommonJS config item.

    $LayoutObject->LoaderCreateAgentJSCalls();

LoaderCreateJavaScriptTemplateData()

Generate a minified file for the template data that needs to be present on the client side for JavaScript based templates.

    $LayoutObject->LoaderCreateJavaScriptTemplateData();

LoaderCreateJavaScriptTranslationData()

Generate a minified file for the translation data that needs to be present on the client side for JavaScript based translations.

    $LayoutObject->LoaderCreateJavaScriptTranslationData();

LoaderCreateCustomerCSSCalls()

Generate the minified CSS files and the tags referencing them, taking a list from the Loader::Customer::CommonCSS config item.

    $LayoutObject->LoaderCreateCustomerCSSCalls();

LoaderCreateCustomerJSCalls()

Generate the minified JavaScript files and the tags referencing them, taking a list from the Loader::Customer::CommonJS config item.

    $LayoutObject->LoaderCreateCustomerJSCalls();

SkinValidate()

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',
    );

TERMS AND CONDITIONS

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.

<<