"{\$Titlespaced} — $WikiTitle", 'title' => '{$Titlespaced}', 'sidebar_title' => 'Navigation', 'search_title' => '[[$[Search] -> $[{$SiteGroup}/Search]]]', 'footer' => ' %lastmod%$[Page last modified on {$LastModified}] * %item rel=nofollow% %navbox% [[▲ $[Top] ▲ -> {$FullName}#monobook_topofpage]] * %item rel=nofollow% [[$[Search] -> $[{$SiteGroup}/Search]]] * %item rel=nofollow% [[$[Recent Changes] -> $[{$Group}/RecentChanges]]] * %item rel=nofollow% [[$[All Recent Changes] -> $[{$SiteGroup}/AllRecentChanges]]] ', 'pageactions' => ' * %item rel=nofollow% [[$[View] -> {$FullName}?action=browse]] %comment%[[{$Groupspaced}/… -> {$Group}]]%% * %item rel=nofollow% [[$[Edit Page] -> {$FullName}?action=edit]] * %item rel=nofollow% [[$[Page Attributes] -> {$FullName}?action=attr]] * %item rel=nofollow% [[$[Page History] -> {$FullName}?action=diff]] * %item rel=nofollow% [[$[Upload] -> {$FullName}?action=upload]] ', 'leftbardisabled' => false, 'tabsdisabled' => false, 'attachalias' => 'AttachClip:', 'rightbardisabled' => true, )); global $SkinPartStylesFmt; SDVA($SkinPartStylesFmt, array( 'leftbardisabled' => '#content { margin-left: 0; }', 'tabsdisabled' => '#header { border-bottom: none; }', )); # Ensure local CSS customization files are included *after* skin style global $HTMLHeaderFmt; $HTMLHeaderFmt[] = "\n"; function RenderStyle($pagename, $params) { global $SkinPartFmt, $SkinPartStylesFmt; preg_match('/^\s*(!?)\s*(\S+)$/s', $params, $m); $bool = $SkinPartFmt[$m[2]]; $style = $SkinPartStylesFmt[$m[2]]; print ($m[1] ? ! $bool : $bool) ? "" : ''; } function RenderPart($pagename, $part, $strip = '') { global $SkinPartFmt, $PCache; $n = "skin_$part"; if(!isset($PCache[$pagename][$n])) { $t = ''; if($SkinPartFmt[$part]) { $t = htmlspecialchars($SkinPartFmt[$part], ENT_NOQUOTES); $t = MarkupToHTML($pagename, "<:block>$t", array('escape' => 0)); } $PCache[$pagename][$n] = $strip ? preg_replace($strip, '', $t) : $t; } print $PCache[$pagename][$n]; } function RenderTitle($pagename) { RenderPart($pagename, 'wikititle', "/(<[^>]+>|\r\n?|\n\r?)/"); } function RetrievePageMarkup($pagelist) { foreach($pagelist as $p) { if (PageExists($p)) { $page = RetrieveAuthPage($p, 'read', false, READPAGE_CURRENT); return array($page['text'], @$page['title']); break; } } return null; } function RenderActions($pagename, $actionslist) { global $action, $SkinPartFmt; $pagelist = preg_split('/\s+/', $actionslist, -1, PREG_SPLIT_NO_EMPTY); list($text,) = RetrievePageMarkup($pagelist); SDV($text, preg_replace("/(\r\n|\n?\r)/", "\n", $SkinPartFmt['pageactions'])); preg_match('/(<([uo])l>(?:.*)<\\/\\2l>)/si', MarkupToHTML($pagename, $text), $m); $ls = explode("", str_replace("\n", "", $m[1])); $lRe = "/(.*?)(.*?)<\\/a>(.*)/i"; foreach($ls as $i => $l) { if(preg_match($lRe, $l, $l1)) { $laction = preg_match("/action=(.*)/i", $l1[2], $a) ? $a[1] : 'browse'; if($action == $laction) { $ls[$i] = $l1[1]; if($l1[4] && preg_match($lRe, $l1[4], $l2)) $ls[$i] .= "" . $l2[3] . ""; else $ls[$i] .= "

" . $l1[3] . "

"; } } } print implode("\n", $ls); } function RenderSidePart($pagename, $params) { $pagelist = preg_split('/\s+/', $params, -1, PREG_SPLIT_NO_EMPTY); $class_title = array_shift($pagelist); $class = array_shift($pagelist); $id = array_shift($pagelist); list($text, $title) = RetrievePageMarkup($pagelist); if(!isset($text)) return; $orig_page_title = PageVar($pagename, '$Title'); print "
$title
"; print MarkupToHTML($pagename, $text); print "
"; PCache($pagename, array('title' => SetProperty($pagename, 'title', $orig_page_title))); } # Markup extension # (:noleft:), (:nosidebar:) => remove sidebar # (:notabs:) => remove tabs above page content # (:noprint:) => remove print action link # Markup('noleft', 'directives', '/\\(:noleft:\\)/i', "NoLeftBar"); Markup('nosidebar', 'directives', '/\\(:nosidebar:\\)/i', "NoLeftBar"); Markup('notabs', 'directives', '/\\(:no(action|tab)s?:\\)/i', "NoTabs"); function NoLeftBar() { global $SkinPartFmt; $SkinPartFmt['leftbardisabled'] = true; SetTmplDisplay('PageLeftFmt', 0); } function NoTabs() { global $SkinPartFmt; $SkinPartFmt['tabsdisabled'] = true; SetTmplDisplay('PageTabsFmt', 0); } # links decoration global $EnableSkinLinkDecoration; if(IsEnabled($EnableSkinLinkDecoration, 1)) { global $SkinPartFmt, $IMapLinkFmt, $LinkFunctions, $IMap; global $LinkPageCreateFmt, $LinkUploadCreateFmt, $UrlLinkFmt; $intermap = $SkinPartFmt['attachalias']; $IMapLinkFmt['Attach:'] = "\$LinkText"; $IMapLinkFmt[$intermap] = "\$LinkText"; $LinkFunctions[$intermap] = 'LinkUpload'; $IMap[$intermap] = '$1'; $LinkPageCreateFmt = "\$LinkText"; $LinkUploadCreateFmt = "\$LinkText"; # $UrlLinkFmt = "\$LinkText"; } # Right bar handling -- WARNING: this is un-maintained code if($SkinPartFmt['rightbardisabled']) SetTmplDisplay('PageRightFmt', 0); else { global $Now, $RightBarClass; SDV($RightbarCookieExpires, $Now + 60*60*24*365); # cookie expire time defaults to 1 year SDV($DefaultRightBar, 'narrow'); $PageRightBarList = array ( '0' => 'rb-none', 'off' => 'rb-none', 'on' => 'rb-narrow', '1' => 'rb-narrow', 'narrow' => 'rb-narrow', '2' => 'rb-normal', 'normal' => 'rb-normal', '3' => 'rb-wide', 'wide' => 'rb-wide', ); if(isset($_COOKIE['setrb'])) $rb = $_COOKIE['setrb']; if(isset($_GET['setrb'])) { $rb = $_GET['setrb']; setcookie('setrb', $rb, $RightbarCookieExpires, '/'); } if(isset($_GET['rb'])) $rb = $_GET['rb']; $RightBarClass = isset($PageRightBarList[$rb]) ? $PageRightBarList[$rb] : $PageRightBarList[$DefaultRightBar]; global $action; } Markup('showright', 'directives', '/\\(:showright:\\)/', 'mu_showright'); function mu_showright(){ if($GLOBALS['action'] == 'browse') SetTmplDisplay('PageRightFmt', 1); return ""; }