More tweaks to make manual function correctly, and look correct.
This commit is contained in:
parent
4804aa0a52
commit
babe5ca85a
@ -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);
|
||||
|
||||
|
@ -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>
|
||||
|
@ -1,3 +1 @@
|
||||
<div id="manual">
|
||||
%CONTENT%
|
||||
</div>
|
||||
%CONTENT%
|
Loading…
Reference in New Issue
Block a user