From cc73f609e4184def75a040f0c98a6b629df65e5b Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Mon, 2 Sep 2019 18:24:34 +0200 Subject: [PATCH] Custom fields --- bl-kernel/admin/views/edit-content.php | 24 ++++++++++++++ bl-kernel/admin/views/new-content.php | 21 ++++++++++++ bl-kernel/admin/views/settings.php | 29 ++++++++++++++++- bl-kernel/boot/site.php | 2 ++ bl-kernel/functions.php | 9 ++++++ bl-kernel/pages.class.php | 44 ++++++++++++++++++++++++-- bl-kernel/pagex.class.php | 13 ++++++++ bl-kernel/site.class.php | 17 ++++++++-- 8 files changed, 154 insertions(+), 5 deletions(-) diff --git a/bl-kernel/admin/views/edit-content.php b/bl-kernel/admin/views/edit-content.php index d1e0bf08..20bdfca1 100644 --- a/bl-kernel/admin/views/edit-content.php +++ b/bl-kernel/admin/views/edit-content.php @@ -89,6 +89,9 @@ echo Bootstrap::formOpen(array( @@ -284,6 +287,27 @@ echo Bootstrap::formOpen(array( }); + + customFields()!="{}"): ?> + + + @@ -260,6 +263,24 @@ echo Bootstrap::formOpen(array( }); + customFields()!="{}"): ?> + + @@ -433,6 +434,15 @@ 'placeholder'=>'', 'tip'=>'' )); + + echo Bootstrap::formInputText(array( + 'name'=>'dribbble', + 'label'=>'Dribbble', + 'value'=>$site->dribbble(), + 'class'=>'', + 'placeholder'=>'', + 'tip'=>'' + )); ?> @@ -515,6 +525,23 @@ ?> + +
+ $L->g('Custom fields'))); + + echo Bootstrap::formTextarea(array( + 'name'=>'customFields', + 'label'=>$L->g('Custom'), + 'value'=>$site->customFields(), + 'class'=>'', + 'placeholder'=>'', + 'tip'=>'', + 'rows'=>15 + )); + ?> +
+