2015-06-01 11:22:42 +03:00
|
|
|
<?php
|
|
|
|
/** @var OC_L10N $l */
|
|
|
|
/** @var array $_ */
|
2016-04-18 19:17:08 +03:00
|
|
|
script('federatedfilesharing', 'settings-personal');
|
|
|
|
style('federatedfilesharing', 'settings-personal');
|
2015-06-01 11:22:42 +03:00
|
|
|
?>
|
|
|
|
|
2015-06-02 15:12:47 +03:00
|
|
|
<?php if ($_['outgoingServer2serverShareEnabled']): ?>
|
|
|
|
<div id="fileSharingSettings" class="section">
|
|
|
|
<h2><?php p($l->t('Federated Cloud')); ?></h2>
|
2015-06-01 11:22:42 +03:00
|
|
|
|
2015-06-02 15:12:47 +03:00
|
|
|
<p>
|
2015-06-17 13:34:49 +03:00
|
|
|
<?php p($l->t('Your Federated Cloud ID:')); ?>
|
2016-08-09 14:14:55 +03:00
|
|
|
<strong id="cloudid"><?php p($_['cloudId']); ?></strong>
|
|
|
|
<a class="clipboardButton icon icon-clippy" data-clipboard-target="#cloudid"></a>
|
2015-06-02 15:12:47 +03:00
|
|
|
</p>
|
|
|
|
|
2015-06-17 13:34:49 +03:00
|
|
|
<br>
|
2015-06-02 15:12:47 +03:00
|
|
|
|
2015-08-25 17:05:57 +03:00
|
|
|
<?php if ($_['showShareIT']) {?>
|
2015-06-02 15:12:47 +03:00
|
|
|
<p>
|
2016-08-26 15:11:37 +03:00
|
|
|
<?php p($l->t('Share it:')); ?><br>
|
|
|
|
<button class="social-facebook pop-up"
|
|
|
|
data-url='https://www.facebook.com/sharer/sharer.php?u=<?php p(urlencode($_['reference'])); ?>'>
|
|
|
|
Facebook
|
2015-06-17 13:34:49 +03:00
|
|
|
</button>
|
2015-06-17 14:40:46 +03:00
|
|
|
<button class="social-twitter pop-up"
|
2015-06-17 13:34:49 +03:00
|
|
|
data-url='https://twitter.com/intent/tweet?text=<?php p(urlencode($_['message_with_URL'])); ?>'>
|
|
|
|
Twitter
|
|
|
|
</button>
|
2015-06-17 14:40:46 +03:00
|
|
|
<button class="social-googleplus pop-up"
|
2016-08-26 14:59:50 +03:00
|
|
|
data-url='https://plus.google.com/share?url=<?php p(urlencode($_['reference'])); ?>'>
|
2015-06-17 13:34:49 +03:00
|
|
|
Google+
|
2015-06-02 15:12:47 +03:00
|
|
|
</button>
|
2016-08-26 15:11:37 +03:00
|
|
|
<button class="social-diaspora pop-up"
|
|
|
|
data-url='https://sharetodiaspora.github.io/?title=<?php p($_['message_without_URL']); ?>&url=<?php p(urlencode($_['reference'])); ?>'>
|
|
|
|
Diaspora
|
|
|
|
</button>
|
2015-09-03 12:28:14 +03:00
|
|
|
<button id="oca-files-sharing-add-to-your-website">
|
|
|
|
<?php p($l->t('Add to your website')) ?>
|
|
|
|
</button>
|
2015-06-02 15:12:47 +03:00
|
|
|
</p>
|
|
|
|
|
2015-09-03 12:28:14 +03:00
|
|
|
<div class="hidden" id="oca-files-sharing-add-to-your-website-expanded">
|
|
|
|
<p style="margin: 10px 0">
|
2016-03-20 13:38:14 +03:00
|
|
|
<a target="_blank" rel="noreferrer" href="<?php p($_['reference']); ?>"
|
2016-08-25 13:54:31 +03:00
|
|
|
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>
|
2016-06-20 13:08:23 +03:00
|
|
|
<?php p($l->t('Share with me via Nextcloud')); ?>
|
2015-06-02 15:12:47 +03:00
|
|
|
</a>
|
2015-06-17 13:34:49 +03:00
|
|
|
</p>
|
2015-06-02 15:12:47 +03:00
|
|
|
|
2015-06-17 13:34:49 +03:00
|
|
|
<p>
|
2015-06-02 15:12:47 +03:00
|
|
|
<?php p($l->t('HTML Code:')); ?>
|
2016-08-25 13:54:31 +03:00
|
|
|
<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>
|
2015-06-02 15:12:47 +03:00
|
|
|
</p>
|
2015-09-03 12:28:14 +03:00
|
|
|
</div>
|
2015-08-25 17:05:57 +03:00
|
|
|
<?php } ?>
|
2015-06-02 15:12:47 +03:00
|
|
|
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|