diff --git a/plugins/tiddlywiki/tour/tour-panel.tid b/plugins/tiddlywiki/tour/tour-panel.tid index 6a1317f23..f53bc5bad 100644 --- a/plugins/tiddlywiki/tour/tour-panel.tid +++ b/plugins/tiddlywiki/tour/tour-panel.tid @@ -6,26 +6,26 @@ tags: $:/tags/PageTemplate \procedure tour-buttons() \procedure tv-action-refresh-policy() always
- <$list filter="[function[tour-is-not-first-step]]" variable="ignore"> + <%if [function[tour-is-not-first-step]] %> <$button class="tc-btn-big-green" style="background-color: red;"> <> back - - <$list filter="[function[tour-is-not-last-step]]" variable="ignore"> + <%endif%> + <%if [function[tour-is-not-last-step]] %> <$button class="tc-btn-big-green" style="background-color: purple;"> <> next - - <$list filter="[function[tour-is-last-step]]" variable="ignore"> + <%endif%> + <%if [function[tour-is-last-step]] %> <$confetti/> <$confetti delay=100/> <$confetti delay=200/> <$confetti delay=300/> <$confetti delay=400/> <$confetti delay=500/> - + <%endif%>
\end @@ -36,14 +36,14 @@ tags: $:/tags/PageTemplate \procedure tour-step-condition-not-satisfied() <$transclude tiddler=<> mode="block"/> -<$list filter="[{$:/state/tour/step}has[selector]]" variable="ignore"> +<%if [{$:/state/tour/step}has[selector]] %>
<$button class="tc-btn-big-green" style="background-color: red;"> <$action-sendmessage $message="tm-spotlight-element" selector={{{ [{$:/state/tour/step}get[selector]] }}} selector-fallback-1={{{ [{$:/state/tour/step}get[selector-fallback-1]] }}} selector-fallback-2={{{ [{$:/state/tour/step}get[selector-fallback-2]] }}}/> show me a hint
- +<%endif%> \end tour-step-condition-not-satisfied \procedure tour-step-condition-satisfied() @@ -57,7 +57,7 @@ tags: $:/tags/PageTemplate <> \end tour-step-condition-satisfied -<$list filter="[{$:/config/ShowTour}!is[blank]else[show]match[show]]" variable="ignore"> +<%if [{$:/config/ShowTour}!is[blank]else[show]match[show]] %>
<$image class="tc-tour-panel-banner-image" source={{{ [{$:/config/CurrentTour}get[logo]] }}}/>
@@ -82,20 +82,24 @@ tags: $:/tags/PageTemplate currentTourStep={{$:/state/tour/step}} condition-var={{{ [get[condition-var]] :map[subfilter] }}} > - <$list filter="[has[caption]]" variable="ignore"> + <%if [has[caption]] %>

<$transclude $tiddler=<> $field="caption" mode="inline"/>

- + <%endif%> - <$list filter="[!has[condition]]" variable="ignore"> + <%if [!has[condition]] %> <> - + <%endif%> - <$list filter="[has[condition]]" variable="ignore"> - <$list filter={{{ [get[condition]] }}} limit="1" variable="ignore" emptyMessage=<>> - <> - - + <%if [has[condition]] %> + <$let condition={{{ [get[condition]] }}}> + <%if [subfilter] %> + <> + <%else%> + <> + <%endif%> + + <%endif%>
- +<%endif%>