diff --git a/.gitignore b/.gitignore
index e78c6b0c..e9c1ad61 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,7 +12,6 @@ bl-plugins/yandex-metrica/
bl-plugins/domain-migrator/
bl-plugins/tail-writer/
bl-kernel/bludit.pro.php
-bl-kernel/admin/themes/gris/*
bl-kernel/admin/themes/gris
bl-themes/docs
bl-themes/docsx
diff --git a/bl-kernel/abstract/plugin.class.php b/bl-kernel/abstract/plugin.class.php
index 7cd301d5..59612eff 100644
--- a/bl-kernel/abstract/plugin.class.php
+++ b/bl-kernel/abstract/plugin.class.php
@@ -252,6 +252,8 @@ class Plugin {
return true;
}
+ // Returns TRUE if the plugin is installed
+ // This function just check if the database of the plugin is created
public function installed()
{
return file_exists($this->filenameDb);
@@ -271,13 +273,13 @@ class Plugin {
public function post()
{
$args = $_POST;
- foreach ($this->dbFields as $key=>$value) {
- if (isset($args[$key])) {
- $value = Sanitize::html( $args[$key] );
- if ($value==='false') { $value = false; }
- elseif ($value==='true') { $value = true; }
- settype($value, gettype($this->dbFields[$key]));
- $this->db[$key] = $value;
+ foreach ($this->dbFields as $field=>$value) {
+ if (isset($args[$field])) {
+ $finalValue = Sanitize::html( $args[$field] );
+ if ($finalValue==='false') { $finalValue = false; }
+ elseif ($finalValue==='true') { $finalValue = true; }
+ settype($finalValue, gettype($value));
+ $this->db[$field] = $finalValue;
}
}
return $this->save();
diff --git a/bl-kernel/admin/themes/booty/html/sidebar.php b/bl-kernel/admin/themes/booty/html/sidebar.php
index f68c0fc6..bd663f4f 100644
--- a/bl-kernel/admin/themes/booty/html/sidebar.php
+++ b/bl-kernel/admin/themes/booty/html/sidebar.php
@@ -2,7 +2,7 @@
-
-
+
-
diff --git a/bl-kernel/admin/themes/booty/index.php b/bl-kernel/admin/themes/booty/index.php
index e2264bca..1761738b 100644
--- a/bl-kernel/admin/themes/booty/index.php
+++ b/bl-kernel/admin/themes/booty/index.php
@@ -8,7 +8,7 @@
-
+
-
+
-
 ? HTML_PATH_ADMIN_THEME_IMG.'default.svg' : $page->coverImage() ) ?>)
+
@@ -159,7 +159,7 @@ echo Bootstrap::formOpen(array(
$("#jsbuttonRemoveCoverImage").on("click", function() {
$("#jscoverImage").val('');
- $("#jscoverImagePreview").attr('src', HTML_PATH_ADMIN_THEME_IMG+'default.svg');
+ $("#jscoverImagePreview").attr('src', HTML_PATH_CORE_IMG+'default.svg');
});
});
diff --git a/bl-kernel/admin/views/edit-user.php b/bl-kernel/admin/views/edit-user.php
index d5d2d726..c92a2ae6 100644
--- a/bl-kernel/admin/views/edit-user.php
+++ b/bl-kernel/admin/views/edit-user.php
@@ -105,7 +105,7 @@
-
.'.png')?DOMAIN_UPLOADS_PROFILES.$user->username().'.png?version='.time():HTML_PATH_ADMIN_THEME_IMG.'default.svg') ?>)
+
diff --git a/bl-kernel/admin/views/settings.php b/bl-kernel/admin/views/settings.php
index ccf40219..ec554ff4 100644
--- a/bl-kernel/admin/views/settings.php
+++ b/bl-kernel/admin/views/settings.php
@@ -179,6 +179,17 @@
'placeholder'=>'https://'
));
+ echo Bootstrap::formTitle(array('title'=>$L->g('Page content')));
+
+ echo Bootstrap::formSelect(array(
+ 'name'=>'markdownParser',
+ 'label'=>$L->g('Markdown parser'),
+ 'options'=>array('true'=>$L->g('Enabled'), 'false'=>$L->g('Disabled')),
+ 'selected'=>($site->markdownParser()?'true':'false'),
+ 'class'=>'',
+ 'tip'=>$L->g('Enable the markdown parser for the content of the page.')
+ ));
+
echo Bootstrap::formTitle(array('title'=>$L->g('URL Filters')));
echo Bootstrap::formInputText(array(
@@ -514,7 +525,7 @@
-
?DOMAIN_UPLOADS.$site->logo(false).'?version='.time():HTML_PATH_ADMIN_THEME_IMG.'default.svg') ?>)
+
';
+ $html .= '';
return $html;
}
}
diff --git a/install.php b/install.php
index ec10ab91..bd4075cb 100644
--- a/install.php
+++ b/install.php
@@ -583,7 +583,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
-
+