help.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. \OC_Util::addStyle('settings', 'help');
  7. ?>
  8. <?php if ($_['knowledgebaseEmbedded'] === true) : ?>
  9. <div id="app-navigation" role="navigation" tabindex="0">
  10. <ul>
  11. <li>
  12. <a class="icon-user <?php if ($_['mode'] === 'user') {
  13. p('active');
  14. } ?>" <?php if ($_['mode'] === 'user') {
  15. print_unescaped('aria-current="page"');
  16. } ?>
  17. href="<?php print_unescaped($_['urlUserDocs']); ?>">
  18. <span class="help-list__text">
  19. <?php p($l->t('Account documentation')); ?>
  20. </span>
  21. </a>
  22. </li>
  23. <?php if ($_['admin']) { ?>
  24. <li>
  25. <a class="icon-user-admin <?php if ($_['mode'] === 'admin') {
  26. p('active');
  27. } ?>" <?php if ($_['mode'] === 'admin') {
  28. print_unescaped('aria-current="page"');
  29. } ?>
  30. href="<?php print_unescaped($_['urlAdminDocs']); ?>">
  31. <span class="help-list__text">
  32. <?php p($l->t('Administration documentation')); ?>
  33. </span>
  34. </a>
  35. </li>
  36. <?php } ?>
  37. <li>
  38. <a href="https://docs.nextcloud.com" class="icon-category-office" target="_blank" rel="noreferrer noopener">
  39. <span class="help-list__text">
  40. <?php p($l->t('Documentation')); ?> ↗
  41. </span>
  42. </a>
  43. </li>
  44. <li>
  45. <a href="https://help.nextcloud.com" class="icon-comment" target="_blank" rel="noreferrer noopener">
  46. <span class="help-list__text">
  47. <?php p($l->t('Forum')); ?> ↗
  48. </span>
  49. </a>
  50. </li>
  51. </div>
  52. <div id="app-content" class="help-includes">
  53. <iframe src="<?php print_unescaped($_['url']); ?>" class="help-iframe" tabindex="0">
  54. </iframe>
  55. </div>
  56. <?php else: ?>
  57. <div id="app-content">
  58. <div class="help-wrapper">
  59. <div class="help-content">
  60. <h2 class="help-content__heading">
  61. <?php p($l->t('Nextcloud help & privacy resources')); ?>
  62. </h2>
  63. <div class="help-content__body">
  64. <a class="button" target="_blank" rel="noreferrer noopener"
  65. href="<?php print_unescaped($_['urlUserDocs']); ?>">
  66. <?php p($l->t('Account documentation')); ?> ↗
  67. </a>
  68. <a class="button" target="_blank" rel="noreferrer noopener"
  69. href="<?php print_unescaped($_['urlAdminDocs']); ?>">
  70. <?php p($l->t('Administration documentation')); ?> ↗
  71. </a>
  72. <a href="https://docs.nextcloud.com" class="button" target="_blank" rel="noreferrer noopener">
  73. <?php p($l->t('General documentation')); ?> ↗
  74. </a>
  75. <a href="https://help.nextcloud.com" class="button" target="_blank" rel="noreferrer noopener">
  76. <?php p($l->t('Forum')); ?> ↗
  77. </a>
  78. <?php if ($_['legalNoticeUrl']) { ?>
  79. <a href="<?php print_unescaped($_['legalNoticeUrl']); ?>" class="button" target="_blank" rel="noreferrer noopener">
  80. <?php p($l->t('Legal notice')); ?> ↗
  81. </a>
  82. <?php } ?>
  83. <?php if ($_['privacyUrl']) { ?>
  84. <a href="<?php print_unescaped($_['privacyUrl']); ?>" class="button" target="_blank" rel="noreferrer noopener">
  85. <?php p($l->t('Privacy policy')); ?> ↗
  86. </a>
  87. <?php } ?>
  88. </div>
  89. </div>
  90. </div>
  91. <?php endif; ?>