com web/news: Add a breadcrumbs bar on the homepage: article.php common.php group.php index.php style.css
| From: | Ben Ramsey | Date: | Fri, 21 Jul 2017 22:32:23 +0000 |
| Subject: | com web/news: Add a breadcrumbs bar on the homepage: article.php common.php group.php index.php style.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26194@lists.php.net to get a copy of this message | ||
Commit: 02e7df90f498b20b4eb8cab02d6b2e6f6566369c
Author: Arnaud Lemercier <arnaud@wixiweb.fr> Sat, 22 Jul 2017 00:32:23 +0200
Parents: c4d44a6c3a15310327f03e75aa5f34cd982f7757
Branches: master
Link: http://git.php.net/?p=web/news.git;a=commitdiff;h=02e7df90f498b20b4eb8cab02d6b2e6f6566369c
Log:
Add a breadcrumbs bar on the homepage
Changed paths:
M article.php
M common.php
M group.php
M index.php
M style.css
Diff:
diff --git a/article.php b/article.php
index a3418f8..5497ada 100644
--- a/article.php
+++ b/article.php
@@ -63,6 +63,7 @@ try {
}
head("{$group}: " . format_title($mail['headers']['subject'],
'utf-8'));
+echo '<section class="content">';
start_article($mail, $refsResolved);
$lines = preg_split("@(?<=\r\n|\n)@", $mail['text']);
@@ -206,4 +207,5 @@ function navbar($group, $current) {
}
navbar($group, $article);
+echo '</section>';
foot();
diff --git a/common.php b/common.php
index c888449..11a13ea 100644
--- a/common.php
+++ b/common.php
@@ -45,12 +45,10 @@ function head($title="PHP news") {
</form>
</nav>
</header>
- <section class="content">
<?php
}
function foot() {?>
- </section>
<footer class="footer">
<div class="small">
Written by Jim Winstead. no rights reserved. (<a class="alt-link" href="https://git.php.net/?p=web/news.git">source
code</a>) . Redesign By <a class="alt-link" href="https://wixiweb.fr">Wixiweb</a>
diff --git a/group.php b/group.php
index 744c424..20573f3 100644
--- a/group.php
+++ b/group.php
@@ -56,6 +56,7 @@ echo '<?xml version="1.0" encoding="utf-8"?>'
. "\n";
break;
case 'html':
default:
+echo '<section class="content">';
head($group);
navbar($group, $overview['group']['low'],
$overview['group']['high'], $overview['group']['start']);
echo ' <table class="standard" width="100%">' .
"\n";
@@ -119,6 +120,7 @@ switch ($format) {
default:
echo " </table>\n";
navbar($group, $overview['group']['low'],
$overview['group']['high'], $overview['group']['start']);
+ echo "</section>";
foot();
}
diff --git a/index.php b/index.php
index a526e68..feaa924 100644
--- a/index.php
+++ b/index.php
@@ -12,6 +12,15 @@ try {
head();
?>
+
+<nav class="secondary-nav">
+ <ul class="breadcrumbs">
+ <li><a class="breadcrumbs-item-link" href="/">PHP Mailing
Lists</a></li>
+ </ul>
+</nav>
+
+ <section class="content">
+
<table border="0" cellpadding="6" cellspacing="0"
width="100%">
<tr>
<td>
@@ -62,6 +71,7 @@ foreach ($groups as $group => $details) {
</td>
</tr>
</table>
+ </section>
<?php
foot();
diff --git a/style.css b/style.css
index baea81d..163e9f7 100644
--- a/style.css
+++ b/style.css
@@ -189,6 +189,24 @@ a.header-menu-item-link:hover{
font-size: 16px;
}
+.secondary-nav{
+ max-width: 1440px;
+ margin:auto;
+ padding: .75rem 1.5rem;
+ font-size: 14px;
+}
+.breadcrumbs{
+ color: #999;
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+a.breadcrumbs-item-link{
+ color: #ccc;
+ text-decoration: none;
+ line-height: 24px;
+}
+
.content{
background: #F2F2F2;
max-width: 1440px;