PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / trunk
JetFormBuilder — Dynamic Blocks Form Builder vtrunk
3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / modules / jet-style / style-manager.php
jetformbuilder / modules / jet-style Last commit date
assets 1 month ago css-compilers 2 years ago css-compiler-manager.php 2 years ago module.php 3 months ago style-manager.php 2 months ago
style-manager.php
51 lines
1 <?php
2 namespace JFB_Modules\Jet_Style;
3
4 use Jet_Form_Builder\Classes\Instance_Trait;
5
6
7 class Style_Manager {
8
9 use Instance_Trait;
10
11 protected $manager;
12
13 public function __construct() {
14
15 $framework = jet_form_builder()->module( 'framework' );
16 $loader = $framework->get_loader();
17 $module_data = $loader->get_included_module_data( 'style-manager.php' );
18
19 if ( ! class_exists( '\Crocoblock\Blocks_Style\Manager' ) ) {
20 return;
21 }
22
23 $this->manager = new \Crocoblock\Blocks_Style\Manager(
24 array(
25 'path' => $module_data['path'],
26 'url' => $module_data['url'],
27 )
28 );
29
30 add_action( 'jet-form-builder/block-type/before-install', array( $this, 'register_block' ) );
31 }
32
33 /**
34 * Get style manager instance
35 *
36 * @return \Crocoblock\Blocks_Style\Manager
37 */
38 public function get_manager() {
39 return $this->manager;
40 }
41
42 /**
43 * Register support for the blocks
44 *
45 * @return void
46 */
47 public function register_block( $block_type ) {
48 $block_type->maybe_init_style_manager( $this->manager );
49 }
50 }
51