aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2018-10-07 10:28:33 +0200
committerChristian Weiske <cweiske@cweiske.de>2018-10-07 10:28:33 +0200
commitfdc7b416ddd51376c388d3e99aef8c12b6a17895 (patch)
tree7929b17f1b45c2b200c8d78b260a90bd3a3e1354
parent83de9e1406c158936cced65bb60daad867c30a75 (diff)
downloadgrauphel-fdc7b416ddd51376c388d3e99aef8c12b6a17895.tar.gz
grauphel-fdc7b416ddd51376c388d3e99aef8c12b6a17895.zip
Register CSS files via API
-rw-r--r--css/grauphel.css (renamed from grauphel.css)0
-rw-r--r--templates/error.php2
-rw-r--r--templates/gui-database.php2
-rw-r--r--templates/gui-note.php2
-rw-r--r--templates/index.php2
-rw-r--r--templates/oauthAuthorize.php3
-rw-r--r--templates/tag.php2
-rw-r--r--templates/tokens.php2
8 files changed, 8 insertions, 7 deletions
diff --git a/grauphel.css b/css/grauphel.css
index 3b7d03c..3b7d03c 100644
--- a/grauphel.css
+++ b/css/grauphel.css
diff --git a/templates/error.php b/templates/error.php
index 6ca821b..a2f7c73 100644
--- a/templates/error.php
+++ b/templates/error.php
@@ -1,4 +1,4 @@
-<link rel="stylesheet" href="<?php p(OC::$server->getURLGenerator()->linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
+<?php style('grauphel', 'grauphel'); ?>
<div id="app-content" class="content">
<div id="searchresults" class="hidden"></div>
diff --git a/templates/gui-database.php b/templates/gui-database.php
index 14e7959..22710ef 100644
--- a/templates/gui-database.php
+++ b/templates/gui-database.php
@@ -1,4 +1,4 @@
-<link rel="stylesheet" href="<?php p(OC::$server->getURLGenerator()->linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
+<?php style('grauphel', 'grauphel'); ?>
<?php /** @var $l OC_L10N */ ?>
<?php $_['appNavigation']->printPage(); ?>
diff --git a/templates/gui-note.php b/templates/gui-note.php
index 1272b5c..2aa5a20 100644
--- a/templates/gui-note.php
+++ b/templates/gui-note.php
@@ -1,4 +1,4 @@
-<link rel="stylesheet" href="<?php p(OC::$server->getURLGenerator()->linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
+<?php style('grauphel', 'grauphel'); ?>
<?php /** @var $l OC_L10N */ ?>
<?php $_['appNavigation']->printPage(); ?>
diff --git a/templates/index.php b/templates/index.php
index 4edb7d9..0d4c12c 100644
--- a/templates/index.php
+++ b/templates/index.php
@@ -1,4 +1,4 @@
-<link rel="stylesheet" href="<?php p(OC::$server->getURLGenerator()->linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
+<?php style('grauphel', 'grauphel'); ?>
<?php /** @var $l OC_L10N */ ?>
<?php $_['appNavigation']->printPage(); ?>
diff --git a/templates/oauthAuthorize.php b/templates/oauthAuthorize.php
index 5c7cf4a..782c51a 100644
--- a/templates/oauthAuthorize.php
+++ b/templates/oauthAuthorize.php
@@ -1,4 +1,5 @@
-<link rel="stylesheet" href="<?php p(OC::$server->getURLGenerator()->linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
+<?php style('grauphel', 'grauphel'); ?>
+
<form method="post" action="<?php p($_['formaction']); ?>" class="oauth-authorize">
<input type="hidden" value="<?php p($_['requesttoken']); ?>" name="requesttoken" />
<input type="hidden" value="<?php p($_['oauth_token']); ?>" name="oauth_token" />
diff --git a/templates/tag.php b/templates/tag.php
index 4a9501c..ee5f592 100644
--- a/templates/tag.php
+++ b/templates/tag.php
@@ -1,4 +1,4 @@
-<link rel="stylesheet" href="<?php p(OC::$server->getURLGenerator()->linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
+<?php style('grauphel', 'grauphel'); ?>
<?php /** @var $l OC_L10N */ ?>
<?php $_['appNavigation']->printPage(); ?>
diff --git a/templates/tokens.php b/templates/tokens.php
index 52bbdb4..cb8089d 100644
--- a/templates/tokens.php
+++ b/templates/tokens.php
@@ -1,4 +1,4 @@
-<link rel="stylesheet" href="<?php p(OC::$server->getURLGenerator()->linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
+<?php style('grauphel', 'grauphel'); ?>
<script type="text/javascript" src="<?php p(OC::$server->getURLGenerator()->linkTo('grauphel','js/grauphel.js')); ?>"></script>
<?php /** @var $l OC_L10N */ ?>