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');
$this->title = $title;
$this->renderer->setOption('url_prefix', '?one-page');
} else {
$this->output = $cache->fetch($cacheId);

View File

@ -1,11 +1,11 @@
<div class="content">
<h1>Doctrine Manual</h1>
<h1><?php echo link_to('Doctrine Manual', '@manual'); ?></h1>
</div>
<?php if( isset($output) ): ?>
<div class="content" id="manual">
<?php if( isset($output) ): ?>
<?php echo $output; ?>
<?php else: ?>
<?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>
@ -13,7 +13,8 @@
<li>Download the <a href="?format=pdf">PDF version</a>.</li>
</ul>
</p>
<?php endif; ?>
<?php endif; ?>
</div>
<?php slot('right'); ?>
<h2>Table of Contents</h2>

View File

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