Blame view

sources/settings/templates/apps.php 2.68 KB
03e52840d   Kload   Init
1
2
3
4
5
6
7
8
  <?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"
  	src="<?php print_unescaped(OC_Helper::linkToRoute('apps_custom'));?>?appid=<?php p($_['appid']); ?>"></script>
   <script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('settings/js', 'apps.js'));?>"></script>
31b7f2792   Kload   Upgrade to ownclo...
9
10
  
  <ul id="leftcontent" class="applist">
a293d369c   Kload   Update sources to...
11
  	<?php if(OC_Config::getValue('appstoreenabled', true) === true): ?>
31b7f2792   Kload   Upgrade to ownclo...
12
13
14
  	<li>
  		<a class="app-external" target="_blank" href="http://owncloud.org/dev"><?php p($l->t('Add your App'));?> …</a>
  	</li>
a293d369c   Kload   Update sources to...
15
  	<?php endif; ?>
31b7f2792   Kload   Upgrade to ownclo...
16

03e52840d   Kload   Init
17
18
19
20
21
22
23
24
25
26
  	<?php foreach($_['apps'] as $app):?>
  	<li <?php if($app['active']) print_unescaped('class="active"')?> data-id="<?php p($app['id']) ?>"
  		<?php if ( isset( $app['ocs_id'] ) ) { print_unescaped("data-id-ocs=\"{".OC_Util::sanitizeHTML($app['ocs_id'])."}\""); } ?>
  			data-type="<?php p($app['internal'] ? 'internal' : 'external') ?>" data-installed="1">
  		<a class="app<?php if(!$app['internal']) p(' externalapp') ?>"
  			href="?appid=<?php p($app['id']) ?>"><?php p($app['name']) ?></a>
  		<?php  if(!$app['internal'])
  			print_unescaped('<small class="'.OC_Util::sanitizeHTML($app['internalclass']).' list">'.OC_Util::sanitizeHTML($app['internallabel']).'</small>') ?>
  	</li>
  	<?php endforeach;?>
31b7f2792   Kload   Upgrade to ownclo...
27

a293d369c   Kload   Update sources to...
28
  	<?php if(OC_Config::getValue('appstoreenabled', true) === true): ?>
31b7f2792   Kload   Upgrade to ownclo...
29
30
31
  	<li>
  		<a class="app-external" target="_blank" href="http://apps.owncloud.com"><?php p($l->t('More Apps'));?> …</a>
  	</li>
a293d369c   Kload   Update sources to...
32
  	<?php endif; ?>
03e52840d   Kload   Init
33
34
35
36
37
38
39
  </ul>
  <div id="rightcontent">
  	<div class="appinfo">
  	<h3><strong><span class="name"><?php p($l->t('Select an App'));?></span></strong><span
  		class="version"></span><small class="externalapp" style="visibility:hidden;"></small></h3>
  	<span class="score"></span>
  	<p class="description"></p>
a293d369c   Kload   Update sources to...
40
41
42
43
44
  	<p class="documentation hidden">
  		<?php p($l->t("Documentation:"));?>
  		<span class="userDocumentation appslink"></span>
  		<span class="adminDocumentation appslink"></span>
  	</p>
03e52840d   Kload   Init
45
  	<img src="" class="preview hidden" />
a293d369c   Kload   Update sources to...
46
  	<p class="appslink appstore hidden"><a id="appstorelink" href="#" target="_blank"><?php
03e52840d   Kload   Init
47
  		p($l->t('See application page at apps.owncloud.com'));?></a></p>
a293d369c   Kload   Update sources to...
48
49
  	<p class="appslink website hidden"><a id="websitelink" href="#" target="_blank"><?php
  		p($l->t('See application website'));?></a></p>
03e52840d   Kload   Init
50
51
52
53
  	<p class="license hidden"><?php
  		print_unescaped($l->t('<span class="licence"></span>-licensed by <span class="author"></span>'));?></p>
  	<input class="enable hidden" type="submit" />
  	<input class="update hidden" type="submit" value="<?php p($l->t('Update')); ?>" />
31b7f2792   Kload   Upgrade to ownclo...
54
  	<div class="warning hidden"></div>
03e52840d   Kload   Init
55
56
  	</div>
  </div>