Plugin Directory

Changeset 1961778


Ignore:
Timestamp:
10/24/2018 06:15:50 AM (7 years ago)
Author:
rbhavesh
Message:

Added New Button Block and Updated the Version of Blocks_Builder

Location:
blocks-builder
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • blocks-builder/trunk/class-blocks-builder.php

    r1957406 r1961778  
    332332            )
    333333        );
    334         // -----------map block------------
     334        // -----------Map Block Start------------
    335335        // Scripts.
    336336        wp_register_script(
     
    361361            )
    362362        );
    363         // -----------price block------------
     363        // -----------Price Block Start------------
    364364        // Scripts.
    365365        wp_register_script(
     
    390390            )
    391391        );
     392       
     393        //------Button Block start----.
     394        wp_register_script(
     395            'blocks-builder-button-block', // Handle.
     396            plugins_url( 'blocks_builder_button/blocks_builder_button_block.js', __FILE__ ), // Block.js: We register the block here.
     397            array( 'wp-blocks', 'wp-element', 'wp-i18n' ), // Dependencies, defined above.
     398            $this->_version
     399        );
     400        // Styles.
     401        wp_register_style(
     402            'blocks-builder-button-block-editor', // Handle.
     403            plugins_url( 'blocks_builder_button/blocks_builder_button_editor.css', __FILE__ ), // Block editor CSS.
     404            array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
     405            $this->_version
     406        );
     407        wp_register_style(
     408            'blocks-builder-button-block-style', // Handle.
     409            plugins_url( 'blocks_builder_button/blocks_builder_button_style.css', __FILE__ ), // Block editor CSS.
     410            array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
     411            $this->_version
     412        );
     413        register_block_type(
     414            'blockbuilder/button',
     415            array(
     416                'editor_script' => 'blocks-builder-button-block',
     417                'editor_style' => 'blocks-builder-button-block-editor',
     418                'style' => 'blocks-builder-button-block-style',
     419            )
     420        );
     421        //------Button Block End----
    392422    }
    393423}
  • blocks-builder/trunk/readme.txt

    r1957412 r1961778  
    4848* **Price Block:** This block helps you to create a beautiful price table with just one click. You can add price tables as per your requirements with the color of your choice.
    4949
     50* **Button Block:** Button block to create attractive buttons on your website.  The button block is completely customizable and lets you choose the colors, style and size of your buttons.
    5051
    5152== Frequently Asked Questions ==
     
    96979. Map Block
    979810. Price Block
     9911. Button Block
    98100== Changelog ==
     101
     102= 1.0.3 =
     103* Added Button Block
    99104
    100105= 1.0.2 =
Note: See TracChangeset for help on using the changeset viewer.