Skip to content

baezor/dizener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Dizener

Dizener is a small PHP class add-on for ACF Blocks, providing useful methods for everyday development tasks.

Read the documentation at angel-baez.com/blog/dizener/

How to use it

/**
 * Block: Hero
 *
 * This is the template that displays the hero block.
 * To initialize the class you must pass two paremeters:
 *
 * $block: The ACF block object.
 * $block_name: The name of the block.
 *
 */

$b = new Dizener($block, "hero");
?>
<section <?= $b->get_block_attrs() ?>>
  <p>Your block HTML<p>
</section>

Contributors

Releases

No releases published

Packages

No packages published

Languages