Completed
Push — master ( bcf587...5a9224 )
by Morris
19:50 queued 04:43
created

OC_Theme::getScssVariables()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * @author Björn Schießle <[email protected]>
4
 * @author Jan-Christoph Borchardt, http://jancborchardt.net
5
 * @copyright Copyright (c) 2016, ownCloud, Inc.
6
 * @license AGPL-3.0
7
 *
8
 * This code is free software: you can redistribute it and/or modify
9
 * it under the terms of the GNU Affero General Public License, version 3,
10
 * as published by the Free Software Foundation.
11
 *
12
 * This program is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
 * GNU Affero General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU Affero General Public License, version 3,
18
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
19
 */
20
21
class OC_Theme {
22
23
	/**
24
	 * Returns the base URL
25
	 * @return string URL
26
	 */
27
	public function getBaseUrl() {
28
		return 'https://nextcloud.com';
29
	}
30
31
	/**
32
	 * Returns the URL where the sync clients are listed
33
	 * @return string URL
34
	 */
35
	public function getSyncClientUrl() {
36
		return 'https://nextcloud.com/install/#install-clients';
37
	}
38
39
	/**
40
	 * Returns the URL to the App Store for the iOS Client
41
	 * @return string URL
42
	 */
43
	public function getiOSClientUrl() {
44
		return 'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8';
45
	}
46
47
	/**
48
	 * Returns the AppId for the App Store for the iOS Client
49
	 * @return string AppId
50
	 */
51
	public function getiTunesAppId() {
52
		return '1125420102';
53
	}
54
55
	/**
56
	 * Returns the URL to Google Play for the Android Client
57
	 * @return string URL
58
	 */
59
	public function getAndroidClientUrl() {
60
		return 'https://play.google.com/store/apps/details?id=com.nextcloud.client';
61
	}
62
63
	/**
64
	 * Returns the documentation URL
65
	 * @return string URL
66
	 */
67
	public function getDocBaseUrl() {
68
		return 'https://docs.nextcloud.com';
69
	}
70
71
	/**
72
	 * Returns the title
73
	 * @return string title
74
	 */
75
	public function getTitle() {
76
		return 'Custom Cloud';
77
	}
78
79
	/**
80
	 * Returns the short name of the software
81
	 * @return string title
82
	 */
83
	public function getName() {
84
		return 'Custom Cloud';
85
	}
86
87
	/**
88
	 * Returns the short name of the software containing HTML strings
89
	 * @return string title
90
	 */
91
	public function getHTMLName() {
92
		return 'Custom Cloud';
93
	}
94
95
	/**
96
	 * Returns entity (e.g. company name) - used for footer, copyright
97
	 * @return string entity name
98
	 */
99
	public function getEntity() {
100
		return 'Custom Cloud Co.';
101
	}
102
103
	/**
104
	 * Returns slogan
105
	 * @return string slogan
106
	 */
107
	public function getSlogan() {
108
		return 'Your custom cloud, personalized for you!';
109
	}
110
111
	/**
112
	 * Returns logo claim
113
	 * @return string logo claim
114
	 */
115
	public function getLogoClaim() {
116
		return '';
117
	}
118
119
	/**
120
	 * Returns short version of the footer
121
	 * @return string short footer
122
	 */
123
	public function getShortFooter() {
124
		$footer = '© 2016 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
125
			'<br/>' . $this->getSlogan();
126
127
		return $footer;
128
	}
129
130
	/**
131
	 * Returns long version of the footer
132
	 * @return string long footer
133
	 */
134
	public function getLongFooter() {
135
		$footer = '© 2016 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
136
			'<br/>' . $this->getSlogan();
137
138
		return $footer;
139
	}
140
141
	public function buildDocLinkToKey($key) {
142
		return $this->getDocBaseUrl() . '/server/11/go.php?to=' . $key;
143
	}
144
145
146
	/**
147
	 * Returns mail header color
148
	 * @return string
149
	 */
150
	public function getColorPrimary() {
151
		return '#745bca';
152
	}
153
154
	/**
155
	 * Returns variables to overload defaults from core/css/variables.scss
156
	 * @return array
157
	 */
158
	public function getScssVariables() {
159
		return [
160
			'color-primary' => '#745bca'
161
		];
162
	}
163
164
}
165