Skip to content

Commit

Permalink
use the root title, instead of hardcoding 'My Book' in the template
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed May 16, 2016
1 parent 9640f30 commit 3359b30
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions templates/navheader.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
$root = $this->page->getRoot();
$prev = $this->page->getPrev();
$parent = $this->page->getParent();
$next = $this->page->getNext();
Expand All @@ -18,7 +19,7 @@
<h3 class="title">
<?php echo $this->page->getNumberAndTitle(); ?>
</h3>
<small class="parent">My Book</small>
<small class="parent"><?php echo $root->getTitle(); ?></small>
</div>
<div class="next col-md-3">
<?php if ($next) { ?>
Expand All @@ -36,5 +37,3 @@
<div class="container">
<div class="row">
<div class="col-md-12">


0 comments on commit 3359b30

Please sign in to comment.