help.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * 2012 Frank Karlitschek frank@owncloud.org
  4. * This file is licensed under the Affero General Public License version 3 or later.
  5. * See the COPYING-README file.
  6. */?>
  7. <div id="controls">
  8. <a class="button newquestion" href="http://owncloud.org/support" target="_blank"><?php echo $l->t( 'Documentation' ); ?></a>
  9. <a class="button newquestion" href="http://owncloud.org/support/big-files" target="_blank"><?php echo $l->t( 'Managing Big Files' ); ?></a>
  10. <a class="button newquestion" href="http://apps.owncloud.com/knowledgebase/editquestion.php?action=new" target="_blank"><?php echo $l->t( 'Ask a question' ); ?></a>
  11. <?php
  12. $url=OC_Helper::linkTo( "settings", "help.php" ).'?page=';
  13. $pageNavi=OC_Util::getPageNavi($_['pagecount'], $_['page'], $url);
  14. if($pageNavi) {
  15. $pageNavi->printPage();
  16. }
  17. ?>
  18. </diV>
  19. <?php if(is_null($_["kbe"])):?>
  20. <div class="helpblock">
  21. <p><?php echo $l->t('Problems connecting to help database.');?></p>
  22. <p><a href="http://apps.owncloud.com/kb"><?php echo $l->t('Go there manually.');?></a></p>
  23. </div>
  24. <?php else:?>
  25. <?php foreach($_["kbe"] as $kb): ?>
  26. <div class="helpblock">
  27. <?php if($kb["preview1"] <> "") echo('<img class="preview" src="'.$kb["preview1"].'" />'); ?>
  28. <?php if($kb['detailpage']<>'') echo('<p><a target="_blank" href="'.$kb['detailpage'].'"><strong>'.$kb["name"].'</strong></a></p>');?>
  29. <p><?php echo $kb['description'];?></p>
  30. <?php if($kb['answer']<>'') echo('<p><strong>'.$l->t('Answer').':</strong><p>'.$kb['answer'].'</p>');?>
  31. </div>
  32. <?php endforeach;
  33. endif?>