summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/templates
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2016-04-18 18:17:08 +0200
committerBjörn Schießle <schiessle@owncloud.com>2016-04-22 14:55:40 +0200
commite10105474fbef8940fdfa96d5e2bf2f09b1f0649 (patch)
tree1881e059a3408a2d4e8096e31719ba989f7dfab1 /apps/files_sharing/templates
parent606b756a94643eaae87e18b39f6c75e6d18fec7e (diff)
downloadnextcloud-server-e10105474fbef8940fdfa96d5e2bf2f09b1f0649.tar.gz
nextcloud-server-e10105474fbef8940fdfa96d5e2bf2f09b1f0649.zip
move federated sharing settings to the federatedfilesharing app
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r--apps/files_sharing/templates/settings-admin.php26
-rw-r--r--apps/files_sharing/templates/settings-personal.php78
2 files changed, 0 insertions, 104 deletions
diff --git a/apps/files_sharing/templates/settings-admin.php b/apps/files_sharing/templates/settings-admin.php
deleted file mode 100644
index 64b6b8e72a3..00000000000
--- a/apps/files_sharing/templates/settings-admin.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/** @var OC_L10N $l */
-/** @var array $_ */
-?>
-<div id="fileSharingSettings">
- <h3><?php p($l->t('Federated Cloud Sharing'));?></h3>
- <a target="_blank" rel="noreferrer" class="icon-info svg"
- title="<?php p($l->t('Open documentation'));?>"
- href="<?php p(link_to_docs('admin-sharing-federated')); ?>"></a>
-
- <p>
- <input type="checkbox" name="outgoing_server2server_share_enabled" id="outgoingServer2serverShareEnabled" class="checkbox"
- value="1" <?php if ($_['outgoingServer2serverShareEnabled']) print_unescaped('checked="checked"'); ?> />
- <label for="outgoingServer2serverShareEnabled">
- <?php p($l->t('Allow users on this server to send shares to other servers'));?>
- </label>
- </p>
-
- <p>
- <input type="checkbox" name="incoming_server2server_share_enabled" id="incomingServer2serverShareEnabled" class="checkbox"
- value="1" <?php if ($_['incomingServer2serverShareEnabled']) print_unescaped('checked="checked"'); ?> />
- <label for="incomingServer2serverShareEnabled">
- <?php p($l->t('Allow users on this server to receive shares from other servers'));?>
- </label><br/>
- </p>
-</div>
diff --git a/apps/files_sharing/templates/settings-personal.php b/apps/files_sharing/templates/settings-personal.php
deleted file mode 100644
index ea9aae038a7..00000000000
--- a/apps/files_sharing/templates/settings-personal.php
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-/** @var OC_L10N $l */
-/** @var array $_ */
-script('files_sharing', 'settings-personal');
-style('files_sharing', 'settings-personal');
-if ($_['showShareIT']) {
- script('files_sharing', '3rdparty/gs-share/gs-share');
- style('files_sharing', '3rdparty/gs-share/style');
-}
-?>
-
-<?php if ($_['outgoingServer2serverShareEnabled']): ?>
- <div id="fileSharingSettings" class="section">
- <h2><?php p($l->t('Federated Cloud')); ?></h2>
-
- <p>
- <?php p($l->t('Your Federated Cloud ID:')); ?>
- <strong><?php p($_['cloudId']); ?></strong>
- </p>
-
- <br>
-
- <?php if ($_['showShareIT']) {?>
- <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='https://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>
- <button id="oca-files-sharing-add-to-your-website">
- <?php p($l->t('Add to your website')) ?>
- </button>
- </p>
-
- <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:#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" rel="noreferrer" 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 } ?>
-
- </div>
-<?php endif; ?>