From 72015f7c59df82523b080d10c2bebd63d9703fb8 Mon Sep 17 00:00:00 2001 From: GuyPrimavera Date: Sun, 19 May 2019 16:06:52 +0100 Subject: [PATCH] v2.4.3 * Added option to hide admin bar logo drop-down menu. * Fixed issue with Gutenberg blocks being hidden behind admin menu. * Fixed issue with Gutenberg notices being partially obstructed behind Gutenberg top bar. * Fixed admin bar CSS on front-end. * Fixed alignment of WPBakery Page Builder modal windows. --- admin/adminBar/adminBarLinks.php | 4 +- admin/adminBar/customLogo.php | 114 +++++++++++++++-------------- admin/options/createFields.php | 3 + admin/options/registerSettings.php | 7 ++ admin/options/setVariables.php | 5 ++ aquila-admin-theme.php | 2 +- css/aquila.css | 25 +++++++ css/aquila.less | 34 ++++++++- readme.txt | 14 +++- 9 files changed, 147 insertions(+), 61 deletions(-) diff --git a/admin/adminBar/adminBarLinks.php b/admin/adminBar/adminBarLinks.php index 6f05cfc..5a0ffd2 100644 --- a/admin/adminBar/adminBarLinks.php +++ b/admin/adminBar/adminBarLinks.php @@ -35,7 +35,9 @@ function aquila_remove_wp_logo_nodes() { } // Add Aquila links -add_action('admin_bar_menu', 'aquila_wp_logo_links', 100); +if (!$GLOBALS['aquilaHideLogoMenu']) { + add_action('admin_bar_menu', 'aquila_wp_logo_links', 100); +} function aquila_wp_logo_links($admin_bar){ $admin_bar->add_menu( array( 'id' => 'wpLessons', diff --git a/admin/adminBar/customLogo.php b/admin/adminBar/customLogo.php index 1380665..5e5fdc3 100644 --- a/admin/adminBar/customLogo.php +++ b/admin/adminBar/customLogo.php @@ -26,64 +26,68 @@ function clean_output_buffer() { // Admin bar function aquila_new_logo_admin() { - echo ""; + if ( is_admin_bar_showing() ) { + echo ""; + } } function aquila_new_logo_sqr_admin() { - echo ""; + if ( is_admin_bar_showing() ) { + echo ""; + } } ?> \ No newline at end of file diff --git a/admin/options/createFields.php b/admin/options/createFields.php index 0a37366..4b7c0cd 100644 --- a/admin/options/createFields.php +++ b/admin/options/createFields.php @@ -24,6 +24,9 @@ function aquila_chk_abLinks_render( ) { function aquila_chk_abVisible_render( ) { aquila_checkbox ('aquila_settings', 'aquila_chk_abVisible', ''); } +function aquila_chk_abLogoMenuHide_render( ) { + aquila_checkbox ('aquila_settings', 'aquila_chk_abLogoMenuHide', ''); +} // Login page function aquila_chk_loginDisable_render( ) { diff --git a/admin/options/registerSettings.php b/admin/options/registerSettings.php index d59a08f..4f708eb 100644 --- a/admin/options/registerSettings.php +++ b/admin/options/registerSettings.php @@ -120,6 +120,13 @@ function aquila_settings_init( ) { 'aquilaGeneralSettings', 'aquila_adminbarSettings_section' ); + add_settings_field( + 'aquila_chk_abLogoMenuHide', + __( 'Hide Adminbar Logo Menu?', 'aquila-admin-theme' ), + 'aquila_chk_abLogoMenuHide_render', + 'aquilaGeneralSettings', + 'aquila_adminbarSettings_section' + ); // Admin bar add_settings_field( diff --git a/admin/options/setVariables.php b/admin/options/setVariables.php index 1bf6f59..daaab4f 100644 --- a/admin/options/setVariables.php +++ b/admin/options/setVariables.php @@ -38,6 +38,11 @@ if ( aquila_isset('aquila_chk_abVisible') ) { $aquilaShowFullAdminbar = true; } + +if ( aquila_isset('aquila_chk_abLogoMenuHide') ) { + $aquilaHideLogoMenu = true; +} + /* if ( aquila_isset('aquila_new_logo') ) { $aquilaCustomLogo = true; diff --git a/aquila-admin-theme.php b/aquila-admin-theme.php index 09463e3..52da111 100644 --- a/aquila-admin-theme.php +++ b/aquila-admin-theme.php @@ -5,7 +5,7 @@ * Description: The Aquila Admin Theme * Author: Guy Primavera * Author URI: https://guyprimavera.com/ - * Version: 2.4.2 + * Version: 2.4.3 * Text Domain: aquila-admin-theme * Domain Path: /lang/ * License: GPL2 diff --git a/css/aquila.css b/css/aquila.css index 6466b51..2330e20 100644 --- a/css/aquila.css +++ b/css/aquila.css @@ -2732,6 +2732,28 @@ body.auto-fold #adminmenu .update-plugins .plugin-count { .wp-responsive-open div#wp-responsive-toggle a { border-color: transparent; } +@media (min-width: 782px) { + body.auto-fold .edit-post-layout__content { + margin-left: 60px; + } +} +@media (min-width: 782px) and (min-width: 960px) { + body.auto-fold .edit-post-layout__content { + margin-left: 250px; + } +} +@media (min-width: 782px) { + .edit-post-layout__content { + margin-left: 250px; + top: 120px; + min-height: calc(-20%); + } +} +@media (min-width: 782px) { + body.folded .edit-post-layout__content { + margin-left: 60px; + } +} #adminmenu, #adminmenu .wp-submenu, #adminmenuback, @@ -3659,6 +3681,9 @@ body.wp-admin.folded .components-notice-list { body.wp-admin.is-fullscreen-mode .components-notice-list { left: 0 !important; } +body.aquila #vc_ui-panel-add-element { + top: 10vh; +} .media-frame.mode-grid .media-toolbar { height: 50px; } diff --git a/css/aquila.less b/css/aquila.less index 9c9054d..2c97bd2 100644 --- a/css/aquila.less +++ b/css/aquila.less @@ -1,6 +1,6 @@ @import "vars.less"; -@import "/../icons/faVars.less"; -@import "/../icons/variables.less"; +@import "../icons/faVars.less"; +@import "../icons/variables.less"; @import "mdColours.less"; @import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css); @@ -281,6 +281,30 @@ input[type=radio]:checked:before { border-color: transparent; } +// Gutenberg +@media (min-width: 782px) { + body.auto-fold .edit-post-layout__content { + margin-left: @sideWidthFolded; + } +} +@media (min-width: 782px) and (min-width: 960px) { + body.auto-fold .edit-post-layout__content { + margin-left: @sideWidth; + } +} +@media (min-width: 782px) { + .edit-post-layout__content { + margin-left: @sideWidth; + top: 120px; + min-height: calc(100% - 120px); + } +} +@media (min-width: 782px) { + body.folded .edit-post-layout__content { + margin-left: @sideWidthFolded; + } +} + /// Admin Menu #adminmenu, #adminmenu .wp-submenu, #adminmenuback, #adminmenuwrap { @@ -1205,6 +1229,12 @@ body.wp-admin { } +// WpBakery Page Builder + +body.aquila #vc_ui-panel-add-element { + top: 10vh; +} + // Temp fixes diff --git a/readme.txt b/readme.txt index 3d2f42b..1c4e67f 100644 --- a/readme.txt +++ b/readme.txt @@ -3,8 +3,8 @@ Contributors: GuyPrimavera Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YVPWSJB4SPN5N Tags: admin theme, material design wordpress, material design admin theme, material design wordpress admin, material wordpress, admin, admin panel, admin theme style plugin, admin-theme, admin theme, aquila, backend theme, clean admin, color scheme, colour scheme, custom admin theme, flat admin theme, free admin theme, modern admin theme, new admin ui, plugin, simple admin theme, white label, white label admin, wordpress, WordPress admin, wordpress admin theme, wp-admin, wp admin page, wp admin theme Requires at least: 4.0 -Tested up to: 5.0-beta4 -Stable tag: 2.4.2 +Tested up to: 5.2 +Stable tag: 2.4.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -83,6 +83,13 @@ No. It only changes the admin area, the login page and the admin bar for logged- == Changelog == += 2.4.3 - 19/05/2019 = +* Added option to hide admin bar logo drop-down menu. +* Fixed issue with Gutenberg blocks being hidden behind admin menu. +* Fixed issue with Gutenberg notices being partially obstructed behind Gutenberg top bar. +* Fixed admin bar CSS on front-end. +* Fixed alignment of WPBakery Page Builder modal windows. + = 2.4.2 - 31/01/2019 = * Fixed error with lessc_formatter_compressed class. * Added option to disable login page styling. @@ -206,6 +213,9 @@ No. It only changes the admin area, the login page and the admin bar for logged- == Upgrade Notice == += 2.4.3 = +* Minor bug fixes. + = 2.4.2 = * Bug fixes.