This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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(); | |
} | |
} | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Prevent direct access | |
if (! defined('ABSPATH')) { | |
return; | |
} | |
/** | |
* Class Text | |
* |