1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/manual/new/template.php

84 lines
2.2 KiB
PHP
Raw Normal View History

2007-06-13 02:18:21 +04:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php echo $title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo $baseUrl; ?>styles/basic.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="<?php echo $baseUrl; ?>styles/print.css" media="print"/>
<!--[if gte IE 5.5]>
<![if lt IE 7]>
<link rel="stylesheet" type="text/css" href="<?php echo $baseUrl; ?>styles/iefix.css"/>
<![endif]>
<![endif]-->
<script type="text/javascript">
//<![CDATA[
var tocHideText = "hide"; var tocShowText = "show";
var tocStickyText = "sticky"; var tocUnstickyText = 'unstick';
//]]>
</script>
<script type="text/javascript" src="<?php echo $baseUrl; ?>scripts/mootools.v1.11.js"></script>
2007-06-13 02:18:21 +04:00
<script type="text/javascript" src="<?php echo $baseUrl; ?>scripts/tree.js"></script>
2007-06-29 18:10:15 +04:00
<script type="text/javascript" src="<?php echo $baseUrl; ?>scripts/toc.js"></script>
2007-06-13 02:18:21 +04:00
</head>
<body>
<div id="wrap">
2007-06-29 18:10:15 +04:00
<?php if($tool->getOption('section') || $tool->getOption('one-page')): ?>
2007-06-13 02:18:21 +04:00
<div id="sidebar">
2007-06-29 18:10:15 +04:00
<div id="table-of-contents">
<h1>Table of Contents</h1>
2007-06-13 02:18:21 +04:00
<?php $tool->renderToc(); ?>
2007-06-29 18:10:15 +04:00
<p>
<?php if($tool->getOption('one-page')): ?>
<a href="<?php echo ($tool->getOption('clean-url') ? "${baseUrl}chapter/" : '?chapter=') . $tool->findByIndex('1.')->getPath(); ?>">View one chapter per page</a>
<?php else: ?>
<a href="<?php echo ($tool->getOption('clean-url') ? "${baseUrl}one-page" : '?one-page=1') . '#' . $tool->getOption('section')->getPath(); ?>">View all in one page</a>
<?php endif; ?>
</p>
</div>
2007-06-13 02:18:21 +04:00
</div>
2007-06-29 18:10:15 +04:00
<?php endif; ?>
2007-06-13 02:18:21 +04:00
<div id="content">
2007-06-29 18:10:15 +04:00
<?php if($tool->getOption('section') || $tool->getOption('one-page')): ?>
<?php $tool->render(); ?>
<?php else: ?>
2007-06-13 02:18:21 +04:00
<h1>Doctrine Manual</h1>
2007-06-13 02:18:21 +04:00
<p>You can view this manual online as
2007-06-13 02:18:21 +04:00
<ul>
<li><a href="<?php echo $tool->getOption('clean-url') ? "${baseUrl}one-page" : '?one-page=1'; ?>">everything on a single page</a>, or</li>
<li><a href="<?php echo $tool->makeUrl($tool->findByIndex('1.')->getPath()); ?>">one chapter per page</a>.</li>
</ul>
</p>
2007-06-29 18:10:15 +04:00
<?php endif; ?>
2007-06-13 02:18:21 +04:00
</div>
</div>
2007-06-29 18:10:15 +04:00
2007-06-13 02:18:21 +04:00
</body>
</html>