apps.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  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. var appid = '<?php echo $_['appid']; ?>';
  8. </script>
  9. <div id="controls">
  10. <a class="button" target="_blank" href="http://owncloud.org/dev/apps/getting-started/"><?php echo $l->t('Add your App');?></a>
  11. <a class="button" target="_blank" href="http://apps.owncloud.com"><?php echo $l->t('More Apps');?></a>
  12. </div>
  13. <ul id="leftcontent" class="applist">
  14. <?php foreach($_['apps'] as $app):?>
  15. <li <?php if($app['active']) echo 'class="active"'?> data-id="<?php echo $app['id'] ?>" <?php if ( isset( $app['ocs_id'] ) ) { echo "data-id-ocs=\"{$app['ocs_id']}\""; } ?>
  16. data-type="<?php echo $app['internal'] ? 'internal' : 'external' ?>" data-installed="1">
  17. <a class="app<?php if(!$app['internal']) echo ' externalapp' ?>" href="?appid=<?php echo $app['id'] ?>"><?php echo htmlentities($app['name']) ?></a>
  18. <script type="application/javascript">
  19. appData_<?php echo $app['id'] ?>=<?php OC_JSON::encodedPrint($app, false) ?>;
  20. </script>
  21. <?php if(!$app['internal']) echo '<small class="externalapp list">3rd party</small>' ?>
  22. </li>
  23. <?php endforeach;?>
  24. </ul>
  25. <div id="rightcontent">
  26. <div class="appinfo">
  27. <h3><strong><span class="name"><?php echo $l->t('Select an App');?></span></strong><span class="version"></span><small class="externalapp" style="visibility:hidden;"></small></h3>
  28. <span class="score"></span>
  29. <p class="description"></p>
  30. <img src="" class="preview" />
  31. <p class="appslink hidden"><a href="#" target="_blank"><?php echo $l->t('See application page at apps.owncloud.com');?></a></p>
  32. <p class="license hidden"><?php echo $l->t('<span class="licence"></span>-licensed by <span class="author"></span>');?></p>
  33. <input class="enable hidden" type="submit" />
  34. </div>
  35. </div>