summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-01-30 17:36:00 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-01-30 17:36:00 +0100
commit165da619b64c6ade34366b99ef87758ef547dbdb (patch)
tree50475714e8e786150c273ab92b54fbeac32a8556 /system/helpers
parent432e97322ad518468235649ad25974eef3f3d39f (diff)
added stylesheet() to html helper
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/html_helper.php26
1 files changed, 24 insertions, 2 deletions
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php
index d887be6ce..660d867bd 100644
--- a/system/helpers/html_helper.php
+++ b/system/helpers/html_helper.php
@@ -230,8 +230,11 @@ if (! function_exists('image'))
* Generates link to a CSS file
*
* @access public
- * @param mixed stylesheet name(s)
- * @param string media type
+ * @param mixed stylesheet hrefs or an array
+ * @param string rel
+ * @param string type
+ * @param string title
+ * @param string media
* @param boolean should index_page be added to the css path
* @return string
*/
@@ -304,6 +307,25 @@ if (! function_exists('link'))
// ------------------------------------------------------------------------
/**
+ * Stylesheet
+ *
+ * Generates a <link /> to a CSS
+ *
+ * @access public
+ * @param array
+ * @return string
+ */
+if (! function_exists('stylesheet'))
+{
+ function stylesheet($href = '', $rel = 'stylesheet', $title = '', $media = 'screen')
+ {
+ return link($href, $rel, 'text/css', $title, $media);
+ }
+}
+
+// ------------------------------------------------------------------------
+
+/**
* Generates meta tags from an array of key/values
*
* @access public