PluginProbe ʕ •ᴥ•ʔ
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz / trunk
SureForms – Contact Form Builder, AI Forms, Payment Form, Survey & Quiz vtrunk
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 0.0.3 0.0.4 0.0.5 0.0.6 0.0.7 0.0.8 0.0.9 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1.0 1.1.1 1.1.2 1.10.0 1.10.1 1.11.0 1.12.0 1.12.1 1.12.2 1.12.3 1.13.0 1.13.1 1.13.2 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5.0 1.5.1 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.8.0 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.2.0 2.2.1 2.2.2 2.3.0 2.4.0 2.5.0 2.5.2 2.6.0
sureforms / modules / gutenberg / classes / class-spec-block-loader.php
sureforms / modules / gutenberg / classes Last commit date
class-spec-block-config.php 2 years ago class-spec-block-helper.php 1 year ago class-spec-block-js.php 2 years ago class-spec-block-loader.php 2 years ago class-spec-filesystem.php 2 months ago class-spec-gb-helper.php 11 months ago class-spec-init-blocks.php 5 months ago class-spec-spectra-compatibility.php 5 months ago
class-spec-block-loader.php
78 lines
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