'canvas/pinterest-board', 'title' => esc_html__( 'Pinterest Board', 'powerkit' ), 'description' => '', 'category' => 'canvas', 'keywords' => array( 'pinterest', 'board' ), 'icon' => ' ', 'supports' => array( 'className' => true, 'anchor' => true, 'html' => false, 'canvasSpacings' => true, ), 'styles' => array(), 'location' => array(), 'sections' => array( 'general' => array( 'title' => esc_html__( 'Block Settings', 'powerkit' ), 'priority' => 5, 'open' => true, ), ), 'layouts' => array(), // Set fields just for add block attributes. // Editor render for this block is custom JSX // so we don't need to render fields automatically. 'fields' => array( array( 'key' => 'href', 'label' => esc_html__( 'Pinterest Board URL', 'powerkit' ), 'type' => 'text', 'section' => 'general', 'default' => '', ), ), 'template' => dirname( __FILE__ ) . '/block/render.php', // enqueue registered scripts/styles. 'editor_script' => 'powerkit-block-pinterest-board-editor-script', ); return $blocks; } } new Powerkit_Block_Pinterest_Board();