Skip to content

Commit

Permalink
LUGG-1063 Check if content links are renderable (#172)
Browse files Browse the repository at this point in the history
* LUGG-1063 Check if content links are renderable

* LUGG-1063 Changed nav to div with the toolbar role
  • Loading branch information
angelamnr authored Mar 27, 2018
1 parent 908b130 commit 87f2ec5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/node.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
</div>

<div class="clearfix">
<?php if (!empty($content['links'])): ?>
<nav class="links node-links clearfix"><?php print render($content['links']); ?></nav>
<?php if (render($content['links'])): ?>
<div role="toolbar" class="links node-links clearfix">
<?php print render($content['links']); ?>
</div>
<?php endif; ?>

<?php print render($content['comments']); ?>
Expand Down

0 comments on commit 87f2ec5

Please sign in to comment.