diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php
index 7eb1cf5ffa..7c1fe79e79 100644
--- a/core/templates/layout.base.php
+++ b/core/templates/layout.base.php
@@ -12,12 +12,7 @@
-
-
-
-
-
-
+
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index dc56edb006..d97da10984 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -13,12 +13,7 @@
-
-
-
-
-
-
+
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index aad9875f37..7d54d9b21f 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -21,12 +21,7 @@
-
-
-
-
-
-
+
diff --git a/lib/private/legacy/template/functions.php b/lib/private/legacy/template/functions.php
index 06eb512b54..208d9fb3f9 100644
--- a/lib/private/legacy/template/functions.php
+++ b/lib/private/legacy/template/functions.php
@@ -38,13 +38,43 @@ function p($string) {
print(\OCP\Util::sanitizeHTML($string));
}
+
+/**
+ * Prints a tag for loading css
+ * @param string $href the source URL, ignored when empty
+ * @param string $opts, additional optional options
+*/
+function emit_css_tag($href, $opts = '') {
+ $s='\n");
+}
+
+/**
+ * Prints all tags for CSS loading
+ * @param hash $obj all the script information from template
+*/
+function emit_css_loading_tags($obj) {
+ foreach($obj['cssfiles'] as $css) {
+ emit_css_tag($css);
+ }
+ foreach($obj['printcssfiles'] as $css) {
+ emit_css_tag($css, 'media="print"');
+ }
+}
+
/**
* Prints a