PluginProbe
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / 1.6.4
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz v1.6.4
2.12.7 2.12.6 2.12.5 2.12.4 2.12.3 2.12.2 2.12.1 2.12.0 2.11.1 2.11.0 2.10.1 2.10.0 2.9.1 2.9.0 2.8.2 2.8.1 2.7.0 2.7.1 2.8.0 trunk 0.0.10 0.0.11 0.0.12 0.0.13 0.0.2 All 97 releases
sureforms / modules / gutenberg / classes / class-spec-block-loader.php

class-spec-block-loader.php in SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz 1.6.4, at modules/gutenberg/classes/class-spec-block-loader.php

78 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Sureforms Blocks Loader.
4 *
5 * @package Sureforms
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit; // Exit if accessed directly.
10 }
11
12 if ( ! class_exists( 'Spec_Block_Loader' ) ) {
13
14 /**
15 * Class Spec_Block_Loader.
16 */
17 final class Spec_Block_Loader {
18
19 /**
20 * Member Variable
21 *
22 * @var instance
23 */
24 private static $instance;
25
26 /**
27 * Initiator
28 */
29 public static function get_instance() {
30 if ( ! isset( self::$instance ) ) {
31 self::$instance = new self();
32 }
33 return self::$instance;
34 }
35
36 /**
37 * Constructor
38 */
39 public function __construct() {
40
41 define( 'SRFM_TABLET_BREAKPOINT', '976' );
42 define( 'SRFM_MOBILE_BREAKPOINT', '767' );
43
44 $this->load_plugin();
45 }
46
47 /**
48 * Loads plugin files.
49 *
50 * @since 0.0.1
51 *
52 * @return void
53 */
54 public function load_plugin() {
55
56 if ( ! function_exists( 'is_plugin_active' ) ) {
57 include_once ABSPATH . 'wp-admin/includes/plugin.php';
58 }
59
60 $is_spectra_active = is_plugin_active( 'ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php' );
61
62 require_once SRFM_DIR . 'modules/gutenberg/classes/class-spec-gb-helper.php';
63 require_once SRFM_DIR . 'modules/gutenberg/classes/class-spec-init-blocks.php';
64
65 require_once SRFM_DIR . 'modules/gutenberg/classes/class-spec-spectra-compatibility.php';
66
67 require_once SRFM_DIR . 'modules/gutenberg/dist/blocks/advanced-heading/class-advanced-heading.php';
68 require_once SRFM_DIR . 'modules/gutenberg/dist/blocks/icon/class-spec-icon.php';
69 require_once SRFM_DIR . 'modules/gutenberg/dist/blocks/image/class-spec-image.php';
70 require_once SRFM_DIR . 'modules/gutenberg/dist/blocks/separator/class-spec-separator.php';
71 require_once SRFM_DIR . 'modules/gutenberg/classes/class-spec-filesystem.php';
72 }
73
74 }
75 Spec_Block_Loader::get_instance();
76 }
77
78