2016-06-06 15:40:38 +00:00
|
|
|
<?php
|
|
|
|
/** @var array $_ */
|
|
|
|
/** @var OC_L10N $l */
|
|
|
|
script('theming', 'settings-admin');
|
2016-06-09 19:46:30 +00:00
|
|
|
script('theming', '3rdparty/jscolor/jscolor');
|
|
|
|
style('theming', 'settings-admin');
|
2016-06-06 15:40:38 +00:00
|
|
|
?>
|
2016-06-07 17:09:49 +00:00
|
|
|
<div id="theming" class="section">
|
2016-06-06 15:40:38 +00:00
|
|
|
<h2><?php p($l->t('Theming')); ?></h2>
|
2016-06-09 19:46:30 +00:00
|
|
|
<?php if ($_['themable'] === false) { ?>
|
2016-06-07 17:09:49 +00:00
|
|
|
<p>
|
2016-06-09 19:46:30 +00:00
|
|
|
<?php p($_['errorMessage']) ?>
|
2016-06-07 17:09:49 +00:00
|
|
|
</p>
|
2016-06-09 19:46:30 +00:00
|
|
|
<?php } else { ?>
|
2016-06-07 17:09:49 +00:00
|
|
|
<p>
|
2016-06-09 19:46:30 +00:00
|
|
|
<span class="theming-label">Name:</span> <input id="theming-name" type="text" placeholder="<?php p($l->t('Name')); ?>" value="<?php p($_['name']) ?>"></input>
|
|
|
|
<span data-setting="name" data-original-title="<?php p($l->t('revert to original value')); ?>" class="theme-undo icon icon-history"></span>
|
2016-06-07 17:09:49 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2016-06-09 19:46:30 +00:00
|
|
|
<span class="theming-label">URL:</span> <input id="theming-url"type="text" placeholder="<?php p($l->t('Web address https://…')); ?>" value="<?php p($_['url']) ?>"></input>
|
|
|
|
<span data-setting="url" data-original-title="<?php p($l->t('revert to original value')); ?>" class="theme-undo icon icon-history"></span>
|
2016-06-07 17:09:49 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2016-06-09 19:46:30 +00:00
|
|
|
<span class="theming-label">Slogan:</span> <input id="theming-slogan" type="text" placeholder="<?php p($l->t('Slogan')); ?>" value="<?php p($_['slogan']) ?>"></input>
|
|
|
|
<span data-setting="slogan" data-original-title="<?php p($l->t('revert to original value')); ?>" class="theme-undo icon icon-history"></span>
|
2016-06-07 17:09:49 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2016-06-09 19:46:30 +00:00
|
|
|
<span class="theming-label">Color:</span> <input id="theming-color" class="jscolor" value="<?php p($_['color']) ?>"></input>
|
|
|
|
<span data-setting="color" data-original-title="<?php p($l->t('revert to original value')); ?>" class="theme-undo icon icon-history"></span>
|
2016-06-07 17:09:49 +00:00
|
|
|
</p>
|
2016-06-09 19:46:30 +00:00
|
|
|
<p>
|
|
|
|
<form class="uploadButton" method="post" action="<?php p($_['uploadLogoRoute']) ?>">
|
|
|
|
<span class="theming-label">Logo:</span>
|
|
|
|
<input id="uploadlogo" class="upload-logo-field" name="uploadlogo" type="file">
|
|
|
|
<label for="uploadlogo" class="button icon-upload svg" id="uploadlogo" title="Upload new logo"></label>
|
|
|
|
<span data-setting="logoName" data-original-title="<?php p($l->t('revert to original value')); ?>" class="theme-undo icon icon-history"></span>
|
|
|
|
</form>
|
|
|
|
</p>
|
|
|
|
<?php } ?>
|
2016-06-07 17:09:49 +00:00
|
|
|
</div>
|