summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-09-10 11:03:00 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-09-10 11:03:00 +0200
commit64203331bcc740a3caa4069da98e9a2512d664f3 (patch)
tree90dbe9b946ea3b7f9e31a877c8d3bd9bffbc5e4c
parent0ef7b84d778147ff0d47f4cdf95c0ac1272863b8 (diff)
downloadnextcloud-server-64203331bcc740a3caa4069da98e9a2512d664f3.tar.gz
nextcloud-server-64203331bcc740a3caa4069da98e9a2512d664f3.zip
[example theme] make it easier for non PHP people to understand what to change
-rw-r--r--themes/example/defaults.php38
1 files changed, 8 insertions, 30 deletions
diff --git a/themes/example/defaults.php b/themes/example/defaults.php
index 0dd0d46bd9c..6fea8fa8a49 100644
--- a/themes/example/defaults.php
+++ b/themes/example/defaults.php
@@ -20,54 +20,32 @@
class OC_Theme {
- private $themeEntity;
- private $themeName;
- private $themeTitle;
- private $themeBaseUrl;
- private $themeDocBaseUrl;
- private $themeSyncClientUrl;
- private $themeSlogan;
- private $themeMailHeaderColor;
-
- /* put your custom text in these variables */
- function __construct() {
- $this->themeEntity = 'Custom Cloud Co.';
- $this->themeName = 'Custom Cloud';
- $this->themeTitle = 'Custom Cloud';
- $this->themeBaseUrl = 'https://owncloud.org';
- $this->themeDocBaseUrl = 'https://doc.owncloud.org';
- $this->themeSyncClientUrl = 'https://owncloud.org/install';
- $this->themeSlogan = 'Your custom cloud, personalized for you!';
- $this->themeMailHeaderColor = '#745bca';
- }
- /* nothing after this needs to be adjusted */
-
public function getBaseUrl() {
- return $this->themeBaseUrl;
+ return 'https://owncloud.org';
}
public function getSyncClientUrl() {
- return $this->themeSyncClientUrl;
+ return 'https://owncloud.org/install';
}
public function getDocBaseUrl() {
- return $this->themeDocBaseUrl;
+ return 'https://doc.owncloud.org';
}
public function getTitle() {
- return $this->themeTitle;
+ return 'Custom Cloud';
}
public function getName() {
- return $this->themeName;
+ return 'Custom Cloud';
}
public function getEntity() {
- return $this->themeEntity;
+ return 'Custom Cloud Co.';
}
public function getSlogan() {
- return $this->themeSlogan;
+ return 'Your custom cloud, personalized for you!';
}
public function getShortFooter() {
@@ -89,7 +67,7 @@ class OC_Theme {
}
public function getMailHeaderColor() {
- return $this->themeMailHeaderColor;
+ return '#745bca';
}
}