summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/templates
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-08-25 12:54:31 +0200
committerJulius Haertl <jus@bitgrid.net>2016-08-26 12:52:16 +0200
commita7273f1658ecbd51fbc68b35afdf32e9836dac13 (patch)
tree11602755be8c156757619f49e514a08e7f362964 /apps/federatedfilesharing/templates
parent218e2f78501f58d2e716c1059c5f9e2685ba5832 (diff)
downloadnextcloud-server-a7273f1658ecbd51fbc68b35afdf32e9836dac13.tar.gz
nextcloud-server-a7273f1658ecbd51fbc68b35afdf32e9836dac13.zip
Make federadedfilesharing button match the theming values
Diffstat (limited to 'apps/federatedfilesharing/templates')
-rw-r--r--apps/federatedfilesharing/templates/settings-personal.php15
1 files changed, 5 insertions, 10 deletions
diff --git a/apps/federatedfilesharing/templates/settings-personal.php b/apps/federatedfilesharing/templates/settings-personal.php
index 3ebd64784ee..0f51e6a5c4e 100644
--- a/apps/federatedfilesharing/templates/settings-personal.php
+++ b/apps/federatedfilesharing/templates/settings-personal.php
@@ -55,22 +55,17 @@ if ($_['showShareIT']) {
<div class="hidden" id="oca-files-sharing-add-to-your-website-expanded">
<p style="margin: 10px 0">
<a target="_blank" rel="noreferrer" href="<?php p($_['reference']); ?>"
- style="padding:10px;background-color:<?php p($_['color']); ?>;color:#fff;border-radius:3px;padding-left:4px;">
- <img src="<?php p($_['owncloud_logo_path']); ?>"
- style="width:50px;position:relative;top:8px;">
+ style="padding:10px;background-color:<?php p($_['color']); ?>;color:<?php p($_['textColor']); ?>;border-radius:3px;padding-left:4px;">
+ <span style="background-image:url(<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL($_['logoPath'])); ?>);width:50px;height:30px;position:relative;top:8px;background-size:contain;display:inline-block;background-repeat:no-repeat; background-position: center center;"></span>
<?php p($l->t('Share with me via Nextcloud')); ?>
</a>
</p>
<p>
<?php p($l->t('HTML Code:')); ?>
- <xmp><a target="_blank" rel="noreferrer" href="<?php p($_['reference']); ?>"
- style="padding:10px;background-color:#0082c9;color:#fff;border-radius:3px;padding-left:4px;">
- <img src="<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL($_['owncloud_logo_path'])); ?>"
- style="width:50px;position:relative;top:8px;">
- <?php p($l->t('Share with me via Nextcloud')); ?>
-
-</a></xmp>
+ <xmp><a target="_blank" rel="noreferrer" href="<?php p($_['reference']); ?>" style="padding:10px;background-color:<?php p($_['color']); ?>;color:<?php p($_['textColor']); ?>;border-radius:3px;padding-left:4px;">
+<span style="background-image:url(<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL($_['logoPath'])); ?>);width:50px;height:30px;position:relative;top:8px;background-size:contain;display:inline-block;background-repeat:no-repeat; background-position: center center;"></span>
+<?php p($l->t('Share with me via Nextcloud')); ?></a></xmp>
</p>
</div>
<?php } ?>