'c-blue.css', 'sky' => 'c-sky.css', 'sky-blue' => 'c-sky-blue.css', 'sand' => 'c-sand.css', 'silver' => 'c-silver.css', 'lavender' => 'c-lavender.css', 'lilac' => 'c-lilac.css', 'pink' => 'c-pink.css', 'red-gold' => 'c-red-gold.css', 'green-gold' => 'c-green-gold.css', 'parch-blue' => 'c-parch-blue.css', 'parch-yellow' => 'c-parch-yel.css', 'night' => 'c-night-blue.css', 'stars' => 'c-night-stars.css', )); SDVA($PageFontList, array ( 'sans' => 'font-sans.css', 'verdana' => 'font-verdana.css', 'georgia' => 'font-georgia.css', 'times' => 'font-times.css', 'palatino' => 'font-palatino.css', 'monospace' => 'font-lucida.css', 'courier' => 'font-courier.css', 'comic' => 'font-comic.css' )); $PageLayoutList = array ( 'standard' => 'layout-standard.css', 'smallheader' => 'layout-smallheader.css' ); $PageSidebarList = array ( 'left' => 'sidebar-left.css', 'right' => 'sidebar-right.css' ); $PageMenuList = array( 'fixed' => 'fixed', 'scroll' => 'scroll' ); $PageRightbarList = array ( '0' => 'rb-none.css', 'off' => 'rb-none.css', 'on' => 'rb-narrow.css', '1' => 'rb-narrow.css', 'narrow' => 'rb-narrow.css', '2' => 'rb-normal.css', 'normal' => 'rb-normal.css', '3' => 'rb-wide.css', 'wide' => 'rb-wide.css', ); # =========== end of configuration section of skin.php ================= # # compatibility check with pmwiki version number global $VersionNum, $CompatibilityNotice; if($VersionNum < '2001018') $CompatibilityNotice = "

Compatibility problem: Please upgrade to the latest pmwiki version

