Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-10-05 12:15:14 +0300
committerMorris Jobke <hey@morrisjobke.de>2015-10-05 12:15:14 +0300
commited2ed4be8dcc3807647ac288ae9f3214c048ccbb (patch)
tree30eeb910a628e2b6d0bca03013faffbadf604977 /themes
parent56c35da8d5bdbe1056cf79d81c3138a015c93e2f (diff)
Update example theme with App URLs and PHPDoc
Diffstat (limited to 'themes')
-rw-r--r--themes/example/defaults.php81
1 files changed, 81 insertions, 0 deletions
diff --git a/themes/example/defaults.php b/themes/example/defaults.php
index 6fea8fa8a49..3580dc137fb 100644
--- a/themes/example/defaults.php
+++ b/themes/example/defaults.php
@@ -20,34 +20,106 @@
class OC_Theme {
+ /**
+ * Returns the base URL
+ * @return string URL
+ */
public function getBaseUrl() {
return 'https://owncloud.org';
}
+ /**
+ * Returns the URL where the sync clients are listed
+ * @return string URL
+ */
public function getSyncClientUrl() {
return 'https://owncloud.org/install';
}
+ /**
+ * Returns the URL to the App Store for the iOS Client
+ * @return string URL
+ */
+ public function getiOSClientUrl() {
+ return 'https://itunes.apple.com/us/app/owncloud/id543672169?mt=8';
+ }
+
+ /**
+ * Returns the AppId for the App Store for the iOS Client
+ * @return string AppId
+ */
+ public function getiTunesAppId() {
+ return '543672169';
+ }
+
+ /**
+ * Returns the URL to Google Play for the Android Client
+ * @return string URL
+ */
+ public function getAndroidClientUrl() {
+ return 'https://play.google.com/store/apps/details?id=com.owncloud.android';
+ }
+
+ /**
+ * Returns the documentation URL
+ * @return string URL
+ */
public function getDocBaseUrl() {
return 'https://doc.owncloud.org';
}
+ /**
+ * Returns the title
+ * @return string title
+ */
public function getTitle() {
return 'Custom Cloud';
}
+ /**
+ * Returns the short name of the software
+ * @return string title
+ */
public function getName() {
return 'Custom Cloud';
}
+ /**
+ * Returns the short name of the software containing HTML strings
+ * @return string title
+ */
+ public function getHTMLName() {
+ return 'Custom Cloud';
+ }
+
+ /**
+ * Returns entity (e.g. company name) - used for footer, copyright
+ * @return string entity name
+ */
public function getEntity() {
return 'Custom Cloud Co.';
}
+ /**
+ * Returns slogan
+ * @return string slogan
+ */
public function getSlogan() {
return 'Your custom cloud, personalized for you!';
}
+ /**
+ * Returns logo claim
+ * @return string logo claim
+ */
+ public function getLogoClaim() {
+ return '';
+ }
+
+ /**
+ * Returns short version of the footer
+ * @return string short footer
+ */
public function getShortFooter() {
$footer = '© 2015 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
'<br/>' . $this->getSlogan();
@@ -55,6 +127,10 @@ class OC_Theme {
return $footer;
}
+ /**
+ * Returns long version of the footer
+ * @return string long footer
+ */
public function getLongFooter() {
$footer = '© 2015 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
'<br/>' . $this->getSlogan();
@@ -66,6 +142,11 @@ class OC_Theme {
return $this->getDocBaseUrl() . '/server/8.0/go.php?to=' . $key;
}
+
+ /**
+ * Returns mail header color
+ * @return string
+ */
public function getMailHeaderColor() {
return '#745bca';
}