apps.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  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. </div>
  12. <ul id="leftcontent" class="applist">
  13. <?php foreach($_['apps'] as $app):?>
  14. <li <?php if($app['active']) echo 'class="active"'?> data-id="<?php echo $app['id'] ?>"
  15. data-type="<?php echo $app['internal'] ? 'internal' : 'external' ?>" data-installed="1">
  16. <a class="app<?php if(!$app['internal']) echo ' externalapp' ?>" href="?appid=<?php echo $app['id'] ?>"><?php echo htmlentities($app['name']) ?></a>
  17. <script type="application/javascript">
  18. appData_<?php echo $app['id'] ?>=<?php OC_JSON::encodedPrint($app,false) ?>;
  19. </script>
  20. <?php if(!$app['internal']) echo '<small class="externalapp list">3rd party</small>' ?>
  21. </li>
  22. <?php endforeach;?>
  23. </ul>
  24. <div id="rightcontent">
  25. <div class="appinfo">
  26. <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>
  27. <p class="description"></p>
  28. <img src="" class="preview" />
  29. <p class="appslink hidden"><a href="#" target="_blank"><?php echo $l->t('See application page at apps.owncloud.com');?></a></p>
  30. <p class="license hidden"><?php echo $l->t('<span class="licence"></span>-licensed by <span class="author"></span>');?></p>
  31. <input class="enable hidden" type="submit" />
  32. </div>
  33. </div>