"; # check for javascript cookie, set $javascript var for (:if enabled javascript:) switch global $javascript; if (isset($_COOKIE['javascript'])) $javascript = $_COOKIE['javascript']; # add fontsizer if($EnableFontSizer==1) include_once("$SkinDir/fontsizer.php"); # switch to hide FontSizer links if ($EnableSidebarFontSizer ==0) $HTMLStylesFmt[] = " #sidebarfontsizer {display:none} \n"; # define variables global $Now, $LayoutCss, $SidebarCss, $MenuCss, $RightbarCss, $FontCss, $ColorCss, $IE6Css, $IE5Css, $HTMLStylesFmt, $SkinDir; $sc = $DefaultColor; $sf = $DefaultFont; $sl = $DefaultLayout; $ss = $DefaultSidebar; $sm = $DefaultMenu; $sr = $DefaultRightbar; $ColorCss = $PageColorList[$sc]; $FontCss = $PageFontList[$sf]; $LayoutCss = $PageLayoutList[$sl]; $SidebarCss = $PageSidebarList[$ss]; $RightbarCss = $PageRightbarList[$sr]; # add stylechange.php for cookie setting code if set. if ($EnableStyleOptions == 1) {include_once("$SkinDir/stylechange.php");}; # do not show rightbar box if RightBar is empty $prb = FmtPageName('$FullName-RightBar',$pagename); $grb = FmtPageName('$Group.RightBar',$pagename); $srb = FmtPageName('$SiteGroup.RightBar',$pagename); if (PageExists($prb)) $rpage = ReadPage($prb); if (PageExists($grb)) $rpage .= ReadPage($grb); if (PageExists($srb)) $rpage .= ReadPage($srb); if(@$rpage['text']=='') {$HTMLStylesFmt[] = " #rightbar { display:none } \n";}; #=== fixflow only switch logics ===# # switch from default fixed menu to scrolled menu if ($FixFlowSkin) { if ($sm == 'scroll') { $HTMLStylesFmt[] = " #sidebarbox, #header {position: absolute;} \n body, #wrapper { background-attachment: scroll } \n "; }; if ($sm == 'fixed') { $HTMLStylesFmt[] = " body, #wrapper { background-attachment: fixed } \n "; }; # IE6 css hack switch: global $sbpos; if ($ss == 'right') { $IE6Css = 'ie6fix-right.css'; $IE5Css = 'ie5fix-right.css'; if ($sm == 'scroll') { $IE6Css = 'ie6scroll-right.css'; $IE5Css = 'ie5scroll-right.css'; } }; if ($ss == 'left') { $sbpos = 'left'; $IE6Css = 'ie6fix-left.css'; $IE5Css = 'ie5fix-left.css'; if ($sm == 'scroll') { $IE6Css = 'ie6scroll-left.css'; $IE5Css = 'ie5scroll-left.css'; } }; # floating rightbar left if sidebar right if ($ss =='right') { $HTMLStylesFmt[] = " #rightbar {margin:-1em 1em 0.25em -2.5em; float:left;} \n * html #rightbar {margin:-1em 1em 0.25em -1.2em; } \n"; }; ## set scrollswitch to enable showing Menu Scrolled/Fixed links in sidebar global $scrollswitch; $scrollswitch = 1; }; #=== end fixflow only ===# # logo-position switching (gemini) if ($GeminiSkin) { if ($LayoutCss==$PageLayoutList['smallheader']) { SetTmplDisplay('PageHeaderFmt', 0); }; if ($LayoutCss==$PageLayoutList['standard']) { $HTMLStylesFmt[]=" #sideheader.pageheader {display:none}\n"; }; }; # logo switchlogic # displays if exist page PageHeader, otherwise $PageLogoUrl defined in config.php global $LogoFmt; $LogoFmt = "\$WikiTitle"; $ghdr = FmtPageName('$Group.PageHeader',$pagename); $shdr = FmtPageName('$SiteGroup.PageHeader',$pagename); if (PageExists($shdr)) $LogoFmt = ""; if (PageExists($ghdr)) $LogoFmt = ""; ## add alternative searchbox markup include_once("$SkinDir/searchbox2.php"); # switch to hide sidebar searchbox global $smallsearchbox; if ($EnableSidebarSearchbox == 0) { $HTMLStylesFmt[] = " #sidebarsearch {display:none} \n"; $smallsearchbox = 1; }; # switch to hide RightBar if ($EnableRightBar==1) SetTmplDisplay('PageRightFmt', 1); else SetTmplDisplay('PageRightFmt', 0); # changes to extended markup recipe for selflink definition: global $LinkPageSelfFmt; $LinkPageSelfFmt = "\$LinkText"; # switch to hide group-link in titlebar global $PageGroup; $PageGroup = FmtPageName('',$pagename); if ($EnableGroupTitle == 1) { $PageGroup = FmtPageName('$Groupspaced',$pagename); } else { $PageGroup = FmtPageName('',$pagename); }; # Markup (:nogroup:) to hide group link in titlebar function NoPageGroup() { global $PageGroup; $PageGroup = FmtPageName('',$pagename); return ''; } Markup('nogroup','directives','/\\(:nogroup:\\)/e', "NoPageGroup()"); #adding switch for 'Pagename-Titlebar' subpage for fancy font titlebars $ftb = FmtPageName('$FullName-TitleBar',$pagename); if(PageExists($ftb)) $HTMLStylesFmt[] = " .titlelink { display:none } \n "; ## Markup (:noleft:) redefinition function NoLeftBar() { global $HTMLStylesFmt, $PageLeftFmt; SetTmplDisplay('PageLeftFmt',0); $HTMLStylesFmt[] = " #main { margin-left:0; width:100%; padding-right:0;} #sidebar{margin-left:-500px} #outer{margin-left:0} #left {width:0} \n "; return ''; } Markup('noleft','directives','/\\(:noleft:\\)/e', "NoLeftBar()"); ## Markup (:showright:) (but never shows RB in edit mode) global $action; if ($action != 'edit') { Markup('showright','directives','/\\(:showright:\\)/e', "SetTmplDisplay('PageRightFmt', 1)"); }; ## Markup (:notopmenu:) function NoTopMenu() { global $HTMLStylesFmt, $PageTopMenuFmt; SetTmplDisplay('PageTopMenuFmt',0); $HTMLStylesFmt[] = " #titlebar { margin-top:5px } \n "; return ''; } Markup('notopmenu','directives','/\\(:notopmenu:\\)/e', "NoTopMenu()"); ## Markup (:nofootmenu:) Markup('nofootmenu','directives','/\\(:nofootmenu:\\)/e', "SetTmplDisplay('PageFootMenuFmt', 0)"); ## Markup (:noaction:) = notopmenu + nofootmenu function NoAction2() { NoTopMenu(); SetTmplDisplay('PageFootMenuFmt', 0); return ''; } Markup('noaction','directives','/\\(:noaction:\\)/e', "NoAction2()"); ## Markup (:noheader:) function NoHeader() { global $HTMLStylesFmt, $PageHeaderFmt; SetTmplDisplay('PageHeaderFmt',0); $HTMLStylesFmt[] = " #clearheader {height:1px; } #header { display:none; } \n "; return ''; } Markup('noheader','directives','/\\(:noheader:\\)/e', "NoHeader()"); ## Markup (:theme colorname fontname:) function SetTheme($sc,$sf) { global $ColorCss, $PageColorList, $FontCss, $PageFontList, $HTMLStylesFmt, $EnableThemes; if (@$PageColorList[$sc]) $ColorCss = $PageColorList[$sc]; if($sf) { if (@$PageFontList[$sf]) $FontCss = $PageFontList[$sf];}; # } }; if($EnableThemes == 1) { Markup('theme', 'fulltext', '/\\(:theme\\s+([-\\w]+)\\s*([-\\w]*)\\s*:\\)/e', "PZZ(SetTheme('$1', '$2'))"); } else { Markup('theme', 'fulltext', '/\\(:theme\\s+([-\\w]+)\\s*([-\\w]*)\\s*:\\)/e', ""); }; ## add double line horiz rule markup ==== Markup('^====','>^->','/^====+/','<:block,1>
'); ## removing rightbar, header, title for history and uploads windows global $action; if ($action=='diff' || $action=='upload') { SetTmplDisplay('PageRightFmt', 0); SetTmplDisplay('PageHeaderFmt', 0); SetTmplDisplay('PageTitleFmt', 0); }; ## alternative Diff (History) form with link in title global $PageDiffFmt, $PageUploadFmt; $PageDiffFmt = "

\$FullName $[History]

\$DiffMinorFmt - \$DiffSourceFmt - $[Cancel]

"; ## alternative Uploads form with link in title $PageUploadFmt = array("

$[Attachments for] {\$FullName}

\$UploadResult

$[File to upload:]

$[Name attachment as:]


", 'wiki:$[{$SiteGroup}/UploadQuickReference]'); ## provide backward compatibility for non-relative urls if ($VersionNum < 2001900) Markup('{*$var}', '<{$var}', '/\\{\\*\\$/', '{$'); ###### ## automatic loading of skin default config pages global $WikiLibDirs, $SkinDir; $where = count($WikiLibDirs); if ($where>1) $where--; array_splice($WikiLibDirs, $where, 0, array(new PageStore("$SkinDir/wikilib.d/\$FullName"))); global $XLLangs, $PageEditForm; SDV($PageEditForm,'Site.Gemini-EditForm'); XLPage('gemini', 'Site.Gemini-Configuration' ); array_splice($XLLangs, -1, 0, array_shift($XLLangs));