ePages 7.1.0 - DE_EPAGES/Design/API/TLE/StyleHandler.pm

Package DE_EPAGES::Design::API::TLE::StyleHandler

Functions

GetUnityThemeStyleURL
STYLEGROUPBYID
STYLETEMPLATEBYID
tle

GetUnityThemeStyleURL

Saves the path to the Unity checkout CSS stylesheet to the shop object, using a GET call to the Unity REST API in case the ChangeAction is PickupBasket or loads the path from the shop object, returns undef in case of an error

Syntax
#GetUnityThemeStyleURL(#Shop, #INPUT.ChangeAction)
Example
#LOCAL("UnityCheckoutStylesheetURL", #GetUnityThemeStyleURL(#Object, #INPUT.ChangeAction))
  #IF(#UnityCheckoutStylesheet)
    <link href="#UnityCheckoutStylesheetURL" rel="stylesheet" type="text/css" />
  #ENDIF
#ENDLOCAL
Input
#Shop (object)
the current shop object
#INPUT.ChangeAction (string)
ChangeAction of the current servlet
Return
#UnityStylesheetURL (string)
URL to the Unity checkout stylesheet

STYLEGROUPBYID

Returns the StyleGroup by the given ID.

Syntax
#STYLEGROUPBYID(#StyleGroupID)
Input
#StyleGroupID (integer)
style group id
Return
#StyleGroup (object)
style group for the given id

STYLETEMPLATEBYID

Returns the StyleTemplate by the given ID.

Syntax
#STYLETEMPLATEBYID(#StyleTemplateID)
Input
#StyleTemplateID (integer)
style template id
Return
#StyleTemplate (object)
style template for the given id

tle

Returns the currently active style.

Syntax
#Style