Changeset 752225
- Timestamp:
- 08/06/2013 11:11:15 AM (13 years ago)
- Location:
- sexy-login/trunk
- Files:
-
- 5 edited
-
inc/ajax.php (modified) (1 diff)
-
js/jquery.blockUI.js (modified) (17 diffs)
-
readme.txt (modified) (2 diffs)
-
sexy-login-init.php (modified) (1 diff)
-
sl-config.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sexy-login/trunk/inc/ajax.php
r697763 r752225 51 51 52 52 } else { 53 $to_search = array( '?', '¿' );54 $result['error'] = ( $login->errors ) ? str _replace( $to_search, '', eregi_replace( "<a[^>]*>.*</a>", '', $login->get_error_message()) ) : '<strong>ERROR</strong>: ' . esc_html__( 'Please enter your username and password to login.', 'sl-domain' );53 54 $result['error'] = ( $login->errors ) ? strip_tags( $login->get_error_message() ) : '<strong>ERROR</strong>: ' . esc_html__( 'Please enter your username and password to login.', 'sl-domain' ); 55 55 $result['captcha'] = ( $sl_options['enable_captcha'] && $attempts->update_attempts() >= SL_LOGIN_ATTEMPTS ) ? true : false; 56 56 -
sexy-login/trunk/js/jquery.blockUI.js
r671843 r752225 1 1 /*! 2 2 * jQuery blockUI plugin 3 * Version 2. 53 (01-NOV-2012)4 * @requires jQuery v1. 3or later3 * Version 2.64.0-2013.07.18 4 * @requires jQuery v1.7 or later 5 5 * 6 6 * Examples at: http://malsup.com/jquery/block/ 7 * Copyright (c) 2007-201 2M. Alsup7 * Copyright (c) 2007-2013 M. Alsup 8 8 * Dual licensed under the MIT and GPL licenses: 9 9 * http://www.opensource.org/licenses/mit-license.php … … 14 14 15 15 ;(function() { 16 /*jshint eqeqeq:false curly:false latedef:false */ 16 17 "use strict"; 17 18 18 19 function setup($) { 19 if (/^1\.(0|1|2)/.test($.fn.jquery)) {20 /*global alert:true */21 alert('blockUI requires jQuery v1.3 or later! You are using v' + $.fn.jquery);22 return;23 }24 25 20 $.fn._fadeIn = $.fn.fadeIn; 26 21 … … 28 23 29 24 // this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle 30 // retardeduserAgent strings on Vista)25 // confusing userAgent strings on Vista) 31 26 var msie = /MSIE/.test(navigator.userAgent); 32 var ie6 = /MSIE 6.0/.test(navigator.userAgent) ;27 var ie6 = /MSIE 6.0/.test(navigator.userAgent) && ! /MSIE 8.0/.test(navigator.userAgent); 33 28 var mode = document.documentMode || 0; 34 // var setExpr = msie && (($.browser.version < 8 && !mode) || mode < 8);35 29 var setExpr = $.isFunction( document.createElement('div').style.setExpression ); 36 30 … … 45 39 if (message) $m.append('<h2>'+message+'</h2>'); 46 40 if (timeout === undefined) timeout = 3000; 47 $.blockUI({ 48 message: $m, fadeIn: 700, fadeOut: 1000, centerY: false, 49 timeout: timeout, showOverlay: false, 50 onUnblock: onClose, 51 css: $.blockUI.defaults.growlCSS 41 42 // Added by konapun: Set timeout to 30 seconds if this growl is moused over, like normal toast notifications 43 var callBlock = function(opts) { 44 opts = opts || {}; 45 46 $.blockUI({ 47 message: $m, 48 fadeIn : typeof opts.fadeIn !== 'undefined' ? opts.fadeIn : 700, 49 fadeOut: typeof opts.fadeOut !== 'undefined' ? opts.fadeOut : 1000, 50 timeout: typeof opts.timeout !== 'undefined' ? opts.timeout : timeout, 51 centerY: false, 52 showOverlay: false, 53 onUnblock: onClose, 54 css: $.blockUI.defaults.growlCSS 55 }); 56 }; 57 58 callBlock(); 59 var nonmousedOpacity = $m.css('opacity'); 60 $m.mouseover(function() { 61 callBlock({ 62 fadeIn: 0, 63 timeout: 30000 64 }); 65 66 var displayBlock = $('.blockMsg'); 67 displayBlock.stop(); // cancel fadeout if it has started 68 displayBlock.fadeTo(300, 1); // make it easier to read the message by removing transparency 69 }).mouseout(function() { 70 $('.blockMsg').fadeOut(1000); 52 71 }); 72 // End konapun additions 53 73 }; 54 74 55 75 // plugin method for blocking element content 56 76 $.fn.block = function(opts) { 77 if ( this[0] === window ) { 78 $.blockUI( opts ); 79 return this; 80 } 57 81 var fullOpts = $.extend({}, $.blockUI.defaults, opts || {}); 58 82 this.each(function() { … … 64 88 65 89 return this.each(function() { 66 if ($.css(this,'position') == 'static') 90 if ($.css(this,'position') == 'static') { 67 91 this.style.position = 'relative'; 92 $(this).data('blockUI.static', true); 93 } 68 94 this.style.zoom = 1; // force 'hasLayout' in ie 69 95 install(this, opts); … … 73 99 // plugin method for unblocking element content 74 100 $.fn.unblock = function(opts) { 101 if ( this[0] === window ) { 102 $.unblockUI( opts ); 103 return this; 104 } 75 105 return this.each(function() { 76 106 remove(this, opts); … … 78 108 }; 79 109 80 $.blockUI.version = 2. 53; // 2nd generation blocking at no extra cost!110 $.blockUI.version = 2.60; // 2nd generation blocking at no extra cost! 81 111 82 112 // override these in your code to change the default behavior and style … … 116 146 overlayCSS: { 117 147 backgroundColor: '#000', 118 opacity: 0.6,148 opacity: 0.6, 119 149 cursor: 'wait' 120 150 }, … … 183 213 focusInput: true, 184 214 215 // elements that can receive focus 216 focusableElements: ':input:enabled:visible', 217 185 218 // suppresses the use of overlay styles on FF/Linux (due to performance issues with opacity) 186 219 // no longer needed in 2012 … … 281 314 if ( opts.title ) { 282 315 s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || ' ')+'</div>'; 283 } 316 } 284 317 s += '<div class="ui-widget-content ui-dialog-content"></div>'; 285 318 s += '</div>'; … … 402 435 if (full) { 403 436 pageBlock = lyr3[0]; 404 pageBlockEls = $( ':input:enabled:visible',pageBlock);437 pageBlockEls = $(opts.focusableElements,pageBlock); 405 438 if (opts.focusInput) 406 439 setTimeout(focus, 20); … … 423 456 // remove the block 424 457 function remove(el, opts) { 458 var count; 425 459 var full = (el == window); 426 460 var $el = $(el); … … 457 491 458 492 if (opts.fadeOut) { 459 els.fadeOut(opts.fadeOut); 460 setTimeout(function() { reset(els,data,opts,el); }, opts.fadeOut); 493 count = els.length; 494 els.stop().fadeOut(opts.fadeOut, function() { 495 if ( --count === 0) 496 reset(els,data,opts,el); 497 }); 461 498 } 462 499 else … … 466 503 // move blocking element back into the DOM where it started 467 504 function reset(els,data,opts,el) { 505 var $el = $(el); 506 if ( $el.data('blockUI.isBlocked') ) 507 return; 508 468 509 els.each(function(i,o) { 469 510 // remove via DOM calls so we don't lose event handlers … … 477 518 if (data.parent) 478 519 data.parent.appendChild(data.el); 479 $(el).removeData('blockUI.history'); 520 $el.removeData('blockUI.history'); 521 } 522 523 if ($el.data('blockUI.static')) { 524 $el.css('position', 'static'); // #22 480 525 } 481 526 … … 500 545 501 546 // don't bind events when overlay is not in use or if bindEvents is false 502 if (! opts.bindEvents || (b && !opts.showOverlay))547 if (!full || !opts.bindEvents || (b && !opts.showOverlay)) 503 548 return; 504 549 505 550 // bind anchors and inputs for mouse and key events 506 var events = 'mousedown mouseup keydown keypress touchstart touchend touchmove';551 var events = 'mousedown mouseup keydown keypress keyup touchstart touchend touchmove'; 507 552 if (b) 508 553 $(document).bind(events, opts, handler); … … 518 563 function handler(e) { 519 564 // allow tab navigation (conditionally) 520 if (e. keyCode && e.keyCode == 9) {565 if (e.type === 'keydown' && e.keyCode && e.keyCode == 9) { 521 566 if (pageBlock && e.data.constrainTabKey) { 522 567 var els = pageBlockEls; -
sexy-login/trunk/readme.txt
r703537 r752225 4 4 Tags: login, register, sexy, ajax, authentication, captcha, sidebar, widget, user, ssl, secury, admin bar, ReCaptcha, cross browser, lost password 5 5 Requires at least: 3.0 6 Tested up to: 3. 5.17 Stable tag: 2. 46 Tested up to: 3.6 7 Stable tag: 2.5 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 61 61 That's one of the problems of cache systems. We can't modify third party plugins. 62 62 63 = I have problems with Captcha. = 64 65 If you are using another plugin that also uses "reCAPTCHA" it is possible that one of the two "reCAPTCHA" doesn't work correctly. The reason is that "reCAPTCHA" only allows one instance on each page. 66 63 67 == Changelog == 64 68 69 = 2.5 = 70 * Now it's compatible with WordPres 3.6. 71 * Fixed javascript error: "blockUI requires jQuery v1.3 or later! You are using v1.10.2". 72 * Updated blockUI library. 73 * Fixed problems when user tries to Log on. 74 65 75 = 2.4 = 66 * Fixed javascript error related with style. Now it's compatible with IE8 and lower versions.76 * Fixed javascript error related to the style that produced an error in IE8 and below. 67 77 68 78 = 2.3 = -
sexy-login/trunk/sexy-login-init.php
r703537 r752225 4 4 Plugin URI: http://wordpress.org/extend/plugins/sexy-login/ 5 5 Description: The sexiest login widget for Wordpress! 6 Version: 2. 46 Version: 2.5 7 7 Author: OptimalDevs 8 8 Author URI: http://optimaldevs.com/ -
sexy-login/trunk/sl-config.php
r703537 r752225 7 7 define( 'SL_LOGIN_ATTEMPTS_LAPSE', 10 ); 8 8 define( 'SL_LOSTPWD_TIME_LAPSE', 10 ); 9 define( 'SL_VERSION', '2. 4' );9 define( 'SL_VERSION', '2.5' ); 10 10 define( 'SL_PLUGIN_ROOT_URL', plugin_dir_url( __FILE__ ) ); 11 11
Note: See TracChangeset
for help on using the changeset viewer.