2016-06-06 15:40:38 +00:00
|
|
|
<?php
|
2016-07-21 14:49:16 +00:00
|
|
|
/**
|
|
|
|
|
|
|
|
*
|
|
|
|
* @author Bjoern Schiessle <bjoern@schiessle.org>
|
|
|
|
* @author Jan-Christoph Borchardt <hey@jancborchardt.net>
|
|
|
|
* @author Lukas Reschke <lukas@statuscode.ch>
|
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2016-06-06 15:40:38 +00:00
|
|
|
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-16 15:30:18 +00:00
|
|
|
<h2 class="inlineblock"><?php p($l->t('Theming')); ?></h2>
|
|
|
|
<div id="theming_settings_msg" class="msg success inlineblock" style="display: none;">Saved</div>
|
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-23 10:05:42 +00:00
|
|
|
<label><span><?php p($l->t('Name')) ?></span>
|
2016-08-01 07:37:12 +00:00
|
|
|
<input id="theming-name" type="text" placeholder="<?php p($l->t('Name')); ?>" value="<?php p($_['name']) ?>" maxlength="250" />
|
2016-06-23 10:05:42 +00:00
|
|
|
</label>
|
2016-06-27 18:36:23 +00:00
|
|
|
<span data-setting="name" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
|
2016-06-07 17:09:49 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2016-06-23 10:05:42 +00:00
|
|
|
<label><span><?php p($l->t('Web address')) ?></span>
|
2016-08-01 07:37:12 +00:00
|
|
|
<input id="theming-url" type="text" placeholder="<?php p($l->t('Web address https://…')); ?>" value="<?php p($_['url']) ?>" maxlength="500" />
|
2016-06-23 10:05:42 +00:00
|
|
|
</label>
|
2016-06-27 18:36:23 +00:00
|
|
|
<span data-setting="url" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
|
2016-06-07 17:09:49 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2016-06-23 10:05:42 +00:00
|
|
|
<label><span><?php p($l->t('Slogan')) ?></span>
|
2016-08-01 07:37:12 +00:00
|
|
|
<input id="theming-slogan" type="text" placeholder="<?php p($l->t('Slogan')); ?>" value="<?php p($_['slogan']) ?>" maxlength="500" />
|
2016-06-23 10:05:42 +00:00
|
|
|
</label>
|
2016-06-27 18:36:23 +00:00
|
|
|
<span data-setting="slogan" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
|
2016-06-07 17:09:49 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2016-06-23 10:05:42 +00:00
|
|
|
<label><span><?php p($l->t('Color')) ?></span>
|
2016-08-01 07:37:12 +00:00
|
|
|
<input id="theming-color" type="text" class="jscolor" maxlength="6" value="<?php p($_['color']) ?>" />
|
2016-06-23 10:05:42 +00:00
|
|
|
</label>
|
2016-06-27 18:36:23 +00:00
|
|
|
<span data-setting="color" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
|
2016-06-07 17:09:49 +00:00
|
|
|
</p>
|
2016-06-21 19:21:46 +00:00
|
|
|
<p>
|
2016-06-09 19:46:30 +00:00
|
|
|
<form class="uploadButton" method="post" action="<?php p($_['uploadLogoRoute']) ?>">
|
2016-08-24 09:34:45 +00:00
|
|
|
<input type="hidden" id="current-logoMime" name="current-logoMime" value="<?php p($_['logoMime']); ?>" />
|
2016-06-23 10:05:42 +00:00
|
|
|
<label for="uploadlogo"><span><?php p($l->t('Logo')) ?></span></label>
|
2016-08-24 09:34:45 +00:00
|
|
|
<input id="uploadlogo" class="upload-logo-field" name="uploadlogo" type="file" />
|
2016-06-21 19:21:46 +00:00
|
|
|
<label for="uploadlogo" class="button icon-upload svg" id="uploadlogo" title="<?php p($l->t('Upload new logo')) ?>"></label>
|
2016-06-27 18:36:23 +00:00
|
|
|
<span data-setting="logoMime" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
|
2016-06-21 19:21:46 +00:00
|
|
|
</form>
|
|
|
|
</p>
|
2016-06-23 10:05:42 +00:00
|
|
|
<p>
|
2016-06-21 19:21:46 +00:00
|
|
|
<form class="uploadButton" method="post" action="<?php p($_['uploadLogoRoute']) ?>">
|
2016-08-24 09:34:45 +00:00
|
|
|
<input type="hidden" id="current-backgroundMime" name="current-backgroundMime" value="<?php p($_['backgroundMime']); ?>" />
|
2016-06-23 10:05:42 +00:00
|
|
|
<label for="upload-login-background"><span><?php p($l->t('Log in image')) ?></span></label>
|
2016-06-21 19:21:46 +00:00
|
|
|
<input id="upload-login-background" class="upload-logo-field" name="upload-login-background" type="file">
|
|
|
|
<label for="upload-login-background" class="button icon-upload svg" id="upload-login-background" title="<?php p($l->t("Upload new login background")) ?>"></label>
|
2016-06-27 18:36:23 +00:00
|
|
|
<span data-setting="backgroundMime" data-toggle="tooltip" data-original-title="<?php p($l->t('reset to default')); ?>" class="theme-undo icon icon-history"></span>
|
2016-06-09 19:46:30 +00:00
|
|
|
</form>
|
2016-08-24 09:33:54 +00:00
|
|
|
</p>
|
|
|
|
<div id="theming-preview" style="background-color:<?php p($_['color']);?>; background-image:url(<?php p($_['background']); ?>);">
|
|
|
|
<img src="<?php p($_['logo']); ?>" id="theming-preview-logo" />
|
|
|
|
</div>
|
2016-06-09 19:46:30 +00:00
|
|
|
<?php } ?>
|
2016-06-07 17:09:49 +00:00
|
|
|
</div>
|