add logo claim to defaults.php

This commit is contained in:
Björn Schießle 2013-06-28 10:06:57 +02:00
parent aead759f47
commit d97d00fe0f
4 changed files with 12 additions and 9 deletions

View File

@ -9,9 +9,7 @@
<header><div id="header"> <header><div id="header">
<a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud"><img class="svg" <a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud"><img class="svg"
src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="ownCloud" /></a> src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="ownCloud" /></a>
<?php if (OC_Util::getEditionString() !== ''): ?> <div id="logo-claim" style="display:none;"><?php p(OC_Defaults::getLogoClaim()); ?></div>
<div id="logo-claim" style="display:none;">Enterprise Edition</div>
<?php endif; ?>
<div class="header-right"> <div class="header-right">
<?php if (isset($_['folder'])): ?> <?php if (isset($_['folder'])): ?>
<span id="details"><?php p($l->t('%s shared the folder %s with you', <span id="details"><?php p($l->t('%s shared the folder %s with you',

View File

@ -35,9 +35,7 @@
<div id="login"> <div id="login">
<header><div id="header"> <header><div id="header">
<img src="<?php print_unescaped(image_path('', 'logo.svg')); ?>" class="svg" alt="ownCloud" /> <img src="<?php print_unescaped(image_path('', 'logo.svg')); ?>" class="svg" alt="ownCloud" />
<?php if (OC_Util::getEditionString() !== ''): ?> <div id="logo-claim" style="display:none;"><?php p(OC_Defaults::getLogoClaim()); ?></div>
<div id="logo-claim" style="display:none;">Enterprise Edition</div>
<?php endif; ?>
</div></header> </div></header>
<?php print_unescaped($_['content']); ?> <?php print_unescaped($_['content']); ?>
</div> </div>

View File

@ -43,9 +43,7 @@
<header><div id="header"> <header><div id="header">
<a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud"><img class="svg" <a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud"><img class="svg"
src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="ownCloud" /></a> src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="ownCloud" /></a>
<?php if (OC_Util::getEditionString() !== ''): ?> <div id="logo-claim" style="display:none;"><?php p(OC_Defaults::getLogoClaim()); ?></div>
<div id="logo-claim" style="display:none;">Enterprise Edition</div>
<?php endif; ?>
<ul id="settings" class="svg"> <ul id="settings" class="svg">
<span id="expand" tabindex="0" role="link"> <span id="expand" tabindex="0" role="link">
<span id="expandDisplayName"><?php p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span> <span id="expandDisplayName"><?php p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span>

View File

@ -17,6 +17,7 @@ class OC_Defaults {
private static $defaultSyncClientUrl = " http://owncloud.org/sync-clients/"; private static $defaultSyncClientUrl = " http://owncloud.org/sync-clients/";
private static $defaultDocBaseUrl = "http://doc.owncloud.org"; private static $defaultDocBaseUrl = "http://doc.owncloud.org";
private static $defaultSlogan = "web services under your control"; private static $defaultSlogan = "web services under your control";
private static $defaultLogoClaim = "ownCloud Community";
private function themeExist($method) { private function themeExist($method) {
if (OC_Util::getTheme() !== '' && method_exists('OC_Theme', $method)) { if (OC_Util::getTheme() !== '' && method_exists('OC_Theme', $method)) {
@ -74,6 +75,14 @@ class OC_Defaults {
} }
} }
public static function getLogoClaim() {
if (self::themeExist('getLogoClaim')) {
return OC_Theme::getLogoClaim();
} else {
return self::$defaultLogoClaim;
}
}
public static function getShortFooter() { public static function getShortFooter() {
if (self::themeExist('getShortFooter')) { if (self::themeExist('getShortFooter')) {
$footer = OC_Theme::getShortFooter(); $footer = OC_Theme::getShortFooter();