Plugin Directory

Changeset 2751380 for smart-blocks


Ignore:
Timestamp:
07/04/2022 05:07:17 AM (3 years ago)
Author:
hashthemes
Message:
  • Constants Naming Issue - Fixed
  • Dynamic typography not working in Header Title - Fixed
Location:
smart-blocks
Files:
51 added
5 edited

Legend:

Unmodified
Added
Removed
  • smart-blocks/trunk/inc/assets/css/sb-style.css

    r2750648 r2751380  
    3232/* Block Title */
    3333
    34 .sb-block-title {
     34.wp-block-smart-blocks .sb-block-title {
    3535    margin-bottom: 30px;
    3636    font-family: var(--sb-header-typo-family);
     
    4545}
    4646
    47 .sb-block-title a,
    48 .sb-block-title span {
     47.wp-block-smart-blocks .sb-block-title a,
     48.wp-block-smart-blocks .sb-block-title span {
    4949    color: inherit;
    5050}
    5151
    52 .sb-title-style2.sb-block-title {
     52.wp-block-smart-blocks .sb-title-style2.sb-block-title {
    5353    border-bottom: 3px solid var(--sb-header-long-border-color, #EEE);
    5454}
    5555
    56 .sb-title-style2.sb-block-title span {
     56.wp-block-smart-blocks .sb-title-style2.sb-block-title span {
    5757    position: relative;
    5858    display: inline-block;
     
    6060}
    6161
    62 .sb-title-style2.sb-block-title span:before {
     62.wp-block-smart-blocks .sb-title-style2.sb-block-title span:before {
    6363    content: "";
    6464    position: absolute;
     
    7070}
    7171
    72 .sb-title-style3.sb-block-title {
     72.wp-block-smart-blocks .sb-title-style3.sb-block-title {
    7373    position: relative;
    7474    display: flex;
     
    7878}
    7979
    80 .sb-title-style3.sb-block-title span {
     80.wp-block-smart-blocks .sb-title-style3.sb-block-title span {
    8181    padding: 0 20px 0 15px;
    8282    display: inline-block;
    8383}
    8484
    85 .sb-title-style3.sb-block-title:after {
     85.wp-block-smart-blocks .sb-title-style3.sb-block-title:after {
    8686    content: "";
    8787    flex-grow: 1;
     
    8989}
    9090
    91 .sb-title-style4.sb-block-title {
     91.wp-block-smart-blocks .sb-title-style4.sb-block-title {
    9292    display: flex;
    9393    align-items: center;
    9494}
    9595
    96 .sb-title-style4.sb-block-title:after {
     96.wp-block-smart-blocks .sb-title-style4.sb-block-title:after {
    9797    content: "";
    9898    height: 3px;
     
    159159    padding: 0;
    160160    font-size: 0;
     161    display: flex;
     162    flex-wrap: wrap;
    161163}
    162164
     
    15291531
    15301532@media screen and (max-width:768px) {
    1531     .sb-block-title {
     1533    .wp-block-smart-blocks .sb-block-title {
    15321534        font-size: var(--sb-header-typo-fs-md, var(--sb-header-typo-fs-lg, 20px));
    15331535        letter-spacing: var(--sb-header-typo-ls-md, var(--sb-header-typo-ls-lg, 0));
     
    16531655
    16541656@media screen and (max-width:580px) {
    1655     .sb-block-title {
     1657    .wp-block-smart-blocks .sb-block-title {
    16561658        font-size: var(--sb-header-typo-fs-sm, var(--sb-header-typo-fs-md, var(--sb-header-typo-fs-lg, 20px)));
    16571659        letter-spacing: var(--sb-header-typo-ls-sm, var(--sb-header-typo-ls-md, var(--sb-header-typo-ls-lg, 0)));
  • smart-blocks/trunk/inc/blocks/blocks-manager.php

    r2750648 r2751380  
    66        if ($block_type) {
    77            /* Modules */
    8             require_once Smart_Blocks_PATH . 'inc/blocks/modules/' . str_replace('_', '-', $block_type) . '.php';
     8            require_once SMART_BLOCKS_PATH . 'inc/blocks/modules/' . str_replace('_', '-', $block_type) . '.php';
    99            $block_class = '\HashGutenberg\\' . self::get_class_name($block_type);
    1010            if (class_exists($block_class)) {
  • smart-blocks/trunk/inc/generate-css.php

    r2750648 r2751380  
    3838        public function render_block_asset( $block_content, $block ) {
    3939            $blockAttrs = $block['attrs'];
     40            $block_css = '';
    4041            foreach ($blockAttrs as $attrs) {
    4142                if (isset($attrs['family'])) {
     
    7172            }
    7273
    73             wp_register_style( 'sb-style-frontend', false, array(), Smart_Blocks_VERSION );
     74            wp_register_style( 'sb-style-frontend', false, array(), SMART_BLOCKS_VERSION );
    7475            wp_enqueue_style( 'sb-style-frontend' );
    7576            wp_add_inline_style( 'sb-style-frontend', sb_css_strip_whitespace(self::$stylesheet) );
  • smart-blocks/trunk/readme.txt

    r2750648 r2751380  
    33Tags:              block, gutenberg, blocks, gutenberg blocks, wordpress blocks, editor
    44Tested up to:      6.0
    5 Stable tag:        1.0.0
     5Stable tag:        1.0.1
    66Requires at least: 5.0
    77Requires PHP:      5.6
     
    2525
    2626== Changelog ==
     27= 1.0.1 - Jul 04, 2022 =
     28* Constants Naming Issue - Fixed
     29* Dynamic typography not working in Header Title - Fixed
    2730
    2831= 1.0.0 =
  • smart-blocks/trunk/smart-blocks.php

    r2750648 r2751380  
    55  Plugin Name:       Smart Blocks - Wordpress Gutenberg Blocks
    66  Description:       Collection of advanced blocks to be used with WordPress Gutenberg Pagebuilder
    7   Version:           1.0.0
     7  Version:           1.0.1
    88  Author:            HashThemes
    99  Author URI:        http://hashthemes.com
     
    1414 */
    1515
    16 define('Smart_Blocks_FILE', __FILE__);
    17 define('Smart_Blocks_PATH', plugin_dir_path(Smart_Blocks_FILE));
    18 define('Smart_Blocks_URL', plugins_url('/', Smart_Blocks_FILE));
    19 define('Smart_Blocks_VERSION', '1.0');
     16define('SMART_BLOCKS_FILE', __FILE__);
     17define('SMART_BLOCKS_PATH', plugin_dir_path(SMART_BLOCKS_FILE));
     18define('SMART_BLOCKS_URL', plugins_url('/', SMART_BLOCKS_FILE));
     19define('SMART_BLOCKS_VERSION', '1.0.1');
    2020
    2121if (!class_exists('Smart_Blocks')) {
     
    3636
    3737            // Load translation files
    38             add_action( 'plugins_loaded', array( $this, 'load_textdomain' ), 99 );
    39             add_action( 'enqueue_block_editor_assets', array( $this, 'block_localization' ) );
     38            add_action('plugins_loaded', array($this, 'load_textdomain'), 99);
     39            add_action('enqueue_block_editor_assets', array($this, 'block_localization'));
    4040
    4141            // Initialize Blocks
     
    5656
    5757        public function load_textdomain() {
    58             load_plugin_textdomain('smart-blocks', false, Smart_Blocks_PATH . 'languages');
     58            load_plugin_textdomain('smart-blocks', false, SMART_BLOCKS_PATH . 'languages');
    5959        }
    6060
    6161        // Enqueue localization data for our blocks.
    6262        public function block_localization() {
    63             if ( function_exists( 'wp_set_script_translations' ) ) {
    64                 wp_set_script_translations('sb-blocks', 'smart-blocks', Smart_Blocks_PATH . 'languages');
     63            if (function_exists('wp_set_script_translations')) {
     64                wp_set_script_translations('sb-blocks', 'smart-blocks', SMART_BLOCKS_PATH . 'languages');
    6565            }
    6666        }
    6767
    6868        public function init() {
    69             require Smart_Blocks_PATH . 'inc/helper-functions.php';
    70             require Smart_Blocks_PATH . 'inc/blocks/blocks-manager.php';
    71             require Smart_Blocks_PATH . 'inc/blocks/blocks-render.php';
    72             require Smart_Blocks_PATH . 'inc/generate-css.php';
    73             require Smart_Blocks_PATH . 'inc/blocks/attributes.php';
     69            require SMART_BLOCKS_PATH . 'inc/helper-functions.php';
     70            require SMART_BLOCKS_PATH . 'inc/blocks/blocks-manager.php';
     71            require SMART_BLOCKS_PATH . 'inc/blocks/blocks-render.php';
     72            require SMART_BLOCKS_PATH . 'inc/generate-css.php';
     73            require SMART_BLOCKS_PATH . 'inc/blocks/attributes.php';
    7474        }
    7575
    7676        public function sb_create_block_init() {
    7777            // automatically load dependencies and version
    78             $asset_file = include( Smart_Blocks_PATH . 'build/index.asset.php');
    79             wp_register_style('owl-carousel', Smart_Blocks_URL . 'inc/assets/css/owl.carousel.css', array(), Smart_Blocks_VERSION);
    80             wp_register_style('materialdesignicons', Smart_Blocks_URL . 'inc/assets/css/materialdesignicons.css', array(), Smart_Blocks_VERSION);
    81             wp_register_style('sb-style', Smart_Blocks_URL . 'inc/assets/css/sb-style.css', array('materialdesignicons', 'owl-carousel'), Smart_Blocks_VERSION);
    82             wp_register_style('sb-block-editor', Smart_Blocks_URL . 'inc/assets/css/editor.css', array(), Smart_Blocks_VERSION);
     78            $asset_file = include( SMART_BLOCKS_PATH . 'build/index.asset.php');
     79            wp_register_style('owl-carousel', SMART_BLOCKS_URL . 'inc/assets/css/owl.carousel.css', array(), SMART_BLOCKS_VERSION);
     80            wp_register_style('materialdesignicons', SMART_BLOCKS_URL . 'inc/assets/css/materialdesignicons.css', array(), SMART_BLOCKS_VERSION);
     81            wp_register_style('sb-style', SMART_BLOCKS_URL . 'inc/assets/css/sb-style.css', array('materialdesignicons', 'owl-carousel'), SMART_BLOCKS_VERSION);
     82            wp_register_style('sb-block-editor', SMART_BLOCKS_URL . 'inc/assets/css/editor.css', array(), SMART_BLOCKS_VERSION);
    8383
    84             wp_register_script('owl-carousel', Smart_Blocks_URL . 'inc/assets/js/owl.carousel.js', array('jquery'), Smart_Blocks_VERSION, true);
    85             wp_register_script('sb-script', Smart_Blocks_URL . 'inc/assets/js/sb-script.js', array('jquery', 'owl-carousel'), Smart_Blocks_VERSION, true);
     84            wp_register_script('owl-carousel', SMART_BLOCKS_URL . 'inc/assets/js/owl.carousel.js', array('jquery'), SMART_BLOCKS_VERSION, true);
     85            wp_register_script('sb-script', SMART_BLOCKS_URL . 'inc/assets/js/sb-script.js', array('jquery', 'owl-carousel'), SMART_BLOCKS_VERSION, true);
    8686
    8787            wp_register_script(
    88                     'sb-blocks', Smart_Blocks_URL . 'build/index.js', $asset_file['dependencies'], $asset_file['version']
     88                    'sb-blocks', SMART_BLOCKS_URL . 'build/index.js', $asset_file['dependencies'], $asset_file['version']
    8989            );
    9090
     
    133133         * @param object $post Post object.
    134134         */
    135         public function register_category( $categories, $post ) {
     135        public function register_category($categories, $post) {
    136136            return array_merge(
    137137                    $categories, array(
     
    178178
    179179    }
     180
    180181}
    181182
Note: See TracChangeset for help on using the changeset viewer.