Skip to content

Instantly share code, notes, and snippets.

@thomasthesecond
Created August 16, 2013 19:51
Show Gist options
  • Save thomasthesecond/6252986 to your computer and use it in GitHub Desktop.
Save thomasthesecond/6252986 to your computer and use it in GitHub Desktop.
Message snippet for ExpressionEngine.
<div{if embed:id} id="{embed:id}"{/if} class="message message-{embed:type}{if embed:hidden == 'TRUE'} hidden{/if}">
{if embed:message}{embed:message}{/if}
</div><!-- .message -->
{!--
===================================
Required Parameters:
hidden: TRUE|FALSE
message: text string
type: alert|error|success
===================================
Optional Parameters:
id: ID for specific styling
===================================
Example:
{embed="snippets/.message"
hidden="TRUE"
id="some-id"
message="Oops! There are some errors."
type="error"
}
===================================
--}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment