help.php 2.5 KB

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