Skin List

Summary: List skins installed on a site
Version: 20171115
Prerequisites: PmWiki 2.2.56, SkinChange
Status: Stable
Maintainer: Petko
License: Unknown
Categories: Skins PHP72 PHP74
Users: (view / edit)
Discussion: SkinList-Talk

Question

How can I get a list of skins installed on a site?

Answer

The skinlist.php recipe provides a simple (:skinlist:) directive to do this.

In your local/config.php file, include the line:

include_once('cookbook/skinlist.php');

Usage

This recipe adds a (:skinlist:) markup, which displays a list of available skins for a site.

(:skinlist:)

Configuration

The $PageSkinList array may contain custom skins to be included or excluded from the listings:

  $PageSkinList['goodskin'] =  1; # add a skin the recipe doesn't seem to find
  $PageSkinList['baadskin'] = -2; # do not list this skin even if available

Unlisting skins is possible since version 20171115.

Notes

This recipe requires SkinChange.

Release notes

  • 20190903 Update for PHP 7.4 (Petko)
  • 20171115 Update for PHP 7.2, document $PageSkinList, negative numbers will delist a skin (Petko)
  • 20160407 Update for PHP 5.5 (Petko)

See Also

Contributors

  • Maintainer: Petko
  • Original author: probably Pm

Comments

See SkinList-Talk

User notes : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.


 0: 00.00 00.00 config start
 1: 00.01 00.00 config end
 2: 00.08 00.02 MarkupToHTML begin
 3: 00.08 00.02 MarkupToHTML begin
 4: 00.25 00.08 MarkupToHTML end
 5: 00.38 00.11 MarkupToHTML end
 6: 00.38 00.11 MarkupToHTML begin
 7: 00.41 00.12 MarkupToHTML end
 8: 00.41 00.12 MarkupToHTML begin
 9: 00.42 00.12 MarkupToHTML end
10: 00.42 00.12 MarkupToHTML begin
11: 00.42 00.13 MarkupToHTML end
12: 00.42 00.13 MarkupToHTML begin
13: 00.44 00.13 MarkupToHTML end
14: 00.45 00.13 MarkupToHTML begin
15: 00.51 00.15 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
16: 00.52 00.16 ReadApprovedUrls SiteAdmin.ApprovedUrls end
17: 00.54 00.16 MarkupToHTML end
18: 00.54 00.16 now