contentbox.models.system

Class EmailTemplateHelper

lucee.Component
    extended by contentbox.models.system.EmailTemplateHelper

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- A helper to create standard email template sections

Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any avatar


    • access = public
    • returntype = any
    • inject = Avatar@cb
    true false
    Constructor Summary
    init()
          Constructor.
    Method Summary
    string author(string email, string content)
    string buttonBar(array buttons)
         Create a button bar.
    string divider(numeric paddingTop='18', numeric paddingRight='18', numeric paddingBottom='18', numeric paddingLeft='18', string borderColor='DDDDDD', string borderStyle='solid', numeric borderWidth='1')
         Create a divider.
    string heading(string content, string level='h2', string color='777', numeric fontSize='20')
         Create a heading.
    string text(string content, boolean callout='false')
         Create a text area.
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Property Detail

    avatar

    property any avatar

    Attributes:
    access - public
    required - false
    returntype - any
    inject - Avatar@cb
    serializable - true

    Method Detail

    author

    public string author(string email, string content)

    Parameters:
    email
    content

    buttonBar

    public string buttonBar(array buttons)

    Create a button bar

    Parameters:
    buttons - Array of buttons to add to the button bar

    divider

    public string divider(numeric paddingTop='18', numeric paddingRight='18', numeric paddingBottom='18', numeric paddingLeft='18', string borderColor='DDDDDD', string borderStyle='solid', numeric borderWidth='1')

    Create a divider

    Parameters:
    paddingTop - Top padding
    paddingRight - Right padding
    paddingBottom - Bottom padding
    paddingLeft - Left padding
    borderColor - Border color
    borderStyle - Border style
    borderWidth - Border width

    heading

    public string heading(string content, string level='h2', string color='777', numeric fontSize='20')

    Create a heading

    Parameters:
    content - Content for the heading
    level - The heading level
    color - Text color
    fontSize - Heading font size

    text

    public string text(string content, boolean callout='false')

    Create a text area

    Parameters:
    content - Content for the text area
    callout - If true, will wrap content in a callout box