From f59617f1efc055e5008720f1598369c6665523a5 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 23 Apr 2023 21:33:57 +0200 Subject: [PATCH] remove magic --- src/Backend.php | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/Backend.php b/src/Backend.php index b690ba8..8a45b45 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -60,13 +60,22 @@ class Backend extends dcNsProcess echo '

' . __('Favicon') . '

' . '
' . - (new Div())->class('box')->items([ - (new Para())->items([ - (new Checkbox('simply_favicon', (bool) $blog_settings->get('system')->get('simply_favicon')))->value('1'), - (new Label(__('Enable favorite icon'), Label::OUTSIDE_LABEL_AFTER))->for('simply_favicon')->class('classic'), - ]), - (new Note())->text(__("You must place an image called favicon.png or .jpg or .ico into your blog's public directory."))->class('form-note'), - ])->render() . + (new Div()) + ->__call('class', ['box']) + ->__call('items', [[ + (new Para()) + ->__call('items', [[ + (new Checkbox('simply_favicon', (bool) $blog_settings->get('system')->get('simply_favicon'))) + ->__call('value', ['1']), + (new Label(__('Enable favorite icon'), Label::OUTSIDE_LABEL_AFTER)) + ->__call('for', ['simply_favicon']) + ->__call('class', ['classic']), + ]]), + (new Note()) + ->__call('text', [__("You must place an image called favicon.png or .jpg or .ico into your blog's public directory.")]) + ->__call('class', ['form-note']), + ]]) + ->render() . '

' . ( empty($exists) ?