Skip to content
Snippets Groups Projects
Commit 7d55ea12 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3251531: Start a 9.1.x branch for Varbase and Varbase Project to support Bootstrap 5

parent 303936ad
No related branches found
No related tags found
3 merge requests!24Issue #3301451: Composer is fixed to docroot folder Primary tabs View(active tab),!10Issue #3269421: Add exception messages for VLB automated testing step definitions,!9Issue #3266504: Update Automated Functional Testing Readme File
# 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"
``
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment