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

Issue #3395943: Revamp the 9.1.x branch for Varbase Bootstrap Paragraphs to...

Issue #3395943: Revamp the 9.1.x branch for Varbase Bootstrap Paragraphs to work with Drupal ~10.1.0 and custom needed changes for a smoother upgrade process
parent 8461e61e
Branches
Tags 9.1.0
No related merge requests found
Showing
with 58 additions and 18 deletions
...@@ -2,7 +2,4 @@ ...@@ -2,7 +2,4 @@
**/gulpfile.js **/gulpfile.js
**/node_modules **/node_modules
drupalci.yml drupalci.yml
**/drupalci.yml **/drupalci.yml
modules/vbp_text_and_image/node_modules/ \ No newline at end of file
modules/vbp_text_and_image/**/*.min.js
modules/vbp_text_and_image/**/gulpfile.js
\ No newline at end of file
id: anonymous
permissions: { }
id: authenticated
permissions: { }
id: content_admin
permissions:
- 'view unpublished paragraphs'
- 'create paragraph library item'
- 'edit paragraph library item'
- 'view any paragraphs previewer'
- 'access paragraphs_library_items entity browser pages'
id: editor
permissions:
- 'view unpublished paragraphs'
- 'view any paragraphs previewer'
- 'access paragraphs_library_items entity browser pages'
id: seo_admin
permissions:
- 'view unpublished paragraphs'
- 'create paragraph library item'
- 'edit paragraph library item'
- 'view any paragraphs previewer'
- 'access paragraphs_library_items entity browser pages'
id: site_admin
permissions:
- 'administer varbase bootstrap paragraphs settings'
- 'view unpublished paragraphs'
- 'create paragraph library item'
- 'edit paragraph library item'
- 'view any paragraphs previewer'
- 'access paragraphs_library_items entity browser pages'
logo.png 0 → 100644
logo.png

3.3 KiB

id: anonymous
permissions: { }
id: authenticated
permissions: { }
id: content_admin
permissions: { }
id: editor
permissions: { }
id: seo_admin
permissions: { }
id: site_admin
permissions: { }
...@@ -19,13 +19,11 @@ ...@@ -19,13 +19,11 @@
padding-left: calc(1.34375rem + 1.125vw); padding-left: calc(1.34375rem + 1.125vw);
} }
} }
@media screen and (min-width: 1200px) and (min-width: 1200px) { @media screen and (min-width: 1200px) and (min-width: 1200px) {
.align2left.wrapper { .align2left.wrapper {
padding-left: 2.1875rem; padding-left: 2.1875rem;
} }
} }
@media screen and (min-width: 1200px) { @media screen and (min-width: 1200px) {
.paragraph--type--text-and-image { .paragraph--type--text-and-image {
margin-bottom: 1.25rem; margin-bottom: 1.25rem;
......
...@@ -101,7 +101,7 @@ view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class, ...@@ -101,7 +101,7 @@ view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
{% if add_container %}<div class="container">{% endif %} {% if add_container %}<div class="container">{% endif %}
<div class="row"> <div class="row">
<div class="{{- VBP.bp_width.value -}}"> <div class="{{- VBP.bp_width.value -}}">
{% if paragraph_title and paragraph_title_status %}<h2 class="text-center">{% spaceless %}{{- paragraph_title|striptags -}}{% endspaceless %}</h2>{% endif %} {% if paragraph_title and paragraph_title_status %}<h2 class="text-center">{% apply spaceless %}{{- paragraph_title|striptags -}}{% endapply %}</h2>{% endif %}
<div class="row"> <div class="row">
{# Check the Image position field. #} {# Check the Image position field. #}
{% set align = content.field_image_position['#items'].getString() %} {% set align = content.field_image_position['#items'].getString() %}
......
name: "Varbase Bootstrap Paragraphs Text and Image" name: "Varbase Bootstrap Paragraphs Text and Image"
description: "Text and image paragraph type" description: "Text and image paragraph type"
type: module type: module
core_version_requirement: ^9 core_version_requirement: ~10.1.0
package: Varbase package: Varbase
dependencies: dependencies:
- varbase_bootstrap_paragraphs:varbase_bootstrap_paragraphs - varbase_bootstrap_paragraphs:varbase_bootstrap_paragraphs
......
...@@ -15,8 +15,7 @@ use Vardot\Installer\ModuleInstallerFactory; ...@@ -15,8 +15,7 @@ use Vardot\Installer\ModuleInstallerFactory;
*/ */
function vbp_text_and_image_install() { function vbp_text_and_image_install() {
// Processer for install: in vbp_text_and_image.info.yml file. // Processor for install: in vbp_text_and_image.info.yml file.
// ---------------------------------------------------------------------------.
ModuleInstallerFactory::installList('vbp_text_and_image'); ModuleInstallerFactory::installList('vbp_text_and_image');
// Install optional configs. // Install optional configs.
...@@ -33,6 +32,9 @@ function vbp_text_and_image_install() { ...@@ -33,6 +32,9 @@ function vbp_text_and_image_install() {
->getInstanceFromDefinition(EntityDefinitionUpdateManager::class) ->getInstanceFromDefinition(EntityDefinitionUpdateManager::class)
->applyUpdates(); ->applyUpdates();
// Add permissions.
ModuleInstallerFactory::addPermissions('vbp_text_and_image');
} }
/** /**
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"main": "gulpfile.js", "main": "gulpfile.js",
"engines": { "engines": {
"yarn": ">= 1.6", "yarn": ">= 1.6",
"node": ">= 16.0" "node": ">= 18.0"
}, },
"scripts": { "scripts": {
"theme:init": "gulp", "theme:init": "gulp",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment