1
0
mirror of synced 2024-12-14 07:06:04 +03:00

More tweaks to make manual function correctly, and look correct.

This commit is contained in:
Jonathan.Wage 2007-09-06 18:36:27 +00:00
parent 4804aa0a52
commit babe5ca85a
3 changed files with 17 additions and 16 deletions

View File

@ -305,6 +305,8 @@ class manualActions extends sfActions
$title = $this->renderer->getOption('title'); $title = $this->renderer->getOption('title');
$this->title = $title; $this->title = $title;
$this->renderer->setOption('url_prefix', '?one-page');
} else { } else {
$this->output = $cache->fetch($cacheId); $this->output = $cache->fetch($cacheId);

View File

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

View File

@ -1,3 +1 @@
<div id="manual"> %CONTENT%
%CONTENT%
</div>