From 33c89e8bd7e96c6628ac3daee6f0afb9b44c13a3 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Fri, 20 Jul 2018 18:36:47 +0200 Subject: [PATCH] Plugin position implemented, fix in pagination --- bl-kernel/admin/themes/booty/css/bludit.css | 4 ++ bl-kernel/admin/themes/booty/index.php | 1 + bl-kernel/admin/themes/booty/init.php | 14 +++++ bl-kernel/admin/views/content.php | 4 +- bl-kernel/admin/views/plugins-position.php | 59 +++++++++++++-------- bl-kernel/functions.php | 1 + bl-kernel/helpers/theme.class.php | 6 +++ bl-kernel/js/jquery.sortable.min.js | 1 + bl-themes/alternative/php/home.php | 18 +++---- bl-themes/blogx/php/home.php | 18 +++---- index.php | 4 ++ 11 files changed, 87 insertions(+), 43 deletions(-) create mode 100755 bl-kernel/js/jquery.sortable.min.js diff --git a/bl-kernel/admin/themes/booty/css/bludit.css b/bl-kernel/admin/themes/booty/css/bludit.css index 967aa879..90df3f23 100644 --- a/bl-kernel/admin/themes/booty/css/bludit.css +++ b/bl-kernel/admin/themes/booty/css/bludit.css @@ -61,6 +61,10 @@ code { color: #444; } +.list-group-sortable { + cursor: pointer; +} + /* LOGIN */ diff --git a/bl-kernel/admin/themes/booty/index.php b/bl-kernel/admin/themes/booty/index.php index 4bcbcfe4..0501a988 100644 --- a/bl-kernel/admin/themes/booty/index.php +++ b/bl-kernel/admin/themes/booty/index.php @@ -28,6 +28,7 @@ 'jquery-auto-complete.min.js', 'jquery.datetimepicker.full.min.js' ), DOMAIN_ADMIN_THEME_JS); + echo Theme::jsSortable(); ?> diff --git a/bl-kernel/admin/themes/booty/init.php b/bl-kernel/admin/themes/booty/init.php index db5f1677..8e6e2acc 100644 --- a/bl-kernel/admin/themes/booty/init.php +++ b/bl-kernel/admin/themes/booty/init.php @@ -344,4 +344,18 @@ EOF; { return ''; } + + public static function alert($args) + { + $class = 'alert'; + if (!empty($args['class'])) { + $class = $class.' '.$args['class']; + } + + $text = $args['text']; + +return <<$text +EOF; + } } diff --git a/bl-kernel/admin/views/content.php b/bl-kernel/admin/views/content.php index 4dce83c5..3d7a631c 100644 --- a/bl-kernel/admin/views/content.php +++ b/bl-kernel/admin/views/content.php @@ -165,7 +165,7 @@ function table($type) { diff --git a/bl-themes/blogx/php/home.php b/bl-themes/blogx/php/home.php index 1772c8ad..908faef2 100644 --- a/bl-themes/blogx/php/home.php +++ b/bl-themes/blogx/php/home.php @@ -41,24 +41,22 @@ 1): ?> -