1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Corrections of classes for tw2parser

@buggyj I assume these classes should be converted to the new format?
This commit is contained in:
Jermolene 2014-09-02 11:16:59 +01:00
parent 7b1a9d84a1
commit e5aac3d6f2
2 changed files with 8 additions and 8 deletions

View File

@ -5,26 +5,26 @@ title: $:/plugins/tiddlywiki/tw2parser/macrodefs
\end \end
\define slider(chkUniqueCookieName tiddler label tooltip) \define slider(chkUniqueCookieName tiddler label tooltip)
<span title=$tooltip$><$button popup="$chkUniqueCookieName$" class="btn-invisible tw-slider">$label$</$button> <span title=$tooltip$><$button popup="$chkUniqueCookieName$" class="btn-invisible tc-slider">$label$</$button>
<$reveal type="nomatch" text="" default="" state="$chkUniqueCookieName$" animate="yes"> <$reveal type="nomatch" text="" default="" state="$chkUniqueCookieName$" animate="yes">
<$classictransclude tiddler = "$tiddler$"/> <$classictransclude tiddler = "$tiddler$"/>
</$reveal></span> </$reveal></span>
\end \end
\define __system_tabinstance(state, currentTab, prompts, labels) \define __system_tabinstance(state, currentTab, prompts, labels)
<span title=<<entryof "$currentTab$" """$prompts$""">> ><$button set=<<qualify "$state$">> setTo="$currentTab$" selectedClass="tw-tab-selected"> <span title=<<entryof "$currentTab$" """$prompts$""">> ><$button set=<<qualify "$state$">> setTo="$currentTab$" selectedClass="tc-tab-selected">
<<entryof "$currentTab$" """$labels$""" >> <<entryof "$currentTab$" """$labels$""" >>
</$button></span> </$button></span>
\end \end
\define __system_tabs(tabsList,prompts,labels,state:"$:/state/tab") \define __system_tabs(tabsList,prompts,labels,state:"$:/state/tab")
<div class="tw-tab-buttons"> <div class="tc-tab-buttons">
<$list filter="$tabsList$" variable="currentTab"> <$list filter="$tabsList$" variable="currentTab">
<$macrocall $name="__system_tabinstance" state="$state$" prompts="""$prompts$""" labels="""$labels$""" currentTab=<<currentTab>>/> <$macrocall $name="__system_tabinstance" state="$state$" prompts="""$prompts$""" labels="""$labels$""" currentTab=<<currentTab>>/>
</$list> </$list>
</div> </div>
<div class="tw-tab-divider"/> <div class="tc-tab-divider"/>
<div class="tw-tab-content"> <div class="tc-tab-content">
<$list filter="$tabsList$" variable="currentTab"> <$list filter="$tabsList$" variable="currentTab">
<$reveal type="match" state=<<qualify "$state$">> text=<<currentTab>> default="$default$"> <$reveal type="match" state=<<qualify "$state$">> text=<<currentTab>> default="$default$">
<$classictransclude tiddler=<<currentTab>> /> <$classictransclude tiddler=<<currentTab>> />

View File

@ -525,7 +525,7 @@ var rules = [
tag: "a", tag: "a",
attributes: { attributes: {
href: {type: "string", value: link}, href: {type: "string", value: link},
"class": {type: "string", value: "tw-tiddlylink-external"}, "class": {type: "string", value: "tc-tiddlylink-external"},
target: {type: "string", value: "_blank"} target: {type: "string", value: "_blank"}
}, },
children: [{ children: [{
@ -593,7 +593,7 @@ var rules = [
tag: "a", tag: "a",
attributes: { attributes: {
href: {type: "string", value: w.matchText}, href: {type: "string", value: w.matchText},
"class": {type: "string", value: "tw-tiddlylink-external"}, "class": {type: "string", value: "tc-tiddlylink-external"},
target: {type: "string", value: "_blank"} target: {type: "string", value: "_blank"}
}, },
children: [{ children: [{
@ -636,7 +636,7 @@ var rules = [
tag: "a", tag: "a",
attributes: { attributes: {
href: {type: "string", value:lookaheadMatch[5]}, href: {type: "string", value:lookaheadMatch[5]},
"class": {type: "string", value: "tw-tiddlylink-external"}, "class": {type: "string", value: "tc-tiddlylink-external"},
target: {type: "string", value: "_blank"} target: {type: "string", value: "_blank"}
}, },
children: [node] children: [node]