diff --git a/bl-kernel/admin/themes/koblog/css/koblog.bootstrap.css b/bl-kernel/admin/themes/koblog/css/koblog.bootstrap.css index 1b15cd23..b6246e7b 100644 --- a/bl-kernel/admin/themes/koblog/css/koblog.bootstrap.css +++ b/bl-kernel/admin/themes/koblog/css/koblog.bootstrap.css @@ -118,7 +118,8 @@ tr.card-tablebody:not(:last-child) { box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.15); } -#main-area a.nav-link:not(.active):hover { +#main-area a.nav-link:not(.active):hover, +#main-area button.nav-link:not(.active):hover { background-color: rgba(0,0,0,0.1)!important; } diff --git a/bl-kernel/admin/themes/koblog/html/media.php b/bl-kernel/admin/themes/koblog/html/media.php index 3c53a992..bcb382fe 100644 --- a/bl-kernel/admin/themes/koblog/html/media.php +++ b/bl-kernel/admin/themes/koblog/html/media.php @@ -107,9 +107,9 @@ function displayFiles(files, numberOfPages = ) { ''+ '
'+filename+'<\/div>'+ '
'+ - 'p('Insert') ?><\/a>'+ - 'p('Insert thumbnail') ?><\/a>'+ - 'p('Insert linked thumbnail') ?><\/a>'+ + 'p('Insert') ?><\/a>'+ + 'p('Insert thumbnail') ?><\/a>'+ + 'p('Insert linked thumbnail') ?><\/a>'+ 'p('Set as cover image') ?><\/button>'+ 'p('Delete') ?><\/a>'+ '<\/div>'+ diff --git a/bl-kernel/admin/themes/koblog/init.php b/bl-kernel/admin/themes/koblog/init.php index 8501cc14..720f0249 100644 --- a/bl-kernel/admin/themes/koblog/init.php +++ b/bl-kernel/admin/themes/koblog/init.php @@ -37,7 +37,7 @@ EOF; public static function cardBegin($title) { return << +
$title
EOF; @@ -112,8 +112,9 @@ EOF; public static function formTitle($args) { $title = $args['title']; + $mt = $args['mt'] ?? 'mt-2'; return <<$title +
$title
EOF; } @@ -139,7 +140,8 @@ EOF; $class = $args['class']; } - $labelClass = 'mt-4 mb-2 pb-2 border-bottom text-uppercase w-100'; + $mt = $args['mt'] ?? 'mt-2'; + $labelClass = $mt.' mb-0 pb-1 text-uppercase w-100'; if (isset($args['labelClass'])) { $labelClass = $args['labelClass']; } @@ -226,7 +228,8 @@ EOF; $html = '
'; if (!empty($args['label'])) { - $html .= ''; + $mt = $args['mt'] ?? 'mt-2'; + $html .= ''; } $html .= ''; @@ -300,7 +303,8 @@ EOF; $class = $args['class']; } - $labelClass = 'mt-4 mb-2 pb-2 border-bottom text-uppercase w-100'; + $mt = $args['mt'] ?? 'mt-2'; + $labelClass = $mt.' mb-0 pb-1 text-uppercase w-100'; if (isset($args['labelClass'])) { $labelClass = $args['labelClass']; } @@ -378,7 +382,8 @@ EOF; $html = '
'; if (!empty($args['label'])) { - $html .= ''; + $mt = $args['mt'] ?? 'mt-2'; + $html .= ''; } $html .= ' +
+ + + + + + customFields(); + foreach ($customFields as $field => $options) { + if (isset($options['position']) && ($options['position'] == 'bottom')) { + if ($options['type'] == "string") { + echo Bootstrap::formInputTextBlock(array( + 'name' => 'custom[' . $field . ']', + 'label' => (isset($options['label']) ? $options['label'] : ''), + 'value' => $page->custom($field), + 'tip' => (isset($options['tip']) ? $options['tip'] : ''), + 'placeholder' => (isset($options['placeholder']) ? $options['placeholder'] : ''), + 'class' => 'mt-2', + 'labelClass' => 'mb-0 pb-1 text-uppercase w-100' + + )); + } elseif ($options['type'] == "bool") { + echo Bootstrap::formCheckbox(array( + 'name' => 'custom[' . $field . ']', + 'label' => (isset($options['label']) ? $options['label'] : ''), + 'placeholder' => (isset($options['placeholder']) ? $options['placeholder'] : ''), + 'checked' => $page->custom($field), + 'labelForCheckbox' => (isset($options['tip']) ? $options['tip'] : ''), + 'class' => 'mt-2', + 'labelClass' => 'mb-0 pb-1 text-uppercase w-100' + )); + } + } + } + ?> + + +
-
-