use Dotclear Helper
This commit is contained in:
parent
f8b8a4716f
commit
9fbd504107
1 changed files with 27 additions and 22 deletions
|
@ -18,9 +18,17 @@ use dcAuth;
|
||||||
use dcCore;
|
use dcCore;
|
||||||
use dcNsProcess;
|
use dcNsProcess;
|
||||||
use dcPage;
|
use dcPage;
|
||||||
|
use Dotclear\Helper\Html\Form\{
|
||||||
|
Checkbox,
|
||||||
|
Form,
|
||||||
|
Hidden,
|
||||||
|
Label,
|
||||||
|
Para,
|
||||||
|
Submit,
|
||||||
|
Textarea
|
||||||
|
};
|
||||||
|
use Dotclear\Helper\Html\Html;
|
||||||
use Exception;
|
use Exception;
|
||||||
use html;
|
|
||||||
use form;
|
|
||||||
|
|
||||||
class Manage extends dcNsProcess
|
class Manage extends dcNsProcess
|
||||||
{
|
{
|
||||||
|
@ -94,29 +102,26 @@ class Manage extends dcNsProcess
|
||||||
|
|
||||||
echo
|
echo
|
||||||
dcPage::breadcrumb([
|
dcPage::breadcrumb([
|
||||||
html::escapeHTML(dcCore::app()->blog->name) => '',
|
Html::escapeHTML(dcCore::app()->blog->name) => '',
|
||||||
My::name() => '',
|
My::name() => '',
|
||||||
]) .
|
]) .
|
||||||
dcPage::notices() . '
|
dcPage::notices() .
|
||||||
|
|
||||||
<form action="' . dcCore::app()->admin->getPageURL() . '" id="file-form" method="post">
|
(new Form('file-form'))->method('post')->action(dcCore::app()->admin->getPageURL())->fields([
|
||||||
|
(new Para())->items([
|
||||||
<div><h3><label for="morecss">' . __('Style sheet:') . '</strong></label></h3>
|
(new Label(__('Style sheet:')))->for('morecss'),
|
||||||
<p>' . form::textarea('morecss', 72, 25, [
|
(new Textarea('morecss', Html::escapeHTML((string) base64_decode((string) $s->get('morecss')))))->class('maximal')->cols(72)->rows(25),
|
||||||
'default' => html::escapeHTML((string) base64_decode((string) $s->get('morecss'))),
|
]),
|
||||||
'class' => 'maximal',
|
(new Para())->items([
|
||||||
]) . '</p>
|
(new Checkbox('morecss_active'))->value(1),
|
||||||
|
(new Label(__('Enable additionnal CSS for the active theme'), Label::OUTSIDE_LABEL_AFTER))->for('morecss_active')->class('classic'),
|
||||||
<p><label class="classic" for="morecss_active">' .
|
]),
|
||||||
form::checkbox('morecss_active', 1, $s->get('morecss_active')) . ' ' .
|
(new Para())->items([
|
||||||
__('Enable additionnal CSS for the active theme') .
|
dcCore::app()->formNonce(false),
|
||||||
'</label></p>
|
(new Hidden('p', 'moreCSS')),
|
||||||
|
(new Submit(['write']))->value(__('Save') . ' (s)')->accesskey('s'),
|
||||||
<p>' .
|
]),
|
||||||
form::hidden('p', 'moreCSS') .
|
])->render();
|
||||||
dcCore::app()->formNonce() . '
|
|
||||||
<input type="submit" name="write" value="' . __('Save') . ' (s)" accesskey="s" /></p>
|
|
||||||
</form>';
|
|
||||||
|
|
||||||
if (dcCore::app()->auth->user_prefs->get('interface')->get('colorsyntax')) {
|
if (dcCore::app()->auth->user_prefs->get('interface')->get('colorsyntax')) {
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in a new issue