Theming: fix federated sharing button color
This commit is contained in:
parent
044d7c3bb7
commit
a7c5f1b3c4
|
@ -24,6 +24,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use OCA\FederatedFileSharing\AppInfo\Application;
|
use OCA\FederatedFileSharing\AppInfo\Application;
|
||||||
|
use OCA\Theming\Template;
|
||||||
|
|
||||||
\OC_Util::checkLoggedIn();
|
\OC_Util::checkLoggedIn();
|
||||||
|
|
||||||
|
@ -41,6 +42,7 @@ if (count($matches) > 0 && $matches[1] <= 9) {
|
||||||
$cloudID = \OC::$server->getUserSession()->getUser()->getCloudId();
|
$cloudID = \OC::$server->getUserSession()->getUser()->getCloudId();
|
||||||
$url = 'https://nextcloud.com/federation#' . $cloudID;
|
$url = 'https://nextcloud.com/federation#' . $cloudID;
|
||||||
$ownCloudLogoPath = \OC::$server->getURLGenerator()->imagePath('core', 'logo-icon.svg');
|
$ownCloudLogoPath = \OC::$server->getURLGenerator()->imagePath('core', 'logo-icon.svg');
|
||||||
|
$theme = \OC::$server->getThemingDefaults();
|
||||||
|
|
||||||
$tmpl = new OCP\Template('federatedfilesharing', 'settings-personal');
|
$tmpl = new OCP\Template('federatedfilesharing', 'settings-personal');
|
||||||
$tmpl->assign('outgoingServer2serverShareEnabled', $federatedShareProvider->isOutgoingServer2serverShareEnabled());
|
$tmpl->assign('outgoingServer2serverShareEnabled', $federatedShareProvider->isOutgoingServer2serverShareEnabled());
|
||||||
|
@ -50,5 +52,6 @@ $tmpl->assign('owncloud_logo_path', $ownCloudLogoPath);
|
||||||
$tmpl->assign('reference', $url);
|
$tmpl->assign('reference', $url);
|
||||||
$tmpl->assign('cloudId', $cloudID);
|
$tmpl->assign('cloudId', $cloudID);
|
||||||
$tmpl->assign('showShareIT', !$isIE8);
|
$tmpl->assign('showShareIT', !$isIE8);
|
||||||
|
$tmpl->assign('color', $theme->getMailHeaderColor());
|
||||||
|
|
||||||
return $tmpl->fetchPage();
|
return $tmpl->fetchPage();
|
||||||
|
|
|
@ -55,7 +55,7 @@ if ($_['showShareIT']) {
|
||||||
<div class="hidden" id="oca-files-sharing-add-to-your-website-expanded">
|
<div class="hidden" id="oca-files-sharing-add-to-your-website-expanded">
|
||||||
<p style="margin: 10px 0">
|
<p style="margin: 10px 0">
|
||||||
<a target="_blank" rel="noreferrer" href="<?php p($_['reference']); ?>"
|
<a target="_blank" rel="noreferrer" href="<?php p($_['reference']); ?>"
|
||||||
style="padding:10px;background-color:#0082c9;color:#fff;border-radius:3px;padding-left:4px;">
|
style="padding:10px;background-color:<?php p($_['color']); ?>;color:#fff;border-radius:3px;padding-left:4px;">
|
||||||
<img src="<?php p($_['owncloud_logo_path']); ?>"
|
<img src="<?php p($_['owncloud_logo_path']); ?>"
|
||||||
style="width:50px;position:relative;top:8px;">
|
style="width:50px;position:relative;top:8px;">
|
||||||
<?php p($l->t('Share with me via Nextcloud')); ?>
|
<?php p($l->t('Share with me via Nextcloud')); ?>
|
||||||
|
|
Loading…
Reference in New Issue