summaryrefslogtreecommitdiffstats
path: root/system/helpers/html_helper.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-11-04 06:07:59 +0100
committeradmin <devnull@localhost>2006-11-04 06:07:59 +0100
commit40d299e8221ba5d641e07c18ef19f4ac13ff9b85 (patch)
tree536891f657c910ca70e49b90df323e2b0625bc99 /system/helpers/html_helper.php
parentbe013b3270f751e248efcbe82d5ea28e9386ce05 (diff)
Diffstat (limited to 'system/helpers/html_helper.php')
-rw-r--r--system/helpers/html_helper.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php
index e32abfbf2..90a776386 100644
--- a/system/helpers/html_helper.php
+++ b/system/helpers/html_helper.php
@@ -178,6 +178,27 @@ function nbs($num = 1)
return str_repeat("&nbsp;", $num);
}
+// ------------------------------------------------------------------------
+
+/**
+ * Generates meta tags from an array of key/values
+ *
+ * @access public
+ * @param array
+ * @return string
+ */
+function meta($meta = array(), $newline = "\n")
+{
+ $str = '';
+ foreach ($meta as $key => $val)
+ {
+ $str .= '<meta http-equiv="'.$key.'" content="'.$val.'" />'.$newline;
+ }
+
+ return $str;
+}
+
+
?> \ No newline at end of file