# blockspare/1.2.0/blockspare.php

BlockSpare – Gutenberg Blocks for News, Magazine, Blog &amp; Business Websites, version 1.2.0. 83 lines.

- Page: https://pluginprobe.com/plugins/blockspare/1.2.0/code/blockspare.php
- Raw: https://pluginprobe.com/plugins/blockspare/1.2.0/raw/blockspare.php
- Modified: 2020-06-08T12:58:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/blockspare/1.2.0/code/blockspare.php#L10-L20`.

```php
<?php
    /*
     * Plugin Name:       Blockspare
     * Plugin URI:        https://profiles.wordpress.org/blockspare
     * Description:       Beautiful Page Building Blocks for WordPress
     * Version:           1.2.0
     * Author:            Blockspare
     * Author URI:        https://blockspare.com
     * Text Domain:       blockspare
     * License:           GPL-2.0+
     * License URI:       http://www.gnu.org/licenses/gpl-2.0.html
     */
    
    defined('ABSPATH') or die('No script kiddies please!');  // prevent direct access
    
    if (!class_exists('Blockspare')) :
        
        class Blockspare
        {
            
            
            /**
             * Plugin version.
             *
             * @var string
             */
            const VERSION = '1.2.0';
            
            /**
             * Instance of this class.
             *
             * @var object
             */
            protected static $instance = null;
            
            
            /**
             * Initialize the plugin.
             */
            public function __construct()
            {
                
                /**
                 * Define global constants
                 **/
                defined('BLOCKSPARE_BASE_FILE') or define('BLOCKSPARE_BASE_FILE', __FILE__);
                defined('BLOCKSPARE_BASE_DIR') or define('BLOCKSPARE_BASE_DIR', dirname(BLOCKSPARE_BASE_FILE));
                defined('BLOCKSPARE_PLUGIN_URL') or define('BLOCKSPARE_PLUGIN_URL', plugin_dir_url(__FILE__));
                defined('BLOCKSPARE_PLUGIN_DIR') or define('BLOCKSPARE_PLUGIN_DIR', plugin_dir_path(__FILE__));

                defined( 'BLOCKSPARE_SHOW_PRO_NOTICES' ) || define( 'BLOCKSPARE_SHOW_PRO_NOTICES', true );
                defined( 'BLOCKSPARE_VERSION' ) || define( 'BLOCKSPARE_VERSION', '1.2.0' );

                
                
                include_once 'src/init.php';
                include_once 'src/welcome.php';
                include_once 'src/fonts.php';

            } // end of contructor
            
            /**
             * Return an instance of this class.
             *
             * @return object A single instance of this class.
             */
            public static function get_instance()
            {
                
                // If the single instance hasn't been set, set it now.
                if (null == self::$instance) {
                    self::$instance = new self;
                }
                return self::$instance;
            }
            
            
        }// end of the class
        
        add_action('plugins_loaded', array('Blockspare', 'get_instance'), 0);
    
    endif;

```
