apps.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. <li>
  11. <a class="app-external" target="_blank" href="http://owncloud.org/dev"><?php p($l->t('Add your App'));?> …</a>
  12. </li>
  13. <?php foreach($_['apps'] as $app):?>
  14. <li <?php if($app['active']) print_unescaped('class="active"')?> data-id="<?php p($app['id']) ?>"
  15. <?php if ( isset( $app['ocs_id'] ) ) { print_unescaped("data-id-ocs=\"{".OC_Util::sanitizeHTML($app['ocs_id'])."}\""); } ?>
  16. data-type="<?php p($app['internal'] ? 'internal' : 'external') ?>" data-installed="1">
  17. <a class="app<?php if(!$app['internal']) p(' externalapp') ?>"
  18. href="?appid=<?php p($app['id']) ?>"><?php p($app['name']) ?></a>
  19. <?php if(!$app['internal'])
  20. print_unescaped('<small class="'.OC_Util::sanitizeHTML($app['internalclass']).' list">'.OC_Util::sanitizeHTML($app['internallabel']).'</small>') ?>
  21. </li>
  22. <?php endforeach;?>
  23. <li>
  24. <a class="app-external" target="_blank" href="http://apps.owncloud.com"><?php p($l->t('More Apps'));?> …</a>
  25. </li>
  26. </ul>
  27. <div id="rightcontent">
  28. <div class="appinfo">
  29. <h3><strong><span class="name"><?php p($l->t('Select an App'));?></span></strong><span
  30. class="version"></span><small class="externalapp" style="visibility:hidden;"></small></h3>
  31. <span class="score"></span>
  32. <p class="description"></p>
  33. <img src="" class="preview hidden" />
  34. <p class="appslink hidden"><a href="#" target="_blank"><?php
  35. p($l->t('See application page at apps.owncloud.com'));?></a></p>
  36. <p class="license hidden"><?php
  37. print_unescaped($l->t('<span class="licence"></span>-licensed by <span class="author"></span>'));?></p>
  38. <input class="enable hidden" type="submit" />
  39. <input class="update hidden" type="submit" value="<?php p($l->t('Update')); ?>" />
  40. <div class="warning hidden"></div>
  41. </div>
  42. </div>