diff --git a/core/wiki/macros/export.tid b/core/wiki/macros/export.tid index 42d42a48a..5233da385 100644 --- a/core/wiki/macros/export.tid +++ b/core/wiki/macros/export.tid @@ -1,14 +1,14 @@ title: $:/core/macros/export -tags: $:/tags/Macro +tags: $:/tags/Macro $:/tags/Global -\define exportButtonFilename(baseFilename) -$baseFilename$$(extension)$ +\function exportButtonFilename(baseFilename) +[] [] +[join[]] \end -\define exportButton(exportFilter:"[!is[system]sort[title]]",lingoBase,baseFilename:"tiddlers") +\procedure exportButton(exportFilter:"[!is[system]sort[title]]",lingoBase,baseFilename:"tiddlers") \whitespace trim -<$vars hint={{{ [<__lingoBase__>addsuffix[Hint]get[text]] }}} - caption={{{ [<__lingoBase__>addsuffix[Caption]get[text]] }}} +<$let hint={{{ [addsuffix[Hint]get[text]] }}} + caption={{{ [addsuffix[Caption]get[text]] }}} > <$button popup=<> @@ -16,19 +16,20 @@ $baseFilename$$(extension)$ aria-label=<> class=<> selectedClass="tc-selected" + dragFilter=<> > - <$list filter="[match[yes]]"> + <%if [match[yes]] %> {{$:/core/images/export-button}} - - <$list filter="[match[yes]]"> + <%endif%> + <%if [match[yes]] %> <$text text=<>/> - + <%endif%> - + <$reveal state=<> type="popup" position="below" animate="yes">
- <$set name="count" value={{{ [subfilter<__exportFilter__>count[]] }}}> + <$set name="count" value={{{ [subfiltercount[]] }}}> <$list filter="[all[shadows+tiddlers]tag[$:/tags/Exporter]]"> <$list filter="[has[condition]subfilter{!!condition}limit[1]] ~[!has[condition]then[true]]" variable="ignore" @@ -36,8 +37,8 @@ $baseFilename$$(extension)$ <$button class="tc-btn-invisible"> <$action-sendmessage $message="tm-download-file" $param=<> - exportFilter=<<__exportFilter__>> - filename={{{ [<__baseFilename__>addsuffix{!!extension}] }}} + exportFilter=<> + filename={{{ [addsuffix{!!extension}] }}} /> <$action-deletetiddler $tiddler=<>/> <$transclude field="description"/>