Skip to content

jtgraham38/JGWPBlockStyles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JGWPBlockStyles

A utility library meant to ease the extraction of style attributes from the $attributes object in block development.

Usage:

//import the class
use jtgraham38\jgwordpressstyle\BlockStyle;

//use a style parser to get the button styles
$style = new BlockStyle($attributes);

//get the font size block supports style value
$fontSize = $style->fontSize();
$fontSizeValue = $fontSize->value;
$fontSizeIsPreset = $fontSize->isPreset;

About

A utility library meant to ease the extraction of style attributes from the $attributes object in block development.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages