help.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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('Account 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('Administration 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 & privacy 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. <?php if ($_['legalNoticeUrl']) { ?>
  75. <a href="<?php print_unescaped($_['legalNoticeUrl']); ?>" class="button" target="_blank" rel="noreferrer noopener">
  76. <?php p($l->t('Legal notice')); ?> ↗
  77. </a>
  78. <?php } ?>
  79. <?php if ($_['privacyUrl']) { ?>
  80. <a href="<?php print_unescaped($_['privacyUrl']); ?>" class="button" target="_blank" rel="noreferrer noopener">
  81. <?php p($l->t('Privacy policy')); ?> ↗
  82. </a>
  83. <?php } ?>
  84. </div>
  85. </div>
  86. </div>
  87. <?php endif; ?>