Changeset 2312613
- Timestamp:
- 05/26/2020 08:01:55 PM (6 years ago)
- Location:
- iconpress-lite/trunk
- Files:
-
- 3 edited
-
iconpress.php (modified) (2 diffs)
-
lib/integrations/elementor/js/controls.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iconpress-lite/trunk/iconpress.php
r2284812 r2312613 7 7 * DomainPath: /languages 8 8 * Author: IconPress team 9 * Version: 1.4. 89 * Version: 1.4.9 10 10 * Author URI: https://iconpress.io/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash 11 11 */ … … 26 26 } 27 27 28 define( 'ICONPRESSLITE_VERSION', '1.4. 8' );28 define( 'ICONPRESSLITE_VERSION', '1.4.9' ); 29 29 define( 'ICONPRESSLITE_DIR', plugin_dir_path( __FILE__ ) ); 30 30 define( '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 () { 2 3 3 var ControlBaseItemView = elementor.modules.controls.BaseData;4 var ControlBaseItemView = elementor.modules.controls.BaseData; 4 5 5 var ControlIconPressBrowseIconItemView = ControlBaseItemView.extend({6 var ControlIconPressBrowseIconItemView = ControlBaseItemView.extend({ 6 7 7 ui: function() {8 ui: function () { 8 9 9 var ui = ControlBaseItemView.prototype.ui.apply( this, arguments);10 var ui = ControlBaseItemView.prototype.ui.apply(this, arguments); 10 11 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'; 14 15 15 return ui;16 },16 return ui; 17 }, 17 18 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 }, 25 26 26 onReady: function() {27 var self = this;27 onReady: function () { 28 var self = this; 28 29 29 // on iconpress select30 $(window).on('iconpress:select:elementor', function(e){31 // grab the settings32 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]; 35 36 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 } 41 57 } 42 }); 58 else { 59 console.log('$.IconPressApp not loaded.'); 60 } 61 }, 43 62 44 }, 63 removeIcon: function (event) { 64 event.preventDefault; 65 this.setValue(''); 66 this.render(); 67 } 68 }); 45 69 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 3 3 Requires at least: 4.7 4 4 Tested up to: 5.4 5 Stable tag: 1.4. 85 Stable tag: 1.4.9 6 6 Requires PHP: 5.4 7 7 License: GPLv3 … … 142 142 == Changelog == 143 143 144 = 1.4.9 - 26 May 2020 = 145 * Fix for Elementor; 146 144 147 = 1.4.8 - 16 Apr 2020 = 145 148 * Updated SVG library’s allowed tags;
Note: See TracChangeset
for help on using the changeset viewer.