aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/templates/help.php
blob: 148839967912249853dc7df8ba0fcf31be459f4b (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
/**
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
\OC_Util::addStyle('settings', 'help');
?>
<?php if ($_['knowledgebaseEmbedded'] === true) : ?>
	<div id="app-navigation" role="navigation" tabindex="0">
		<ul>
			<li>
				<a class="help-list__link icon-user <?php if ($_['mode'] === 'user') {
					p('active');
				} ?>" <?php if ($_['mode'] === 'user') {
					print_unescaped('aria-current="page"');
				} ?>
					href="<?php print_unescaped($_['urlUserDocs']); ?>">
					<span class="help-list__text">
						<?php p($l->t('Account documentation')); ?>
					</span>
				</a>
			</li>
		<?php if ($_['admin']) { ?>
			<li>
				<a class="help-list__link icon-user-admin <?php if ($_['mode'] === 'admin') {
					p('active');
				} ?>" <?php if ($_['mode'] === 'admin') {
					print_unescaped('aria-current="page"');
				} ?>
					href="<?php print_unescaped($_['urlAdminDocs']); ?>">
					<span class="help-list__text">
						<?php p($l->t('Administration documentation')); ?>
					</span>
				</a>
			</li>
		<?php } ?>

			<li>
				<a href="https://docs.nextcloud.com" class="help-list__link icon-category-office" target="_blank" rel="noreferrer noopener">
					<span class="help-list__text">
						<?php p($l->t('Documentation')); ?> 					</span>
				</a>
			</li>
			<li>
				<a href="https://help.nextcloud.com" class="help-list__link icon-comment" target="_blank" rel="noreferrer noopener">
					<span class="help-list__text">
						<?php p($l->t('Forum')); ?> 					</span>
				</a>
			</li>
	</div>

	<div id="app-content" class="help-includes">
		<iframe src="<?php print_unescaped($_['url']); ?>" class="help-iframe" tabindex="0">
		</iframe>
	</div>
<?php else: ?>
	<div id="app-content">
		<div class="help-wrapper">
			<div class="help-content">
				<h2 class="help-content__heading">
					<?php p($l->t('Nextcloud help & privacy resources')); ?>
				</h2>
				<div class="help-content__body">
				<a class="button" target="_blank" rel="noreferrer noopener"
					href="<?php print_unescaped($_['urlUserDocs']); ?>">
					<?php p($l->t('Account documentation')); ?>  				</a>
				<a class="button" target="_blank" rel="noreferrer noopener"
					href="<?php print_unescaped($_['urlAdminDocs']); ?>">
					<?php p($l->t('Administration documentation')); ?>  				</a>
				<a href="https://docs.nextcloud.com" class="button" target="_blank" rel="noreferrer noopener">
					<?php p($l->t('General documentation')); ?> 				</a>
				<a href="https://help.nextcloud.com" class="button" target="_blank" rel="noreferrer noopener">
					<?php p($l->t('Forum')); ?> 				</a>
				<?php if ($_['legalNoticeUrl']) { ?>
					<a href="<?php print_unescaped($_['legalNoticeUrl']); ?>" class="button" target="_blank" rel="noreferrer noopener">
						<?php p($l->t('Legal notice')); ?> 					</a>
				<?php } ?>
				<?php if ($_['privacyUrl']) { ?>
					<a href="<?php print_unescaped($_['privacyUrl']); ?>" class="button" target="_blank" rel="noreferrer noopener">
						<?php p($l->t('Privacy policy')); ?> 					</a>
				<?php } ?>
			</div>
		</div>
	</div>
<?php endif; ?>