You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

136 lines
3.0 KiB

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