defaults.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?php
  2. /**
  3. * @author Björn Schießle <schiessle@owncloud.com>
  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. class OC_Theme {
  21. /**
  22. * Returns the base URL
  23. * @return string URL
  24. */
  25. public function getBaseUrl() {
  26. return 'https://nextcloud.com';
  27. }
  28. /**
  29. * Returns the URL where the sync clients are listed
  30. * @return string URL
  31. */
  32. public function getSyncClientUrl() {
  33. return 'https://nextcloud.com/install/#install-clients';
  34. }
  35. /**
  36. * Returns the URL to the App Store for the iOS Client
  37. * @return string URL
  38. */
  39. public function getiOSClientUrl() {
  40. return 'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8';
  41. }
  42. /**
  43. * Returns the AppId for the App Store for the iOS Client
  44. * @return string AppId
  45. */
  46. public function getiTunesAppId() {
  47. return '1125420102';
  48. }
  49. /**
  50. * Returns the URL to Google Play for the Android Client
  51. * @return string URL
  52. */
  53. public function getAndroidClientUrl() {
  54. return 'https://play.google.com/store/apps/details?id=com.nextcloud.client';
  55. }
  56. /**
  57. * Returns the documentation URL
  58. * @return string URL
  59. */
  60. public function getDocBaseUrl() {
  61. return 'https://docs.nextcloud.com';
  62. }
  63. /**
  64. * Returns the title
  65. * @return string title
  66. */
  67. public function getTitle() {
  68. return 'Custom Cloud';
  69. }
  70. /**
  71. * Returns the short name of the software
  72. * @return string title
  73. */
  74. public function getName() {
  75. return 'Custom Cloud';
  76. }
  77. /**
  78. * Returns the short name of the software containing HTML strings
  79. * @return string title
  80. */
  81. public function getHTMLName() {
  82. return 'Custom Cloud';
  83. }
  84. /**
  85. * Returns entity (e.g. company name) - used for footer, copyright
  86. * @return string entity name
  87. */
  88. public function getEntity() {
  89. return 'Custom Cloud Co.';
  90. }
  91. /**
  92. * Returns slogan
  93. * @return string slogan
  94. */
  95. public function getSlogan() {
  96. return 'Your custom cloud, personalized for you!';
  97. }
  98. /**
  99. * Returns logo claim
  100. * @return string logo claim
  101. */
  102. public function getLogoClaim() {
  103. return '';
  104. }
  105. /**
  106. * Returns short version of the footer
  107. * @return string short footer
  108. */
  109. public function getShortFooter() {
  110. $footer = '© 2017 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
  111. '<br/>' . $this->getSlogan();
  112. return $footer;
  113. }
  114. /**
  115. * Returns long version of the footer
  116. * @return string long footer
  117. */
  118. public function getLongFooter() {
  119. $footer = '© 2017 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
  120. '<br/>' . $this->getSlogan();
  121. return $footer;
  122. }
  123. public function buildDocLinkToKey($key) {
  124. return $this->getDocBaseUrl() . '/server/12/go.php?to=' . $key;
  125. }
  126. /**
  127. * Returns mail header color
  128. * @return string
  129. */
  130. public function getColorPrimary() {
  131. return '#745bca';
  132. }
  133. /**
  134. * Returns variables to overload defaults from core/css/variables.scss
  135. * @return array
  136. */
  137. public function getScssVariables() {
  138. return [
  139. 'color-primary' => '#745bca'
  140. ];
  141. }
  142. }