aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/templates
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-10-06 16:08:26 +0200
committerSimon L <szaimen@e.mail.de>2023-10-06 16:22:02 +0200
commite5b11ced4a209bfee445bebb98f38d07fb5365c0 (patch)
tree4b04dda9f730edfca4b5444db6d417b2613eb12c /apps/settings/templates
parent6439fdf5b61d982838daf3c5b553577e5d54392c (diff)
downloadnextcloud-server-e5b11ced4a209bfee445bebb98f38d07fb5365c0.tar.gz
nextcloud-server-e5b11ced4a209bfee445bebb98f38d07fb5365c0.zip
address review
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'apps/settings/templates')
-rw-r--r--apps/settings/templates/help.php91
1 files changed, 69 insertions, 22 deletions
diff --git a/apps/settings/templates/help.php b/apps/settings/templates/help.php
index 58e38feb64c..850ca388996 100644
--- a/apps/settings/templates/help.php
+++ b/apps/settings/templates/help.php
@@ -1,28 +1,75 @@
<?php
\OC_Util::addStyle('settings', 'help');
?>
+<?php if ($_['knowledgebaseEmbedded'] === true) : ?>
+ <div id="app-navigation" role="navigation" tabindex="0">
+ <ul>
+ <li>
+ <a class="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('User documentation')); ?>
+ </span>
+ </a>
+ </li>
+ <?php if ($_['admin']) { ?>
+ <li>
+ <a class="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('Administrator documentation')); ?>
+ </span>
+ </a>
+ </li>
+ <?php } ?>
-<div id="app-content">
- <div class="help-wrapper">
- <div class="help-content">
- <h2 class="help-content__heading">
- <?php p($l->t('Nextcloud help overview')); ?>
- </h2>
- <div class="help-content__body">
- <a class="button" target="_blank" rel="noreferrer noopener"
- href="<?php print_unescaped($_['urlAdminDocs']); ?>">
- <?php p($l->t('Administration documentation')); ?> ↗
- </a>
- <a class="button" target="_blank" rel="noreferrer noopener"
- href="<?php print_unescaped($_['urlUserDocs']); ?>">
- <?php p($l->t('Account 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>
+ <li>
+ <a href="https://docs.nextcloud.com" class="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="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 overview')); ?>
+ </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>
+ </div>
</div>
</div>
-</div>
+<?php endif; ?>