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>
40 lines
1 KiB
PHP
40 lines
1 KiB
PHP
<?php
|
|
\OC_Util::addStyle('settings', "settings");
|
|
?>
|
|
<div id="app-navigation">
|
|
<ul>
|
|
<li>
|
|
<a class="icon-user <?php if ($_['mode'] === 'user') {
|
|
p('active');
|
|
} ?>"
|
|
href="<?php print_unescaped($_['urlUserDocs']); ?>">
|
|
<?php p($l->t('User documentation')); ?>
|
|
</a>
|
|
</li>
|
|
<?php if ($_['admin']) { ?>
|
|
<li>
|
|
<a class="icon-user-admin <?php if ($_['mode'] === 'admin') {
|
|
p('active');
|
|
} ?>"
|
|
href="<?php print_unescaped($_['urlAdminDocs']); ?>">
|
|
<?php p($l->t('Administrator documentation')); ?>
|
|
</a>
|
|
</li>
|
|
<?php } ?>
|
|
|
|
<li>
|
|
<a href="https://docs.nextcloud.com" class="icon-category-office" target="_blank" rel="noreferrer noopener">
|
|
<?php p($l->t('Documentation')); ?> ↗
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://help.nextcloud.com" class="icon-comment" target="_blank" rel="noreferrer noopener">
|
|
<?php p($l->t('Forum')); ?> ↗
|
|
</a>
|
|
</li>
|
|
</div>
|
|
|
|
<div id="app-content" class="help-includes">
|
|
<iframe src="<?php print_unescaped($_['url']); ?>" class="help-iframe">
|
|
</iframe>
|
|
</div>
|