Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 5.1k
Theming fixes#405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Theming fixes #405
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -77,6 +77,10 @@ public function getName() { | ||
| return $this->config->getAppValue('theming', 'name', $this->name); | ||
| } | ||
| public function getHTMLName() { | ||
| return $this->config->getAppValue('theming', 'name', $this->name); | ||
| } | ||
| public function getTitle() { | ||
| return $this->config->getAppValue('theming', 'name', $this->name); | ||
| } | ||
| @@ -93,6 +97,15 @@ public function getSlogan() { | ||
| return $this->config->getAppValue('theming', 'slogan', $this->slogan); | ||
| } | ||
| public function getShortFooter() { | ||
| $slogan = $this->getSlogan(); | ||
| $footer = '<a href="'. $this->getBaseUrl() . '" target="_blank"' . | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. needs escaping? MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No? Or atleast this is just copy paste of the parent class, so it would need fixing there as. | ||
| ' rel="noreferrer">' .$this->getEntity() . '</a>'. | ||
| ($slogan !== '' ? ' – ' . $slogan : ''); | ||
| return $footer; | ||
| } | ||
| /** | ||
| * Color that is used for the header as well as for mail headers | ||
| * | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reasons why we don't use
\OC::$server->getThemingDefaults()here and below?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getThemingDefaults() is marked as internal, and the constructor of OCP\Default uses this internal method after this PR.