| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly. |
| 4 |
defined( 'ABSPATH' ) || exit; |
| 5 |
|
| 6 |
if ( ! class_exists( 'Qi_Blocks_Process_Block' ) ) { |
| 7 |
class Qi_Blocks_Process_Block extends Qi_Blocks_Blocks { |
| 8 |
private static $instance; |
| 9 |
|
| 10 |
public function __construct() { |
| 11 |
// Set block data |
| 12 |
$this->set_block_name( 'process' ); |
| 13 |
$this->set_block_title( esc_html__( 'Process', 'qi-blocks' ) ); |
| 14 |
$this->set_block_subcategory( esc_html__( 'Infographics', 'qi-blocks' ) ); |
| 15 |
$this->set_block_demo_url( 'https://qodeinteractive.com/qi-blocks-for-gutenberg/process/' ); |
| 16 |
$this->set_block_documentation( 'https://qodeinteractive.com/qi-blocks-for-gutenberg/documentation/#process' ); |
| 17 |
|
| 18 |
parent::__construct(); |
| 19 |
} |
| 20 |
|
| 21 |
/** |
| 22 |
* @return Qi_Blocks_Process_Block |
| 23 |
*/ |
| 24 |
public static function get_instance() { |
| 25 |
if ( is_null( self::$instance ) ) { |
| 26 |
self::$instance = new self(); |
| 27 |
} |
| 28 |
|
| 29 |
return self::$instance; |
| 30 |
} |
| 31 |
} |
| 32 |
|
| 33 |
Qi_Blocks_Process_Block::get_instance(); |
| 34 |
} |
| 35 |
|