diff --git a/admin/assets/css/cookie-banner.css b/admin/assets/css/cookie-banner.css index c2bc189..8a6fa76 100644 --- a/admin/assets/css/cookie-banner.css +++ b/admin/assets/css/cookie-banner.css @@ -1,30 +1,30 @@ :root { - --tcwp-color-background: #fff; - --tcwp-color-text: #000; - --tcwp-color-primary: #000; - --tcwp-white-color: #fff; - --tcwp-consent-radius: 4px; - --tcwp-ease: ease-in-out; - --tcwp-space-1: 0.25rem; - --tcwp-space-2: 0.5rem; - --tcwp-space-3: 0.75rem; - --tcwp-space-4: 1rem; - --tcwp-font-size-sm: 0.875rem; - --tcwp-phone: 375px; + --wpbuilder-color-background: #fff; + --wpbuilder-color-text: #000; + --wpbuilder-color-primary: #000; + --wpbuilder-white-color: #fff; + --wpbuilder-consent-radius: 4px; + --wpbuilder-ease: ease-in-out; + --wpbuilder-space-1: 0.25rem; + --wpbuilder-space-2: 0.5rem; + --wpbuilder-space-3: 0.75rem; + --wpbuilder-space-4: 1rem; + --wpbuilder-font-size-sm: 0.875rem; + --wpbuilder-phone: 375px; } #tracking-consent-wp-front { position: fixed; bottom: 0; - margin: var(--tcwp-space-4); - padding: var(--tcwp-space-4); + margin: var(--wpbuilder-space-4); + padding: var(--wpbuilder-space-4); box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; - border-radius: var(--tcwp-consent-radius, 0); - max-width: var(--tcwp-phone); - background-color: var(--tcwp-color-background, #fff); + border-radius: var(--wpbuilder-consent-radius, 0); + max-width: var(--wpbuilder-phone); + background-color: var(--wpbuilder-color-background, #fff); opacity: 0; transform: translateY(110%); - transition: opacity 0.5s var(--tcwp-ease), transform 0.5s var(--tcwp-ease); + transition: opacity 0.5s var(--wpbuilder-ease), transform 0.5s var(--wpbuilder-ease); z-index: 9999; } @@ -74,32 +74,32 @@ } #tracking-consent-wp-front .consent-form__actions .button { - margin-right: var(--tcwp-space-2); - border: 1px solid var(--color-main, #000); - color: var(--tcwp-white-color); - background-color: var(--color-main, #000); - border-radius: var(--tcwp-consent-radius, 0); - padding: var(--tcwp-space-2) var(--tcwp-space-3); - font-size: var(--tcwp-font-size-sm); + margin-right: var(--wpbuilder-space-2); + border: 1px solid var(--wpbuilder-color-main, #000); + color: var(--wpbuilder-white-color); + background-color: var(--wpbuilder-color-main, #000); + border-radius: var(--wpbuilder-consent-radius, 0); + padding: var(--wpbuilder-space-2) var(--wpbuilder-space-3); + font-size: var(--wpbuilder-font-size-sm); cursor: pointer; - transition: color 0.2s var(--tcwp-ease), background-color 0.2s var(--tcwp-ease); + transition: color 0.2s var(--wpbuilder-ease), background-color 0.2s var(--wpbuilder-ease); white-space: nowrap; } #tracking-consent-wp-front .consent-form__actions .button:hover { - background-color: var(--tcwp-white-color); - color: var(--color-main, #000); + background-color: var(--wpbuilder-white-color); + color: var(--wpbuilder-color-main, #000); } #tracking-consent-wp-front .consent-form__actions .button--secondary { - border: 1px solid var(--color-main, #000); - color: var(--color-main, #000); - background-color: var(--tcwp-white-color); + border: 1px solid var(--wpbuilder-color-main, #000); + color: var(--wpbuilder-color-main, #000); + background-color: var(--wpbuilder-white-color); } #tracking-consent-wp-front .consent-form__actions .button--secondary:hover { - background-color: var(--color-main, #000); - color: var(--tcwp-white-color); + background-color: var(--wpbuilder-color-main, #000); + color: var(--wpbuilder-white-color); } #tracking-consent-wp-front .consent-form__actions .button--icon { @@ -109,5 +109,5 @@ } #tracking-consent-wp-front .consent-form__actions .button--icon svg { - margin-left: var(--tcwp-space-1); + margin-left: var(--wpbuilder-space-1); } diff --git a/admin/assets/css/cookie-banner.min.css b/admin/assets/css/cookie-banner.min.css index 99b5573..204845e 100644 --- a/admin/assets/css/cookie-banner.min.css +++ b/admin/assets/css/cookie-banner.min.css @@ -1 +1 @@ -:root{--tcwp-color-background:#fff;--tcwp-color-text:#000;--tcwp-color-primary:#000;--tcwp-white-color:#fff;--tcwp-consent-radius:4px;--tcwp-ease:ease-in-out;--tcwp-space-1:.25rem;--tcwp-space-2:.5rem;--tcwp-space-3:.75rem;--tcwp-space-4:1rem;--tcwp-font-size-sm:.875rem;--tcwp-phone:375px}#tracking-consent-wp-front{position:fixed;bottom:0;margin:var(--tcwp-space-4);padding:var(--tcwp-space-4);box-shadow:rgba(0,0,0,.16)0 1px 4px;border-radius:var(--tcwp-consent-radius,0);max-width:var(--tcwp-phone);background-color:var(--tcwp-color-background,#fff);opacity:0;transform:translateY(110%);transition:opacity .5s var(--tcwp-ease),transform .5s var(--tcwp-ease);z-index:9999}@media screen and (max-width:768px){#tracking-consent-wp-front{margin:0;border-radius:0;max-width:100%;width:100%}}#tracking-consent-wp-front.visible{opacity:1;transform:translateY(0)}#tracking-consent-wp-front.hidden{opacity:0;transform:translateY(110%)}#tracking-consent-wp-front.none{display:none}#tracking-consent-wp-front .consent-form{display:flex;flex-direction:column}#tracking-consent-wp-front .consent-form__description p{margin-top:0;max-width:300px}@media screen and (max-width:768px){#tracking-consent-wp-front .consent-form__description p{max-width:100%;width:100%}}#tracking-consent-wp-front .consent-form__actions{display:flex;flex-direction:row}#tracking-consent-wp-front .consent-form__actions .button{margin-right:var(--tcwp-space-2);border:1px solid var(--color-main,#000);color:var(--tcwp-white-color);background-color:var(--color-main,#000);border-radius:var(--tcwp-consent-radius,0);padding:var(--tcwp-space-2)var(--tcwp-space-3);font-size:var(--tcwp-font-size-sm);cursor:pointer;transition:color .2s var(--tcwp-ease),background-color .2s var(--tcwp-ease);white-space:nowrap}#tracking-consent-wp-front .consent-form__actions .button:hover{background-color:var(--tcwp-white-color);color:var(--color-main,#000)}#tracking-consent-wp-front .consent-form__actions .button--secondary{border:1px solid var(--color-main,#000);color:var(--color-main,#000);background-color:var(--tcwp-white-color)}#tracking-consent-wp-front .consent-form__actions .button--secondary:hover{background-color:var(--color-main,#000);color:var(--tcwp-white-color)}#tracking-consent-wp-front .consent-form__actions .button--icon{display:flex;align-items:center;text-decoration:none}#tracking-consent-wp-front .consent-form__actions .button--icon svg{margin-left:var(--tcwp-space-1)} \ No newline at end of file +:root{--wpbuilder-color-background:#fff;--wpbuilder-color-text:#000;--wpbuilder-color-primary:#000;--wpbuilder-white-color:#fff;--wpbuilder-consent-radius:4px;--wpbuilder-ease:ease-in-out;--wpbuilder-space-1:.25rem;--wpbuilder-space-2:.5rem;--wpbuilder-space-3:.75rem;--wpbuilder-space-4:1rem;--wpbuilder-font-size-sm:.875rem;--wpbuilder-phone:375px}#tracking-consent-wp-front{position:fixed;bottom:0;margin:var(--wpbuilder-space-4);padding:var(--wpbuilder-space-4);box-shadow:rgba(0,0,0,.16)0 1px 4px;border-radius:var(--wpbuilder-consent-radius,0);max-width:var(--wpbuilder-phone);background-color:var(--wpbuilder-color-background,#fff);opacity:0;transform:translateY(110%);transition:opacity .5s var(--wpbuilder-ease),transform .5s var(--wpbuilder-ease);z-index:9999}@media screen and (max-width:768px){#tracking-consent-wp-front{margin:0;border-radius:0;max-width:100%;width:100%}}#tracking-consent-wp-front.visible{opacity:1;transform:translateY(0)}#tracking-consent-wp-front.hidden{opacity:0;transform:translateY(110%)}#tracking-consent-wp-front.none{display:none}#tracking-consent-wp-front .consent-form{display:flex;flex-direction:column}#tracking-consent-wp-front .consent-form__description p{margin-top:0;max-width:300px}@media screen and (max-width:768px){#tracking-consent-wp-front .consent-form__description p{max-width:100%;width:100%}}#tracking-consent-wp-front .consent-form__actions{display:flex;flex-direction:row}#tracking-consent-wp-front .consent-form__actions .button{margin-right:var(--wpbuilder-space-2);border:1px solid var(--wpbuilder-color-main,#000);color:var(--wpbuilder-white-color);background-color:var(--wpbuilder-color-main,#000);border-radius:var(--wpbuilder-consent-radius,0);padding:var(--wpbuilder-space-2)var(--wpbuilder-space-3);font-size:var(--wpbuilder-font-size-sm);cursor:pointer;transition:color .2s var(--wpbuilder-ease),background-color .2s var(--wpbuilder-ease);white-space:nowrap}#tracking-consent-wp-front .consent-form__actions .button:hover{background-color:var(--wpbuilder-white-color);color:var(--wpbuilder-color-main,#000)}#tracking-consent-wp-front .consent-form__actions .button--secondary{border:1px solid var(--wpbuilder-color-main,#000);color:var(--wpbuilder-color-main,#000);background-color:var(--wpbuilder-white-color)}#tracking-consent-wp-front .consent-form__actions .button--secondary:hover{background-color:var(--wpbuilder-color-main,#000);color:var(--wpbuilder-white-color)}#tracking-consent-wp-front .consent-form__actions .button--icon{display:flex;align-items:center;text-decoration:none}#tracking-consent-wp-front .consent-form__actions .button--icon svg{margin-left:var(--wpbuilder-space-1)} \ No newline at end of file diff --git a/models/OptionSite.php b/models/OptionSite.php index 6fa5ba9..7b92000 100644 --- a/models/OptionSite.php +++ b/models/OptionSite.php @@ -91,7 +91,7 @@ public static function fields() Field::make('checkbox', 'crb_maintenance_mode', __('Enable Maintenance Mode', 'wpbuilder')), Field::make('text', 'crb_maintenance_title', __('Title', 'wpbuilder')) ->set_default_value(__('Maintenance Mode', 'wpbuilder')), - Field::make('textarea', 'crb_maintenance_description', __('Description', 'wpbuilder')) + Field::make('rich_text', 'crb_maintenance_description', __('Description', 'wpbuilder')) ->set_default_value(__('We are currently performing maintenance on our website. We will be back soon!', 'wpbuilder')) ->set_rows(6), )); diff --git a/readme.txt b/readme.txt index 99c58fd..84f703d 100644 --- a/readme.txt +++ b/readme.txt @@ -23,6 +23,9 @@ Le theme compatible avec le plugin est [wpbuilder-boilerplate](https://github.co == Changelog == += 1.5.2 = +- Update carbon fields for maintenance mode + = 1.5.1 = - Update script & css to avoid blocking render diff --git a/wpbuilder-plugin.php b/wpbuilder-plugin.php index 27606bb..a2dcd31 100644 --- a/wpbuilder-plugin.php +++ b/wpbuilder-plugin.php @@ -4,7 +4,7 @@ * Plugin Name: WPbuilder * Description: WPbuilder Theme Plugin * Plugin URI: https://github.com/misits/wpbuilder-plugin - * Version: 1.5.1 + * Version: 1.5.2 * Requires at least: 5.2 * Requires PHP: 8.0 * Author: Martin IS IT Services