Skip to content

Commit

Permalink
Merge pull request #168 from publishpress/advgb-113
Browse files Browse the repository at this point in the history
Advgb 113
  • Loading branch information
htmgarcia authored Oct 14, 2020
2 parents 1c5c394 + 95d4739 commit 18e0d21
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/assets/blocks/advicon/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -529,13 +529,15 @@ import {IconListPopupHook} from "../0-adv-components/icon-class.jsx";
save: ( { attributes } ) => {
const {
blockIDX,
className,
items,
numberItem
} = attributes;

const blockWrapClass = [
'wp-block-advgb-icon',
'icon-wrapper',
className,
blockIDX
].filter( Boolean ).join( ' ' );

Expand Down
6 changes: 4 additions & 2 deletions src/assets/blocks/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -8395,11 +8395,12 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
save: function save(_ref) {
var attributes = _ref.attributes;
var blockIDX = attributes.blockIDX,
className = attributes.className,
items = attributes.items,
numberItem = attributes.numberItem;


var blockWrapClass = ['wp-block-advgb-icon', 'icon-wrapper', blockIDX].filter(Boolean).join(' ');
var blockWrapClass = ['wp-block-advgb-icon', 'icon-wrapper', className, blockIDX].filter(Boolean).join(' ');

var blockClass = ['advgb-icons'].filter(Boolean).join(' ');

Expand Down Expand Up @@ -19306,6 +19307,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
save: function save(_ref) {
var attributes = _ref.attributes;
var blockIDX = attributes.blockIDX,
className = attributes.className,
title = attributes.title,
titleHtmlTag = attributes.titleHtmlTag,
text = attributes.text,
Expand All @@ -19314,7 +19316,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
align = attributes.align;


var blockWrapClass = ['wp-block-advgb-infobox', 'advgb-infobox-wrapper', "has-text-align-" + align, blockIDX].filter(Boolean).join(' ');
var blockWrapClass = ['wp-block-advgb-infobox', 'advgb-infobox-wrapper', "has-text-align-" + align, className, blockIDX].filter(Boolean).join(' ');

var blockClass = ['advgb-infobox-wrap'].filter(Boolean).join(' ');

Expand Down
2 changes: 2 additions & 0 deletions src/assets/blocks/infobox/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,7 @@ import {IconListPopupHook} from "../0-adv-components/icon-class.jsx";
save: ( { attributes } ) => {
const {
blockIDX,
className,
title,
titleHtmlTag,
text,
Expand All @@ -1019,6 +1020,7 @@ import {IconListPopupHook} from "../0-adv-components/icon-class.jsx";
'wp-block-advgb-infobox',
'advgb-infobox-wrapper',
`has-text-align-${align}`,
className,
blockIDX
].filter( Boolean ).join( ' ' );

Expand Down
1 change: 1 addition & 0 deletions src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ The Advanced Gutenberg Custom CSS can be created from the plugin configuration a
* Fix: Global columns visual guide
* Fix: Deprecated isDefault replaced with isSecondary
* Fix: Hidden text in selected button groups on content Gutenberg sidebar
* Fix: Custom class support for Advanced Icon and Info Box blocks

= 2.4.6 =
* Fix: Support for nested blocks in 5th level
Expand Down

0 comments on commit 18e0d21

Please sign in to comment.