mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
23 lines
851 B
PHP
23 lines
851 B
PHP
<?php
|
|
/** @var array $_ */
|
|
|
|
/** @var \OCP\IL10N $l */
|
|
script('sharebymail', 'settings-admin');
|
|
style('sharebymail', 'settings-admin');
|
|
?>
|
|
<div id="ncShareByMailSettings" class="section">
|
|
<h2><?php p($l->t('Share by mail')); ?></h2>
|
|
<p class="settings-hint"><?php p($l->t('Allows users to share a personalized link to a file or folder by putting in an email address.')); ?></p>
|
|
|
|
<p>
|
|
<input id="sendPasswordMail" type="checkbox" class="checkbox" <?php if ($_['sendPasswordMail']) {
|
|
p('checked');
|
|
} ?> />
|
|
<label for="sendPasswordMail"><?php p($l->t('Send password by mail')); ?></label><br/>
|
|
<input id="enforcePasswordProtection" type="checkbox" class="checkbox" <?php if ($_['enforcePasswordProtection']) {
|
|
p('checked');
|
|
} ?> />
|
|
<label for="enforcePasswordProtection"><?php p($l->t('Enforce password protection')); ?></label>
|
|
</p>
|
|
|
|
</div>
|