diff options
author | Björn Schießle <bjoern@schiessle.org> | 2015-06-18 14:41:58 +0200 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2015-06-18 14:41:58 +0200 |
commit | 7a0917e5b2c25b2d90e503e30a3016dbe06a780c (patch) | |
tree | b258ac29e1c8b797d0e93537090124756cfeb3f7 /apps/files_sharing/templates | |
parent | a04cb82fd906f638c0cc8fdae9c8fc4e3c2851b8 (diff) | |
parent | f9093466bf2230edde9a4e8156101dc9558968c5 (diff) | |
download | nextcloud-server-7a0917e5b2c25b2d90e503e30a3016dbe06a780c.tar.gz nextcloud-server-7a0917e5b2c25b2d90e503e30a3016dbe06a780c.zip |
Merge pull request #16692 from owncloud/add_social_media_buttons
Add social media buttons
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r-- | apps/files_sharing/templates/settings-personal.php | 73 |
1 files changed, 67 insertions, 6 deletions
diff --git a/apps/files_sharing/templates/settings-personal.php b/apps/files_sharing/templates/settings-personal.php index 84d8e8a1b13..ee761ff5897 100644 --- a/apps/files_sharing/templates/settings-personal.php +++ b/apps/files_sharing/templates/settings-personal.php @@ -1,12 +1,73 @@ <?php /** @var OC_L10N $l */ /** @var array $_ */ +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'); ?> -<div id="fileSharingSettings" class="section"> - <h2><?php p($l->t('Federated Cloud'));?></h2> - <p> - <?php p($l->t('Your Federated Cloud ID: %s', [$_['cloudId']])); ?> - </p> +<?php if ($_['outgoingServer2serverShareEnabled']): ?> + <div id="fileSharingSettings" class="section"> + <h2><?php p($l->t('Federated Cloud')); ?></h2> -</div> + <p> + <?php p($l->t('Your Federated Cloud ID:')); ?> + <strong><?php p($_['cloudId']); ?></strong> + </p> + + <br> + + <p> + <?php p($l->t('Share it:')); ?> + <div class="gs-share"> + <button data-url="<?php p(urlencode($_['reference'])); ?>" + data-title='<?php p(urlencode($_['message_without_URL'])); ?>' + class='js-gs-share social-gnu'> + GNU Social + </button> + </div> + <button class="social-diaspora pop-up" + data-url='http://sharetodiaspora.github.io/?title=<?php p($_['message_without_URL']); ?>&url=<?php p(urlencode($_['reference'])); ?>'> + Diaspora + </button> + <button class="social-twitter pop-up" + data-url='https://twitter.com/intent/tweet?text=<?php p(urlencode($_['message_with_URL'])); ?>'> + Twitter + </button> + <button class="social-facebook pop-up" + data-url='https://www.facebook.com/sharer/sharer.php?u=<?php p(urlencode($_['reference'])); ?>'> + Facebook + </button> + <button class="social-googleplus pop-up" + data-url='https://plus.google.com/share?url=<?php p(urlencode($_['reference'])); ?>'/> + Google+ + </button> + </p> + + <br> + + <p> + <?php p($l->t('Add it to your website:')); ?> + + <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;"> + <?php p($l->t('Share with me via ownCloud')); ?> + </a> + </p> + + <p> + <?php p($l->t('HTML Code:')); ?> + <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;"> + <?php p($l->t('Share with me via ownCloud')); ?> + +</a></xmp> + </p> + + </div> +<?php endif; ?> |