server/settings/templates/apps.php

51 lines
2.3 KiB
PHP
Raw Normal View History

<?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.
*/?>
2013-02-14 22:29:51 +00:00
<script type="text/javascript"
2013-02-27 21:55:39 +00:00
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>
2013-01-21 21:18:42 +00:00
<ul id="leftcontent" class="applist">
<?php if (OC_Util::getEditionString() === ''): ?>
<li>
<a class="app-external" target="_blank" href="http://owncloud.org/dev"><?php p($l->t('Add your App'));?> …</a>
</li>
<?php endif; ?>
2011-08-10 10:20:43 +00:00
<?php foreach($_['apps'] as $app):?>
2013-02-27 21:55:39 +00:00
<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>
2013-02-14 22:29:51 +00:00
<?php if(!$app['internal'])
2013-02-27 21:55:39 +00:00
print_unescaped('<small class="'.OC_Util::sanitizeHTML($app['internalclass']).' list">'.OC_Util::sanitizeHTML($app['internallabel']).'</small>') ?>
2011-08-21 09:14:57 +00:00
</li>
2011-08-10 10:20:43 +00:00
<?php endforeach;?>
<?php if (OC_Util::getEditionString() === ''): ?>
<li>
<a class="app-external" target="_blank" href="http://apps.owncloud.com"><?php p($l->t('More Apps'));?> …</a>
</li>
<?php endif; ?>
2011-08-10 10:20:43 +00:00
</ul>
<div id="rightcontent">
2012-08-04 23:41:55 +00:00
<div class="appinfo">
2013-02-27 21:55:39 +00:00
<h3><strong><span class="name"><?php p($l->t('Select an App'));?></span></strong><span
2013-02-14 22:29:51 +00:00
class="version"></span><small class="externalapp" style="visibility:hidden;"></small></h3>
<span class="score"></span>
2011-08-10 10:20:43 +00:00
<p class="description"></p>
<img src="" class="preview hidden" />
2013-02-14 22:29:51 +00:00
<p class="appslink hidden"><a href="#" target="_blank"><?php
2013-02-27 21:55:39 +00:00
p($l->t('See application page at apps.owncloud.com'));?></a></p>
2013-02-14 22:29:51 +00:00
<p class="license hidden"><?php
2013-02-27 21:55:39 +00:00
print_unescaped($l->t('<span class="licence"></span>-licensed by <span class="author"></span>'));?></p>
<input class="enable hidden" type="submit" />
2013-02-27 21:55:39 +00:00
<input class="update hidden" type="submit" value="<?php p($l->t('Update')); ?>" />
<div class="warning hidden"></div>
2012-08-04 23:41:55 +00:00
</div>
2011-08-10 10:20:43 +00:00
</div>