* * Examples at: http://pmwiki.com/Cookbook/DropShadow and http://solidgone.org/Skins/ * Copyright (c)2016 David Gilbert * This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. * Please retain the links in the footer. * http://creativecommons.org/licenses/by-sa/4.0/ */ global $FmtPV; $FmtPV['$SkinName'] = '"DropShadow"'; $FmtPV['$SkinVersion'] = '"2.2.4"'; global $PageLogoUrl, $PageLogoUrlHeight, $PageLogoUrlWidth, $HTMLStylesFmt; if (!empty($PageLogoUrl)) { dg_SetLogoHeightWidth(15); $HTMLStylesFmt['dropshadow'] .= '#siteheader .sitetitle a{height:' . $PageLogoUrlHeight . '; background: url(' . $PageLogoUrl . ') left top no-repeat} ' . '#siteheader .sitetitle a, #siteheader .sitetag{padding-left: ' . $PageLogoUrlWidth . '} ' . '#siteheader .sitetag{margin-top: ' . (35 - substr($PageLogoUrlHeight, 0, -2)) . 'px}'; } $SkinColor = dg_SetSkinColor('blue', array('red', 'blue', 'orange', 'yellow', 'green')); # ---------------------------------------- # - Standard Skin Setup # ---------------------------------------- $FmtPV['$WikiTitle'] = '$GLOBALS["WikiTitle"]'; $FmtPV['$WikiTag'] = '$GLOBALS["WikiTag"]'; # Move any (:noleft:) or SetTmplDisplay('PageLeftFmt', 0); directives to variables for access in jScript. $FmtPV['$LeftColumn'] = "\$GLOBALS['TmplDisplay']['PageLeftFmt']"; Markup_e('noleft', 'directives', '/\\(:noleft:\\)/i', "SetTmplDisplay('PageLeftFmt',0)"); $FmtPV['$RightColumn'] = "\$GLOBALS['TmplDisplay']['PageRightFmt']"; Markup_e('noright', 'directives', '/\\(:noright:\\)/i', "SetTmplDisplay('PageRightFmt',0)"); $FmtPV['$ActionBar'] = "\$GLOBALS['TmplDisplay']['PageActionFmt']"; Markup_e('noaction', 'directives', '/\\(:noaction:\\)/i', "SetTmplDisplay('PageActionFmt',0)"); $FmtPV['$TabsBar'] = "\$GLOBALS['TmplDisplay']['PageTabsFmt']"; Markup_e('notabs', 'directives', '/\\(:notabs:\\)/i', "SetTmplDisplay('PageTabsFmt',0)"); $FmtPV['$SearchBar'] = "\$GLOBALS['TmplDisplay']['PageSearchFmt']";
* Examples at: http://pmwiki.com/Cookbook/Marinee and http://solidgone.org/Skins/ * Copyright (c) 2010 David Gilbert * This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License. * Please retain the links in the footer. * http://creativecommons.org/licenses/by-sa/3.0/us/ */ global $FmtPV; $FmtPV['$SkinName'] = '"Marinee"'; $FmtPV['$SkinVersion'] = '"2.2.0"'; $FmtPV['$SkinDate'] = '"20100612"'; global $PageLogoUrl, $PageLogoUrlHeight, $PageLogoUrlWidth, $HTMLStylesFmt; if (!empty($PageLogoUrl)) { dg_SetLogoHeightWidth(15); $HTMLStylesFmt['marinee'] .= '#siteheader .sitetitle a{height:' . $PageLogoUrlHeight . '; background: url(' . $PageLogoUrl . ') left top no-repeat} ' . '#siteheader .sitetitle a, #siteheader .sitetag{padding-left: ' . $PageLogoUrlWidth . '} ' . '#siteheader .sitetag{margin-top: ' . (28 - substr($PageLogoUrlHeight, 0, -2)) . 'px}'; } $SkinColor = dg_SetSkinColor('green', array('blue', 'orange', 'green')); # ---------------------------------------- # - Standard Skin Setup # ---------------------------------------- $FmtPV['$WikiTitle'] = '$GLOBALS["WikiTitle"]'; $FmtPV['$WikiTag'] = '$GLOBALS["WikiTag"]'; # Move any (:noleft:) or SetTmplDisplay('PageLeftFmt', 0); directives to variables for access in jScript. $FmtPV['$LeftColumn'] = "\$GLOBALS['TmplDisplay']['PageLeftFmt']"; Markup('noleft', 'directives', '/\\(:noleft:\\)/ei', "SetTmplDisplay('PageLeftFmt',0)"); $FmtPV['$RightColumn'] = "\$GLOBALS['TmplDisplay']['PageRightFmt']"; Markup('noright', 'directives', '/\\(:noright:\\)/ei', "SetTmplDisplay('PageRightFmt',0)"); $FmtPV['$ActionBar'] = "\$GLOBALS['TmplDisplay']['PageActionFmt']"; Markup('noaction', 'directives', '/\\(:noaction:\\)/ei', "SetTmplDisplay('PageActionFmt',0)"); $FmtPV['$TabsBar'] = "\$GLOBALS['TmplDisplay']['PageTabsFmt']"; Markup('notabs', 'directives', '/\\(:notabs:\\)/ei', "SetTmplDisplay('PageTabsFmt',0)"); $FmtPV['$SearchBar'] = "\$GLOBALS['TmplDisplay']['PageSearchFmt']";
global $FmtPV; $FmtPV['$SkinName'] = '"Colorimetry"'; $FmtPV['$SkinVersion'] = '"1.2.3"'; global $PageLogoUrl, $PageLogoUrlHeight, $PageLogoUrlWidth, $HTMLStylesFmt, $SkinTheme; if (!empty($PageLogoUrl)) { dg_SetLogoHeightWidth(15, 16); $HTMLStylesFmt['colorimetry'] .= '#logo .sitetitle a{height:' . $PageLogoUrlHeight . '; background: url(' . $PageLogoUrl . ') left 16px no-repeat} ' . '#logo .sitetitle a, #logo .sitetag{padding-left: ' . $PageLogoUrlWidth . '} '; } global $SkinWidth, $SkinSidebarWidth, $SkinWidthUnit; SDV($SkinWidth, 850); SDV($SkinSidebarWidth, 195); #good percentage width is 25 SDV($SkinWidthUnit, 'px'); #only use 'px' or '%' $HTMLStylesFmt['colorimetry'] .= '#header, #page, #footer-inner { width: ' . $SkinWidth . $SkinWidthUnit . '; } ' . '#content { width: ' . ($SkinWidthUnit == 'px' ? $SkinWidth - $SkinSidebarWidth - 55 : 100 - $SkinSidebarWidth - 5) . $SkinWidthUnit . '; } ' . '#sidebar { width: ' . $SkinSidebarWidth . $SkinWidthUnit . '; } '; $SkinColor = dg_SetSkinColor('green', array('green', 'orange', 'blue', 'purple', 'yellow', 'pink')); # ---------------------------------------- # - Standard Skin Setup # ---------------------------------------- $FmtPV['$WikiTitle'] = '$GLOBALS["WikiTitle"]'; $FmtPV['$WikiTag'] = '$GLOBALS["WikiTag"]'; # Move any (:noleft:) or SetTmplDisplay('PageLeftFmt', 0); directives to variables for access in jScript. $FmtPV['$LeftColumn'] = "\$GLOBALS['TmplDisplay']['PageLeftFmt']"; Markup_e('noleft', 'directives', '/\\(:noleft:\\)/i', "SetTmplDisplay('PageLeftFmt',0)"); $FmtPV['$RightColumn'] = "\$GLOBALS['TmplDisplay']['PageRightFmt']"; Markup_e('noright', 'directives', '/\\(:noright:\\)/i', "SetTmplDisplay('PageRightFmt',0)"); $FmtPV['$ActionBar'] = "\$GLOBALS['TmplDisplay']['PageActionFmt']"; Markup_e('noaction', 'directives', '/\\(:noaction:\\)/i', "SetTmplDisplay('PageActionFmt',0)"); $FmtPV['$TabsBar'] = "\$GLOBALS['TmplDisplay']['PageTabsFmt']"; Markup_e('notabs', 'directives', '/\\(:notabs:\\)/i', "SetTmplDisplay('PageTabsFmt',0)"); $FmtPV['$SearchBar'] = "\$GLOBALS['TmplDisplay']['PageSearchFmt']";
$FmtPV['$SkinVersion'] = '"1.2.2"'; $FmtPV['$SkinDate'] = '"20160331"'; # Default style global $SkinStyle; $ValidSkinStyles = array('fixed', 'fluid'); if (isset($_GET['style']) && in_array($_GET['style'], $ValidSkinStyles)) { $SkinStyle = $_GET['style']; } elseif (!in_array($SkinStyle, $ValidSkinStyles)) { $SkinStyle = 'fixed'; } global $PageLogoUrl, $PageLogoUrlHeight, $PageLogoUrlWidth, $HTMLStylesFmt; if (!empty($PageLogoUrl)) { dg_SetLogoHeightWidth(15); $HTMLStylesFmt['skittlish'] .= '#siteheader .sitetitle a{height:' . $PageLogoUrlHeight . '; background: url(' . $PageLogoUrl . ') left top no-repeat} ' . '#siteheader .sitetitle a, #siteheader .sitetag{padding-left: ' . $PageLogoUrlWidth . '} ' . '#siteheader .sitetag{margin-top: ' . (44 - substr($PageLogoUrlHeight, 0, -2)) . 'px}'; } $SkinColor = dg_SetSkinColor('orange', array('blue', 'cyan', 'green', 'orange', 'pink', 'red', 'violet')); global $skittlish_DefaultStyle; $skittlish_DefaultStyle = $SkinStyle . ' ' . $SkinColor; # Move any (:noleft:) or SetTmplDisplay('PageLeftFmt', 0); directives to variables for access in jScript. $FmtPV['$PageOptions'] = "\$GLOBALS['TmplDisplay']['PageOptionsFmt']"; Markup_e('nooptions', 'directives', '/\\(:nooptions:\\)/i', "SetTmplDisplay('PageOptionsFmt',0)"); # ---------------------------------------- # - Standard Skin Setup # ---------------------------------------- $FmtPV['$WikiTitle'] = '$GLOBALS["WikiTitle"]'; $FmtPV['$WikiTag'] = '$GLOBALS["WikiTag"]'; # Move any (:noleft:) or SetTmplDisplay('PageLeftFmt', 0); directives to variables for access in jScript. $FmtPV['$LeftColumn'] = "\$GLOBALS['TmplDisplay']['PageLeftFmt']"; Markup_e('noleft', 'directives', '/\\(:noleft:\\)/i', "SetTmplDisplay('PageLeftFmt',0)"); $FmtPV['$RightColumn'] = "\$GLOBALS['TmplDisplay']['PageRightFmt']"; Markup_e('noright', 'directives', '/\\(:noright:\\)/i', "SetTmplDisplay('PageRightFmt',0)");
global $FmtPV; $FmtPV['$SkinName'] = '"Blix"'; $FmtPV['$SkinVersion'] = '"2.1.5"'; global $Blix_Width, $Blix_TitleBg, $Blix_TitleColor, $SkinDirUrl, $HTMLStylesFmt; if (!empty($Blix_TitleBg)) { $HTMLStylesFmt['blix'] .= '#header {background-image:url(' . $SkinDirUrl . '/images/backgrounds/' . $Blix_TitleBg . '); ' . (!empty($Blix_TitleColor) ? ' background-color:' . $Blix_TitleColor . ';' : '') . '}'; } if (!empty($Blix_Width)) { $HTMLStylesFmt['blix'] .= '#container, #credits {max-width:' . $Blix_Width . ';}'; } global $PageLogoUrl, $PageLogoUrlHeight, $PageLogoUrlWidth, $SkinColor; if (!empty($PageLogoUrl)) { dg_SetLogoHeightWidth(15); $HTMLStylesFmt['blix'] .= '#header .sitetitle a{height:' . $PageLogoUrlHeight . '; background: url(' . $PageLogoUrl . ') left top no-repeat} ' . '#header .sitetitle a, #header .sitetag{padding-left: ' . $PageLogoUrlWidth . '} ' . '#header .sitetag{margin-top: ' . (30 - substr($PageLogoUrlHeight, 0, -2)) . 'px}'; } $SkinColor = dg_SetSkinColor('spring', array('spring', 'autumn')); global $HTMLHeaderFmt; SDV($HTMLHeaderFmt['jquery.js'], '<script type="text/javascript" src="' . $SkinDirUrl . '/javascript/jquery.min.js"></script>'); SDV($HTMLHeaderFmt['blix.js'], '<script type="text/javascript" src="' . $SkinDirUrl . '/javascript/blix.js"></script>'); # ---------------------------------------- # - Standard Skin Setup # ---------------------------------------- $FmtPV['$WikiTitle'] = '$GLOBALS["WikiTitle"]'; $FmtPV['$WikiTag'] = '$GLOBALS["WikiTag"]'; # Move any (:noleft:) or SetTmplDisplay('PageLeftFmt', 0); directives to variables for access in jScript. $FmtPV['$LeftColumn'] = "\$GLOBALS['TmplDisplay']['PageLeftFmt']"; Markup_e('noleft', 'directives', '/\\(:noleft:\\)/i', "SetTmplDisplay('PageLeftFmt',0)"); $FmtPV['$RightColumn'] = "\$GLOBALS['TmplDisplay']['PageRightFmt']"; Markup_e('noright', 'directives', '/\\(:noright:\\)/i', "SetTmplDisplay('PageRightFmt',0)"); $FmtPV['$ActionBar'] = "\$GLOBALS['TmplDisplay']['PageActionFmt']"; Markup_e('noaction', 'directives', '/\\(:noaction:\\)/i', "SetTmplDisplay('PageActionFmt',0)");
* Examples at: http://pmwiki.com/Cookbook/GlossyHue and http://solidgone.org/Skins/ * Copyright (c)2016 David Gilbert * This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. * Please retain the links in the footer. * http://creativecommons.org/licenses/by-sa/4.0/ */ global $FmtPV; $FmtPV['$SkinName'] = '"GlossyHue"'; $FmtPV['$SkinVersion'] = '"2.2.1"'; $FmtPV['$SkinDate'] = '"20160225"'; global $PageLogoUrl, $PageLogoUrlHeight, $PageLogoUrlWidth, $HTMLStylesFmt, $SkinColor; if (!empty($PageLogoUrl)) { dg_SetLogoHeightWidth(15); $HTMLStylesFmt['glossyhue'] .= '#siteheader .sitetitle a{height:' . $PageLogoUrlHeight . '; background: url(' . $PageLogoUrl . ') left top no-repeat} ' . '#siteheader .sitetitle a, #siteheader .sitetag{padding-left: ' . $PageLogoUrlWidth . '} ' . '#siteheader .sitetag{margin-top: ' . (35 - substr($PageLogoUrlHeight, 0, -2)) . 'px}'; } $SkinColor = dg_SetSkinColor('blue', array('blue')); # ---------------------------------------- # - Standard Skin Setup # ---------------------------------------- $FmtPV['$WikiTitle'] = '$GLOBALS["WikiTitle"]'; $FmtPV['$WikiTag'] = '$GLOBALS["WikiTag"]'; # Move any (:noleft:) or SetTmplDisplay('PageLeftFmt', 0); directives to variables for access in jScript. $FmtPV['$LeftColumn'] = "\$GLOBALS['TmplDisplay']['PageLeftFmt']"; Markup_e('noleft', 'directives', '/\\(:noleft:\\)/i', "SetTmplDisplay('PageLeftFmt',0)"); $FmtPV['$RightColumn'] = "\$GLOBALS['TmplDisplay']['PageRightFmt']"; Markup_e('noright', 'directives', '/\\(:noright:\\)/i', "SetTmplDisplay('PageRightFmt',0)"); $FmtPV['$ActionBar'] = "\$GLOBALS['TmplDisplay']['PageActionFmt']"; Markup_e('noaction', 'directives', '/\\(:noaction:\\)/i', "SetTmplDisplay('PageActionFmt',0)"); $FmtPV['$TabsBar'] = "\$GLOBALS['TmplDisplay']['PageTabsFmt']"; Markup_e('notabs', 'directives', '/\\(:notabs:\\)/i', "SetTmplDisplay('PageTabsFmt',0)"); $FmtPV['$SearchBar'] = "\$GLOBALS['TmplDisplay']['PageSearchFmt']";
* * Examples at: http://pmwiki.com/Cookbook/Choice and http://solidgone.org/Skins/ * Copyright (c)2016 David Gilbert * This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License. * Please retain the links in the footer. * http://creativecommons.org/licenses/by-sa/4.0/ */ global $FmtPV; $FmtPV['$SkinName'] = '"Choice"'; $FmtPV['$SkinVersion'] = '"1.1.3"'; global $PageLogoUrl, $PageLogoUrlHeight, $PageLogoUrlWidth, $HTMLStylesFmt, $SkinTheme; if (!empty($PageLogoUrl)) { dg_SetLogoHeightWidth(15, 16); $HTMLStylesFmt['choice'] .= '#head .sitetitle a{height:' . $PageLogoUrlHeight . '; background: url(' . $PageLogoUrl . ') left 16px no-repeat} ' . '#head .sitetitle a, #head .sitetag{padding-left: ' . $PageLogoUrlWidth . '} '; } $SkinColor = dg_SetSkinColor('green_muted', array('blue_bold', 'blue_muted', 'green_bold', 'green_muted', 'orange_bold', 'orange_muted')); $SkinTheme = isset($_GET['skintheme']) ? 'class=\'' . $_GET['skintheme'] . '\'' : (isset($SkinTheme) ? 'class=\'' . $SkinTheme . '\'' : ''); # ---------------------------------------- # - Standard Skin Setup # ---------------------------------------- $FmtPV['$WikiTitle'] = '$GLOBALS["WikiTitle"]'; $FmtPV['$WikiTag'] = '$GLOBALS["WikiTag"]'; # Move any (:noleft:) or SetTmplDisplay('PageLeftFmt', 0); directives to variables for access in jScript. $FmtPV['$LeftColumn'] = "\$GLOBALS['TmplDisplay']['PageLeftFmt']"; Markup_e('noleft', 'directives', '/\\(:noleft:\\)/i', "SetTmplDisplay('PageLeftFmt',0)"); $FmtPV['$RightColumn'] = "\$GLOBALS['TmplDisplay']['PageRightFmt']"; Markup_e('noright', 'directives', '/\\(:noright:\\)/i', "SetTmplDisplay('PageRightFmt',0)"); $FmtPV['$ActionBar'] = "\$GLOBALS['TmplDisplay']['PageActionFmt']"; Markup_e('noaction', 'directives', '/\\(:noaction:\\)/i', "SetTmplDisplay('PageActionFmt',0)"); $FmtPV['$TabsBar'] = "\$GLOBALS['TmplDisplay']['PageTabsFmt']"; Markup_e('notabs', 'directives', '/\\(:notabs:\\)/i', "SetTmplDisplay('PageTabsFmt',0)");