Blame view
sources/apps/external/templates/settings.php
1.18 KB
|
d1bafeea1
|
1 |
<form id="external"> |
|
6d9380f96
|
2 |
<div class="section"> |
|
d1bafeea1
|
3 |
<h2><?php p($l->t('External Sites'));?></h2>
|
|
6d9380f96
|
4 5 6 7 8 9 10 |
<p>
<em><?php p($l->t('Please note that some browsers will block displaying of sites via http if you are running https.')); ?></em>
<br>
<em><?php p($l->t('Furthermore please note that many sites these days disallow iframing due to security reasons.')); ?></em>
<br>
<em><?php p($l->t('We highly recommend to test the configured sites below properly.')); ?></em>
</p>
|
|
d1bafeea1
|
11 12 13 |
<ul class="external_sites"> <?php |
|
6d9380f96
|
14 |
$sites = \OCA\External\External::getSites(); |
|
d1bafeea1
|
15 16 17 18 19 20 21 22 23 24 25 26 |
for($i = 0; $i < sizeof($sites); $i++) {
print_unescaped('<li><input type="text" name="site_name[]" class="site_name" value="'.OCP\Util::sanitizeHTML($sites[$i][0]).'" placeholder="'.$l->t('Name').'" />
<input type="text" class="site_url" name="site_url[]" value="'.OCP\Util::sanitizeHTML($sites[$i][1]).'" placeholder="'.$l->t('URL').'" />
<img class="svg action delete_button" src="'.OCP\image_path("", "actions/delete.svg") .'" title="'.$l->t("Remove site").'" />
</li>');
}
?>
</ul>
<input type="button" id="add_external_site" value="<?php p($l->t("Add")); ?>" />
<span class="msg"></span>
|
|
6d9380f96
|
27 |
</div> |
|
d1bafeea1
|
28 |
</form> |