Browse Source

Support HTML in logo claim

tags/v8.0.0alpha1
Lukas Reschke 9 years ago
parent
commit
be5ae6c44f
3 changed files with 21 additions and 1 deletions
  1. 1
    1
      core/templates/layout.user.php
  2. 12
    0
      lib/private/defaults.php
  3. 8
    0
      lib/public/defaults.php

+ 1
- 1
core/templates/layout.user.php View File

@@ -49,7 +49,7 @@
if(OC_Util::getEditionString() === '') {
p(!empty($_['application'])?$_['application']: $l->t('Apps'));
} else {
p($theme->getName());
print_unescaped($theme->getHTMLName());
}
?>
</div>

+ 12
- 0
lib/private/defaults.php View File

@@ -156,6 +156,18 @@ class OC_Defaults {
}
}

/**
* Returns the short name of the software containing HTML strings
* @return string title
*/
public function getHTMLName() {
if ($this->themeExist('getHTMLName')) {
return $this->theme->getHTMLName();
} else {
return $this->defaultName;
}
}

/**
* Returns entity (e.g. company name) - used for footer, copyright
* @return string entity name

+ 8
- 0
lib/public/defaults.php View File

@@ -97,6 +97,14 @@ class Defaults {
return $this->defaults->getName();
}

/**
* name of your ownCloud instance containing HTML styles
* @return string
*/
public function getHTMLName() {
return $this->defaults->getHTMLName();
}

/**
* Entity behind your onwCloud instance
* @return string

Loading…
Cancel
Save