Skip to content

Commit

Permalink
Better navigation (issue #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Sep 5, 2016
1 parent 052a229 commit 7794cea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PHPDraft/Out/HTML/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
<ul class="list-unstyled">
<?php foreach ($category->children as $resource): ?>
<li>
<a href="#<?= $resource->get_href(); ?>"><?= $resource->title; ?></a>
<a href="#<?= str_replace('-', '/', $resource->get_href()); ?>"><?= $resource->title; ?></a>
</li>
<ul>
<?php foreach ($resource->children as $transition): ?>
<li>
<a href="#<?= $transition->get_href(); ?>">
<a href="#<?= str_replace('-', '/', $transition->get_href()); ?>">
<?= $transition->title; ?>
<span
class="pull-right <?= $this->get_method_icon($transition->get_method()); ?>"></span>
Expand Down Expand Up @@ -109,7 +109,7 @@ class="pull-right <?= $this->get_method_icon($transition->get_method()); ?>"></s
<?php endif;?>
<?php foreach ($category->children as $resource): ?>
<h3>
<a id="<?= $resource->get_href(); ?>"><?= $resource->title; ?></a>
<a id="<?= str_replace('-', '/', $resource->get_href()); ?>"><?= $resource->title; ?></a>
<small><?= $resource->href; ?></small>
</h3>
<p><?php $resource->description; ?></p>
Expand All @@ -121,7 +121,7 @@ class="panel panel-default <?= $transition->get_method(); ?>">
<var><?= $transition->get_method(); ?></var>
<code><?= $transition->href; ?></code>
<a class="pull-right transition-title"
id="<?= $transition->get_href(); ?>"><?= $transition->title; ?></a>
id="<?= str_replace('-', '/', $transition->get_href()); ?>"><?= $transition->title; ?></a>
</h3>
</div>
<div class="panel-body">
Expand Down

0 comments on commit 7794cea

Please sign in to comment.