1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Fixes to get manual working.

This commit is contained in:
Jonathan.Wage 2007-09-06 18:29:27 +00:00
parent 88ad244786
commit fd2a85b5f3
5 changed files with 23 additions and 71 deletions

View File

@ -272,6 +272,8 @@ class manualActions extends sfActions
case 'Xhtml':
default:
$this->renderer->setOption('template', file_get_contents(dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'templates/xhtml.tpl.php'));
$viewIndex = true;
if (isset($_GET['one-page'])) {

View File

@ -1,5 +1,11 @@
<div class="content">
<h1>Doctrine Manual</h1>
</div>
<?php if( isset($output) ): ?>
<?php echo $output; ?>
<?php else: ?>
<p>There are several different versions of this manual available online:
<ul>
<li>View as <a href="?one-page">all chapters in one page</a>.</li>
@ -7,11 +13,9 @@
<li>Download the <a href="?format=pdf">PDF version</a>.</li>
</ul>
</p>
<?php if( isset($output) ): ?>
<?php echo $output; ?>
<?php endif; ?>
<?php slot('right'); ?>
<h2>Table of Contents</h2>
<?php echo $renderer->renderToc(); ?>
<?php end_slot(); ?>

View File

@ -1,62 +1,3 @@
<!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>%TITLE%</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="%SUBJECT%" />
<meta name="keywords" content="%KEYWORDS" />
<link rel="stylesheet" type="text/css" href="styles/basic.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="styles/print.css" media="print"/>
<!--[if gte IE 5.5]>
<![if lt IE 7]>
<link rel="stylesheet" type="text/css" href="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="scripts/mootools.v1.11.js"></script>
<script type="text/javascript" src="scripts/tree.js"></script>
<script type="text/javascript" src="scripts/toc.js"></script>
</head>
<body>
<div id="wrap">
<div id="sidebar">
<div id="table-of-contents">
<h1>Table of Contents</h1>
%TOC%
<p><a href=".">Index</a></p>
</div>
</div>
<div id="content">
<div id="manual">
%CONTENT%
</div>
</div>
</body>
</html>

View File

@ -36,7 +36,7 @@
</div>
<div id="footer">
<h1>Copyright Doctrine 2007</h1>
<?php echo get_partial('global/footer'); ?>
</div>
</div>

View File

@ -200,3 +200,8 @@ ul.tree {
#toc-toggles a {
margin-left: 0.5em;
}
#right ul li
{
list-style-type: none;
}