Welcome to mirror list, hosted at ThFree Co, Russian Federation.

settings-personal.php « templates « federatedfilesharing « apps - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1804921aa1baeeb9be22180d95be53358be855cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/** @var \OCP\IL10N $l */
/** @var array $_ */
script('federatedfilesharing', 'settings-personal');
style('federatedfilesharing', 'settings-personal');
?>

<div id="fileSharingSettings" class="section">
	<h2 data-anchor-name="federated-cloud"><?php p($l->t('Federated Cloud')); ?></h2>
	<a target="_blank" rel="noreferrer noopener" class="icon-info svg"
	title="<?php p($l->t('Open documentation'));?>"
	href="<?php p(link_to_docs('user-sharing-federated')); ?>"></a>
	<p class="settings-hint"><?php p($l->t('You can share with anyone who uses a Nextcloud server or other Open Cloud Mesh (OCM) compatible servers and services! Just put their Federated Cloud ID in the share dialog. It looks like person@cloud.example.com')); ?></p>

	<p>
		<?php p($l->t('Your Federated Cloud ID:')); ?>
		<strong id="cloudid"><?php p($_['cloudId']); ?></strong>
		<a class="clipboardButton icon icon-clippy" data-clipboard-target="#cloudid"></a>
	</p>

	<br>

	<p>
		<?php p($l->t('Share it so your friends can share files with you:')); ?><br>
		<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-twitter pop-up"
			data-url='https://twitter.com/intent/tweet?text=<?php p(urlencode($_['message_with_URL'])); ?>'>
			Twitter
		</button>
		<button class="social-diaspora pop-up"
				data-url='https://share.diasporafoundation.org/?title=<?php p($_['message_without_URL']); ?>&url=<?php p(urlencode($_['reference'])); ?>'>
			Diaspora
		</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 noopener" 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>
	</p>

	<p>
		<?php p($l->t('HTML Code:')); ?>
		<xmp><a target="_blank" rel="noreferrer noopener" 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>
	</p>
	</div>

</div>