Fixes to get manual working.
This commit is contained in:
parent
88ad244786
commit
fd2a85b5f3
@ -272,6 +272,8 @@ class manualActions extends sfActions
|
|||||||
|
|
||||||
case 'Xhtml':
|
case 'Xhtml':
|
||||||
default:
|
default:
|
||||||
|
$this->renderer->setOption('template', file_get_contents(dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'templates/xhtml.tpl.php'));
|
||||||
|
|
||||||
$viewIndex = true;
|
$viewIndex = true;
|
||||||
|
|
||||||
if (isset($_GET['one-page'])) {
|
if (isset($_GET['one-page'])) {
|
||||||
|
@ -1,17 +1,21 @@
|
|||||||
<h1>Doctrine Manual</h1>
|
<div class="content">
|
||||||
|
<h1>Doctrine Manual</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
<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>
|
|
||||||
<li>View as <a href="?chapter=<?php echo $toc->findByIndex('1.')->getPath(); ?>">one chapter per page</a>.</li>
|
|
||||||
<li>Download the <a href="?format=pdf">PDF version</a>.</li>
|
|
||||||
</ul>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<?php if( isset($output) ): ?>
|
<?php if( isset($output) ): ?>
|
||||||
<?php echo $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>
|
||||||
|
<li>View as <a href="?chapter=<?php echo $toc->findByIndex('1.')->getPath(); ?>">one chapter per page</a>.</li>
|
||||||
|
<li>Download the <a href="?format=pdf">PDF version</a>.</li>
|
||||||
|
</ul>
|
||||||
|
</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php slot('right'); ?>
|
<?php slot('right'); ?>
|
||||||
|
<h2>Table of Contents</h2>
|
||||||
<?php echo $renderer->renderToc(); ?>
|
<?php echo $renderer->renderToc(); ?>
|
||||||
<?php end_slot(); ?>
|
<?php end_slot(); ?>
|
@ -1,62 +1,3 @@
|
|||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
<div id="manual">
|
||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
%CONTENT%
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
</div>
|
||||||
|
|
||||||
<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">
|
|
||||||
|
|
||||||
%CONTENT%
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -36,7 +36,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<h1>Copyright Doctrine 2007</h1>
|
<?php echo get_partial('global/footer'); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -199,4 +199,9 @@ ul.tree {
|
|||||||
|
|
||||||
#toc-toggles a {
|
#toc-toggles a {
|
||||||
margin-left: 0.5em;
|
margin-left: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#right ul li
|
||||||
|
{
|
||||||
|
list-style-type: none;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user