Skip to content

Commit

Permalink
update nav templates
Browse files Browse the repository at this point in the history
  • Loading branch information
seibtph committed Jan 9, 2020
1 parent 7c9e1ba commit a10aea2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ul id="nav<?= $this->id ?>dropdown<?= $this->itemId ?>" class="dropdown-content">
<?php foreach ($this->items as $item): ?>
<li id="page<?= $item['id'] ?>" <?php if ($item['class']) echo ' class="' . $item['class'] . '"'; ?>>
<a href="/<?= $item['href'] ?: './' ?>" title="<?= $item['pageTitle'] ?: $item['title'] ?>" class="<?php if (!empty($item['subitems'])): ?>dropdown-button<?php endif; ?><?php if($item['isActive']): ?> active <?php endif; ?><?php if ($item['class']) echo ' '.$item['class']; ?> valign"<?php if ($item['accesskey']) echo ' accesskey="' . $item['accesskey'] . '"'; ?><?php if ($item['tabindex']) echo ' tabindex="' . $item['tabindex'] . '"'; ?><?php if ($item['nofollow']) echo ' rel="nofollow"'; ?><?= $item['target'] ?><?php if (!empty($item['subitems'])) echo ' aria-haspopup="true"'; ?> <?php if (!empty($item['subitems'])): ?> data-target="nav<?= $this->id ?>dropdown<?= $item['id'] ?>"<?php endif; ?>>
<a href="<?= $item['href'] ?: './' ?>" title="<?= $item['pageTitle'] ?: $item['title'] ?>" class="<?php if (!empty($item['subitems'])): ?>dropdown-button<?php endif; ?><?php if($item['isActive']): ?> active <?php endif; ?><?php if ($item['class']) echo ' '.$item['class']; ?> valign"<?php if ($item['accesskey']) echo ' accesskey="' . $item['accesskey'] . '"'; ?><?php if ($item['tabindex']) echo ' tabindex="' . $item['tabindex'] . '"'; ?><?php if ($item['nofollow']) echo ' rel="nofollow"'; ?><?= $item['target'] ?><?php if (!empty($item['subitems'])) echo ' aria-haspopup="true"'; ?> <?php if (!empty($item['subitems'])): ?> data-target="nav<?= $this->id ?>dropdown<?= $item['id'] ?>"<?php endif; ?>>
<?= $item['link'] ?> <?php if (!empty($item['subitems'])): ?><i class="tiny material-icons">expand_more</i><?php endif; ?>
</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ul id="nav<?= $this->id ?>dropdown<?= $this->itemId ?>" class="dropdown-content">
<?php foreach ($this->items as $item): ?>
<li id="page<?= $item['id'] ?>" <?php if ($item['class']) echo ' class="' . $item['class'] . '"'; ?>>
<a href="/<?= $item['href'] ?: './' ?>" title="<?= $item['pageTitle'] ?: $item['title'] ?>"<?php if ($item['class']) echo ' class="' . $item['class'] . '"'; ?><?php if ($item['accesskey']) echo ' accesskey="' . $item['accesskey'] . '"'; ?><?php if ($item['tabindex']) echo ' tabindex="' . $item['tabindex'] . '"'; ?><?php if ($item['nofollow']) echo ' rel="nofollow"'; ?><?= $item['target'] ?><?php if (!empty($item['subitems'])) echo ' aria-haspopup="true"'; ?>>
<a href="<?= $item['href'] ?: './' ?>" title="<?= $item['pageTitle'] ?: $item['title'] ?>"<?php if ($item['class']) echo ' class="' . $item['class'] . '"'; ?><?php if ($item['accesskey']) echo ' accesskey="' . $item['accesskey'] . '"'; ?><?php if ($item['tabindex']) echo ' tabindex="' . $item['tabindex'] . '"'; ?><?php if ($item['nofollow']) echo ' rel="nofollow"'; ?><?= $item['target'] ?><?php if (!empty($item['subitems'])) echo ' aria-haspopup="true"'; ?>>
<?= $item['link'] ?>
</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<li class="<?php if ($item['class']) echo $item['class']; ?> valign-wrapper">
<a class="
<?php if($item['isActive']): ?> active <?php endif; ?><?php if ($item['class']) echo $item['class']; ?> valign"
href="/<?= $item['href'] ?: './' ?>"
href="<?= $item['href'] ?: './' ?>"
title="<?= $item['pageTitle'] ?: $item['title'] ?>"
<?php if ($item['accesskey']) echo ' accesskey="' . $item['accesskey'] . '"'; ?>
<?php if ($item['tabindex']) echo ' tabindex="' . $item['tabindex'] . '"'; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<a class="<?php if (!empty($item['subitems'])): ?>dropdown-button<?php endif; ?>
<?php if($item['isActive']): ?> active <?php endif; ?><?php if ($item['class']) echo $item['class']; ?> valign"
<?php if (!empty($item['subitems'])): ?> data-target="nav<?= $this->id ?>dropdown<?= $item['id'] ?>"<?php endif; ?>
href="/<?= $item['href'] ?: './' ?>"
href="<?= $item['href'] ?: './' ?>"
title="<?= $item['pageTitle'] ?: $item['title'] ?>"
<?php if ($item['accesskey']) echo ' accesskey="' . $item['accesskey'] . '"'; ?>
<?php if ($item['tabindex']) echo ' tabindex="' . $item['tabindex'] . '"'; ?>
Expand Down

0 comments on commit a10aea2

Please sign in to comment.