Reference »

Sample Skin Template File

This is the file october.tmpl (from the “October” PmWiki skin).

October skin .tmpl file

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" $HTMLTagAttr>
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<title><!--function:RenderWikiTitle--></title>
	<link rel='stylesheet' href='$SkinDirUrl/october.css.php' type='text/css' />
	<!--HTMLHeader-->
</head>
<body>
<div id="canvas">

<div id="mainColumn">

<!--PageTitleFmt-->
<!--function:RenderPageTitle-->
<!--/PageTitleFmt-->

<!--PageText-->
</div><!--mainColumn ends-->

<!--PageLeftFmt-->
<!--SideBarFmt-->
<div id="sidebar">
<!--function:RenderPageLogo-->
<!--wiki:{$Group}.SideBar {$SiteGroup}.SideBar--></div><!--sidebar ends-->
<!--/SideBarFmt-->
<!--/PageLeftFmt-->

<!--PageSearchFmt-->
<div id='topsearch'>
<form name='searchform' action='{$ScriptUrl}/$[{$SiteGroup}/Search]'>
	<input type='hidden' name='pagename' value='$[{$FullName}]'/>
	<input type='hidden' name='jumpbox' value="1"/>
	<input class='searchbox' type='text' name='q' value='' placeholder='Search this site' autocomplete='off'/>
	<input class='searchbutton' type='submit' value='$[ ]'/>
</form>
</div>
<!--/PageSearchFmt-->

</div><!--canvas ends-->

<div id="frame">

<!--PageHeaderFmt-->
<div id="header">
<!--wiki:{$Group}.PageHeader {$SiteGroup}.PageHeader--></div>
<!--/PageHeaderFmt-->

<!--PageActionFmt-->
<div id="pageActions">
<!--wiki:{$Group}.PageActions {$SiteGroup}.PageActions--></div>
<!--/PageActionFmt-->

<!--PageFooterFmt-->
<div id="footer">
<!--wiki:{$Group}.PageFooter {$SiteGroup}.PageFooter--></div>
<!--/PageFooterFmt-->

</div><!--frame ends-->

<!--HTMLFooter-->
</body>
</html>