apps.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. <div id="app-navigation">
  10. <ul class="applist">
  11. <?php if(OC_Config::getValue('appstoreenabled', true) === true): ?>
  12. <li>
  13. <a class="app-external" target="_blank" href="http://owncloud.org/dev"><?php p($l->t('Add your App'));?> …</a>
  14. </li>
  15. <?php endif; ?>
  16. <?php foreach($_['apps'] as $app):?>
  17. <li <?php if($app['active']) print_unescaped('class="active"')?> data-id="<?php p($app['id']) ?>" data-groups="<?php p($app['groups']) ?>"
  18. <?php if ( isset( $app['ocs_id'] ) ) { print_unescaped("data-id-ocs=\"{".OC_Util::sanitizeHTML($app['ocs_id'])."}\""); } ?>
  19. data-type="<?php p($app['internal'] ? 'internal' : 'external') ?>" data-installed="1">
  20. <a class="app<?php if(!$app['internal']) p(' externalapp') ?>"
  21. href="?appid=<?php p($app['id']) ?>"><?php p($app['name']) ?></a>
  22. <?php if(!$app['internal'])
  23. print_unescaped('<small class="'.OC_Util::sanitizeHTML($app['internalclass']).' list">'.OC_Util::sanitizeHTML($app['internallabel']).'</small>') ?>
  24. </li>
  25. <?php endforeach;?>
  26. <?php if(OC_Config::getValue('appstoreenabled', true) === true): ?>
  27. <li>
  28. <a class="app-external" target="_blank" href="http://apps.owncloud.com"><?php p($l->t('More Apps'));?> …</a>
  29. </li>
  30. <?php endif; ?>
  31. </ul>
  32. </div>
  33. <div id="app-content">
  34. <div class="appinfo">
  35. <h3><strong><span class="name"><?php p($l->t('Select an App'));?></span></strong><span
  36. class="version"></span><small class="externalapp" style="visibility:hidden;"></small></h3>
  37. <span class="score"></span>
  38. <p class="description"></p>
  39. <p class="documentation hidden">
  40. <?php p($l->t("Documentation:"));?>
  41. <span class="userDocumentation appslink"></span>
  42. <span class="adminDocumentation appslink"></span>
  43. </p>
  44. <img src="" class="preview hidden" />
  45. <p class="appslink appstore hidden"><a id="appstorelink" href="#" target="_blank"><?php
  46. p($l->t('See application page at apps.owncloud.com'));?></a></p>
  47. <p class="appslink website hidden"><a id="websitelink" href="#" target="_blank"><?php
  48. p($l->t('See application website'));?></a></p>
  49. <p class="license hidden"><?php
  50. print_unescaped($l->t('<span class="licence"></span>-licensed by <span class="author"></span>'));?></p>
  51. <input class="enable hidden" type="submit" />
  52. <input class="update hidden" type="submit" value="<?php p($l->t('Update')); ?>" />
  53. <a class="uninstall hidden" href="#"><?php p($l->t('Uninstall')); ?></a>
  54. <br />
  55. <input class="hidden" type="checkbox" id="groups_enable"/>
  56. <label class="hidden" for="groups_enable"><?php p($l->t('Enable only for specific groups')); ?></label>
  57. <br />
  58. <select class="hidden" id="group_select" multiple="multiple" title="<?php p($l->t('All')); ?>">
  59. <?php foreach($_['groups'] as $group):?>
  60. <option value="<?php p($group);?>"><?php p($group); ?></option>
  61. <?php endforeach;?>
  62. </select>
  63. <div class="warning hidden"></div>
  64. </div>
  65. </div>