Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breadcrumbs and next/prev links is now fixed as navbar #328

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions include/header.inc
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,37 @@ if (!isset($config["languages"])) {
<input type="search" name="pattern" class="search-query" placeholder="Search" accesskey="s">
</form>
</div>
<?php if (!empty($config['breadcrumbs'])): ?>
<div id="breadcrumbs" class="clearfix">
<div id="breadcrumbs-inner">
<?php if (isset($config['next'])): ?>
<div class="next">
<a href="<?php echo $config['next'][0]; ?>">
<?php echo $config['next'][1]; ?> &raquo;
</a>
</div>
<?php endif; ?>
<?php if (isset($config['prev'])): ?>
<div class="prev">
<a href="<?php echo $config['prev'][0]; ?>">
&laquo; <?php echo $config['prev'][1]; ?>
</a>
</div>
<?php endif; ?>
<ul>
<?php
$breadcrumbs = $config['breadcrumbs'];
$last = array_pop($breadcrumbs);
foreach ($breadcrumbs as $crumb) {
echo " <li><a href='{$crumb['link']}'>{$crumb['title']}</a></li>";
}
echo " <li><a href='{$last['link']}'>{$last['title']}</a></li>";

?>
</ul>
</div>
</div>
<?php endif; ?>
<div id="flash-message"></div>
</nav>
<?php if (!empty($config["headsup"])): ?>
Expand Down
3 changes: 2 additions & 1 deletion styles/theme-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,7 @@ div.soft-deprecation-notice blockquote.sidebar {
#breadcrumbs a:link,
#breadcrumbs a:visited {
border-width:0;
text-shadow: none;
}

#breadcrumbs .next,
Expand All @@ -1526,7 +1527,7 @@ div.soft-deprecation-notice blockquote.sidebar {
transform: translateZ(0);
}
body {
margin:3.25rem 0 0;
margin:6.25rem 0 0;
}
#breadcrumbs {
display:block;
Expand Down
3 changes: 2 additions & 1 deletion styles/theme-medium.css
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,8 @@ aside.tips a:focus {

/* {{{ Breadcrumbs */
#breadcrumbs {
color: #999;
color: #999;
background: #333 url(/images/bg-texture-00.svg);
}
/* }}} */

Expand Down
Loading