diff --git a/bl-kernel/admin/controllers/content.php b/bl-kernel/admin/controllers/content.php
index d8db3787..95a319ae 100644
--- a/bl-kernel/admin/controllers/content.php
+++ b/bl-kernel/admin/controllers/content.php
@@ -1,7 +1,7 @@
getList($url->pageNumber(), ITEMS_PER_PAGE_ADMIN);
@@ -42,7 +34,7 @@ $static = $pages->getStaticDB(true);
$sticky = $pages->getStickyDB(true);
$autosave = $pages->getAutosaveDB(true);
-// If the user is an Author filter the content he/she can edit
+// If the user has the role "Author" filter the content so he/she can edit
if (checkRole(array('author'), false)) {
$published = filterContentOwner($published);
$drafts = filterContentOwner($drafts);
@@ -51,10 +43,10 @@ if (checkRole(array('author'), false)) {
$sticky = filterContentOwner($sticky);
}
-// Check if out of range the pageNumber
+// Check if the page number is out of range
if (empty($published) && $url->pageNumber()>1) {
Redirect::page('content');
}
-// Title of the page
-$layout['title'] .= ' - '.$L->g('Manage content');
\ No newline at end of file
+// View HTML
+$layout['title'] = $L->g('Manage content') . ' - ' . $layout['title'];
diff --git a/bl-kernel/admin/controllers/new-content.php b/bl-kernel/admin/controllers/new-content.php
index 7a23b291..213e2e07 100644
--- a/bl-kernel/admin/controllers/new-content.php
+++ b/bl-kernel/admin/controllers/new-content.php
@@ -1,7 +1,7 @@
g('New content').' - '.$layout['title'];
\ No newline at end of file
+// View HTML
+$layout['title'] = $L->g('New content') . ' - ' . $layout['title'];
diff --git a/bl-kernel/admin/controllers/settings.php b/bl-kernel/admin/controllers/settings.php
index 60c99564..27e7dff1 100644
--- a/bl-kernel/admin/controllers/settings.php
+++ b/bl-kernel/admin/controllers/settings.php
@@ -1,7 +1,7 @@
g('Advanced Settings');
\ No newline at end of file
+// View HTML
+$layout['title'] = $L->g('Settings') . ' - ' . $layout['title'];
\ No newline at end of file
diff --git a/bl-kernel/admin/themes/booty/css/bludit.bootstrap.css b/bl-kernel/admin/themes/booty/css/bludit.bootstrap.css
index b68431c7..f62896e4 100644
--- a/bl-kernel/admin/themes/booty/css/bludit.bootstrap.css
+++ b/bl-kernel/admin/themes/booty/css/bludit.bootstrap.css
@@ -1,111 +1,143 @@
+/* Tables */
+
+.table {
+ background-color: #F4F4F4;
+}
+
+.table-striped tbody tr:nth-of-type(odd) {
+ background-color: rgba(0, 0, 0, 0.02);
+}
+
+.table thead th {
+ font-size: 0.8em;
+ text-transform: uppercase!important;
+}
+
+.table td {
+ border-top: none;
+}
+
+
+/* Common elements */
+
a {
- color: #1A66A6;
+ color: #1A66A6;
}
a:hover {
- color: #1A66A6;
- text-decoration: none;
+ color: #1A66A6;
+ text-decoration: none;
}
.bg-success {
- background-color: #8BC34A!important;
+ background-color: #8BC34A!important;
}
.text-primary {
- color: #06A8C5!important;
+ color: #06A8C5!important;
}
.text-danger {
- color: #D40000!important;
-}
-a.text-danger:focus,
-a.text-danger:hover {
- color: #790000!important;
+ color: #D40000!important;
}
+a.text-danger:focus,
+a.text-danger:hover {
+ color: #790000!important;
+}
+
+
/* Buttons */
+
.btn {
- border-radius: 2px;
+ border-radius: 2px;
}
.btn-sm {
- padding: .25rem .75rem;
+ padding: .25rem .75rem;
}
.btn-save {
- color: #5b8e09;
+ color: #5b8e09;
}
.btn-save:hover {
- color: #466d07;
+ color: #466d07;
}
.btn-cancel:hover {
- color: #000;
+ color: #000;
}
.btn-primary {
- background-color: #0378D3;
- border-color: #0378D3;
+ background-color: #0378D3;
+ border-color: #0378D3;
}
.btn-primary:hover {
- background-color: #0270c4;
- border-color: #0270c4;
+ background-color: #0270c4;
+ border-color: #0270c4;
}
.btn-primary-disabled {
- background-color: #71b6ff !important;
- border-color: #71b6ff !important;
+ background-color: #71b6ff !important;
+ border-color: #71b6ff !important;
}
.btn-secondary {
- background-color: #6c757d;
- border-color: #6c757d;
+ background-color: #6c757d;
+ border-color: #6c757d;
}
.btn-secondary:hover {
- background-color: #5a6268;
- border-color: #5a6268;
+ background-color: #5a6268;
+ border-color: #5a6268;
}
.btn-light {
- color: #212529;
- background-color: #f3f3f3;
- border-color: #ced4d9;
+ color: #212529;
+ background-color: #f3f3f3;
+ border-color: #ced4d9;
}
.btn-light.focus,
.btn-light:focus {
- box-shadow: none !important;
+ box-shadow: none !important;
}
.btn.focus,
.btn:focus {
- box-shadow: none !important;
+ box-shadow: none !important;
}
+
/* Form */
+
.form-control:focus {
- box-shadow: none;
+ box-shadow: none;
}
-/* Tables */
-.table-striped tbody tr:nth-of-type(odd) {
- background-color: rgba(0, 0, 0, 0.02);
-}
-
-.table thead th {
- font-size: 0.8em;
- text-transform: uppercase!important;
-}
/* Right sidebar Options */
+
#sidebarOptions .card {
- background: none;
- border: none;
+ background: none;
+ border: none;
}
#sidebarOptions a {
- color: #212529;
+ color: #212529;
+}
+
+.nav-link {
+ border-color: #f9f9f9;
+}
+
+.nav-link.active {
+ background-color: #f9f9f9 !important;
+ border-color: #dee2e6 #dee2e6 #f9f9f9 !important;
+}
+
+.tab-content>.active {
+ background-color: #f9f9f9 !important;
}
\ No newline at end of file
diff --git a/bl-kernel/admin/themes/booty/css/bludit.css b/bl-kernel/admin/themes/booty/css/bludit.css
index 0b032ffc..2c023194 100644
--- a/bl-kernel/admin/themes/booty/css/bludit.css
+++ b/bl-kernel/admin/themes/booty/css/bludit.css
@@ -1,86 +1,98 @@
html {
- font-size: 0.9rem;
- background: #EFEFEF;
+ font-size: 0.9rem;
+ background: #EFEFEF;
}
body {
- background: #EFEFEF;
- color: #1b1b1b;
+ background: #EFEFEF;
+ color: #1b1b1b;
}
+nav.paginator {
+ background: #EFEFEF;
+}
+
+
/*
ICONS
*/
+
.fa {
- padding-right: 2px;
- line-height: inherit;
+ padding-right: 2px;
+ line-height: inherit;
}
+
/*
SIDEBAR
*/
+
div.sidebar .nav-item a {
- padding-left:0;
- padding-right:0;
- color: #555;
- padding-top: 5px;
- padding-bottom: 5px;
+ padding-left: 0;
+ padding-right: 0;
+ color: #555;
+ padding-top: 5px;
+ padding-bottom: 5px;
}
div.sidebar .nav-item a:hover {
- color: #0078D4;
+ color: #0078D4;
}
div.sidebar .nav-item h4 {
- font-size: 1.2em;
- text-transform: uppercase;
- font-weight: 400;
- margin-top: 10px;
+ font-size: 1.2em;
+ text-transform: uppercase;
+ font-weight: 400;
+ margin-top: 10px;
}
+
/*
AUTOCOMPLETE SEARCH
*/
+
.search-suggestion {
- padding: 5px;
+ padding: 5px;
}
.search-suggestion-options {
- font-size: 0.9em;
- padding-top: 2px;
+ font-size: 0.9em;
+ padding-top: 2px;
}
+
/*
BOOTSTRAP Hacks
*/
@media (min-width: 1300px) {
- .container {
- max-width: 1350px;
- }
+ .container {
+ max-width: 1350px;
+ }
}
+
/* for small devices */
+
@media (max-width: 575.98px) {
- #jsmediaManagerButton,
- #jscategoryButton,
- #jsdescriptionButton {
- width: 100%;
- text-align: left;
- }
+ #jsmediaManagerButton,
+ #jscategoryButton,
+ #jsdescriptionButton {
+ width: 100%;
+ text-align: left;
+ }
}
-
code {
- padding: 3px 5px 2px;
- margin: 0 1px;
- background: #eaeaea;
- background: rgba(0,0,0,.07);
- color: #444;
+ padding: 3px 5px 2px;
+ margin: 0 1px;
+ background: #eaeaea;
+ background: rgba(0, 0, 0, .07);
+ color: #444;
}
.list-group-sortable {
- cursor: pointer;
+ cursor: pointer;
}
@@ -89,235 +101,238 @@ code {
*/
#dashboard ul.list-group.list-group-striped li {
- border: none;
- word-break: break-word;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
+ border: none;
+ word-break: break-word;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
}
#dashboard ul.list-group.list-group-striped li:nth-of-type(even) {
- background: #f1f1f1;
-
+ background: #f1f1f1;
}
#dashboard div.quick-links-icons {
- font-size: 3em;
- width: 100%;
+ font-size: 3em;
+ width: 100%;
}
#dashboard a.quick-links {
- color: #777;
+ color: #777;
}
#dashboard a.quick-links:hover {
- text-decoration: none;
- color: #4586d4;
+ text-decoration: none;
+ color: #4586d4;
}
#hello-message {
- padding: 10px 0;
- color: #777;
- margin-bottom: 20px;
+ padding: 10px 0;
+ color: #777;
+ margin-bottom: 20px;
}
#hello-message span.oi {
- top: 3px;
+ top: 3px;
}
.ct-series-a .ct-line {
- /* Set the colour of this series line */
- stroke: #4a90e2;
- /* Control the thikness of your lines */
- stroke-width: 2px;
- /* Create a dashed line with a pattern */
+ /* Set the colour of this series line */
+ stroke: #4a90e2;
+ /* Control the thikness of your lines */
+ stroke-width: 2px;
+ /* Create a dashed line with a pattern */
}
.ct-series-a .ct-point {
- /* Colour of your points */
- stroke: #4a90e2;
- /* Size of your points */
- stroke-width: 8px;
+ /* Colour of your points */
+ stroke: #4a90e2;
+ /* Size of your points */
+ stroke-width: 8px;
}
+
/*
ALERT
*/
#alert {
- display: none;
- position: fixed;
- text-align: center;
- border-radius: 0px;
- border: 0;
- z-index: 1000;
- bottom: 0;
- right: 0;
- margin: 0;
+ display: none;
+ position: fixed;
+ text-align: center;
+ border-radius: 0px;
+ border: 0;
+ z-index: 1000;
+ bottom: 0;
+ right: 0;
+ margin: 0;
}
.alert-success {
- background-color: #4586d4;
- border-left: 6px solid #abd1ff !important;
- color: #ffffff;
+ background-color: #4586d4;
+ border-left: 6px solid #abd1ff !important;
+ color: #ffffff;
}
.alert-danger {
- background-color: #d44545;
- border-left: 6px solid #ff9c9c !important;
- color: #ffffff;
+ background-color: #d44545;
+ border-left: 6px solid #ff9c9c !important;
+ color: #ffffff;
}
-
/*
PLUGINS
*/
.plugin-form label {
- display: block;
- margin-top: 1rem !important;
+ display: block;
+ margin-top: 1rem !important;
}
.plugin-form input[type="text"],
.plugin-form textarea,
.plugin-form select {
- display: block;
- width: 100%;
- padding: .375rem .75rem;
- font-size: 1rem;
- line-height: 1.5;
- color: #495057;
- background-color: #fff;
- background-clip: padding-box;
- border: 1px solid #ced4da;
- border-radius: .25rem;
- transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
+ display: block;
+ width: 100%;
+ padding: .375rem .75rem;
+ font-size: 1rem;
+ line-height: 1.5;
+ color: #495057;
+ background-color: #fff;
+ background-clip: padding-box;
+ border: 1px solid #ced4da;
+ border-radius: .25rem;
+ transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.plugin-form textarea {
- min-height: 120px;
+ min-height: 120px;
}
.plugin-form span.tip {
- display: block;
- font-size: 80%;
- font-weight: 400;
- margin-top: .25rem;
- color: #6c757d !important;
+ display: block;
+ font-size: 80%;
+ font-weight: 400;
+ margin-top: .25rem;
+ color: #6c757d !important;
}
+
/*
Manage > Content
*/
td.child {
- padding-left: 30px;
+ padding-left: 30px;
}
+
/*
Manage > New Content
*/
#jseditor {
- background: #fff;
- padding: 10px 5% !important;
- font-size: 16px;
- line-height: 1.5em;
- border: 1px solid #ced4da;
+ background: #fff;
+ padding: 10px 5% !important;
+ font-size: 16px;
+ line-height: 1.5em;
+ border: 1px solid #ced4da;
}
#jseditorSidebar {
- display: none;
- height: calc(100% - 45px);
- width: 50%;
- max-width: 350px;
- position: absolute;
- z-index: 50;
- top: 45px;
- right: 15px;
- background-color: #fff;
- overflow-x: hidden;
- transition: 0.5s;
- border-left: 1px solid #ccc;
- border-right: 1px solid #ccc;
- border-top: 1px solid #ccc;
+ display: none;
+ height: calc(100% - 45px);
+ width: 50%;
+ max-width: 350px;
+ position: absolute;
+ z-index: 50;
+ top: 45px;
+ right: 15px;
+ background-color: #fff;
+ overflow-x: hidden;
+ transition: 0.5s;
+ border-left: 1px solid #ccc;
+ border-right: 1px solid #ccc;
+ border-top: 1px solid #ccc;
}
@media (max-width: 575.98px) {
- #jseditorSidebar {
- width: 100%;
- max-width: 100%;
- right: 0;
- }
- #editorToolbarRight button {
- font-size: 0px !important;
- }
- #editorToolbarRight button span {
- font-size: 16px !important;
- }
- .contentTools .btn {
- font-size: 0px !important;
- margin-right: 5px;
- }
- .contentTools .btn span {
- font-size: 16px !important;
- }
+ #jseditorSidebar {
+ width: 100%;
+ max-width: 100%;
+ right: 0;
+ }
+ #editorToolbarRight button {
+ font-size: 0px !important;
+ }
+ #editorToolbarRight button span {
+ font-size: 16px !important;
+ }
+ .contentTools .btn {
+ font-size: 0px !important;
+ margin-right: 5px;
+ }
+ .contentTools .btn span {
+ font-size: 16px !important;
+ }
}
#jseditorSidebar nav {
- background: #f3f3f3;
+ background: #f3f3f3;
}
#jseditorSidebar nav a {
- color: #000;
+ color: #000;
}
#jseditorSidebar .nav-tabs .nav-link {
- border: none;
+ border: none;
}
#jseditorSidebar .nav-link.active {
- background: none;
- border: none;
- border-bottom: 3px solid #ccc;
+ background: none;
+ border: none;
+ border-bottom: 3px solid #ccc;
}
#jsshadow {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- background-color: rgba(72,72,72,0.7);
- z-index: 10;
- display: none;
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ background-color: rgba(72, 72, 72, 0.7);
+ z-index: 10;
+ display: none;
}
img.profilePicture {
- width: 30px;
- height: 30px;
- border-radius: 30px;
- border: 1px solid #ccc;
+ width: 30px;
+ height: 30px;
+ border-radius: 30px;
+ border: 1px solid #ccc;
}
+
/* Switch button */
+
.switch-button {
- font-size: 0.9em;
- text-transform: uppercase;
- cursor: pointer;
+ font-size: 0.9em;
+ text-transform: uppercase;
+ cursor: pointer;
}
.switch-icon-published {
- color: #1cb11c;
+ color: #1cb11c;
}
.switch-icon-draft {
- color: #b11c1c;
+ color: #b11c1c;
}
.switch-icon-unlisted,
.switch-icon-static,
.switch-icon-sticky {
- color: #1c81b1;
+ color: #1c81b1;
}
\ No newline at end of file
diff --git a/bl-kernel/admin/themes/booty/index.php b/bl-kernel/admin/themes/booty/index.php
index d8adf596..8a756a41 100644
--- a/bl-kernel/admin/themes/booty/index.php
+++ b/bl-kernel/admin/themes/booty/index.php
@@ -20,9 +20,10 @@
), DOMAIN_ADMIN_THEME_CSS);
echo Theme::css(array(
'jquery.datetimepicker.min.css',
+ 'jquery-ui.min.css',
'select2.min.css',
'select2-bootstrap4.min.css',
- 'token-autocomplete.css'
+ 'tagsinput-revisited.min.css'
), DOMAIN_CORE_CSS);
?>
@@ -33,8 +34,9 @@
echo Theme::jsSortable();
echo Theme::js(array(
'jquery.datetimepicker.full.min.js',
+ 'jquery-ui.min.js',
'select2.full.min.js',
- 'token-autocomplete.js',
+ 'tagsinput-revisited.min.js',
'functions.js',
'api.js'
), DOMAIN_CORE_JS, null);
diff --git a/bl-kernel/admin/views/content.php b/bl-kernel/admin/views/content.php
index 4922d6cf..18d5cc66 100644
--- a/bl-kernel/admin/views/content.php
+++ b/bl-kernel/admin/views/content.php
@@ -15,7 +15,7 @@ function table($type) {
if ($type=='published') {
$list = $published;
if (empty($list)) {
- echo '';
+ echo '
';
echo $L->g('There are no pages at this moment.');
echo '
';
return false;
@@ -23,7 +23,7 @@ function table($type) {
} elseif ($type=='draft') {
$list = $drafts;
if (empty($list)) {
- echo '';
+ echo '
';
echo $L->g('There are no draft pages at this moment.');
echo '
';
return false;
@@ -31,7 +31,7 @@ function table($type) {
} elseif ($type=='scheduled') {
$list = $scheduled;
if (empty($list)) {
- echo '';
+ echo '
';
echo $L->g('There are no scheduled pages at this moment.');
echo '
';
return false;
@@ -39,7 +39,7 @@ function table($type) {
} elseif ($type=='static') {
$list = $static;
if (empty($list)) {
- echo '';
+ echo '
';
echo $L->g('There are no static pages at this moment.');
echo '
';
return false;
@@ -47,7 +47,7 @@ function table($type) {
} elseif ($type=='sticky') {
$list = $sticky;
if (empty($list)) {
- echo '';
+ echo '
';
echo $L->g('There are no sticky pages at this moment.');
echo '
';
return false;
@@ -56,22 +56,7 @@ function table($type) {
$list = $autosave;
}
- echo '
-
-
-
- '.$L->g('Title').'
- ';
-
- if ($type=='published' || $type=='static' || $type=='sticky') {
- echo ''.$L->g('URL').' ';
- }
-
- echo ' '.$L->g('Actions').'
-
-
-
- ';
+ echo ' ';
if ( (ORDER_BY=='position') || $type=='static' ) {
foreach ($list as $pageKey) {
@@ -156,10 +141,7 @@ function table($type) {
';
- if ($type=='published' || $type=='static' || $type=='sticky') {
- $friendlyURL = Text::isEmpty($url->filters('page')) ? '/'.$page->key() : '/'.$url->filters('page').'/'.$page->key();
- echo ''.$friendlyURL.' ';
- }
+ echo ''.$L->get('Category').': '.($page->category()?$page->category():$L->get('uncategorized')).' ';
echo ''.PHP_EOL;
if ($type=='published' || $type=='static' || $type=='sticky') {
@@ -187,7 +169,7 @@ function table($type) {
?>
-
+
p('Pages') ?>
@@ -217,7 +199,7 @@ function table($type) {
1): ?>
-
+