1<?php
2/**
3 * @link   http://dokuwiki.org/template:ospyramid
4 * @author Mohd Shakir Zakaria <http://www.mohdshakir.net>
5 */
6
7// must be run from within DokuWiki
8if (!defined('DOKU_INC'))
9	die();
10?>
11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
12"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
13<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
14lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction']?>">
15	<head>
16		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
17		<title><?php tpl_pagetitle() ?></title>
18		<link href='http://fonts.googleapis.com/css?family=Metrophobic' rel='stylesheet' type='text/css'>
19		<link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>
20		<?php tpl_metaheaders()	?>
21
22		<link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" />
23	</head>
24	<body>
25		<?php
26			if (file_exists(DOKU_PLUGIN . 'displaywikipage/code.php'))
27				include_once (DOKU_PLUGIN . 'displaywikipage/code.php');
28		?>
29		<?php include(dirname(__FILE__).'/components.php')	?>
30
31		<?php html_msgarea()?>
32
33		<?php
34		$pagetype = 'article';
35		if ($INFO['namespace'] == "") {
36			 $pagetype = 'frontpage';
37		} else if (strpos($INFO['id'], ":start") OR strpos($INFO['id'], ":categories")) {
38			 $pagetype = 'category';
39		}
40		if ($ACT !== "show") {
41			 $pagetype = 'special';
42		}
43		if ($ACT === "edit") {
44			 $pagetype = 'edit';
45		}
46		?>
47
48		<div id="navi">
49			<div class="container">
50				<div class="span-20">
51					<div class="span-5">
52						<img src="http://wiki.oseems.com/lib/tpl/ospyramid/images/logo.png">
53					</div>
54					<div class="span-15 last">
55						<div class="right alt">
56							<?php header_navi();?>
57						</div>
58					</div>
59				</div>
60			</div>
61		</div>
62		<div id="breadcrumb">
63			<div class="container">
64				<div class="span-20">
65					<?php tpl_youarehere() ?>
66				</div>
67			</div>
68		</div>
69		<div id=content class="container">
70			<div id="subheader" class="span-20">
71				<h1 id="title" ><?php tpl_pagetitle() ?></h1>
72			</div>
73			<div class="span-20">
74				<?php if($pagetype == 'article') {
75					sidebar_scrolling();
76				} ?>
77				<div class="span-13 colborder" id="wikiinner">
78					<div  id="wikicontent">
79						<!-- wikipage start -->
80						<div class="wiki">
81							<?php
82							if ($pagetype == 'article') {
83							}
84							?>
85
86							<?php
87							if ($pagetype == 'article') {
88							}
89							?>
90							<?php tpl_content(false); ?>
91							<?php
92							if ($pagetype == 'article') {
93							}
94							?>
95						</div>
96						<!-- wikipage stop -->
97						<?php
98						if ($pagetype == 'article') {
99
100						}
101						?>
102					</div>
103				</div>
104				<div class="span-6 last wiki sidebar">
105					<?php
106					if ($pagetype == 'article') {
107						tpl_toc();
108						sidebar_categories();
109						sidebar_facebook();
110					} else {
111						sidebar_categories();
112						sidebar_facebook();
113					}
114					?>
115				</div>
116			</div>
117			<div class="span-20">
118				<?php
119				if ($pagetype == 'article') {
120					footer_comment();
121				}
122				?>
123			</div>
124		</div>
125		<!--! end of #container -->
126		<div id="footer">
127			<div class="container">
128				<div class="span-20">
129					<div class="span-5">
130						<img src="http://wiki.oseems.com/lib/tpl/ospyramid/images/logo.png">
131						<p>
132							Site description goes here
133						</p>
134					</div>
135					<div class="span-4 prepend-1">
136						<h6>Links 1</h6>
137						<ul>
138							<li> <a href="">Link</a> </li>
139							<li> <a href="">Link</a> </li>
140							<li> <a href="">Link</a> </li>
141							<li> <a href="">Link</a> </li>
142						</ul>
143					</div>
144					<div class="span-4 prepend-1">
145						<h6>Links 2</h6>
146						<ul>
147							<li> <a href="">Link</a> </li>
148							<li> <a href="">Link</a> </li>
149							<li> <a href="">Link</a> </li>
150							<li> <a href="">Link</a> </li>Wiki
151						</ul>
152					</div>
153					<div class="span-4 prepend-1 last">
154						<h6>Links 3</h6>
155						<ul>
156							<li> <a href="">Link</a> </li>
157							<li> <a href="">Link</a> </li>
158							<li> <a href="">Link</a> </li>
159							<li> <a href="">Link</a> </li>
160						</ul>
161					</div>
162				</div>
163				<div class="right alt" style="color:#777777">
164					The template is another piece of <a href="http://www.mohdshakir.net" rel="nofollow">Mohd Shakir Zakaria</a> for <a href="https://docs.oseems.com">osDocs</a>
165				</div>
166			</div>
167		</div>
168
169
170		<div class="no">
171			<?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug() ?>
172		</div>
173		<?php
174			//Use the file to store Javascript snippets such as Google Analytics codes
175			include(dirname(__FILE__).'/js.html')
176		?>
177	</body>
178</html>
179