summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-06-24 22:06:40 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-06-24 22:09:55 +0200
commit155f62bcf6082264f402d634ebbef9fe78dda3a3 (patch)
treee979f01116a00949dc7b7384b14aa67a8af19032 /lib/base.php
parent2098cbd8222fe7657fec5538798426495a9b9888 (diff)
downloadnextcloud-server-155f62bcf6082264f402d634ebbef9fe78dda3a3.tar.gz
nextcloud-server-155f62bcf6082264f402d634ebbef9fe78dda3a3.zip
allow plugins/apps to add custom headers to all pages
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 0453e272a4b..6aac2d9855d 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -120,6 +120,7 @@ if(!$error and !$RUNTIME_NOAPPS ){
class OC_UTIL {
public static $scripts=array();
public static $styles=array();
+ public static $headers=array();
private static $fsSetup=false;
// Can be set up
@@ -231,6 +232,16 @@ class OC_UTIL {
}
}
+ /**
+ * @brief Add a custom element to the header
+ * @param string tag tag name of the element
+ * @param array $attributes array of attrobutes for the element
+ * @param string $text the text content for the element
+ */
+ public static function addHeader( $tag, $attributes, $text=''){
+ self::$headers[]=array('tag'=>$tag,'attributes'=>$attributes,'text'=>$text);
+ }
+
/**
* formats a timestamp in the "right" way
*