Revision history for TabsMenu


Revision [20300]

Last edited on 2008-11-07 04:14:44 by AndreasHeintze
Additions:
padding: 1px;
padding: 3px 4px 1px 4px; /* top right bottom left */
padding: 1px 4px 1px 4px; /* top right bottom left */
Deletions:
padding-top: 2px;
padding-left: 4px;
padding-right: 4px;
padding-left: 4px;
padding-right: 4px;


Revision [20299]

Edited on 2008-11-07 04:07:37 by AndreasHeintze
Additions:
border-top: 1px solid #000;
Deletions:
border-top: 2px solid #000;


Revision [20298]

Edited on 2008-11-07 04:03:12 by AndreasHeintze
Additions:
padding-top: 2px;


Revision [20297]

Edited on 2008-11-07 03:47:17 by AndreasHeintze
Additions:
"\b([A-ZÅÄÖÜ]+[a-zßåäöü]+[A-Z0-9ÅÄÖÜ][A-Za-z0-9ÅÄÖÜßåäöü]*)\b|". # CamelWords
Deletions:
"\b([A-ZÅÄÖÜ]+[a-zßåäöü]+[A-Z0-9ÅÄÖÜ][A-Za-z0-9ÅÄÖÜßåäöü]*)\b|". # CamelWords


Revision [20296]

Edited on 2008-11-07 03:47:06 by AndreasHeintze
Additions:
"\b[A-ZÅÄÖÜ][A-Za-zÅÄÖÜßåäöü]+[:](?![=_])\S*\b|". # InterWiki link
"\b([A-ZÅÄÖÜ]+[a-zßåäöü]+[A-Z0-9ÅÄÖÜ][A-Za-z0-9ÅÄÖÜßåäöü]*)\b|". # CamelWords
Deletions:
"\b[A-ZÅÄÖÜ][A-Za-zÅÄÖÜßåäöü]+[:](?![=_])\S*\b|". # InterWiki link
"\b([A-ZÅÄÖÜ]+[a-zßåäöü]+[A-Z0-9ÅÄÖÜ][A-Za-z0-9ÅÄÖÜßåäöü]*)\b|". # CamelWords


Revision [20295]

