apps.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php /**
  2. * Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
  3. * This file is licensed under the Affero General Public License version 3 or later.
  4. * See the COPYING-README file.
  5. */?>
  6. <script type="text/javascript"
  7. src="<?php print_unescaped(OC_Helper::linkToRoute('apps_custom'));?>?appid=<?php p($_['appid']); ?>"></script>
  8. <script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('settings/js', 'apps.js'));?>"></script>
  9. <ul id="leftcontent" class="applist">
  10. <?php if(OC_Config::getValue('appstoreenabled', true) === true): ?>
  11. <li>
  12. <a class="app-external" target="_blank" href="http://owncloud.org/dev"><?php p($l->t('Add your App'));?> …</a>
  13. </li>
  14. <?php endif; ?>
  15. <?php foreach($_['apps'] as $app):?>
  16. <li <?php if($app['active']) print_unescaped('class="active"')?> data-id="<?php p($app['id']) ?>"
  17. <?php if ( isset( $app['ocs_id'] ) ) { print_unescaped("data-id-ocs=\"{".OC_Util::sanitizeHTML($app['ocs_id'])."}\""); } ?>
  18. data-type="<?php p($app['internal'] ? 'internal' : 'external') ?>" data-installed="1">
  19. <a class="app<?php if(!$app['internal']) p(' externalapp') ?>"
  20. href="?appid=<?php p($app['id']) ?>"><?php p($app['name']) ?></a>
  21. <?php if(!$app['internal'])
  22. print_unescaped('<small class="'.OC_Util::sanitizeHTML($app['internalclass']).' list">'.OC_Util::sanitizeHTML($app['internallabel']).'</small>') ?>
  23. </li>
  24. <?php endforeach;?>
  25. <?php if(OC_Config::getValue('appstoreenabled', true) === true): ?>
  26. <li>
  27. <a class="app-external" target="_blank" href="http://apps.owncloud.com"><?php p($l->t('More Apps'));?> …</a>
  28. </li>
  29. <?php endif; ?>
  30. </ul>
  31. <div id="rightcontent">
  32. <div class="appinfo">
  33. <h3><strong><span class="name"><?php p($l->t('Select an App'));?></span></strong><span
  34. class="version"></span><small class="externalapp" style="visibility:hidden;"></small></h3>
  35. <span class="score"></span>
  36. <p class="description"></p>
  37. <p class="documentation hidden">
  38. <?php p($l->t("Documentation:"));?>
  39. <span class="userDocumentation appslink"></span>
  40. <span class="adminDocumentation appslink"></span>
  41. </p>
  42. <img src="" class="preview hidden" />
  43. <p class="appslink appstore hidden"><a id="appstorelink" href="#" target="_blank"><?php
  44. p($l->t('See application page at apps.owncloud.com'));?></a></p>
  45. <p class="appslink website hidden"><a id="websitelink" href="#" target="_blank"><?php
  46. p($l->t('See application website'));?></a></p>
  47. <p class="license hidden"><?php
  48. print_unescaped($l->t('<span class="licence"></span>-licensed by <span class="author"></span>'));?></p>
  49. <input class="enable hidden" type="submit" />
  50. <input class="update hidden" type="submit" value="<?php p($l->t('Update')); ?>" />
  51. <div class="warning hidden"></div>
  52. </div>
  53. </div>