Download
^do( Download, filename, title, [Bootstrap class], [img] )^
Type: Macro
Purpose: Adds a download button (uses Downloads Directory)
The Download macro inserts a button that displays title on the right, an optional img on the left, and when clicked downloads filename from the Downloads Directory you have specified in the Directories Dash.
- Optional 3rd arg options are: primary, success, info, warning, danger, and link.
- Optional 4th arg specifies the image file.
Hover below to reveal BoxPress code
<p class="m-b-lg text-center"><a class="btn btn-^if($3)^^value($3)^^else^default^endIf^" href="^value($Text(dashDownloadDir).replace("/$","))^/$1" role="button">^if($4)^<img class="img-button" src="^root^img/$4" title="$2" alt="$2">&nbsp; ^endIf^$2</a>
Download sample
This is the markup that is rendered below
^do(Download, "^do(_BP)^", "Download BoxPress",, "BoxPressThemes/bp_512.png")^
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.
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.
Download BoxPress