summaryrefslogtreecommitdiffstats
path: root/settings/templates/apps.php
blob: 30f919ac753ff6dd9afdc43cf4c686316bc98687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php /**
 * Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
 * This file is licensed under the Affero General Public License version 3 or later.
 * See the COPYING-README file.
 */?>
<script type='text/javascript'>
	var appid = '<?php echo $_['appid']; ?>';
</script>
<div id="controls">
	<a class="button" target="_blank" href="http://owncloud.org/dev/apps/getting-started/"><?php echo $l->t('Add your App');?></a>
</div>
<ul id="leftcontent" class="applist">
	<?php foreach($_['apps'] as $app):?>
	<li <?php if($app['active']) echo 'class="active"'?> data-id="<?php echo $app['id'] ?>"
		data-type="<?php echo $app['internal'] ? 'internal' : 'external' ?>" data-installed="1">
		<a class="app<?php if(!$app['internal']) echo ' externalapp' ?>" href="?appid=<?php echo $app['id'] ?>"><?php echo htmlentities($app['name']) ?></a>
		<script type="application/javascript">
			appData_<?php echo $app['id'] ?>=<?php OC_JSON::encodedPrint($app,false) ?>;
		</script>
		<?php  if(!$app['internal']) echo '<small class="externalapp list">3rd party</small>' ?>
	</li>
	<?php endforeach;?>
</ul>
<div id="rightcontent">
	<div class="appinfo">
	<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>
	<p class="description"></p>
	<img src="" class="preview" />
	<p class="appslink hidden"><a href="#" target="_blank"><?php echo $l->t('See application page at apps.owncloud.com');?></a></p>
    <p class="license hidden"><?php echo $l->t('<span class="licence"></span>-licensed by <span class="author"></span>');?></p>
	<input class="enable hidden" type="submit" />
	</div>
</div>