<?php if (!defined('PmWiki')) exit();
/*
 * This is "Yamlforth"  
 * a skin for PmWiki 2 based on YAML 3.2 build 091027 fixed-width 2 column design with column order 31.
 * Version 1.0.0  (18-06-2009)
 * Version 2.0.0 (20091222) 
 * Version: 2.0.1 (2010-07-15)
 * Version: 2.1 (2010-11-25)
 * Copyright (c) 2009 Paul Wiegmans(p.wiegmans@inter.nl.net)
 * This file is part of the YAML skin  for pmwiki 2
 * you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published
 * by the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *  
 * This skin uses YAML (http://www.yaml.de)
 * Unless you purchase a licence you MUST keep a footer link (or similar)
 * back to the YAML site
 */

global $FmtPV, $SkinName, $SkinVersionDate, $SkinVersionNum, $SkinVersion, $SkinSourceURL, $RecipeInfo;

# defining page variables
$SkinName = "yamlforth";
$SkinRecipeName = "YAMLForth";
$SkinVersionDate = "2018-04-24";
$SkinVersionNum = str_replace("-","",$SkinVersionDate);
$SkinVersionm = "2.1.0";
$SkinSourceUrl = 'http://www.pmwiki.org/wiki/Cookbook/'.$SkinRecipeName;

# setting variables as page variables
$FmtPV['$SkinName'] = '$GLOBALS["SkinName"]';
$FmtPV['$SkinRecipeName'] = '$GLOBALS["SkinRecipeName"]';
$FmtPV['$SkinVersionDate'] = '$GLOBALS["SkinVersionDate"]';
$FmtPV['$SkinVersionNum'] = '$GLOBALS["SkinVersionNum"]';
$FmtPV['$SkinVersion'] = '$GLOBALS["SkinVersion"]';
$FmtPV['$SkinSourceUrl'] = '$GLOBALS["SkinSourceUrl"]';
$FmtPV['$SkinNaam'] = "'" . $SkinName . "'";

# enable / disable display of sections by wiki markup (Page Directives)
Markup('nosearchnotabs', 'directives',  '/\\(:no(search|tabs):\\)/i',    "mu_nosearchtabs");
$FmtPV['$SearchBar'] = "\$GLOBALS['TmplDisplay']['PageSearchFmt']";
$FmtPV['$TabsBar'] = "\$GLOBALS['TmplDisplay']['PageTabsFmt']";

function mu_nosearchtabs($m) {
  $where = ucfirst(strtolower($m[1]));
  SetTmplDisplay("Page{$where}Fmt",0);
}