2020-11-23 17:06:24 +00:00
|
|
|
title: $:/snippets/LayoutSwitcher
|
|
|
|
tags: $:/tags/ControlPanel/Appearance
|
2020-11-23 19:15:04 +00:00
|
|
|
caption: {{$:/language/ControlPanel/LayoutSwitcher/Caption}}
|
2020-11-23 17:06:24 +00:00
|
|
|
|
2022-04-01 11:10:29 +00:00
|
|
|
\whitespace trim
|
2020-11-23 17:06:24 +00:00
|
|
|
<$linkcatcher to="$:/layout">
|
|
|
|
<div class="tc-chooser">
|
2020-11-27 21:52:26 +00:00
|
|
|
<$list filter="[all[tiddlers+shadows]tag[$:/tags/Layout]] [[$:/core/ui/PageTemplate]] +[!is[draft]sort[name]]">
|
2022-04-01 11:10:29 +00:00
|
|
|
<$list
|
|
|
|
filter="[{$:/layout}!has[text]]"
|
|
|
|
variable="ignore"
|
|
|
|
emptyMessage="""\whitespace trim
|
|
|
|
<$set name="cls" filter="[all[current]field:title{$:/layout}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
|
|
|
|
<div class=<<cls>>>
|
|
|
|
<$link to={{!!title}}>
|
2023-01-16 13:21:40 +00:00
|
|
|
''<$transclude tiddler={{{ [<currentTiddler>get[icon]] }}}/><$transclude field="name"/>'' - <$transclude field="description"/>
|
2022-04-01 11:10:29 +00:00
|
|
|
</$link></div></$set>
|
2020-11-23 17:06:24 +00:00
|
|
|
""">
|
2022-04-01 11:10:29 +00:00
|
|
|
<$set name="cls" filter="[all[current]field:title[$:/core/ui/PageTemplate]]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
|
|
|
|
<div class=<<cls>>>
|
|
|
|
<$link to={{!!title}}>
|
2023-01-16 13:21:40 +00:00
|
|
|
''<$transclude tiddler={{{ [<currentTiddler>get[icon]] }}}/><$transclude field="name"/>'' - <$transclude field="description"/>
|
2022-04-01 11:10:29 +00:00
|
|
|
</$link>
|
|
|
|
</div>
|
2020-11-23 17:06:24 +00:00
|
|
|
</$set>
|
|
|
|
</$list>
|
|
|
|
</$list>
|
|
|
|
</div>
|
2020-11-23 19:15:04 +00:00
|
|
|
</$linkcatcher>
|