apps.php 2.0 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" src="<?php echo OC_Helper::linkToRoute('apps_custom');?>?appid=<?php echo $_['appid']; ?>"></script>
  7. <script type="text/javascript" src="<?php echo OC_Helper::linkTo('settings/js', 'apps.js');?>"></script>
  8. <div id="controls">
  9. <a class="button" target="_blank" href="http://owncloud.org/dev"><?php echo $l->t('Add your App');?></a>
  10. <a class="button" target="_blank" href="http://apps.owncloud.com"><?php echo $l->t('More Apps');?></a>
  11. </div>
  12. <ul id="leftcontent" class="applist hascontrols">
  13. <?php foreach($_['apps'] as $app):?>
  14. <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']}\""; } ?>
  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. <?php if(!$app['internal']) echo '<small class="'.$app['internalclass'].' list">'.$app['internallabel'].'</small>' ?>
  18. </li>
  19. <?php endforeach;?>
  20. </ul>
  21. <div id="rightcontent">
  22. <div class="appinfo">
  23. <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>
  24. <span class="score"></span>
  25. <p class="description"></p>
  26. <img src="" class="preview" />
  27. <p class="appslink hidden"><a href="#" target="_blank"><?php echo $l->t('See application page at apps.owncloud.com');?></a></p>
  28. <p class="license hidden"><?php echo $l->t('<span class="licence"></span>-licensed by <span class="author"></span>');?></p>
  29. <input class="enable hidden" type="submit" />
  30. <input class="update hidden" type="submit" value="<?php echo($l->t('Update')); ?>" />
  31. </div>
  32. </div>