Skip to content

Instantly share code, notes, and snippets.

View zauan's full-sized avatar

Balasa Sorin Stefan zauan

View GitHub Profile
blueprint:
name: Sync Multiple Lights
description: Sync the On/Off status of 2 or more lights
domain: automation
input:
light:
name: Lights to Control
selector:
entity:
multiple: true
@zauan
zauan / functions.php
Created August 19, 2021 07:08
Add compatibility between happy files plugin and Zion Page Builder
// Add the following code into the functions.php file of your theme
add_action(
'zionbuilder/editor/after_scripts',
function() {
if ( class_exists( 'HappyFiles\Init' ) ) {
\HappyFiles\Init::run()->setup->enqueue_scripts();
}
}
);
<?php
// Prevent direct access
if (! defined('ABSPATH')) {
return;
}
/**
* Class Text
*