Skip to end of metadata
Go to start of metadata
test


## Macro title: Panel With Background
## Macro has a body: Y
## Body processing: Rendered

##
## Developed by: Scott Greig
## Date created: 19/07/2019
## Installed by: My Name

## This is an example macro
## @Param PanelTitle:title=PanelTitle|type=string|required=false|default=|desc=Panel Title
## @Param PanelWidth:title=Panel Width|type=string|required=false|default=auto|desc= Examples: auto,4px,50%
## @Param BorderStyle:title=Border Style|type=string|required=false|desc=Examples: solid,dashed
## @Param BorderColor:title=BorderColor|type=string|required=false|default=black|desc=Examples: solid,dashed
## @Param BorderWidth:title=Border Pixel Width (Value Only)|type=int|required=false
## @Param BorderRadius:title=Border Radius (Value Only)|type=int|default=0|required=false
## @Param Image:title=Image Name|type=string|required=false
## @Param ImageRepeat:title=Image Repeat|type=enum|enumValues=repeat,repeat-x,repeat-y,no-repeat,space,round|default=repeat|desc=Choose how the background image is tiled
## @Param BackgroundColor:title=Background Color|type=string|required=false|desc=This will disable the background image if set.
## @Param ContentPadding:title=Content Padding Pixel Width (Value Only)|type=int|default=10|required=true
## @Param TitleBackgroundColor:title=Title Background Color|type=string|required=false
## @Param TitleColor:title=Title Text Color|type=string|required=false
#set ($borderWidth = $paramBorderWidth+"px")
#set ($contentPadding = $paramContentPadding+"px")
#set ($borderRadius = $paramBorderRadius +"px")

#set ($borderTopRadius =$borderRadius )

#if($paramPanelTitle != "")
#set ($borderTopRadius ="0px")


<div style="color: $paramTitleColor; background: $paramTitleBackgroundColor;border-radius: $borderRadius $borderRadius 0px 0px;padding:10px;border: $borderWidth $paramBorderStyle $paramBorderColor;border-bottom-style: hidden; width: $paramPanelWidth;"><b>$paramPanelTitle</b></div>
#end
<div style="background-image:url('$paramImage');background: $paramBackgroundColor;border-radius: $borderTopRadius $borderTopRadius $borderRadius $borderRadius ;background-repeat:$paramImageRepeat;padding:$contentPadding;border: $borderWidth $paramBorderStyle $paramBorderColor;width: $paramPanelWidth;">$body</div>







  • No labels