summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-10-22 09:36:05 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-10-22 09:36:05 +0000
commit8cd97cdd7d9bd526d6b41362d011614919acabae (patch)
tree248896484551ebcf3de22d3085fe8691f7efb1fc /includes/theme.inc
parent2cc43fffd40c1f47f23f41d520a8bdabab49d277 (diff)
downloadbrdo-8cd97cdd7d9bd526d6b41362d011614919acabae.tar.gz
brdo-8cd97cdd7d9bd526d6b41362d011614919acabae.tar.bz2
#147492 by flobruit: make 'more' links themeable
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 6f3dda76f..621b9e77d 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1561,6 +1561,18 @@ function theme_feed_icon($url, $title) {
}
/**
+ * Returns code that emits the 'more' link used on blocks.
+ *
+ * @param $url
+ * The url of the main page
+ * @param $title
+ * A descriptive verb for the link, like 'Read more'
+ */
+function theme_more_link($url, $title) {
+ return '<div class="more-link">'. t('<a href="@link" title="@title">more</a>', array('@link' => check_url($url), '@title' => $title)) .'</div>';
+}
+
+/**
* Execute hook_footer() which is run at the end of the page right before the
* close of the body tag.
*