Commit cba99db4 authored by Dries's avatar Dries

- Patch #38296 by Ber: generate rel-tags for book pages. Makes it easier to...

- Patch #38296 by Ber: generate rel-tags for book pages.  Makes it easier to browse in some browsers.
parent d52bcb63
......@@ -487,6 +487,7 @@ function theme_book_navigation($node) {
}
if ($prev = book_prev($node)) {
drupal_add_link(array('rel' => 'prev', 'href' => 'node/'. $prev->nid));
$links .= '<div class="prev">';
$links .= l(t('previous'), 'node/'. $prev->nid, array('title' => t('View the previous page.')));
$links .= '</div>';
......@@ -496,6 +497,7 @@ function theme_book_navigation($node) {
$links .= '<div class="prev">&nbsp;</div>'; // Make an empty div to fill the space.
}
if ($next = book_next($node)) {
drupal_add_link(array('rel' => 'next', 'href' => 'node/'. $next->nid));
$links .= '<div class="next">';
$links .= l(t('next'), 'node/'. $next->nid, array('title' => t('View the next page.')));
$links .= '</div>';
......@@ -505,6 +507,7 @@ function theme_book_navigation($node) {
$links .= '<div class="next">&nbsp;</div>'; // Make an empty div to fill the space.
}
if ($node->parent) {
drupal_add_link(array('rel' => 'index', 'href' => 'node/'. $node->parent));
$links .= '<div class="up">';
$links .= l(t('up'), 'node/'. $node->parent, array('title' => t('View this page\'s parent section.')));
$links .= '</div>';
......
......@@ -487,6 +487,7 @@ function theme_book_navigation($node) {
}
if ($prev = book_prev($node)) {
drupal_add_link(array('rel' => 'prev', 'href' => 'node/'. $prev->nid));
$links .= '<div class="prev">';
$links .= l(t('previous'), 'node/'. $prev->nid, array('title' => t('View the previous page.')));
$links .= '</div>';
......@@ -496,6 +497,7 @@ function theme_book_navigation($node) {
$links .= '<div class="prev">&nbsp;</div>'; // Make an empty div to fill the space.
}
if ($next = book_next($node)) {
drupal_add_link(array('rel' => 'next', 'href' => 'node/'. $next->nid));
$links .= '<div class="next">';
$links .= l(t('next'), 'node/'. $next->nid, array('title' => t('View the next page.')));
$links .= '</div>';
......@@ -505,6 +507,7 @@ function theme_book_navigation($node) {
$links .= '<div class="next">&nbsp;</div>'; // Make an empty div to fill the space.
}
if ($node->parent) {
drupal_add_link(array('rel' => 'index', 'href' => 'node/'. $node->parent));
$links .= '<div class="up">';
$links .= l(t('up'), 'node/'. $node->parent, array('title' => t('View this page\'s parent section.')));
$links .= '</div>';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment