Plugin Directory

Changeset 752225


Ignore:
Timestamp:
08/06/2013 11:11:15 AM (13 years ago)
Author:
OptimalDevs
Message:

Update to 2.5

Location:
sexy-login/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • sexy-login/trunk/inc/ajax.php

    r697763 r752225  
    5151           
    5252        } 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' );
    5555            $result['captcha']  = ( $sl_options['enable_captcha'] && $attempts->update_attempts() >= SL_LOGIN_ATTEMPTS ) ? true : false;
    5656       
  • sexy-login/trunk/js/jquery.blockUI.js

    r671843 r752225  
    11/*!
    22 * jQuery blockUI plugin
    3  * Version 2.53 (01-NOV-2012)
    4  * @requires jQuery v1.3 or later
     3 * Version 2.64.0-2013.07.18
     4 * @requires jQuery v1.7 or later
    55 *
    66 * Examples at: http://malsup.com/jquery/block/
    7  * Copyright (c) 2007-2012 M. Alsup
     7 * Copyright (c) 2007-2013 M. Alsup
    88 * Dual licensed under the MIT and GPL licenses:
    99 * http://www.opensource.org/licenses/mit-license.php
     
    1414
    1515;(function() {
     16/*jshint eqeqeq:false curly:false latedef:false */
    1617"use strict";
    1718
    1819    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 
    2520        $.fn._fadeIn = $.fn.fadeIn;
    2621
     
    2823
    2924        // this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle
    30         // retarded userAgent strings on Vista)
     25        // confusing userAgent strings on Vista)
    3126        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);
    3328        var mode = document.documentMode || 0;
    34         // var setExpr = msie && (($.browser.version < 8 && !mode) || mode < 8);
    3529        var setExpr = $.isFunction( document.createElement('div').style.setExpression );
    3630
     
    4539            if (message) $m.append('<h2>'+message+'</h2>');
    4640            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);
    5271            });
     72            // End konapun additions
    5373        };
    5474
    5575        // plugin method for blocking element content
    5676        $.fn.block = function(opts) {
     77            if ( this[0] === window ) {
     78                $.blockUI( opts );
     79                return this;
     80            }
    5781            var fullOpts = $.extend({}, $.blockUI.defaults, opts || {});
    5882            this.each(function() {
     
    6488
    6589            return this.each(function() {
    66                 if ($.css(this,'position') == 'static')
     90                if ($.css(this,'position') == 'static') {
    6791                    this.style.position = 'relative';
     92                    $(this).data('blockUI.static', true);
     93                }
    6894                this.style.zoom = 1; // force 'hasLayout' in ie
    6995                install(this, opts);
     
    7399        // plugin method for unblocking element content
    74100        $.fn.unblock = function(opts) {
     101            if ( this[0] === window ) {
     102                $.unblockUI( opts );
     103                return this;
     104            }
    75105            return this.each(function() {
    76106                remove(this, opts);
     
    78108        };
    79109
    80         $.blockUI.version = 2.53; // 2nd generation blocking at no extra cost!
     110        $.blockUI.version = 2.60; // 2nd generation blocking at no extra cost!
    81111
    82112        // override these in your code to change the default behavior and style
     
    116146            overlayCSS:  {
    117147                backgroundColor:    '#000',
    118                 opacity:                0.6,
     148                opacity:            0.6,
    119149                cursor:             'wait'
    120150            },
     
    183213            focusInput: true,
    184214
     215            // elements that can receive focus
     216            focusableElements: ':input:enabled:visible',
     217
    185218            // suppresses the use of overlay styles on FF/Linux (due to performance issues with opacity)
    186219            // no longer needed in 2012
     
    281314                if ( opts.title ) {
    282315                    s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || '&nbsp;')+'</div>';
    283                 } 
     316                }
    284317                s += '<div class="ui-widget-content ui-dialog-content"></div>';
    285318                s += '</div>';
     
    402435            if (full) {
    403436                pageBlock = lyr3[0];
    404                 pageBlockEls = $(':input:enabled:visible',pageBlock);
     437                pageBlockEls = $(opts.focusableElements,pageBlock);
    405438                if (opts.focusInput)
    406439                    setTimeout(focus, 20);
     
    423456        // remove the block
    424457        function remove(el, opts) {
     458            var count;
    425459            var full = (el == window);
    426460            var $el = $(el);
     
    457491
    458492            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                });
    461498            }
    462499            else
     
    466503        // move blocking element back into the DOM where it started
    467504        function reset(els,data,opts,el) {
     505            var $el = $(el);
     506            if ( $el.data('blockUI.isBlocked') )
     507                return;
     508
    468509            els.each(function(i,o) {
    469510                // remove via DOM calls so we don't lose event handlers
     
    477518                if (data.parent)
    478519                    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
    480525            }
    481526
     
    500545
    501546            // 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))
    503548                return;
    504549
    505550            // 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';
    507552            if (b)
    508553                $(document).bind(events, opts, handler);
     
    518563        function handler(e) {
    519564            // allow tab navigation (conditionally)
    520             if (e.keyCode && e.keyCode == 9) {
     565            if (e.type === 'keydown' && e.keyCode && e.keyCode == 9) {
    521566                if (pageBlock && e.data.constrainTabKey) {
    522567                    var els = pageBlockEls;
  • sexy-login/trunk/readme.txt

    r703537 r752225  
    44Tags: login, register, sexy, ajax, authentication, captcha, sidebar, widget, user, ssl, secury, admin bar, ReCaptcha, cross browser, lost password
    55Requires at least: 3.0
    6 Tested up to: 3.5.1
    7 Stable tag: 2.4
     6Tested up to: 3.6
     7Stable tag: 2.5
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    6161That's one of the problems of cache systems. We can't modify third party plugins.
    6262
     63= I have problems with Captcha.  =
     64
     65If 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
    6367== Changelog ==
    6468
     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
    6575= 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.
    6777
    6878= 2.3 =
  • sexy-login/trunk/sexy-login-init.php

    r703537 r752225  
    44Plugin URI: http://wordpress.org/extend/plugins/sexy-login/
    55Description: The sexiest login widget for Wordpress!
    6 Version: 2.4
     6Version: 2.5
    77Author: OptimalDevs
    88Author URI: http://optimaldevs.com/
  • sexy-login/trunk/sl-config.php

    r703537 r752225  
    77define( 'SL_LOGIN_ATTEMPTS_LAPSE', 10 );
    88define( 'SL_LOSTPWD_TIME_LAPSE', 10 );
    9 define( 'SL_VERSION', '2.4' );
     9define( 'SL_VERSION', '2.5' );
    1010define( 'SL_PLUGIN_ROOT_URL', plugin_dir_url( __FILE__ ) );
    1111
Note: See TracChangeset for help on using the changeset viewer.