Plugin Directory

Changeset 2312613


Ignore:
Timestamp:
05/26/2020 08:01:55 PM (6 years ago)
Author:
iconpress
Message:

Updated version

Location:
iconpress-lite/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • iconpress-lite/trunk/iconpress.php

    r2284812 r2312613  
    77 * DomainPath: /languages
    88 * Author: IconPress team
    9  * Version: 1.4.8
     9 * Version: 1.4.9
    1010 * Author URI: https://iconpress.io/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
    1111 */
     
    2626}
    2727
    28 define( 'ICONPRESSLITE_VERSION', '1.4.8' );
     28define( 'ICONPRESSLITE_VERSION', '1.4.9' );
    2929define( 'ICONPRESSLITE_DIR', plugin_dir_path( __FILE__ ) );
    3030define( 'ICONPRESSLITE_URI', plugin_dir_url( __FILE__ ) );
  • iconpress-lite/trunk/lib/integrations/elementor/js/controls.js

    r1947810 r2312613  
    1 jQuery(window).on( 'elementor:init', function() {
     1(function ($) {
     2    $(window).on('elementor:init', function () {
    23
    3     var ControlBaseItemView = elementor.modules.controls.BaseData;
     4        var ControlBaseItemView = elementor.modules.controls.BaseData;
    45
    5     var ControlIconPressBrowseIconItemView = ControlBaseItemView.extend({
     6        var ControlIconPressBrowseIconItemView = ControlBaseItemView.extend({
    67
    7         ui: function() {
     8            ui: function () {
    89
    9             var ui = ControlBaseItemView.prototype.ui.apply( this, arguments );
     10                var ui = ControlBaseItemView.prototype.ui.apply(this, arguments);
    1011
    11             ui.iconInsert = '.iconpressElm-browseIcon-insert';
    12             ui.iconWrapperInsert = '.iconpressElm-browseIcon-iconWrapper';
    13             ui.iconRemove = '.iconpressElm-browseIcon-remove';
     12                ui.iconInsert = '.iconpressElm-browseIcon-insert';
     13                ui.iconWrapperInsert = '.iconpressElm-browseIcon-iconWrapper';
     14                ui.iconRemove = '.iconpressElm-browseIcon-remove';
    1415
    15             return ui;
    16         },
     16                return ui;
     17            },
    1718
    18         events: function() {
    19             return _.extend( ControlBaseItemView.prototype.events.apply( this, arguments ), {
    20                 'click @ui.iconInsert': 'openFrame',
    21                 'click @ui.iconWrapperInsert': 'openFrame',
    22                 'click @ui.iconRemove': 'removeIcon'
    23             } );
    24         },
     19            events: function () {
     20                return _.extend(ControlBaseItemView.prototype.events.apply(this, arguments), {
     21                    'click @ui.iconInsert': 'openFrame',
     22                    'click @ui.iconWrapperInsert': 'openFrame',
     23                    'click @ui.iconRemove': 'removeIcon'
     24                });
     25            },
    2526
    26         onReady: function() {
    27             var self = this;
     27            onReady: function () {
     28                var self = this;
    2829
    29             // on iconpress select
    30             $(window).on('iconpress:select:elementor', function(e){
    31                 // grab the settings
    32                 var settings = e.detail,
    33                     cid_split = settings.instance_id.split(/-/),
    34                     cid = cid_split[cid_split.length-1];
     30                // on iconpress select
     31                $(window).on('iconpress:select:elementor', function (e) {
     32                    // grab the settings
     33                    var settings = e.detail,
     34                        cid_split = settings.instance_id.split(/-/),
     35                        cid = cid_split[cid_split.length - 1];
    3536
    36                 // check for instance
    37                 if( self.model.cid == cid ){
    38                     // do the macarena
    39                     self.setValue( settings.internal_id );
    40                     self.render();
     37                    // check for instance
     38                    if (self.model.cid == cid) {
     39                        // do the macarena
     40                        self.setValue(settings.internal_id);
     41                        self.render();
     42                    }
     43                });
     44
     45            },
     46
     47            openFrame: function (event) {
     48                event.preventDefault;
     49
     50                if ($.IconPressApp !== void 0) {
     51                    // get the instance
     52                    this.instance_id = $(event.currentTarget).attr('data-instance-id');
     53                    if (!_.isUndefined(this.instance_id)) {
     54                        // open the panel
     55                        $.IconPressApp.init(this.instance_id, 'elementor')
     56                    }
    4157                }
    42             });
     58                else {
     59                    console.log('$.IconPressApp not loaded.');
     60                }
     61            },
    4362
    44         },
     63            removeIcon: function (event) {
     64                event.preventDefault;
     65                this.setValue('');
     66                this.render();
     67            }
     68        });
    4569
    46         openFrame: function(event){
    47             event.preventDefault;
    48 
    49             if( $.IconPressApp !== void 0 ) {
    50                 // get the instance
    51                 this.instance_id = $(event.currentTarget).attr('data-instance-id');
    52                 if( !_.isUndefined(this.instance_id) ){
    53                     // open the panel
    54                     $.IconPressApp.init( this.instance_id, 'elementor' )
    55                 }
    56             }
    57             else {
    58                 console.log('$.IconPressApp not loaded.');
    59             }
    60         },
    61 
    62         removeIcon: function(event){
    63             event.preventDefault;
    64             this.setValue( '' );
    65             this.render();
    66         }
    67     } );
    68 
    69     elementor.addControlView( 'iconpress_browse_icon', ControlIconPressBrowseIconItemView );
    70 } );
     70        elementor.addControlView('iconpress_browse_icon', ControlIconPressBrowseIconItemView);
     71    });
     72})(jQuery);
  • iconpress-lite/trunk/readme.txt

    r2284812 r2312613  
    33Requires at least: 4.7
    44Tested up to: 5.4
    5 Stable tag: 1.4.8
     5Stable tag: 1.4.9
    66Requires PHP: 5.4
    77License: GPLv3
     
    142142== Changelog ==
    143143
     144= 1.4.9 - 26 May 2020 =
     145* Fix for Elementor;
     146
    144147= 1.4.8 - 16 Apr 2020 =
    145148* Updated SVG library’s allowed tags;
Note: See TracChangeset for help on using the changeset viewer.