Edited on 2008-11-07 03:46:37 by AndreasHeintze
Additions:
else if ($tab) {
"\[\[[^\[]*?\]\]|". # forced link
Deletions:
else {
"\"\".*?\"\"|". # literal
"\[\[[^\[]*?\]\]|". # forced link
"\*\*|\'\'|\#\#|\#\%|@@|::c::|\>\>|\<\<|££|¥¥|\+\+|__|<|>|\/\/|". # Wiki markup
"======|=====|====|===|==|". # headings
"\{\{.*?\}\}|". # action
"\n". # new line


Revision [19454]

Edited on 2008-01-28 00:16:02 by LightMan [Modified links pointing to docs server]

No Differences

Revision [17868]

Edited on 2007-12-21 19:39:04 by LightMan [Modified links pointing to docs server]
Additions:
This modification can be made to the [[IncludeAction IncludeAction]] (include.php) so that a tab line like that at the top of this page can be //included// on all the tab pages, making maintenance easier. When adding or deleting tabs, modify the the //included// page with the tabs line vs. having to edit every tab page and set the active tab uniquely on each of these pages.
%%(php;11) // TabsMenu auto detect active tab
if (preg_match("/^:::(.*?):::$/s", $page["body"])) {
print $this->Format( str_replace( '[[' . $this->tag, '@[[' . $this->tag, $page["body"] ) );
}
else {
print $this->Format($page["body"]);
}
This is a great enhancement for making good looking and well organized Wiki pages.
/LightMan


Revision [17549]

Edited on 2007-09-28 09:13:16 by AndreasHeintze [Modified links pointing to docs server]
Additions:
%%:::[[FirstPage This is the first tab]]::[[SecondPage Second tab]]::@[[ThirdPage Third tab]]::[[LastPage Last tab]]:::%%
Deletions:
%%:::[[FirstTab This is the first tab]]::[[SecondTab Second tab]]::@[[ThirdTab Third tab]]::[[LastTab Last tab]]:::%%


Revision [17548]

Edited on 2007-09-28 05:45:15 by AndreasHeintze [Modified links pointing to docs server]
Additions:
You might need to change the background color of your inactive tabs, it depends on what your normal background color is.


Revision [17547]

Edited on 2007-09-28 05:43:39 by AndreasHeintze [Modified links pointing to docs server]
Deletions:
background-color: #F7F7F7;
background-color: #F7F7F7;
You may need to change the background color to match your pages backgrounds.


Revision [17546]

Edited on 2007-09-28 04:12:39 by AndreasHeintze [Modified links pointing to docs server]
Additions:
----
CodeContributions


Revision [17545]

Edited on 2007-09-28 04:06:32 by AndreasHeintze [Modified links pointing to docs server]
Additions:
What do you think about this? You may include this in the standard code base if you like.
Deletions:
What do you think about this? You may include this in the standard code if you like.


Revision [17544]

Edited on 2007-09-28 03:53:13 by AndreasHeintze [Modified links pointing to docs server]

No Differences

Revision [17543]

Edited on 2007-09-28 03:52:52 by AndreasHeintze [Modified links pointing to docs server]
Additions:
%%(php;629)$text = preg_replace_callback(
Deletions:
%%(php;595)$text = preg_replace_callback(


Revision [17542]

Edited on 2007-09-28 03:49:03 by AndreasHeintze [Modified links pointing to docs server]
Additions:
What do you think about this? You may include this in the standard code if you like.
Deletions:
I hope you understood it all.


Revision [17541]

Edited on 2007-09-28 03:46:53 by AndreasHeintze [Modified links pointing to docs server]
Additions:
It's the character @ after the double or triple colon that marks the tab as active.


Revision [17540]

Edited on 2007-09-28 03:43:43 by AndreasHeintze [Modified links pointing to docs server]
Additions:
I hope you understood it all.
Deletions:
I hope all is crystal clear.


Revision [17539]

Edited on 2007-09-28 03:43:13 by AndreasHeintze [Modified links pointing to docs server]
Additions:
I hope all is crystal clear.
/AndreasHeintze


Revision [17538]

Edited on 2007-09-28 03:40:58 by AndreasHeintze [Modified links pointing to docs server]
Additions:
%%(php;390) // TabsMenu
else if (preg_match("/^:::(.*?):::$/s", $thing, $matches))
{

// Determine if first tab is active or not
$output = $matches[1];
if (substr($output, 0 , 1) == '@') {
$tabclass = 'activetab';
$output = substr($output, 1);
}
else {
$tabclass = 'inactivetab';
}

// Fix links or other wiki markup inside tabs
$output = preg_replace_callback(
"/(".
"\"\".*?\"\"|". # literal
"\[\[[^\[]*?\]\]|". # forced link
"\b[a-z]+:\/\/\S+|". # URL
"\*\*|\'\'|\#\#|\#\%|@@|::c::|\>\>|\<\<|££|¥¥|\+\+|__|<|>|\/\/|". # Wiki markup
"======|=====|====|===|==|". # headings
"\{\{.*?\}\}|". # action
"\b[A-ZÅÄÖÜ][A-Za-zÅÄÖÜßåäöü]+[:](?![=_])\S*\b|". # InterWiki link
"\b([A-ZÅÄÖÜ]+[a-zßåäöü]+[A-Z0-9ÅÄÖÜ][A-Za-z0-9ÅÄÖÜßåäöü]*)\b|". # CamelWords
"\n". # new line
")/ms", "wakka2callback", $output);
$output = str_replace('::@', '</span><span class="activetab">', $output);
$output = str_replace('::', '</span><span class="inactivetab">', $output);

return '<span class="tabline">   </span><span class="' . $tabclass . '">' . $output . '</span><span class="tabline">   </span>';

}


Revision [17537]

Edited on 2007-09-28 03:37:58 by AndreasHeintze [Modified links pointing to docs server]
Additions:
%%(css)/* Action: tab */
<snip>...
Deletions:
%%/* Action: tab */
"\%\%.*?\%\%|". # code
"\"\".*?\"\"|". # literal
$mind_map_pattern.
"\[\[[^\[]*?\]\]|". # forced link
"-{4,}|---|". # separator (hr)
"\b[a-z]+:\/\/\S+|". # URL
"\*\*|\'\'|\#\#|\#\%|@@|::c::|\>\>|\<\<|££|¥¥|\+\+|__|<|>|\/\/|". # Wiki markup
"======|=====|====|===|==|". # headings
"\n([\t~]+)(-|&|[0-9a-zA-Z]+\))?|". # indents and lists
"\|[^\|]*?\|(?:\n)?|". # Simple Tables
"\{\{.*?\}\}|". # action
"\b[A-ZÅÄÖÜ][A-Za-zÅÄÖÜßåäöü]+[:](?![=_])\S*\b|". # InterWiki link
"\b([A-ZÅÄÖÜ]+[a-zßåäöü]+[A-Z0-9ÅÄÖÜ][A-Za-z0-9ÅÄÖÜßåäöü]*)\b|". # CamelWords
"\n". # new line
")/ms", "wakka2callback", $text);


Revision [17536]

Edited on 2007-09-28 03:36:31 by AndreasHeintze [Modified links pointing to docs server]
Additions:
"\%\%.*?\%\%|". # code
Deletions:
"" "%%.*?%%|". "" # code


Revision [17535]

Edited on 2007-09-28 03:35:44 by AndreasHeintze [Modified links pointing to docs server]
Additions:
"" "%%.*?%%|". "" # code
Deletions:
"%%.*?%%|". # code


Revision [17534]

Edited on 2007-09-28 03:35:13 by AndreasHeintze [Modified links pointing to docs server]
Additions:
%%(php;595)$text = preg_replace_callback(
Deletions:
%%php;595$text = preg_replace_callback(


Revision [17533]

Edited on 2007-09-28 03:34:14 by AndreasHeintze [Modified links pointing to docs server]
Additions:
In wakka.php add this:
%%php;595$text = preg_replace_callback(
Deletions:
In wakka.php add this:""
%%$text = preg_replace_callback(
%%""


Revision [17532]

Edited on 2007-09-28 03:31:30 by AndreasHeintze [Modified links pointing to docs server]
Additions:
In wakka.php add this:""
%%""
Deletions:
In wakka.php add this:


Revision [17531]

Edited on 2007-09-28 03:30:36 by AndreasHeintze [Modified links pointing to docs server]
Additions:
In wakka.php add this:
%%$text = preg_replace_callback(
"/(".
":::.*?:::|". # TabsMenu <== just add this line
"%%.*?%%|". # code
"\"\".*?\"\"|". # literal
$mind_map_pattern.
"\[\[[^\[]*?\]\]|". # forced link
"-{4,}|---|". # separator (hr)
"\b[a-z]+:\/\/\S+|". # URL
"\*\*|\'\'|\#\#|\#\%|@@|::c::|\>\>|\<\<|££|¥¥|\+\+|__|<|>|\/\/|". # Wiki markup
"======|=====|====|===|==|". # headings
"\n([\t~]+)(-|&|[0-9a-zA-Z]+\))?|". # indents and lists
"\|[^\|]*?\|(?:\n)?|". # Simple Tables
"\{\{.*?\}\}|". # action
"\b[A-ZÅÄÖÜ][A-Za-zÅÄÖÜßåäöü]+[:](?![=_])\S*\b|". # InterWiki link
"\b([A-ZÅÄÖÜ]+[a-zßåäöü]+[A-Z0-9ÅÄÖÜ][A-Za-z0-9ÅÄÖÜßåäöü]*)\b|". # CamelWords
"\n". # new line
")/ms", "wakka2callback", $text);


Revision [17530]

Edited on 2007-09-28 03:26:48 by AndreasHeintze [Modified links pointing to docs server]
Additions:
..and here is what you need to add to your wikka system:
In wikka.css add:
%%/* Action: tab */
.tabline {
margin: 0px;
border-bottom: 1px solid #000;
background-color: #F7F7F7;
}
.activetab {
margin: 0px;
padding-left: 4px;
padding-right: 4px;
border-top: 2px solid #000;
border-left: 1px solid #000;
border-right: 1px solid #000;
background-color: #F7F7F7;
}
.inactivetab {
margin: 0px;
padding-left: 4px;
padding-right: 4px;
border: 1px solid #000;
background-color: #E0E0E0;
}
%%
You may need to change the background color to match your pages backgrounds.


Revision [17529]

Edited on 2007-09-28 03:23:32 by AndreasHeintze [Modified links pointing to docs server]
Additions:
{{image url="http://www.home.no/foof/tabs.jpg"}}


Revision [17528]

Edited on 2007-09-28 03:20:03 by AndreasHeintze [Modified links pointing to docs server]
Additions:
By adding this piece of code on your pages:
%%:::[[FirstTab This is the first tab]]::[[SecondTab Second tab]]::@[[ThirdTab Third tab]]::[[LastTab Last tab]]:::%%


Revision [17527]

Edited on 2007-09-28 03:14:14 by AndreasHeintze [Modified links pointing to docs server]
Additions:



Revision [17526]

Edited on 2007-09-28 03:06:34 by AndreasHeintze [Modified links pointing to docs server]
Additions:
=====TabsMenu=====
Deletions:
=====TabsMenu====


Revision [17525]

The oldest known version of this page was created on 2007-09-28 03:06:16 by AndreasHeintze [Modified links pointing to docs server]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki