PluginProbe
Qi Blocks / 1.2.2
Qi Blocks v1.2.2
1.5.3 1.5.2 1.5.1 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1 1.1.1 1.1.2 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 All 45 releases
qi-blocks / inc / blocks / single-image / class-qi-blocks-single-image-block.php

class-qi-blocks-single-image-block.php in Qi Blocks 1.2.2, at inc/blocks/single-image/class-qi-blocks-single-image-block.php

44 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Exit if accessed directly.
4 defined( 'ABSPATH' ) || exit;
5
6 if ( ! class_exists( 'Qi_Blocks_Single_Image_Block' ) ) {
7 class Qi_Blocks_Single_Image_Block extends Qi_Blocks_Blocks {
8 private static $instance;
9
10 public function __construct() {
11 // Set block data
12 $this->set_block_name( 'single-image' );
13 $this->set_block_title( esc_html__( 'Single Image', 'qi-blocks' ) );
14 $this->set_block_subcategory( esc_html__( 'Showcase/Presentational', 'qi-blocks' ) );
15 $this->set_block_demo_url( 'https://qodeinteractive.com/qi-blocks-for-gutenberg/single-image/' );
16 $this->set_block_documentation( 'https://qodeinteractive.com/qi-blocks-for-gutenberg/documentation/#single_image' );
17 $this->set_block_video( 'https://www.youtube.com/watch?v=m9beJAnVCnI' );
18
19 // Set block 3rd party scripts
20 $this->set_block_3rd_party_scripts(
21 array(
22 'fslightbox' => array(
23 'block_name' => 'single-image',
24 'url' => 'core',
25 'has_style' => false,
26 ),
27 )
28 );
29
30 parent::__construct();
31 }
32
33 public static function get_instance() {
34 if ( is_null( self::$instance ) ) {
35 self::$instance = new self();
36 }
37
38 return self::$instance;
39 }
40 }
41
42 Qi_Blocks_Single_Image_Block::get_instance();
43 }
44