Package package
This package provides functions to work with Styles.
Package DE_EPAGES::Design::API::Style
@EXPORT_OK |
Functions
- AddStyle
- AddStyleLogo
- DeleteStyleLogo
- DeleteTemporaryStyles
- ExistsStyle
- InvalidateAllShopStyles
- IsSubStyle
- ProcessStyleTransformation
- Style
- ValidateAndCompareToDefaultButtonValues
- ValidateButtonValues
AddStyle
Adds a Style to the shops style list.
Syntax |
$WantedStyle = AddStyle($Shop, $StyleTemplate); |
Input |
|
Return |
|
AddStyleLogo
Sets the logo for a style.
Syntax |
AddStyleLogo($Style, $ShopLogo, $Extension); |
Input |
|
DeleteStyleLogo
Sets the logo for a style.
Syntax |
DeleteStyleLogo($Style); |
Input |
|
DeleteTemporaryStyles
Deletes all style from shop with attribute IsTemporary=1 except the default one. The flag for the default one will be corrected. Cause for programming is that the shopwizard could be chanceled (e.g. close browser) and all the temporary style resist.
Syntax |
DeleteTemporaryStyles($Shop); |
Input |
|
ExistsStyle
Returns true if the style with the given style template exists in this shop.
Syntax |
$Exists = ExistsStyle($Shop, $StyleTemplate); |
Input |
|
Return |
|
InvalidateAllShopStyles
Invalidates all styles of a given shop.
Syntax |
InvalidateAllShopStyles($Shop); |
Input |
|
IsSubStyle
If StyleName contains the string "SubStyles/" return is 1
Syntax |
my $IsSubStyle = IsSubStyle($StyleName); |
Input |
|
Return |
|
ProcessStyleTransformation
Processes a new style transformation.
Syntax |
ProcessStyleTransformation($Form, $Style); |
Input |
|
Return |
|
Style
Returns style of this shop with the StyleName.
Syntax |
$Style = Style($Shop, $StyleName); |
Input |
|
Return |
|
ValidateAndCompareToDefaultButtonValues
Validates attributes of customizable buttons (basket button, other buttons) and checks if the values are different to the default button style settings.
Syntax |
ValidateAndCompareToDefaultButtonValues($hCustomizableBasketButton, $hVALIDATION); |
Input |
|
Return |
|
ValidateButtonValues
Validates attributes of customizable buttons (basket button, other buttons)
Syntax |
ValidateButtonValues($hCustomizableBasketButton, $hVALIDATION); |
Input |
|
Return |
|