Grease

Grayness < Skins > Green   (talk | users | test page | RWD? | set as default | unset | validate: HTML, CSS)

Summary: Minimalistic skin inspired by the Dive Into Greasemonkey online book.
Version: 20070125
Status: Stable
Prerequisites: pmwiki-2.1
Maintainer: Dfaure
Categories: Skins
Download: grease.zip

About

This minimalistic skin is inspired from the Dive Into Greasemonkey (dead link <see talk>) online book. I found it visually so pleasant to read that I decided to give it to PmWiki (anyway, a wiki is somewhere also a kind of online book).

Installation

To use the Grease skin for your own Wiki, just download grease.zip, extract it into /path/to/pmwiki/pub/skins/ and add the following code to your local configuration file:

 # Specifies the name of the template file
 # to be used to generate pages.
 $Skin = 'grease';

For PHP 5.5-7.2 or newer please use grease72.php instead of grease.php.

Features

The skin current features are:

  • Full CSS driven (no tables),
  • Zoom support (no fixed size fonts),
  • Developed and tested under IE6/7 and Firefox.
  • Easy page header customization (see below).
Nota
This skin implements external links decoration like Monobook skin does. Please refer to it for related hint.

Header customization

All "fixed" parts of the header (title, group/name subtitle, non-contextual actions) may be customized from the configuration file via the $SkinPartFmt array variable, and with regular markup definitions. The skin defaults are:

$SkinPartFmt['wikititle'] = "$WikiTitle - {\$Titlespaced}";

$SkinPartFmt['title'] = '{$Titlespaced}';

$SkinPartFmt['subtitle']
    = '[[{$Groupspaced}]]&nbsp;&#8594;&nbsp;[[{$Namespaced}]]';

$SkinPartFmt['actions'] = ...;

$SkinPartFmt['sep'] = '&middot;';

The skin layout prevent using PageActions pages for defining something else than an action list.

As an interesting side effect, the (:title ...:) directive will therefore handle regular markup (emphasis, links, ...).

Contributor

-- Dfaure

History

2007-01-25
Fixed $EnableStopWatch handling.
2006-11-17
Added RecipeInfo data. Fixed header layout (IE7) and i18n issues.
2006-03-01
Fixed (:noright:) directive and attachment decoration behavior.
2005-09-30
Added header customization feature.
2005-09-07
Added handling of Site.PageActions (introduced with PmWiki v2.0 default skin).
2005-09-05
Fixed several visual bugs including latest SideBar styling.
2005-08-24
Minor bug fix.
2005-08-23
Initial release.

Comments

Is there a way to reduce the vertical space taken by the header block. When editing a page, it forces you to scroll down to hit the Save, Save and edit, etc. buttons.

Feel free to alter the skins files, or more easily, edit the Site.EditForm to have the buttons before the text area in the edit form. --Dfaure

User notes +1: If you use, used or reviewed "Grease", you can add your name. These statistics appear in the Skins listings and will help newcomers browsing through the wiki.


 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.20 00.20 MarkupToHTML begin
 3: 00.21 00.21 FPLTemplate: Chain begin
 4: 00.21 00.21 FPLTemplate: FPLTemplateLoad
 5: 00.21 00.21 FPLTemplate: FPLTemplateDefaults
 6: 00.21 00.21 FPLTemplate: FPLTemplatePageList
 7: 00.21 00.21 MakePageList pre
 8: 00.21 00.21 PageListSources begin
 9: 00.21 00.21 PageStore::ls begin wiki.d/{$FullName}
10: 00.22 00.21 PageStore::ls merge wiki.d/{$FullName}
11: 00.22 00.21 PageStore::ls end wiki.d/{$FullName}
12: 00.22 00.22 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
13: 00.22 00.22 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
14: 00.22 00.22 PageStore::ls end $FarmD/wikilib.d/{$FullName}
15: 00.22 00.22 PageListSources end count=115
16: 00.22 00.22 PageListSort pre ret=4 order=name
17: 00.22 00.22 MakePageList items count=115, filters=PageListTermsTargets
18: 00.25 00.24 MakePageList post count=109, readc=115
19: 00.25 00.24 PageListSort begin
20: 00.25 00.24 PageListSort sort
21: 00.26 00.24 PageListSort end
22: 00.26 00.24 MakePageList end
23: 00.26 00.24 FPLTemplate: FPLTemplatePmWikiOrg
24: 00.26 00.24 MarkupToHTML begin
25: 00.26 00.25 MarkupToHTML end
26: 00.26 00.25 FPLTemplate: FPLTemplateSliceList
27: 00.26 00.25 FPLTemplate: FPLTemplateFormat
28: 00.26 00.25 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
29: 00.26 00.25 FPLTemplate: Chain end
30: 00.29 00.28 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
31: 00.30 00.29 ReadApprovedUrls SiteAdmin.ApprovedUrls end
32: 00.37 00.36 MarkupToHTML end
33: 00.37 00.36 MarkupToHTML begin
34: 00.37 00.36 MarkupToHTML end
35: 00.38 00.36 MarkupToHTML begin
36: 00.38 00.36 MarkupToHTML end
37: 00.38 00.36 MarkupToHTML begin
38: 00.38 00.36 MarkupToHTML end
39: 00.38 00.36 MarkupToHTML begin
40: 00.38 00.37 MarkupToHTML end
41: 00.38 00.37 MarkupToHTML begin
42: 00.40 00.39 MarkupToHTML end
43: 00.40 00.39 now