Changeset 3388100
- Timestamp:
- 11/01/2025 01:08:10 PM (5 months ago)
- Location:
- popup-box
- Files:
-
- 170 added
- 4 edited
-
assets/blueprints/blueprint.json (modified) (1 diff)
-
tags/3.2.12 (added)
-
tags/3.2.12/README.txt (added)
-
tags/3.2.12/admin (added)
-
tags/3.2.12/admin/assets (added)
-
tags/3.2.12/admin/assets/css (added)
-
tags/3.2.12/admin/assets/css/1.admin-rtl.css (added)
-
tags/3.2.12/admin/assets/css/1.admin.css (added)
-
tags/3.2.12/admin/assets/css/1.admin.scss (added)
-
tags/3.2.12/admin/assets/css/2.popup.css (added)
-
tags/3.2.12/admin/assets/css/index.php (added)
-
tags/3.2.12/admin/assets/css/scss-admin (added)
-
tags/3.2.12/admin/assets/css/scss-admin/_1.header.scss (added)
-
tags/3.2.12/admin/assets/css/scss-admin/_10.details.scss (added)
-
tags/3.2.12/admin/assets/css/scss-admin/_11.thickbox.scss (added)
-
tags/3.2.12/admin/assets/css/scss-admin/_12.icons.scss (added)
-
tags/3.2.12/admin/assets/css/scss-admin/_13.notification.scss (added)
-
tags/3.2.12/admin/assets/css/scss-admin/_14.pro_features.scss (added)
-
tags/3.2.12/admin/assets/css/scss-admin/_2.list_table.scss (added)
-
tags/3.2.12/admin/assets/css/scss-admin/_3.tools.scss (added)
-
tags/3.2.12/admin/assets/css/scss-admin/_4.tabs.scss (added)
-
tags/3.2.12/admin/assets/css/scss-admin/_5.form.scss (added)
-
tags/3.2.12/admin/assets/css/scss-admin/_6.notice.scss (added)
-
tags/3.2.12/admin/assets/css/scss-admin/_7.helper.scss (added)
-
tags/3.2.12/admin/assets/css/scss-admin/_8.sidebar.scss (added)
-
tags/3.2.12/admin/assets/css/scss-admin/_9.item.scss (added)
-
tags/3.2.12/admin/assets/css/scss-admin/index.php (added)
-
tags/3.2.12/admin/assets/icons (added)
-
tags/3.2.12/admin/assets/icons/fonts (added)
-
tags/3.2.12/admin/assets/icons/fonts/WpieIcon.eot (added)
-
tags/3.2.12/admin/assets/icons/fonts/WpieIcon.svg (added)
-
tags/3.2.12/admin/assets/icons/fonts/WpieIcon.ttf (added)
-
tags/3.2.12/admin/assets/icons/fonts/WpieIcon.woff (added)
-
tags/3.2.12/admin/assets/icons/fonts/WpieIcon.woff2 (added)
-
tags/3.2.12/admin/assets/icons/index.php (added)
-
tags/3.2.12/admin/assets/img (added)
-
tags/3.2.12/admin/assets/img/index.php (added)
-
tags/3.2.12/admin/assets/img/plugin-logo.png (added)
-
tags/3.2.12/admin/assets/index.php (added)
-
tags/3.2.12/admin/assets/js (added)
-
tags/3.2.12/admin/assets/js/1.wp-color-picker-alpha.js (added)
-
tags/3.2.12/admin/assets/js/2.general.js (added)
-
tags/3.2.12/admin/assets/js/3.helper.js (added)
-
tags/3.2.12/admin/assets/js/4.builder.js (added)
-
tags/3.2.12/admin/assets/js/5.settings.js (added)
-
tags/3.2.12/admin/assets/js/6.rules.js (added)
-
tags/3.2.12/admin/assets/js/7.shortcodes.js (added)
-
tags/3.2.12/admin/assets/js/8.jsPopup.js (added)
-
tags/3.2.12/admin/assets/js/index.php (added)
-
tags/3.2.12/admin/class-settings-helper.php (added)
-
tags/3.2.12/admin/class-wowp-admin.php (added)
-
tags/3.2.12/admin/index.php (added)
-
tags/3.2.12/admin/pages (added)
-
tags/3.2.12/admin/pages/1.list.php (added)
-
tags/3.2.12/admin/pages/2.settings.php (added)
-
tags/3.2.12/admin/pages/3.tools.php (added)
-
tags/3.2.12/admin/pages/4.support.php (added)
-
tags/3.2.12/admin/pages/index.php (added)
-
tags/3.2.12/admin/settings (added)
-
tags/3.2.12/admin/settings/1.content.php (added)
-
tags/3.2.12/admin/settings/2.style.php (added)
-
tags/3.2.12/admin/settings/3.settings.php (added)
-
tags/3.2.12/admin/settings/4.rules.php (added)
-
tags/3.2.12/admin/settings/5.pro.php (added)
-
tags/3.2.12/admin/settings/index.php (added)
-
tags/3.2.12/admin/settings/options (added)
-
tags/3.2.12/admin/settings/options/content.php (added)
-
tags/3.2.12/admin/settings/options/index.php (added)
-
tags/3.2.12/admin/settings/options/rules.php (added)
-
tags/3.2.12/admin/settings/options/settings.php (added)
-
tags/3.2.12/admin/settings/options/style.php (added)
-
tags/3.2.12/admin/settings/pro-plugin.php (added)
-
tags/3.2.12/admin/settings/sidebar.php (added)
-
tags/3.2.12/classes (added)
-
tags/3.2.12/classes/Admin (added)
-
tags/3.2.12/classes/Admin/AdminActions.php (added)
-
tags/3.2.12/classes/Admin/AdminNotices.php (added)
-
tags/3.2.12/classes/Admin/CreateFields.php (added)
-
tags/3.2.12/classes/Admin/DBManager.php (added)
-
tags/3.2.12/classes/Admin/Dashboard.php (added)
-
tags/3.2.12/classes/Admin/DashboardHelper.php (added)
-
tags/3.2.12/classes/Admin/ImporterExporter.php (added)
-
tags/3.2.12/classes/Admin/Link.php (added)
-
tags/3.2.12/classes/Admin/ListTable.php (added)
-
tags/3.2.12/classes/Admin/ManageCapabilities.php (added)
-
tags/3.2.12/classes/Admin/Settings.php (added)
-
tags/3.2.12/classes/Admin/SupportForm.php (added)
-
tags/3.2.12/classes/Admin/index.php (added)
-
tags/3.2.12/classes/Autoloader.php (added)
-
tags/3.2.12/classes/Publish (added)
-
tags/3.2.12/classes/Publish/Conditions.php (added)
-
tags/3.2.12/classes/Publish/Display.php (added)
-
tags/3.2.12/classes/Publish/Singleton.php (added)
-
tags/3.2.12/classes/Publish/index.php (added)
-
tags/3.2.12/classes/Update (added)
-
tags/3.2.12/classes/Update/UpdateDB.php (added)
-
tags/3.2.12/classes/Update/index.php (added)
-
tags/3.2.12/classes/index.php (added)
-
tags/3.2.12/includes (added)
-
tags/3.2.12/includes/assets (added)
-
tags/3.2.12/includes/assets/css (added)
-
tags/3.2.12/includes/assets/css/admin.css (added)
-
tags/3.2.12/includes/assets/css/index.php (added)
-
tags/3.2.12/includes/assets/css/style.css (added)
-
tags/3.2.12/includes/assets/img (added)
-
tags/3.2.12/includes/assets/img/HTML-Editor-CF7.png (added)
-
tags/3.2.12/includes/assets/img/IknowledgeBase.png (added)
-
tags/3.2.12/includes/assets/img/KnowledgeCenter.jpg (added)
-
tags/3.2.12/includes/assets/img/Wow-Company.png (added)
-
tags/3.2.12/includes/assets/img/bubble-menu.png (added)
-
tags/3.2.12/includes/assets/img/button-generator.png (added)
-
tags/3.2.12/includes/assets/img/calchub.png (added)
-
tags/3.2.12/includes/assets/img/counter-box.png (added)
-
tags/3.2.12/includes/assets/img/docsy.png (added)
-
tags/3.2.12/includes/assets/img/doxy.png (added)
-
tags/3.2.12/includes/assets/img/flexi-menu.png (added)
-
tags/3.2.12/includes/assets/img/float-menu.png (added)
-
tags/3.2.12/includes/assets/img/floting-button.png (added)
-
tags/3.2.12/includes/assets/img/herd-effects.jpg (added)
-
tags/3.2.12/includes/assets/img/index.php (added)
-
tags/3.2.12/includes/assets/img/markdown-comment.png (added)
-
tags/3.2.12/includes/assets/img/modal-windows.png (added)
-
tags/3.2.12/includes/assets/img/popup-box.png (added)
-
tags/3.2.12/includes/assets/img/side-menu.png (added)
-
tags/3.2.12/includes/assets/img/skype.png (added)
-
tags/3.2.12/includes/assets/img/sticky-buttons.png (added)
-
tags/3.2.12/includes/assets/img/viral-subscription.jpg (added)
-
tags/3.2.12/includes/assets/img/wp-coder.png (added)
-
tags/3.2.12/includes/assets/img/wpcalc.png (added)
-
tags/3.2.12/includes/assets/index.php (added)
-
tags/3.2.12/includes/class-wow-company.php (added)
-
tags/3.2.12/includes/index.php (added)
-
tags/3.2.12/includes/page-welcome.php (added)
-
tags/3.2.12/index.php (added)
-
tags/3.2.12/languages (added)
-
tags/3.2.12/languages/index.php (added)
-
tags/3.2.12/languages/popup-box.pot (added)
-
tags/3.2.12/popup-box.php (added)
-
tags/3.2.12/public (added)
-
tags/3.2.12/public/assets (added)
-
tags/3.2.12/public/assets/css (added)
-
tags/3.2.12/public/assets/css/index.php (added)
-
tags/3.2.12/public/assets/css/style.css (added)
-
tags/3.2.12/public/assets/css/style.min.css (added)
-
tags/3.2.12/public/assets/index.php (added)
-
tags/3.2.12/public/assets/js (added)
-
tags/3.2.12/public/assets/js/index.php (added)
-
tags/3.2.12/public/assets/js/jsPopup.js (added)
-
tags/3.2.12/public/assets/js/jsPopup.min.js (added)
-
tags/3.2.12/public/class-script-maker.php (added)
-
tags/3.2.12/public/class-shortcodes.php (added)
-
tags/3.2.12/public/class-wowp-public.php (added)
-
tags/3.2.12/public/index.php (added)
-
tags/3.2.12/vendors (added)
-
tags/3.2.12/vendors/fontawesome (added)
-
tags/3.2.12/vendors/fontawesome/LICENSE.txt (added)
-
tags/3.2.12/vendors/fontawesome/css (added)
-
tags/3.2.12/vendors/fontawesome/css/all.css (added)
-
tags/3.2.12/vendors/fontawesome/css/all.min.css (added)
-
tags/3.2.12/vendors/fontawesome/css/index.php (added)
-
tags/3.2.12/vendors/fontawesome/index.php (added)
-
tags/3.2.12/vendors/fontawesome/webfonts (added)
-
tags/3.2.12/vendors/fontawesome/webfonts/fa-brands-400.ttf (added)
-
tags/3.2.12/vendors/fontawesome/webfonts/fa-brands-400.woff2 (added)
-
tags/3.2.12/vendors/fontawesome/webfonts/fa-regular-400.ttf (added)
-
tags/3.2.12/vendors/fontawesome/webfonts/fa-regular-400.woff2 (added)
-
tags/3.2.12/vendors/fontawesome/webfonts/fa-solid-900.ttf (added)
-
tags/3.2.12/vendors/fontawesome/webfonts/fa-solid-900.woff2 (added)
-
tags/3.2.12/vendors/fontawesome/webfonts/fa-v4compatibility.ttf (added)
-
tags/3.2.12/vendors/fontawesome/webfonts/fa-v4compatibility.woff2 (added)
-
tags/3.2.12/vendors/index.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/assets/js/1.wp-color-picker-alpha.js (modified) (39 diffs)
-
trunk/popup-box.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
popup-box/assets/blueprints/blueprint.json
r3338850 r3388100 16 16 "pluginZipFile": { 17 17 "resource": "url", 18 "url": "https://downloads.wordpress.org/plugin/popup-box.3.2.1 1.zip"18 "url": "https://downloads.wordpress.org/plugin/popup-box.3.2.12.zip" 19 19 }, 20 20 "options": { -
popup-box/trunk/README.txt
r3359962 r3388100 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 3.2.1 18 Stable tag: 3.2.12 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Popup Box lets you create responsive, customizable WordPress popups with a live preview and flexible triggersto boost engagement and conversions.12 Popup Box lets you create responsive, customizable WordPress popups with live preview, flexible triggers, and smart targeting to boost engagement and conversions. 13 13 14 14 == Description == … … 179 179 180 180 == Changelog == 181 = 3.2.12 = 182 * Updated: `wp-color-picker-alpha` to version **3.0.4**. 183 * Fixed: minor bug fixes 184 181 185 = 3.2.11 = 182 186 * Improved: Refactored AdminActions class for better performance and readability -
popup-box/trunk/admin/assets/js/1.wp-color-picker-alpha.js
r3223386 r3388100 5 5 * Only run in input and is defined data alpha in true 6 6 * 7 * Version: 3.0. 37 * Version: 3.0.4 8 8 * https://github.com/kallookoo/wp-color-picker-alpha 9 9 * Licensed under the GPLv2 license or later. 10 10 */ 11 11 12 ( function ( $, undef ) {12 ( function ( $, undef ) { 13 13 14 14 var wpColorPickerAlpha = { 15 'version' : 30215 'version': 304 16 16 }; 17 17 … … 19 19 if ( 'wpColorPickerAlpha' in window && 'version' in window.wpColorPickerAlpha ) { 20 20 var version = parseInt( window.wpColorPickerAlpha.version, 10 ); 21 if ( ! isNaN( version ) && version >= wpColorPickerAlpha.version ) {21 if ( !isNaN( version ) && version >= wpColorPickerAlpha.version ) { 22 22 return; 23 23 } … … 30 30 31 31 // Create new method to replace the `Color.toString()` inside the scripts. 32 Color.fn.to_s = function( type ) { 32 Color.fn.to_s = function ( type ) { 33 if ( this.error ) { 34 return ''; 35 } 33 36 type = ( type || 'hex' ); 34 37 // Change hex to rgba to return the correct color. … … 40 43 if ( 'hex' === type ) { 41 44 color = this.toString(); 42 } else if ( ! this.error ) { 45 } else if ( 'octohex' === type ) { 46 color = this.toString(); 47 var alpha = parseInt( 255 * this._alpha, 10 ).toString( 16 ); 48 if ( alpha.length === 1 ) { 49 alpha = `0${alpha}`; 50 } 51 color += alpha; 52 } else { 43 53 color = this.toCSS( type ).replace( /\(\s+/, '(' ).replace( /\s+\)/, ')' ); 44 54 } 55 45 56 return color; 57 } 58 59 Color.fn.fromHex = function ( color ) { 60 color = color.replace( /^#/, '' ).replace( /^0x/, '' ); 61 if ( 3 === color.length || 4 === color.length ) { 62 var extendedColor = ''; 63 for ( var index = 0; index < color.length; index++ ) { 64 extendedColor += '' + color[ index ]; 65 extendedColor += '' + color[ index ]; 66 } 67 color = extendedColor; 68 } 69 70 if ( color.length === 8 ) { 71 if ( /^[0-9A-F]{8}$/i.test( color ) ) { 72 var alpha = parseInt( color.substring( 6 ), 16 ); 73 if ( !isNaN( alpha ) ) { 74 this.a( alpha / 255 ); 75 } else { 76 this._error(); 77 } 78 } else { 79 this._error(); 80 } 81 color = color.substring( 0, 6 ); 82 } 83 84 if ( !this.error ) { 85 this.error = ! /^[0-9A-F]{6}$/i.test( color ); 86 } 87 88 // console.log(color + ': ' + this.a()) 89 return this.fromInt( parseInt( color, 16 ) ); 46 90 } 47 91 … … 72 116 * @access private 73 117 * 74 * @param {Object|*} The color instance if not defined return the cu urent color.118 * @param {Object|*} The color instance if not defined return the current color. 75 119 * 76 120 * @return {string} The element's color. 77 121 */ 78 _getColor: function ( color ) {122 _getColor: function ( color ) { 79 123 if ( color === undef ) { 80 124 color = this._color; … … 83 127 if ( this.alphaOptions.alphaEnabled ) { 84 128 color = color.to_s( this.alphaOptions.alphaColorType ); 85 if ( ! this.alphaOptions.alphaColorWithSpace ) {129 if ( !this.alphaOptions.alphaColorWithSpace ) { 86 130 color = color.replace( /\s+/g, '' ); 87 131 } … … 98 142 * @return {void} 99 143 */ 100 _create: function () {144 _create: function () { 101 145 try { 102 146 // Try to get the wpColorPicker alpha options. 103 147 this.alphaOptions = this.element.wpColorPicker( 'instance' ).alphaOptions; 104 } catch ( e ) {}148 } catch ( e ) { } 105 149 106 150 // We make sure there are all options … … 125 169 * @return {void} 126 170 */ 127 _addInputListeners: function ( input ) {171 _addInputListeners: function ( input ) { 128 172 var self = this, 129 callback = function ( event ){173 callback = function ( event ) { 130 174 var val = input.val(), 131 175 color = new Color( val ), … … 135 179 input.removeClass( 'iris-error' ); 136 180 137 if ( ! color.error ) {181 if ( !color.error ) { 138 182 // let's not do this on keyup for hex shortcodes 139 if ( 'hex' !== type || ! ( event.type === 'keyup' && val.match( /^[0-9a-fA-F]{3}$/ ) ) ) {183 if ( 'hex' !== type || !( event.type === 'keyup' && val.match( /^[0-9a-fA-F]{3}$/ ) ) ) { 140 184 // Compare color ( #AARRGGBB ) 141 185 if ( color.toIEOctoHex() !== self._color.toIEOctoHex() ) { … … 150 194 input.on( 'change', callback ); 151 195 152 if ( !self.alphaOptions.alphaSkipDebounce ) {196 if ( !self.alphaOptions.alphaSkipDebounce ) { 153 197 input.on( 'keyup', self._debounce( callback, self.alphaOptions.alphaDebounceTimeout ) ); 154 198 } … … 156 200 // If we initialized hidden, show on first focus. The rest is up to you. 157 201 if ( self.options.hide ) { 158 input.one( 'focus', function () {202 input.one( 'focus', function () { 159 203 self.show(); 160 } );204 } ); 161 205 } 162 206 }, … … 169 213 * @return {void} 170 214 */ 171 _initControls: function () {215 _initControls: function () { 172 216 this._super(); 173 217 … … 175 219 // Create Alpha controls 176 220 var self = this, 177 stripAlpha = self.controls.strip.clone( false, false),221 stripAlpha = self.controls.strip.clone( false, false ), 178 222 stripAlphaSlider = stripAlpha.find( '.iris-slider-offset' ), 179 223 controls = { 180 stripAlpha : stripAlpha,181 stripAlphaSlider : stripAlphaSlider224 stripAlpha: stripAlpha, 225 stripAlphaSlider: stripAlphaSlider 182 226 }; 183 227 … … 187 231 188 232 // Push new controls 189 $.each( controls, function ( k, v ) {190 self.controls[ k] = v;233 $.each( controls, function ( k, v ) { 234 self.controls[ k ] = v; 191 235 } ); 192 236 193 237 // Create slider 194 238 self.controls.stripAlphaSlider.slider( { 195 orientation : 'vertical',196 min : 0,197 max : 100,198 step : 1,199 value : parseInt( self._color._alpha * 100 ),200 slide : function( event, ui ) {239 orientation: 'vertical', 240 min: 0, 241 max: 100, 242 step: 1, 243 value: parseInt( self._color._alpha * 100 ), 244 slide: function ( event, ui ) { 201 245 self.active = 'strip'; 202 246 // Update alpha value … … 217 261 * @return {void} 218 262 */ 219 _dimensions: function ( reset ) {263 _dimensions: function ( reset ) { 220 264 this._super( reset ); 221 265 … … 255 299 } 256 300 257 258 301 square.css( 'margin', '0' ); 259 302 strip.width( stripWidth ).css( 'margin-left', stripMargin + 'px' ); … … 268 311 * @return {void} 269 312 */ 270 _change: function () {271 var self = this,313 _change: function () { 314 var self = this, 272 315 active = self.active; 273 316 … … 275 318 276 319 if ( self.alphaOptions.alphaEnabled ) { 277 var controls= self.controls,278 alpha = parseInt( self._color._alpha * 100 ),279 color = self._color.toRgb(),280 gradient = [320 var controls = self.controls, 321 alpha = parseInt( self._color._alpha * 100 ), 322 color = self._color.toRgb(), 323 gradient = [ 281 324 'rgb(' + color.r + ',' + color.g + ',' + color.b + ') 0%', 282 325 'rgba(' + color.r + ',' + color.g + ',' + color.b + ', 0) 100%' 283 326 ], 284 target = self.picker.closest( '.wp-picker-container' ).find( '.wp-color-result' );327 target = self.picker.closest( '.wp-picker-container' ).find( '.wp-color-result' ); 285 328 286 329 self.options.color = self._getColor(); 287 330 // Generate background slider alpha, only for CSS3. 288 controls.stripAlpha.css( { 'background' : 'linear-gradient(to bottom, ' + gradient.join( ', ' ) + '), url(' + backgroundImage + ')' } );331 controls.stripAlpha.css( { 'background': 'linear-gradient(to bottom, ' + gradient.join( ', ' ) + '), url(' + backgroundImage + ')' } ); 289 332 // Update alpha value 290 333 if ( active ) { … … 292 335 } 293 336 294 if ( ! self._color.error ) {337 if ( !self._color.error ) { 295 338 self.element.removeClass( 'iris-error' ).val( self.options.color ); 296 339 } 297 340 298 self.picker.find( '.iris-palette-container' ).on( 'click.palette', '.iris-palette', function () {341 self.picker.find( '.iris-palette-container' ).on( 'click.palette', '.iris-palette', function () { 299 342 var color = $( this ).data( 'color' ); 300 343 if ( self.alphaOptions.alphaReset ) { … … 317 360 * @return {void} 318 361 */ 319 _paintDimension: function ( origin, control ) {362 _paintDimension: function ( origin, control ) { 320 363 var self = this, 321 364 color = false; … … 345 388 * @return {void} 346 389 */ 347 _setOption: function ( key, value ) {390 _setOption: function ( key, value ) { 348 391 var self = this; 349 392 if ( 'color' === key && self.alphaOptions.alphaEnabled ) { … … 352 395 newColor = new Color( value ).setHSpace( self.options.mode ); 353 396 // Check if error && Check the color to prevent callbacks with the same color. 354 if ( ! newColor.error && self._getColor( newColor ) !== self._getColor() ) {397 if ( !newColor.error && self._getColor( newColor ) !== self._getColor() ) { 355 398 self._color = newColor; 356 399 self.options.color = self._getColor(); … … 371 414 * @return {string} The element's color. 372 415 */ 373 color: function ( newColor ) {416 color: function ( newColor ) { 374 417 if ( newColor === true ) { 375 418 return this._color.clone(); … … 404 447 * @return {object} The current alpha options. 405 448 */ 406 _getAlphaOptions: function () {449 _getAlphaOptions: function () { 407 450 var el = this.element, 408 type = ( el.data( 'type' ) || this.options.type ),451 type = ( el.data( 'type' ) || this.options.type ), 409 452 color = ( el.data( 'defaultColor' ) || el.val() ), 410 453 options = { … … 421 464 } 422 465 423 if ( ! options.alphaEnabled ) {466 if ( !options.alphaEnabled ) { 424 467 return options; 425 468 } … … 427 470 options.alphaColorWithSpace = ( color && color.match( /\s/ ) ); 428 471 429 $.each( options, function ( name, defaultValue ) {472 $.each( options, function ( name, defaultValue ) { 430 473 var value = ( el.data( name ) || defaultValue ); 431 474 switch ( name ) { … … 435 478 break; 436 479 case 'alphaColorType': 437 if ( ! value.match( /^(hex|(rgb|hsl)a?)$/ ) ) {480 if ( !value.match( /^((octo)?hex|(rgb|hsl)a?)$/ ) ) { 438 481 if ( color && color.match( /^#/ ) ) { 439 482 value = 'hex'; … … 449 492 break; 450 493 } 451 options[ name] = value;494 options[ name ] = value; 452 495 } ); 453 496 … … 462 505 * @return {void} 463 506 */ 464 _create: function () {507 _create: function () { 465 508 // Return early if Iris support is missing. 466 if ( ! $.support.iris ) {509 if ( !$.support.iris ) { 467 510 return; 468 511 } … … 482 525 * @return {void} 483 526 */ 484 _addListeners: function () {485 if ( ! this.alphaOptions.alphaEnabled ) {527 _addListeners: function () { 528 if ( !this.alphaOptions.alphaEnabled ) { 486 529 return this._super(); 487 530 } … … 498 541 self.toggler.css( { 499 542 'position': 'relative', 500 'background-image' : 'url(' + backgroundImage + ')'543 'background-image': 'url(' + backgroundImage + ')' 501 544 } ); 502 545 … … 508 551 509 552 self.colorAlpha = self.toggler.find( 'span.color-alpha' ).css( { 510 'width' : '30px',511 'height' : '100%',512 'position' : 'absolute',513 'top' : 0,514 'background-color' : el.val(),553 'width': '30px', 554 'height': '100%', 555 'position': 'absolute', 556 'top': 0, 557 'background-color': el.val(), 515 558 } ); 516 559 … … 518 561 if ( 'ltr' === self.colorAlpha.css( 'direction' ) ) { 519 562 self.colorAlpha.css( { 520 'border-bottom-left-radius' : '2px',521 'border-top-left-radius' : '2px',522 'left' : 0563 'border-bottom-left-radius': '2px', 564 'border-top-left-radius': '2px', 565 'left': 0 523 566 } ); 524 567 } else { 525 568 self.colorAlpha.css( { 526 'border-bottom-right-radius' : '2px',527 'border-top-right-radius' : '2px',528 'right' : 0569 'border-bottom-right-radius': '2px', 570 'border-top-right-radius': '2px', 571 'right': 0 529 572 } ); 530 573 } … … 545 588 * @returns {void} 546 589 */ 547 change: function ( event, ui ) {590 change: function ( event, ui ) { 548 591 self.colorAlpha.css( { 'background-color': ui.color.to_s( self.alphaOptions.alphaColorType ) } ); 549 592 … … 565 608 * @return {void} 566 609 */ 567 self.wrap.on( 'click.wpcolorpicker', function ( event ) {610 self.wrap.on( 'click.wpcolorpicker', function ( event ) { 568 611 event.stopPropagation(); 569 } );612 } ); 570 613 571 614 /** … … 574 617 * @since 3.0.0 575 618 */ 576 self.toggler.on( 'click', function () {619 self.toggler.on( 'click', function () { 577 620 if ( self.toggler.hasClass( 'wp-picker-open' ) ) { 578 621 self.close(); … … 580 623 self.open(); 581 624 } 582 } );625 } ); 583 626 584 627 /** … … 592 635 * @return {void} 593 636 */ 594 el.on( 'change', function ( event ) {637 el.on( 'change', function ( event ) { 595 638 var val = $( this ).val(); 596 639 … … 618 661 * @return {void} 619 662 */ 620 self.button.on( 'click', function ( event ) {663 self.button.on( 'click', function ( event ) { 621 664 if ( $( this ).hasClass( 'wp-picker-default' ) ) { 622 665 el.val( self.options.defaultColor ).change(); -
popup-box/trunk/popup-box.php
r3338850 r3388100 4 4 * Plugin URI: https://wordpress.org/plugin/popup-box/ 5 5 * Description: The most powerful creator of popups & flyouts 6 * Version: 3.2.1 16 * Version: 3.2.12 7 7 * Author: Wow-Company 8 8 * Author URI: https://wow-estore.com/ … … 184 184 public function loaded(): void { 185 185 UpdateDB::init(); 186 $languages_folder = dirname( plugin_basename( __FILE__ ) ) . '/languages/';187 load_plugin_textdomain( 'popup-box', false, $languages_folder );188 186 } 189 187 }
Note: See TracChangeset
for help on using the changeset viewer.