Plugin Directory

Changeset 2513199


Ignore:
Timestamp:
04/12/2021 10:15:42 AM (5 years ago)
Author:
msakib
Message:

Custom CSS Option adding

Location:
widgetkits/trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • widgetkits/trunk/base.php

    r2513088 r2513199  
    5858        add_action( 'elementor/widgets/widgets_registered', [ $this, 'init_widgets' ] );
    5959        add_action( 'elementor/elements/categories_registered',[$this,'register_new_category']);
     60        add_action('elementor/editor/after_enqueue_scripts', [$this, 'widgetkits_editor_scripts_js'], 100);
    6061        add_action( 'wp_enqueue_scripts', array( $this, 'widgetkits_register_frontend_styles' ), 10 );
    6162        add_action( 'elementor/frontend/before_register_scripts', [ $this, 'widgetkits_register_frontend_scripts' ] );
     
    7576
    7677        wp_enqueue_script(
    77             'widgetkits-js',
    78             WIGETKITS_ASSETS_PUBLIC .'js/widget.js',
     78            'widgetkits-sidebar',
     79            WIGETKITS_ASSETS_PUBLIC .'/js/sidebar-widget.js',
    7980            array('jquery'), time(), true
    8081        );
     
    8283
    8384    }
    84 
     85    public function widgetkits_editor_scripts_js(){
     86       
     87        wp_enqueue_script(
     88            'widgetkits-addons-editor',
     89            WIGETKITS_ASSETS_PUBLIC .'/js/editor.js',
     90            ['jquery'], WIGETKITS_VERSION, true
     91        );
     92    }
    8593
    8694   
     
    162170
    163171        $widgets_manager = \Elementor\Plugin::instance()->widgets_manager;
     172        /*
     173        * Extensions Include
     174        */
     175        require_once( WIGETKITS_WIDGET_EXTENSIONS . 'custom-css.php' );
    164176
     177       
    165178
    166179        //Include Widget files
  • widgetkits/trunk/readme.txt

    r2513088 r2513199  
    22Contributors: msakib
    33Donate link: https://themepaw.com/
    4 Tags: Elementor, Elementor Addons, Elementor Widget, Elementor Addon, Elements, Widgetkits, Widget
     4Tags: Elementor, Elementor Addons, Elementor Widget, Elementor Addon, Widget
    55Requires at least: 4.7
    66Tested up to: 5.7
     
    1010Stable tag: trunk
    1111
    12 WidgetKits For Elementor Helper Plugin And Wordpress Default Sidebar Solution
     12WidgetKits For Elementor Helper Plugin
    1313== Description ==
    1414
  • widgetkits/trunk/widgetkits.php

    r2513088 r2513199  
    2222define( 'WIGETKITS_WIDGET_INC', plugin_dir_path( __FILE__ ) . 'inc/' );
    2323
     24// Plugin Extensions Folder Path
     25define( 'WIGETKITS_WIDGET_EXTENSIONS', plugin_dir_path( __FILE__ ) . 'extensions/' );
     26
    2427// Plugin Widget Folder Path
    2528define( 'WIGETKITS_WIDGET_DIR', plugin_dir_path( __FILE__ ) . 'widgets/' );
  • widgetkits/trunk/widgets/Button/widget.php

    r2513088 r2513199  
    2828   
    2929    public function get_title() {
    30         return __( 'Widgetkits Button', 'widgetkits' );
     30        return __( 'Button', 'widgetkits' );
    3131    }
    3232
     
    3838        return [ 'widgetkits' ];
    3939    }
     40
     41    public function get_keywords()
     42    {
     43        return ['btn', 'button', 'link', 'widgetkit'];
     44    }
    4045
    4146    protected function _register_controls() {
Note: See TracChangeset for help on using the changeset viewer.