Revision [17536]

This is an old revision of TabsMenu made by AndreasHeintze on 2007-09-28 03:36:31.

 

TabsMenu


This is what you will get:
 (image: http://www.home.no/foof/tabs.jpg)

By adding this piece of code on your pages:
:::[[FirstTab This is the first tab]]::[[SecondTab Second tab]]::@[[ThirdTab Third tab]]::[[LastTab Last tab]]:::


..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.


In wakka.php add this:
  1.     "/(".
  2.     ":::.*?:::|".                                                                           # TabsMenu  <== just add this line
  3.     "\%\%.*?\%\%|".                                                                             # code
  4.     "\"\".*?\"\"|".                                                                         # literal
  5.     $mind_map_pattern.
  6.     "\[\[[^\[]*?\]\]|".                                                                     # forced link
  7.     "-{4,}|---|".                                                                           # separator (hr)
  8.     "\b[a-z]+:\/\/\S+|".                                                                    # URL
  9.     "\*\*|\'\'|\#\#|\#\%|@@|::c::|\>\>|\<\<|&pound;&pound;|&yen;&yen;|\+\+|__|<|>|\/\/|".   # Wiki markup
  10.     "======|=====|====|===|==|".                                                            # headings
  11.     "\n([\t~]+)(-|&|[0-9a-zA-Z]+\))?|".                                                     # indents and lists
  12.     "\|[^\|]*?\|(?:\n)?|".                                                                  # Simple Tables
  13.     "\{\{.*?\}\}|".                                                                         # action
  14.     "\b[A-ZÅÄÖÜ][A-Za-zÅÄÖÜßåäöü]+[:](?![=_])\S*\b|".                                          # InterWiki link
  15.     "\b([A-ZÅÄÖÜ]+[a-zßåäöü]+[A-Z0-9ÅÄÖÜ][A-Za-z0-9ÅÄÖÜßåäöü]*)\b|".                              # CamelWords
  16.     "\n".                                                                                   # new line
  17.     ")/ms", "wakka2callback", $text);
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki