help.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. \OC_Util::addStyle('settings', 'help');
  3. ?>
  4. <?php if ($_['knowledgebaseEmbedded'] === true) : ?>
  5. <div id="app-navigation" role="navigation" tabindex="0">
  6. <ul>
  7. <li>
  8. <a class="icon-user <?php if ($_['mode'] === 'user') {
  9. p('active');
  10. } ?>" <?php if ($_['mode'] === 'user') { print_unescaped('aria-current="page"'); } ?>
  11. href="<?php print_unescaped($_['urlUserDocs']); ?>">
  12. <span class="help-list__text">
  13. <?php p($l->t('User documentation')); ?>
  14. </span>
  15. </a>
  16. </li>
  17. <?php if ($_['admin']) { ?>
  18. <li>
  19. <a class="icon-user-admin <?php if ($_['mode'] === 'admin') {
  20. p('active');
  21. } ?>" <?php if ($_['mode'] === 'admin') { print_unescaped('aria-current="page"'); } ?>
  22. href="<?php print_unescaped($_['urlAdminDocs']); ?>">
  23. <span class="help-list__text">
  24. <?php p($l->t('Administrator documentation')); ?>
  25. </span>
  26. </a>
  27. </li>
  28. <?php } ?>
  29. <li>
  30. <a href="https://docs.nextcloud.com" class="icon-category-office" target="_blank" rel="noreferrer noopener">
  31. <span class="help-list__text">
  32. <?php p($l->t('Documentation')); ?> ↗
  33. </span>
  34. </a>
  35. </li>
  36. <li>
  37. <a href="https://help.nextcloud.com" class="icon-comment" target="_blank" rel="noreferrer noopener">
  38. <span class="help-list__text">
  39. <?php p($l->t('Forum')); ?> ↗
  40. </span>
  41. </a>
  42. </li>
  43. </div>
  44. <div id="app-content" class="help-includes">
  45. <iframe src="<?php print_unescaped($_['url']); ?>" class="help-iframe" tabindex="0">
  46. </iframe>
  47. </div>
  48. <?php else: ?>
  49. <div id="app-content">
  50. <div class="help-wrapper">
  51. <div class="help-content">
  52. <h2 class="help-content__heading">
  53. <?php p($l->t('Nextcloud help resources')); ?>
  54. </h2>
  55. <div class="help-content__body">
  56. <a class="button" target="_blank" rel="noreferrer noopener"
  57. href="<?php print_unescaped($_['urlUserDocs']); ?>">
  58. <?php p($l->t('Account documentation')); ?> ↗
  59. </a>
  60. <a class="button" target="_blank" rel="noreferrer noopener"
  61. href="<?php print_unescaped($_['urlAdminDocs']); ?>">
  62. <?php p($l->t('Administration documentation')); ?> ↗
  63. </a>
  64. <a href="https://docs.nextcloud.com" class="button" target="_blank" rel="noreferrer noopener">
  65. <?php p($l->t('General documentation')); ?> ↗
  66. </a>
  67. <a href="https://help.nextcloud.com" class="button" target="_blank" rel="noreferrer noopener">
  68. <?php p($l->t('Forum')); ?> ↗
  69. </a>
  70. </div>
  71. </div>
  72. </div>
  73. <?php endif; ?>