From 7d55ea12ce085162a61e1f09ccee797a473b3a90 Mon Sep 17 00:00:00 2001 From: Rajab Natshah <rajabn@gmail.com> Date: Sun, 28 Nov 2021 17:07:32 +0200 Subject: [PATCH] Issue #3251531: Start a 9.1.x branch for Varbase and Varbase Project to support Bootstrap 5 --- scripts/README.md | 10 +++++----- varbase.profile | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/README.md b/scripts/README.md index 528ba7b4..a8815a7e 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -1,13 +1,13 @@ # Varbase Scripts -## Vartheme BS4 Scripts +## Vartheme BS5 Scripts ### Quick tip on how to use this script command file. Default settings could be changed in scripts.settings.yml -# Create a Vartheme BS4 sub theme ( Bootstrap 4 ) SASS +# Create a Vartheme BS5 sub theme ( Bootstrap 4 ) SASS Before we generate the new sub theme we need to have the following tools * 1. npm and nodejs : Helps getting the bootstrap 4 and popper packages. @@ -41,13 +41,13 @@ After we make sure that we do have all the tools we could change directory in the terminal to: ``` -$ cd PROJECT_DIR_NAME/docroot/themes/contrib/vartheme_bs4/scripts -$ bash ./create-new-vartheme-bs4.sh "THEME_NAME" +$ cd PROJECT_DIR_NAME/docroot/themes/contrib/vartheme_bs5/scripts +$ bash ./create-new-vartheme-bs5.sh "THEME_NAME" ``` We can use ``` -$ cd PROJECT_DIR_NAME/docroot/themes/contrib/vartheme_bs4 +$ cd PROJECT_DIR_NAME/docroot/themes/contrib/vartheme_bs5 yarn theme:create-sub-theme "THEME_NAME" `` diff --git a/varbase.profile b/varbase.profile index 7d795f7e..2c995ebb 100644 --- a/varbase.profile +++ b/varbase.profile @@ -554,10 +554,10 @@ function varbase_after_install_finished(array &$install_state) { // Import managed config to the active config at this time of install. $profile_path_managed = drupal_get_path('profile', 'varbase') . '/config/managed/'; - $managed_config_path = $profile_path_managed . 'block.block.vartheme_bs4_copyright.yml'; + $managed_config_path = $profile_path_managed . 'block.block.vartheme_bs5_copyright.yml'; $managed_config_content = file_get_contents($managed_config_path); $managed_config_data = (array) Yaml::parse($managed_config_content); - $managed_config_factory = \Drupal::configFactory()->getEditable('block.block.vartheme_bs4_copyright'); + $managed_config_factory = \Drupal::configFactory()->getEditable('block.block.vartheme_bs5_copyright'); $managed_config_factory->setData($managed_config_data)->save(TRUE); // Entity updates to clear up any mismatched entity and/or field definitions -- GitLab