nextcloud/settings/templates/apps.php

59 lines
2.7 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-15 02:29:51 +04:00
<script type="text/javascript"
2013-02-28 01:55:39 +04: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-22 01:18:42 +04:00
<div id="app-navigation">
<ul class="applist">
<?php if(OC_Config::getValue('appstoreenabled', true) === true): ?>
<li>
<a class="app-external" target="_blank" href="http://owncloud.org/dev"><?php p($l->t('Add your App'));?> …</a>
</li>
<?php endif; ?>
<?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;?>
<?php if(OC_Config::getValue('appstoreenabled', true) === true): ?>
<li>
<a class="app-external" target="_blank" href="http://apps.owncloud.com"><?php p($l->t('More Apps'));?> …</a>
</li>
<?php endif; ?>
</ul>
</div>
<div id="app-content">
2012-08-05 03:41:55 +04:00
<div class="appinfo">
2013-02-28 01:55:39 +04:00
<h3><strong><span class="name"><?php p($l->t('Select an App'));?></span></strong><span
2013-02-15 02:29:51 +04:00
class="version"></span><small class="externalapp" style="visibility:hidden;"></small></h3>
<span class="score"></span>
2011-08-10 14:20:43 +04:00
<p class="description"></p>
2014-01-17 17:05:39 +04:00
<p class="documentation hidden">
<?php p($l->t("Documentation:"));?>
2014-01-17 19:35:48 +04:00
<span class="userDocumentation appslink"></span>
<span class="adminDocumentation appslink"></span>
2014-01-17 17:05:39 +04:00
</p>
<img src="" class="preview hidden" />
2014-01-17 19:35:48 +04:00
<p class="appslink appstore hidden"><a id="appstorelink" href="#" target="_blank"><?php
2013-02-28 01:55:39 +04:00
p($l->t('See application page at apps.owncloud.com'));?></a></p>
2014-01-17 19:35:48 +04:00
<p class="appslink website hidden"><a id="websitelink" href="#" target="_blank"><?php
p($l->t('See application website'));?></a></p>
2013-02-15 02:29:51 +04:00
<p class="license hidden"><?php
2013-02-28 01:55:39 +04:00
print_unescaped($l->t('<span class="licence"></span>-licensed by <span class="author"></span>'));?></p>
<input class="enable hidden" type="submit" />
2013-02-28 01:55:39 +04:00
<input class="update hidden" type="submit" value="<?php p($l->t('Update')); ?>" />
<div class="warning hidden"></div>
2012-08-05 03:41:55 +04:00
</div>
2011-08-10 14:20:43 +04:00
</div>