summaryrefslogtreecommitdiff
path: root/modules/book
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2011-09-11 20:28:49 -0400
committerDries Buytaert <dries@buytaert.net>2011-09-11 20:28:49 -0400
commit19d469fb07a0af7d334e4fd27e4d93803ca21840 (patch)
treed9188b9d2f28e164240000015a2d77c55a4f3d50 /modules/book
parentdcea6ffb1bacaa050f0d2a0d2656c075c8fc94ea (diff)
downloadbrdo-19d469fb07a0af7d334e4fd27e4d93803ca21840.tar.gz
brdo-19d469fb07a0af7d334e4fd27e4d93803ca21840.tar.bz2
- Patch #999040 by Niklas Fiekas: corrected alternative control structure syntax in theme templates.
Diffstat (limited to 'modules/book')
-rw-r--r--modules/book/book-all-books-block.tpl.php8
-rw-r--r--modules/book/book-export-html.tpl.php2
-rw-r--r--modules/book/book-navigation.tpl.php6
3 files changed, 8 insertions, 8 deletions
diff --git a/modules/book/book-all-books-block.tpl.php b/modules/book/book-all-books-block.tpl.php
index d22ff2ccc..626a5f264 100644
--- a/modules/book/book-all-books-block.tpl.php
+++ b/modules/book/book-all-books-block.tpl.php
@@ -11,8 +11,8 @@
* render() on each to print it as an unordered list.
*/
?>
-<?php foreach ($book_menus as $book_id => $menu) : ?>
-<div id="book-block-menu-<?php print $book_id; ?>" class="book-block-menu">
- <?php print render($menu); ?>
-</div>
+<?php foreach ($book_menus as $book_id => $menu): ?>
+ <div id="book-block-menu-<?php print $book_id; ?>" class="book-block-menu">
+ <?php print render($menu); ?>
+ </div>
<?php endforeach; ?>
diff --git a/modules/book/book-export-html.tpl.php b/modules/book/book-export-html.tpl.php
index 180f3ae77..4b25a766e 100644
--- a/modules/book/book-export-html.tpl.php
+++ b/modules/book/book-export-html.tpl.php
@@ -40,7 +40,7 @@
*/
$div_close = '';
?>
- <?php for ($i = 1; $i < $depth; $i++) : ?>
+ <?php for ($i = 1; $i < $depth; $i++): ?>
<div class="section-<?php print $i; ?>">
<?php $div_close .= '</div>'; ?>
<?php endfor; ?>
diff --git a/modules/book/book-navigation.tpl.php b/modules/book/book-navigation.tpl.php
index e5883dc56..5d8e9aa7f 100644
--- a/modules/book/book-navigation.tpl.php
+++ b/modules/book/book-navigation.tpl.php
@@ -35,13 +35,13 @@
<?php if ($has_links): ?>
<div class="page-links clearfix">
- <?php if ($prev_url) : ?>
+ <?php if ($prev_url): ?>
<a href="<?php print $prev_url; ?>" class="page-previous" title="<?php print t('Go to previous page'); ?>"><?php print t('‹ ') . $prev_title; ?></a>
<?php endif; ?>
- <?php if ($parent_url) : ?>
+ <?php if ($parent_url): ?>
<a href="<?php print $parent_url; ?>" class="page-up" title="<?php print t('Go to parent page'); ?>"><?php print t('up'); ?></a>
<?php endif; ?>
- <?php if ($next_url) : ?>
+ <?php if ($next_url): ?>
<a href="<?php print $next_url; ?>" class="page-next" title="<?php print t('Go to next page'); ?>"><?php print $next_title . t(' ›'); ?></a>
<?php endif; ?>
</div>