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');
|
$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);
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<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>
|
||||||
@ -13,7 +13,8 @@
|
|||||||
<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>
|
||||||
|
@ -1,3 +1 @@
|
|||||||
<div id="manual">
|
%CONTENT%
|
||||||
%CONTENT%
|
|
||||||
</div>
|
|
Loading…
Reference in New Issue
Block a user