@@ -20,114 +20,114 @@ |
||
20 | 20 | |
21 | 21 | class OC_Theme { |
22 | 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 documentation URL |
|
33 | - * @return string URL |
|
34 | - */ |
|
35 | - public function getDocBaseUrl() { |
|
36 | - return 'https://docs.nextcloud.com'; |
|
37 | - } |
|
38 | - |
|
39 | - /** |
|
40 | - * Returns the title |
|
41 | - * @return string title |
|
42 | - */ |
|
43 | - public function getTitle() { |
|
44 | - return 'Custom Cloud'; |
|
45 | - } |
|
46 | - |
|
47 | - /** |
|
48 | - * Returns the short name of the software |
|
49 | - * @return string title |
|
50 | - */ |
|
51 | - public function getName() { |
|
52 | - return 'Custom Cloud'; |
|
53 | - } |
|
54 | - |
|
55 | - /** |
|
56 | - * Returns the short name of the software containing HTML strings |
|
57 | - * @return string title |
|
58 | - */ |
|
59 | - public function getHTMLName() { |
|
60 | - return 'Custom Cloud'; |
|
61 | - } |
|
62 | - |
|
63 | - /** |
|
64 | - * Returns entity (e.g. company name) - used for footer, copyright |
|
65 | - * @return string entity name |
|
66 | - */ |
|
67 | - public function getEntity() { |
|
68 | - return 'Custom Cloud Co.'; |
|
69 | - } |
|
70 | - |
|
71 | - /** |
|
72 | - * Returns slogan |
|
73 | - * @return string slogan |
|
74 | - */ |
|
75 | - public function getSlogan() { |
|
76 | - return 'Your custom cloud, personalized for you!'; |
|
77 | - } |
|
78 | - |
|
79 | - /** |
|
80 | - * Returns logo claim |
|
81 | - * @return string logo claim |
|
82 | - * @deprecated 13.0.0 not used anymore |
|
83 | - */ |
|
84 | - public function getLogoClaim() { |
|
85 | - return ''; |
|
86 | - } |
|
87 | - |
|
88 | - /** |
|
89 | - * Returns short version of the footer |
|
90 | - * @return string short footer |
|
91 | - */ |
|
92 | - public function getShortFooter() { |
|
93 | - $footer = '© 2018 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'. |
|
94 | - '<br/>' . $this->getSlogan(); |
|
95 | - |
|
96 | - return $footer; |
|
97 | - } |
|
98 | - |
|
99 | - /** |
|
100 | - * Returns long version of the footer |
|
101 | - * @return string long footer |
|
102 | - */ |
|
103 | - public function getLongFooter() { |
|
104 | - $footer = '© 2017 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'. |
|
105 | - '<br/>' . $this->getSlogan(); |
|
106 | - |
|
107 | - return $footer; |
|
108 | - } |
|
109 | - |
|
110 | - public function buildDocLinkToKey($key) { |
|
111 | - return $this->getDocBaseUrl() . '/server/12/go.php?to=' . $key; |
|
112 | - } |
|
113 | - |
|
114 | - |
|
115 | - /** |
|
116 | - * Returns mail header color |
|
117 | - * @return string |
|
118 | - */ |
|
119 | - public function getColorPrimary() { |
|
120 | - return '#745bca'; |
|
121 | - } |
|
122 | - |
|
123 | - /** |
|
124 | - * Returns variables to overload defaults from core/css/variables.scss |
|
125 | - * @return array |
|
126 | - */ |
|
127 | - public function getScssVariables() { |
|
128 | - return [ |
|
129 | - 'color-primary' => '#745bca' |
|
130 | - ]; |
|
131 | - } |
|
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 documentation URL |
|
33 | + * @return string URL |
|
34 | + */ |
|
35 | + public function getDocBaseUrl() { |
|
36 | + return 'https://docs.nextcloud.com'; |
|
37 | + } |
|
38 | + |
|
39 | + /** |
|
40 | + * Returns the title |
|
41 | + * @return string title |
|
42 | + */ |
|
43 | + public function getTitle() { |
|
44 | + return 'Custom Cloud'; |
|
45 | + } |
|
46 | + |
|
47 | + /** |
|
48 | + * Returns the short name of the software |
|
49 | + * @return string title |
|
50 | + */ |
|
51 | + public function getName() { |
|
52 | + return 'Custom Cloud'; |
|
53 | + } |
|
54 | + |
|
55 | + /** |
|
56 | + * Returns the short name of the software containing HTML strings |
|
57 | + * @return string title |
|
58 | + */ |
|
59 | + public function getHTMLName() { |
|
60 | + return 'Custom Cloud'; |
|
61 | + } |
|
62 | + |
|
63 | + /** |
|
64 | + * Returns entity (e.g. company name) - used for footer, copyright |
|
65 | + * @return string entity name |
|
66 | + */ |
|
67 | + public function getEntity() { |
|
68 | + return 'Custom Cloud Co.'; |
|
69 | + } |
|
70 | + |
|
71 | + /** |
|
72 | + * Returns slogan |
|
73 | + * @return string slogan |
|
74 | + */ |
|
75 | + public function getSlogan() { |
|
76 | + return 'Your custom cloud, personalized for you!'; |
|
77 | + } |
|
78 | + |
|
79 | + /** |
|
80 | + * Returns logo claim |
|
81 | + * @return string logo claim |
|
82 | + * @deprecated 13.0.0 not used anymore |
|
83 | + */ |
|
84 | + public function getLogoClaim() { |
|
85 | + return ''; |
|
86 | + } |
|
87 | + |
|
88 | + /** |
|
89 | + * Returns short version of the footer |
|
90 | + * @return string short footer |
|
91 | + */ |
|
92 | + public function getShortFooter() { |
|
93 | + $footer = '© 2018 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'. |
|
94 | + '<br/>' . $this->getSlogan(); |
|
95 | + |
|
96 | + return $footer; |
|
97 | + } |
|
98 | + |
|
99 | + /** |
|
100 | + * Returns long version of the footer |
|
101 | + * @return string long footer |
|
102 | + */ |
|
103 | + public function getLongFooter() { |
|
104 | + $footer = '© 2017 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'. |
|
105 | + '<br/>' . $this->getSlogan(); |
|
106 | + |
|
107 | + return $footer; |
|
108 | + } |
|
109 | + |
|
110 | + public function buildDocLinkToKey($key) { |
|
111 | + return $this->getDocBaseUrl() . '/server/12/go.php?to=' . $key; |
|
112 | + } |
|
113 | + |
|
114 | + |
|
115 | + /** |
|
116 | + * Returns mail header color |
|
117 | + * @return string |
|
118 | + */ |
|
119 | + public function getColorPrimary() { |
|
120 | + return '#745bca'; |
|
121 | + } |
|
122 | + |
|
123 | + /** |
|
124 | + * Returns variables to overload defaults from core/css/variables.scss |
|
125 | + * @return array |
|
126 | + */ |
|
127 | + public function getScssVariables() { |
|
128 | + return [ |
|
129 | + 'color-primary' => '#745bca' |
|
130 | + ]; |
|
131 | + } |
|
132 | 132 | |
133 | 133 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | */ |
92 | 92 | public function getShortFooter() { |
93 | 93 | $footer = '© 2018 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'. |
94 | - '<br/>' . $this->getSlogan(); |
|
94 | + '<br/>'.$this->getSlogan(); |
|
95 | 95 | |
96 | 96 | return $footer; |
97 | 97 | } |
@@ -102,13 +102,13 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function getLongFooter() { |
104 | 104 | $footer = '© 2017 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'. |
105 | - '<br/>' . $this->getSlogan(); |
|
105 | + '<br/>'.$this->getSlogan(); |
|
106 | 106 | |
107 | 107 | return $footer; |
108 | 108 | } |
109 | 109 | |
110 | 110 | public function buildDocLinkToKey($key) { |
111 | - return $this->getDocBaseUrl() . '/server/12/go.php?to=' . $key; |
|
111 | + return $this->getDocBaseUrl().'/server/12/go.php?to='.$key; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 |