com web/news: Add a breadcrumps on article page: article.php
| From: | Ben Ramsey | Date: | Fri, 21 Jul 2017 23:42:42 +0000 |
| Subject: | com web/news: Add a breadcrumps on article page: article.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26186@lists.php.net to get a copy of this message | ||
Commit: 17972f402454536d795fca6b391e1934e7565de6
Author: Arnaud Lemercier <arnaud@wixiweb.fr> Sat, 22 Jul 2017 01:42:42 +0200
Parents: 6035f03304a93b5b25d56687a19f00abc1072c58
Branches: master
Link: http://git.php.net/?p=web/news.git;a=commitdiff;h=17972f402454536d795fca6b391e1934e7565de6
Log:
Add a breadcrumps on article page
Changed paths:
M article.php
Diff:
diff --git a/article.php b/article.php
index 5497ada..d0c056c 100644
--- a/article.php
+++ b/article.php
@@ -63,6 +63,13 @@ try {
}
head("{$group}: " . format_title($mail['headers']['subject'],
'utf-8'));
+echo '<nav class="secondary-nav">';
+echo ' <ul class="breadcrumbs">';
+echo ' <li class="breadcrumbs-item"><a
class="breadcrumbs-item-link" href="/">PHP Mailing
Lists</a></li>';
+echo ' <li class="breadcrumbs-item"><a
class="breadcrumbs-item-link" href="/'.htmlspecialchars($group, ENT_QUOTES,
"UTF-8").'">'.htmlspecialchars($group, ENT_QUOTES,
"UTF-8").'</a></li>';
+echo ' <li class="breadcrumbs-item"><a
class="breadcrumbs-item-link" href="/'.htmlspecialchars($group, ENT_QUOTES,
"UTF-8").'/'.$article.'">'.format_title($mail['headers']['subject']).'</a></li>';
+echo ' </ul>';
+echo '</nav>';
echo '<section class="content">';
start_article($mail, $refsResolved);