diff --git a/bl-kernel/admin/views/edit-content.php b/bl-kernel/admin/views/edit-content.php
index 0818ff89..8118057c 100644
--- a/bl-kernel/admin/views/edit-content.php
+++ b/bl-kernel/admin/views/edit-content.php
@@ -389,6 +389,18 @@ echo Bootstrap::formOpen(array(
'class'=>'mb-2',
'labelClass'=>'mb-2 pb-2 border-bottom text-uppercase w-100'
));
+ } elseif ($options['type']=="select") {
+ if (isset($options['options']) ){
+ $options['options'] = explode(',',','.$options['options']);
+ }
+ echo Bootstrap::formSelect(array(
+ 'name'=>'custom['.$field.']',
+ 'label'=>(isset($options['label'])?$options['label']:''),
+ 'options'=>((isset($options['options']))?$options['options']:''),
+ 'selected'=>$page->custom($field),
+ 'class'=>'mb-2',
+ 'tip'=>(isset($options['tips'])?$options['tips']:''),
+ ));
}
}
}
@@ -428,6 +440,18 @@ echo Bootstrap::formOpen(array(
'class'=>'mt-2',
'labelClass'=>'mb-2 pb-2 border-bottom text-uppercase w-100'
));
+ } elseif ($options['type']=="select") {
+ if (isset($options['options']) ){
+ $options['options'] = explode(',',','.$options['options']);
+ }
+ echo Bootstrap::formSelect(array(
+ 'name'=>'custom['.$field.']',
+ 'label'=>(isset($options['label'])?$options['label']:''),
+ 'options'=>((isset($options['options']))?$options['options']:''),
+ 'selected'=>$page->custom($field),
+ 'class'=>'mb-2',
+ 'tip'=>(isset($options['tips'])?$options['tips']:''),
+ ));
}
}
}
@@ -478,11 +502,6 @@ $(document).ready(function() {
$("#jseditor").val($('#jseditor').val()+'
');
};
}
- if (typeof editorInsertLinkedMedia != "function") {
- window.editorInsertLinkedMedia = function(filename, link){
- $("#jseditor").val($('#jseditor').val()+'
');
- };
- }
// Button switch
$("#jsswitchButton").on("click", function() {