2015-06-01 08:22:42 +00:00
|
|
|
<?php
|
|
|
|
/** @var OC_L10N $l */
|
|
|
|
/** @var array $_ */
|
2015-06-02 12:12:47 +00:00
|
|
|
script('files_sharing', 'settings-personal');
|
|
|
|
style('files_sharing', 'settings-personal');
|
|
|
|
script('files_sharing', '3rdparty/gs-share/gs-share');
|
|
|
|
style('files_sharing', '3rdparty/gs-share/style');
|
2015-06-01 08:22:42 +00:00
|
|
|
?>
|
|
|
|
|
2015-06-02 12:12:47 +00:00
|
|
|
<?php if ($_['outgoingServer2serverShareEnabled']): ?>
|
|
|
|
<div id="fileSharingSettings" class="section">
|
|
|
|
<h2><?php p($l->t('Federated Cloud')); ?></h2>
|
2015-06-01 08:22:42 +00:00
|
|
|
|
2015-06-02 12:12:47 +00:00
|
|
|
<p>
|
2015-06-17 10:34:49 +00:00
|
|
|
<?php p($l->t('Your Federated Cloud ID:')); ?>
|
|
|
|
<strong><?php p($_['cloudId']); ?></strong>
|
2015-06-02 12:12:47 +00:00
|
|
|
</p>
|
|
|
|
|
2015-06-17 10:34:49 +00:00
|
|
|
<br>
|
2015-06-02 12:12:47 +00:00
|
|
|
|
|
|
|
<p>
|
2015-06-17 10:34:49 +00:00
|
|
|
<?php p($l->t('Share it:')); ?>
|
2015-06-17 11:40:46 +00:00
|
|
|
<div class="gs-share">
|
2015-06-18 11:00:50 +00:00
|
|
|
<button data-url="<?php p(urlencode($_['reference'])); ?>"
|
2015-06-17 10:34:49 +00:00
|
|
|
data-title='<?php p(urlencode($_['message_without_URL'])); ?>'
|
2015-06-17 11:40:46 +00:00
|
|
|
class='js-gs-share social-gnu'>
|
2015-06-17 10:34:49 +00:00
|
|
|
GNU Social
|
|
|
|
</button>
|
2015-06-17 11:40:46 +00:00
|
|
|
</div>
|
|
|
|
<button class="social-diaspora pop-up"
|
2015-06-18 11:00:50 +00:00
|
|
|
data-url='http://sharetodiaspora.github.io/?title=<?php p($_['message_without_URL']); ?>&url=<?php p(urlencode($_['reference'])); ?>'>
|
2015-06-17 10:34:49 +00:00
|
|
|
Diaspora
|
|
|
|
</button>
|
2015-06-17 11:40:46 +00:00
|
|
|
<button class="social-twitter pop-up"
|
2015-06-17 10:34:49 +00:00
|
|
|
data-url='https://twitter.com/intent/tweet?text=<?php p(urlencode($_['message_with_URL'])); ?>'>
|
|
|
|
Twitter
|
|
|
|
</button>
|
2015-06-17 11:40:46 +00:00
|
|
|
<button class="social-facebook pop-up"
|
2015-06-18 11:00:50 +00:00
|
|
|
data-url='https://www.facebook.com/sharer/sharer.php?u=<?php p(urlencode($_['reference'])); ?>'>
|
2015-06-17 10:34:49 +00:00
|
|
|
Facebook
|
|
|
|
</button>
|
2015-06-17 11:40:46 +00:00
|
|
|
<button class="social-googleplus pop-up"
|
2015-06-18 11:00:50 +00:00
|
|
|
data-url='https://plus.google.com/share?url=<?php p(urlencode($_['reference'])); ?>'/>
|
2015-06-17 10:34:49 +00:00
|
|
|
Google+
|
2015-06-02 12:12:47 +00:00
|
|
|
</button>
|
|
|
|
</p>
|
|
|
|
|
2015-06-17 10:34:49 +00:00
|
|
|
<br>
|
2015-06-02 12:12:47 +00:00
|
|
|
|
|
|
|
<p>
|
2015-06-17 10:34:49 +00:00
|
|
|
<?php p($l->t('Add it to your website:')); ?>
|
2015-06-02 12:12:47 +00:00
|
|
|
|
2015-06-17 14:05:05 +00:00
|
|
|
<a target="_blank" href="<?php p($_['reference']); ?>"
|
|
|
|
style="padding:10px;background-color:#1d2d44;color:#fff;border-radius:3px;padding-left:4px;">
|
|
|
|
<img src="<?php p($_['owncloud_logo_path']); ?>"
|
|
|
|
style="width:50px;position:relative;top:8px;">
|
2015-06-17 10:34:49 +00:00
|
|
|
<?php p($l->t('Share with me via ownCloud')); ?>
|
2015-06-02 12:12:47 +00:00
|
|
|
</a>
|
2015-06-17 10:34:49 +00:00
|
|
|
</p>
|
2015-06-02 12:12:47 +00:00
|
|
|
|
2015-06-17 10:34:49 +00:00
|
|
|
<p>
|
2015-06-02 12:12:47 +00:00
|
|
|
<?php p($l->t('HTML Code:')); ?>
|
2015-06-17 14:05:05 +00:00
|
|
|
<xmp><a target="_blank" href="<?php p($_['reference']); ?>"
|
|
|
|
style="padding:10px;background-color:#1d2d44;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;">
|
2015-06-17 10:34:49 +00:00
|
|
|
<?php p($l->t('Share with me via ownCloud')); ?>
|
2015-06-02 12:12:47 +00:00
|
|
|
|
2015-06-17 10:34:49 +00:00
|
|
|
</a></xmp>
|
2015-06-02 12:12:47 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|