summaryrefslogtreecommitdiff
path: root/buildscripts/wikibuilder/DumpSkin.php
blob: 6d4ba4b3608e8a27264fed7a13b5c8d4674d7bbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
/**
 * MonoBook nouveau
 *
 * Translated from gwicke's previous TAL template version to remove
 * dependency on PHPTAL.
 *
 * @todo document
 * @package MediaWiki
 * @subpackage Skins
 */

/**
 * MonoBook modified and redesigned by JasonPearce.com for FraternityManuals.com
 * Launched April 7, 2005
 */

if( !defined( 'MEDIAWIKI' ) )
	die();

/** */
require_once('includes/SkinTemplate.php');

/**
 * Inherit main code from SkinTemplate, set the CSS and template filter.
 * @todo document
 * @package MediaWiki
 * @subpackage Skins
 */
class DumpSkin extends SkinTemplate {
	/** Using monobook. */
	function initPage( &$out ) {
		SkinTemplate::initPage( $out );
		$this->skinname  = 'dump';
		$this->stylename = '';
		$this->template  = 'DumpTemplate';
	}
}
	
class DumpTemplate extends QuickTemplate {
	/**
	 * Template filter callback for MonoBook skin.
	 * Takes an associative array of data set from a SkinTemplate-based
	 * class, and a wrapper for MediaWiki's localization database, and
	 * outputs a formatted page.
	 *
	 * @access private
	 */
	function execute() {
?>
<!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" xml:lang="<?php $this->text('lang') ?>" lang="<?php $this->text('lang') ?>" dir="<?php $this->text('dir') ?>">
<head>
<meta http-equiv="Content-Type" content="<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>" />
<title>WIKI: <?php $this->text('pagetitle') ?>
</title>
<link rel="stylesheet" type="text/css" href="<?php $this->text('stylepath') ?>main.css" />
</head>
<body>
<div id="globalWrapper">
  <div id="column-content">
    <div id="content"> <a name="top" id="contentTop"></a>
      
	  <h1 class="firstHeading">
        <?php $this->text('title') ?>
      </h1>
      <h3 id="siteSub">
        <?php $this->msg('tagline') ?>
      </h3>
      
	  <div id="bodyContent">
        <div id="contentSub">
          <?php $this->html('subtitle') ?>
        </div>
        
        <!-- BEGIN content -->
        <?php $this->html('bodytext') ?>
        <?php if($this->data['catlinks']) { ?>
        <div id="catlinks">
          <?php $this->html('catlinks') ?>
        </div>
        <?php } ?>

        <!-- END content -->
      </div>

    </div>
  </div>
</div>
<!-- end of the left (by default at least) column -->
<img src="<?php $this->text('stylepath') ?>external.png" style="display:none"/>
</body></html>
<?php } } ?>