diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-11-22 15:11:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-11-22 15:11:40 +0000 |
commit | cba99db42bb59bd905cf54a3465bcd90d2e1966e (patch) | |
tree | f117ce67d2ed2997caa501ba4a0b05026286950e | |
parent | d52bcb63cc7d8de9dfb5ca036e229609464c9b63 (diff) | |
download | brdo-cba99db42bb59bd905cf54a3465bcd90d2e1966e.tar.gz brdo-cba99db42bb59bd905cf54a3465bcd90d2e1966e.tar.bz2 |
- Patch #38296 by Ber: generate rel-tags for book pages. Makes it easier to browse in some browsers.
-rw-r--r-- | modules/book.module | 3 | ||||
-rw-r--r-- | modules/book/book.module | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/book.module b/modules/book.module index 73bbee3fa..5d616ef63 100644 --- a/modules/book.module +++ b/modules/book.module @@ -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"> </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"> </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>'; diff --git a/modules/book/book.module b/modules/book/book.module index 73bbee3fa..5d616ef63 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -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"> </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"> </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>'; |