summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/templates
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-06-02 14:12:47 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-06-17 13:53:59 +0200
commit06d0a41915998918c2c162d609ee0eeded0a849d (patch)
tree0d6e7b046d744eb2f7ac155fee38451e4acf6d50 /apps/files_sharing/templates
parent1cccb227c398d3c5428672aaf9cf6b14e248e5f7 (diff)
downloadnextcloud-server-06d0a41915998918c2c162d609ee0eeded0a849d.tar.gz
nextcloud-server-06d0a41915998918c2c162d609ee0eeded0a849d.zip
add social media button for diaspora, twitter, facebook and google+
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r--apps/files_sharing/templates/settings-personal.php69
1 files changed, 63 insertions, 6 deletions
diff --git a/apps/files_sharing/templates/settings-personal.php b/apps/files_sharing/templates/settings-personal.php
index 84d8e8a1b13..84efd1dd1db 100644
--- a/apps/files_sharing/templates/settings-personal.php
+++ b/apps/files_sharing/templates/settings-personal.php
@@ -1,12 +1,69 @@
<?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: %s', [$_['cloudId']])); ?>
+ </p>
+
+ <p>
+
+ <h3><?php p($l->t('Share your Federated Cloud Id:')); ?></h3>
+
+ <p>
+
+ <div class='gs-share'>
+ <button data-url='<?php p($_['reference']); ?>'
+ data-title='<?php p(urlencode($_['message_without_URL'])); ?>'
+ class='js-gs-share gs-share--icon'>
+ </button>
+ </div>
+
+
+ <img src='TODO: Add Diaspora Button' style="border: 0px solid;"
+ alt='Share on Diaspora'
+ data-url='http://sharetodiaspora.github.io/?title=<?php p($_['message_without_URL']); ?>&url=<?php p($_['reference']); ?>'/>
+ <img src='TODO: Add Twitter Button' alt=' | Share on Twitter'
+ data-url='https://twitter.com/intent/tweet?text=<?php p(urlencode($_['message_with_URL'])); ?>'/>
+ <img src='TODO: Add Facebook Button' alt=' | Share on Facebook'
+ data-url='https://www.facebook.com/sharer/sharer.php?u=<?php p($_['reference']); ?>'/>
+ <img src='TODO: Add Google+ Button' alt=' | Share on Google+'
+ data-url='https://plus.google.com/share?url=<?php p($_['reference']); ?>'/>
+
+ </p>
+
+ <br/>
+
+ <h3><?php p($l->t('Add your Federated Cloud Id to your homepage:')); ?></h3>
+
+ <p>
+
+ <a href="<?php p($_['reference']); ?>">
+ <img src='TODO: Add Example Banner/Button'
+ alt='<?php p($_['message_with_URL']); ?>'/>
+ </a>
+
+ <br/>
+ <?php p($l->t('HTML Code:')); ?>
+ <br/>
+
+ <xmp>
+ <a href="<?php p($_['reference']); ?>">
+ <img src='TODO: Add Banner/Button'
+ alt='<?php p($_['message_with_URL']); ?>'/>
+ </a>
+ </xmp>
+
+ </p>
+
+ </div>
+<?php endif; ?>