From 40b3c3635870ae2ad8f38261b04591cabf106c8f Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Mon, 23 Sep 2019 23:04:34 +0200 Subject: [PATCH] Open current tab after refresh --- bl-kernel/admin/views/settings.php | 104 ++++++----------------------- 1 file changed, 20 insertions(+), 84 deletions(-) diff --git a/bl-kernel/admin/views/settings.php b/bl-kernel/admin/views/settings.php index ba224f48..0e2bb55d 100644 --- a/bl-kernel/admin/views/settings.php +++ b/bl-kernel/admin/views/settings.php @@ -31,12 +31,6 @@ 'value'=>$security->getTokenCSRF() )); - // Homepage - echo Bootstrap::formInputHidden(array( - 'name'=>'homepage', - 'value'=>$site->homepage() - )); - // Page not found echo Bootstrap::formInputHidden(array( 'name'=>'pageNotFound', @@ -46,6 +40,7 @@
+ $L->g('Site'))); @@ -120,10 +115,12 @@ } catch (Exception $e) { $homeValue = ''; } - echo Bootstrap::formInputText(array( - 'name'=>'homepageTMP', + + echo Bootstrap::formSelect(array( + 'name'=>'homepage', 'label'=>$L->g('Homepage'), - 'value'=>$homeValue, + 'options'=>array(''=>''), + 'selected'=>false, 'class'=>'', 'placeholder'=>$L->g('Start typing a page title to see a list of suggestions.'), 'tip'=>$L->g('Returning page for the main page') @@ -289,76 +286,6 @@ )); ?>
-
@@ -532,11 +459,11 @@ echo Bootstrap::formTextarea(array( 'name'=>'customFields', - 'label'=>$L->g('Custom'), + 'label'=>'JSON Format', 'value'=>json_encode($site->customFields(), JSON_PRETTY_PRINT), 'class'=>'', 'placeholder'=>'', - 'tip'=>'', + 'tip'=>$L->g('define-custom-fields-for-the-content'), 'rows'=>15 )); ?> @@ -594,7 +521,16 @@