Created
August 16, 2013 19:51
-
-
Save thomasthesecond/6252986 to your computer and use it in GitHub Desktop.
Message snippet for ExpressionEngine.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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