apps.php 1.3 KB

1234567891011121314151617181920212223242526272829
  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. <div id="controls">
  7. <a class="button" target="_blank" href="http://owncloud.org/dev/writing-apps/"><?php echo $l->t('Add your App');?></a>
  8. </div>
  9. <ul id="leftcontent">
  10. <?php foreach($_['apps'] as $app):?>
  11. <li <?php if($app['active']) echo 'class="active"'?> data-id="<?php echo $app['id'] ?>">
  12. <a href="?appid=<?php echo $app['id'] ?>"><?php echo $app['name'] ?></a>
  13. <span class="hidden">
  14. <?php OC_JSON::encodedPrint($app,false) ?>
  15. </span>
  16. <?php if(!$app['internal']) echo '<small class="externalapp">3rd party</small>' ?>
  17. </li>
  18. <?php endforeach;?>
  19. </ul>
  20. <div id="rightcontent">
  21. <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>
  22. <p class="description"></p>
  23. <img src="" class="preview" />
  24. <p class="appslink hidden"><a href="#" target="_blank"><?php echo $l->t('See application page at apps.owncloud.com');?></a></p>
  25. <p class="license hidden"><span class="licence"></span><?php echo $l->t('-licensed');?> <?php echo $l->t('by');?> <span class="author"></span></p>
  26. <input class="enable hidden" type="submit" />
  27. </div>