diff --git a/bl-kernel/abstract/plugin.class.php b/bl-kernel/abstract/plugin.class.php
index 786f868b..dac11102 100644
--- a/bl-kernel/abstract/plugin.class.php
+++ b/bl-kernel/abstract/plugin.class.php
@@ -89,6 +89,21 @@ class Plugin {
return $tmp->save();
}
+ public function includeCSS($filename)
+ {
+ return ''.PHP_EOL;
+ }
+
+ public function includeJS($filename)
+ {
+ return ''.PHP_EOL;
+ }
+
+ public function domainPath()
+ {
+ return DOMAIN_PLUGINS.$this->directoryName.'/';
+ }
+
public function htmlPath()
{
return HTML_PATH_PLUGINS.$this->directoryName.'/';
diff --git a/bl-kernel/admin/controllers/edit-content.php b/bl-kernel/admin/controllers/edit-content.php
index 23bfdb8a..07baf355 100644
--- a/bl-kernel/admin/controllers/edit-content.php
+++ b/bl-kernel/admin/controllers/edit-content.php
@@ -30,15 +30,13 @@ if (!checkRole(array('admin','moderator'), false)) {
// ============================================================================
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
- if( isset($_POST['delete-page']) ) {
- if( deletePage($_POST['key']) ) {
+ if ($_POST['status']==='delete') {
+ if (deletePage($_POST['key'])) {
Alert::set( $Language->g('The changes have been saved') );
- Redirect::page('content');
}
- }
- else {
+ } else {
$key = editPage($_POST);
- if( $key!==false ) {
+ if ($key!==false) {
Alert::set( $Language->g('The changes have been saved') );
Redirect::page('edit-content/'.$key);
}
diff --git a/bl-kernel/admin/themes/booty/css/bludit.css b/bl-kernel/admin/themes/booty/css/bludit.css
index 87a18131..c3e015dd 100644
--- a/bl-kernel/admin/themes/booty/css/bludit.css
+++ b/bl-kernel/admin/themes/booty/css/bludit.css
@@ -1,6 +1,7 @@
html {
height: 100%;
+ font-size: 0.9rem;
}
/*
@@ -47,6 +48,14 @@ a:hover {
color: #000;
}
+code {
+ padding: 3px 5px 2px;
+ margin: 0 1px;
+ background: #eaeaea;
+ background: rgba(0,0,0,.07);
+ color: #444;
+}
+
/*
LOGIN
*/
@@ -189,11 +198,3 @@ div.sidebar .nav-item span.oi {
color: #6c757d !important;
}
-/*
- NEW CONTENT / EDIT CONTENT
-*/
-
-.ql-container {
- height: 360px;
- font-size: 14px;
-}
\ No newline at end of file
diff --git a/bl-kernel/admin/themes/booty/html/alert.php b/bl-kernel/admin/themes/booty/html/alert.php
index c9f11ea5..fb7578af 100644
--- a/bl-kernel/admin/themes/booty/html/alert.php
+++ b/bl-kernel/admin/themes/booty/html/alert.php
@@ -1,5 +1,4 @@
-
-';
+ ), DOMAIN_ADMIN_THEME_JS);
?>
+
-
-
+
+'.PHP_EOL;
+ include(PATH_CORE_JS.'variables.php');
+ echo ''.PHP_EOL;
+
+ echo ''.PHP_EOL;
+?>
-
-
-
diff --git a/bl-kernel/admin/themes/booty/init.php b/bl-kernel/admin/themes/booty/init.php
index ef65e072..f8b53056 100644
--- a/bl-kernel/admin/themes/booty/init.php
+++ b/bl-kernel/admin/themes/booty/init.php
@@ -2,30 +2,6 @@
class Bootstrap {
- public static function css($filename) {
- if (is_array($filename)) {
- $tmp = '';
- foreach ($filename as $file) {
- $tmp .= '
'.PHP_EOL;
- }
- } else {
- $tmp = '
'.PHP_EOL;
- }
- return $tmp;
- }
-
- public static function js($filename) {
- if (is_array($filename)) {
- $tmp = '';
- foreach ($filename as $file) {
- $tmp .= ''.PHP_EOL;
- }
- } else {
- $tmp = ''.PHP_EOL;
- }
- return $tmp;
- }
-
public static function link($args)
{
$options = 'href="'.$args['href'].'"';
@@ -227,7 +203,7 @@ EOF;
{
$label = isset($args['label'])?$args['label']:'';
$placeholder = isset($args['placeholder'])?$args['placeholder']:'';
- $tip = isset($args['tip'])?$args['tip']:'';
+ $tip = isset($args['tip'])?$args['tip']:' ';
$value = isset($args['value'])?$args['value']:'';
$name = $args['name'];
$id = 'js'.$name;
@@ -257,6 +233,44 @@ return <<
+
+
+
+
+
+ $tip
+
+
+
+EOF;
+ }
+
public static function formSelect($args)
{
$id = 'js'.$args['name'];
diff --git a/bl-kernel/admin/views/new-content.php b/bl-kernel/admin/views/new-content.php
index 3b0b477b..3477e1fc 100644
--- a/bl-kernel/admin/views/new-content.php
+++ b/bl-kernel/admin/views/new-content.php
@@ -94,9 +94,9 @@
'externalCoverImage',
- 'tip'=>$L->g('Full image URL'),
'placeholder'=>"https://",
- 'value'=>''
+ 'value'=>'',
+ 'tip'=>'Set a cover image from external URL, such as a CDN or some server dedicate for images.'
));
?>
@@ -105,15 +105,54 @@
'Advanced'));
+ echo Bootstrap::formTitle(array('title'=>'SEO'));
// Tags
echo Bootstrap::formInputText(array(
'name'=>'tags',
'label'=>'Tags',
- 'placeholder'=>'Write the tags separeted by comma'
+ 'placeholder'=>'',
+ 'tip'=>'Write the tags separeted by comma'
));
+ // Friendly URL
+ echo Bootstrap::formInputText(array(
+ 'name'=>'slug',
+ 'tip'=>$L->g('URL associated with the content'),
+ 'label'=>$L->g('Friendly URL'),
+ 'placeholder'=>'Leave empty for automaticly complete'
+ ));
+
+ echo '
';
+
+ echo Bootstrap::formCheckbox(array(
+ 'name'=>'noindex',
+ 'label'=>'Robots',
+ 'labelForCheckbox'=>'Apply noindex
to this page',
+ 'placeholder'=>'',
+ 'tip'=>'This tells search engines not to show this page in their search results.'
+ ));
+
+ echo Bootstrap::formCheckbox(array(
+ 'name'=>'nofollow',
+ 'label'=>'',
+ 'labelForCheckbox'=>'Apply nofollow
to this page',
+ 'placeholder'=>'',
+ 'tip'=>'This tells search engines not to follow links on this page.'
+ ));
+
+ echo Bootstrap::formCheckbox(array(
+ 'name'=>'noarchive',
+ 'label'=>'',
+ 'labelForCheckbox'=>'Apply noarchive
to this page',
+ 'placeholder'=>'',
+ 'tip'=>'This tells search engines not to save a cached copy of this page.'
+ ));
+
+ echo '
';
+
+ echo Bootstrap::formTitle(array('title'=>'Advanced'));
+
// Date
echo Bootstrap::formInputText(array(
'name'=>'date',
@@ -149,13 +188,7 @@
'value'=>$dbPages->nextPositionNumber()
));
- // Friendly URL
- echo Bootstrap::formInputText(array(
- 'name'=>'slug',
- 'tip'=>$L->g('URL associated with the content'),
- 'label'=>$L->g('Friendly URL'),
- 'placeholder'=>'Leave empty for automaticly complete'
- ));
+
// Template
echo Bootstrap::formInputText(array(
@@ -193,25 +226,25 @@
@@ -241,29 +274,31 @@
-
+
+
+
-
-
diff --git a/bl-kernel/boot/init.php b/bl-kernel/boot/init.php
index fde15748..9e466c76 100644
--- a/bl-kernel/boot/init.php
+++ b/bl-kernel/boot/init.php
@@ -225,6 +225,9 @@ define('DOMAIN_THEME', DOMAIN.HTML_PATH_THEME);
define('DOMAIN_THEME_CSS', DOMAIN.HTML_PATH_THEME_CSS);
define('DOMAIN_THEME_JS', DOMAIN.HTML_PATH_THEME_JS);
define('DOMAIN_THEME_IMG', DOMAIN.HTML_PATH_THEME_IMG);
+define('DOMAIN_ADMIN_THEME', DOMAIN.HTML_PATH_ADMIN_THEME);
+define('DOMAIN_ADMIN_THEME_CSS', DOMAIN.HTML_PATH_ADMIN_THEME_CSS);
+define('DOMAIN_ADMIN_THEME_JS', DOMAIN.HTML_PATH_ADMIN_THEME_JS);
define('DOMAIN_UPLOADS', DOMAIN.HTML_PATH_UPLOADS);
define('DOMAIN_UPLOADS_PROFILES', DOMAIN.HTML_PATH_UPLOADS_PROFILES);
define('DOMAIN_UPLOADS_THUMBNAILS', DOMAIN.HTML_PATH_UPLOADS_THUMBNAILS);
diff --git a/bl-kernel/helpers/theme.class.php b/bl-kernel/helpers/theme.class.php
index d9f29399..d81eed07 100644
--- a/bl-kernel/helpers/theme.class.php
+++ b/bl-kernel/helpers/theme.class.php
@@ -112,7 +112,7 @@ class Theme {
return '