summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries2012-06-01 16:35:50 (GMT)
committerDries2012-06-01 16:35:50 (GMT)
commitbd40855052ab137ec43cd2b214bfc3a40c9c223a (patch)
tree7bdef0b0c056d7206866d56dbdd8e2bb9a1b9458
parent302061324de2c865a44e3c7f8dc7d2a6bbf8c8b2 (diff)
- Patch #115753 by cosmicdreams, drclaw, geodaniel, zhuber, urlisse: Pager rel attributes.
-rw-r--r--core/includes/pager.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/includes/pager.inc b/core/includes/pager.inc
index 4583023..9419ced 100644
--- a/core/includes/pager.inc
+++ b/core/includes/pager.inc
@@ -460,7 +460,7 @@ function theme_pager_first($variables) {
// If we are anywhere but the first page
if ($pager_page_array[$element] > 0) {
- $output = theme('pager_link', array('text' => $text, 'page_new' => pager_load_array(0, $element, $pager_page_array), 'element' => $element, 'parameters' => $parameters));
+ $output = theme('pager_link', array('text' => $text, 'page_new' => pager_load_array(0, $element, $pager_page_array), 'element' => $element, 'parameters' => $parameters, 'attributes' => array('rel' => 'first')));
}
return $output;
@@ -498,7 +498,7 @@ function theme_pager_previous($variables) {
}
// The previous page is not the first page.
else {
- $output = theme('pager_link', array('text' => $text, 'page_new' => $page_new, 'element' => $element, 'parameters' => $parameters));
+ $output = theme('pager_link', array('text' => $text, 'page_new' => $page_new, 'element' => $element, 'parameters' => $parameters, 'attributes' => array('rel' => 'prev')));
}
}
@@ -536,7 +536,7 @@ function theme_pager_next($variables) {
}
// The next page is not the last page.
else {
- $output = theme('pager_link', array('text' => $text, 'page_new' => $page_new, 'element' => $element, 'parameters' => $parameters));
+ $output = theme('pager_link', array('text' => $text, 'page_new' => $page_new, 'element' => $element, 'parameters' => $parameters, 'attributes' => array('rel' => 'next')));
}
}
@@ -565,7 +565,7 @@ function theme_pager_last($variables) {
// If we are anywhere but the last page
if ($pager_page_array[$element] < ($pager_total[$element] - 1)) {
- $output = theme('pager_link', array('text' => $text, 'page_new' => pager_load_array($pager_total[$element] - 1, $element, $pager_page_array), 'element' => $element, 'parameters' => $parameters));
+ $output = theme('pager_link', array('text' => $text, 'page_new' => pager_load_array($pager_total[$element] - 1, $element, $pager_page_array), 'element' => $element, 'parameters' => $parameters, 'attributes' => array('rel' => 'last')));
}
return $output;