PanelZoom
^do( PanelZoom, notename, description )^
Type: Macro
Purpose: Wraps fresh text in a Panel with citation info and links from notename
The PanelZoom macro lets you add a decorative Bootstrap panel whose heading and Undertitle are chockfull of vital data from notename, but whose body is empty.
Like IncPanel, PanelZoom links to the original, includes its Undertitle, and adds resource links to the upper-right corner of the panel heading. But unlike IncPanel, PanelZoom omits the original’s text and invites you fill its body with your current thought. This allows you to write something new about the target note that is yet surrounded by all the vital resource information and links, similar to a Mishnah and Gemara.
Behind the glass is an image or GIF of your choice. (Just replace the special image file PanelGlassZoom.gif in the chosen Theme Folder to change the image, or remove it for a plain dark glass effect.)
The PanelZoom heading contains up to three links:
- The title itself is a link to the original article-note in Tinderbox,
- A
$URLlink in the upper-right (if set in the original), and - A
$ReferenceURLlink (if set in the original).
This one of the most innovative features of BoxPress that places you, the writer, creatively between your Research Note webpages and their variable presentation on other pages.
The 1st arg is the name of the article-note you are referring to. The 2nd arg is the body of the panel.
Hover below to reveal BoxPress code
<div class="panel panel-default"> <div class="panel-heading glass glass-zoom"> ^if($URL("$1")|$ReferenceURL("$1"))^ <div class="linkcorner-panel"> ^if($ReferenceURL("$1"))^<a target="_blank" href="^value($ReferenceURL("$1"))^"><span class="glyphicon glyphicon-file"></span></a>^endIf^ ^if($URL("$1"))^<a target="_blank" href="^value($URL("$1"))^"><span class="glyphicon glyphicon-link"></span></a>^endIf^ </div> ^endIf^ <table><tr> <td class="panel-left"> ^if(($bpImage("$1") & (!$blogExpOpt("$1").contains("NOSBIMAGE")))|$blogGlyph("$1"))^ ^if($bpImage("$1"))^ <img src="^root^img/^value($bpImage("$1"))^" ^if($bpImageTitle("$1"))^ alt="^value($bpImageTitle("$1"))^" title="^value($bpImageTitle("$1"))^" ^endIf^ class="img-button"> ^else^ <h5>^if($blogGlyph("$1"))^ ^do(Glyph, "^value($blogGlyph("$1"))^")^^else^^do(Glyph, "hand-up")^ ^endIf^</h5> ^endIf^ </td> <td class="panel-right"> <p class="btn-main"><a href="^url($1)^">^value($Name("$1"))^</a> </td> </tr></table> </div> <div class="panel-body small"> ^include("$1", bstUndertitleOnly)^ ^value("$2")^ </div> </div>
PanelZoom sample
This is the markup that is rendered below
^do(PanelZoom, "Sample person_note B", "The text you are now reading was typed mid-macro in the note PanelZoom sample. Unlike IncPanel, whose panel-body is the text of the note named in the macro, PanelZoom creates a blank panel for you to fill, but whose border is filled with vital info from the named note—its Glyph, title (a link to the named note) , URL, Reference URL, and Undertitle. The PanelZoom macro captures your current thought and wraps it in an informative and clickable reference.")^
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.
Gollwitzer, Peter M., Sheeran, Paschal, Michalski, Verena & Seifert, Andrea (2009). When Intentions Go Public. Psychological Science, Vol. 20, No. 5, 612-18.
The text you are now reading was typed mid-macro in the note PanelZoom sample. Unlike IncPanel, whose panel-body is the text of the note named in the macro, PanelZoom creates an empty shell that is surrounded by just the essential info from the named note—its Glyph, title (a link to the named note) , URL, Reference URL, and Undertitle. The PanelZoom macro captures your current thought and wraps it in an informative and clickable reference.
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.