PanelGlass
^do( PanelGlass, title, body, [url] )^
Type: Macro
Purpose: Adds a decorative Panel with url link
The PanelGlass macro inserts a decorative Bootstrap panel. The header includes the Glyphicon of your choice; hover over it, and a tooltip will pop-up. The header is “glass” and the title is “embossed” in it. A URL link can be added as an optional third arg and is nicely “engraved” in the upper right corner. And behind the glass is an image or GIF of your choice. (Just replace the special image file PanelGlass.gif in the chosen Theme Folder.)
- Arg1 (title) is in the title bar.
- Arg2 (body) is in the body.
- Arg3 (url) is in the upper-right of the title bar.
Hover below to reveal BoxPress code
<div class="panel panel-default"> <div class="panel-heading glass"> ^if($3)^ <div class="linkcorner-panel"> <a target="_blank" href="$3">^do(Glyph, "link")^</span></a> </div> ^endIf^ <table><tr> <td class="panel-left"> <h5 title="Edit the PanelGlass macro to reset me!">^do(Glyph, "cog")^</h5> </td> <td class="panel-right"> <p class="btn-glass">^value("$1")^</p> </td> </tr></table> </div> <div class="panel-body small"> <p>^value("$2")^</p> </div> </div>
PanelGlass sample
This is the markup that is rendered below
^do(PanelGlass, "Game Tech", "See what you are doing right now as something the DM has required of you for a game in your favorite dungeon, with your favorite monsters, playing with your favorite friends.", "https://www.youtube.com/embed/MUP1r7OQNA0")^
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
See what you are doing right now as something the DM has required of you for a game in your favorite dungeon, with your favorite monsters, playing with your favorite friends. It’s just that you’ve forgotten.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.