1
0
miroir de https://github.com/nextcloud/server.git synchronisé 2024-07-25 13:54:59 +02:00

Support HTML in logo claim

Cette révision appartient à :
Lukas Reschke 2014-11-03 21:13:07 +01:00
Parent d2276215a4
révision be5ae6c44f
3 fichiers modifiés avec 21 ajouts et 1 suppressions

Voir le fichier

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

Voir le fichier

@ -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

Voir le fichier

@ -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