Plugin Directory

Changeset 671843


Ignore:
Timestamp:
02/22/2013 06:22:37 PM (13 years ago)
Author:
OptimalDevs
Message:

Update to 2.0

Location:
sexy-login/trunk
Files:
17 added
6 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • sexy-login/trunk/readme.txt

    r631954 r671843  
    22Contributors: OptimalDevs
    33Donate link: http://optimaldevs.com/
    4 Tags: login, sexy, ajax, authentication, sidebar, widget, user, ssl, secury, admin bar
     4Tags: 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.4.5
    7 Stable tag: 1.0
     6Tested up to: 3.5.1
     7Stable tag: 2.0
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1010
    11 Simple and cool login widget for your WordPress! AJAX, support SSL, show avatar, profile button, register button...
     11Simple and cool login widget for your WordPress! AJAX, support SSL, show avatar, profile button, register and lost password forms...
    1212
    1313== Description ==
     
    1717Features:
    1818
    19 * AJAX Login and error handling without refreshing your screen.
    20 * Compatible with WordPress  3.0 or higher.
     19* AJAX Login Form.
     20* AJAX Register Form.
     21* AJAX Lost Password Form.
     22* Error handling without refreshing your screen.
     23* Optional ReCaptcha verification for login and register forms.
     24* Control forgotten password request.
     25* Compatible with WordPress 3.0 or higher.
    2126* Compatible with Internet Explorer, Safari, Chrome, Firefox, Opera.
    2227* Work with forced SSL logins.
    2328* Fallback mechanism, still work on javascript-disabled browsers.
    24 * Widget option to disable the default style.
    25 * Widget specific option to show link to profile page and dashboard.
    26 * Widget option to show or hide avatar.
    27 * Languages: the same of your WordPress! (It’s multi-language).
     29* Specific option to show link to profile page and dashboard.
     30* Customizable redirect URL after log in or log out.
     31* Option to show or hide avatar and change it size.
     32* It's responsive!
     33* Languages: the same of your WordPress! (It’s multi-language). English or spanish in back-end.
    2834
    2935[Try Demo](http://optimaldevs.com/demo/ "Try Sexy Login demo.")
     36Note: A new pro version is coming stay tune in http://optimaldevs.com/
    3037
    3138== Installation ==
    3239
    33 1. Upload sexy-login to wp-content/plugins
    34 2. Click "Activate" in the WordPress plugins menu
    35 1. Place "Sexy Login" widget in your sidebar
     401. Upload sexy-login folder to wp-content/plugins.
     412. Click "Activate" in the WordPress plugins menu.
     421. Place "Sexy Login" widget in your sidebar.
    3643
    3744== Screenshots ==
     
    4552Yes.
    4653
    47 = Can i change de style? =
     54= Login or Register form doesn't display correctly with reCaptcha enabled. =
    4855
    49 Yes, you can remove the custom style throught widget options.
     56Check that you've correctly entered both private and public keys in the "Sexy Login" plugin options.
    5057
    5158== Changelog ==
    5259
    5360= 1.0 =
    54 * Initial release
     61* Initial release.
     62
     63= 2.0 =
     64* Added Register Form with Ajax.
     65* Added Lost Password Form with Ajax.
     66* Added ReCaptcha Verification.
     67* Added control for forgotten password request.
     68* Fixed some few errors.
     69* Added languages: Spanish in back-end, all Languages in front-end.
     70* Shift widget options to back-end.
     71* Remove option to customize the style.
     72* Added option to resize avatar and wrap div width.
     73* Added Uninstall.php file.
  • sexy-login/trunk/sexy-login-init.php

    r631952 r671843  
    44Plugin URI: http://wordpress.org/extend/plugins/sexy-login/
    55Description: The sexiest widget login for Wordpress!
    6 Version: 1.0
     6Version: 2.0
    77Author: OptimalDevs
    88Author URI: http://optimaldevs.com/
    99*/
    1010
    11 require_once('sexy-login-widget.php');
    12 require_once('sexy-login-functions.php');
     11require_once( 'sl-config.php' );
     12require_once( 'inc/activation.php' );
    1313
     14register_activation_hook( __FILE__, 'sl_configure_database' );
     15
     16add_action( 'widgets_init', 'sexy_login_init' );   
     17   
    1418function sexy_login_init() {
    15     register_widget( 'Sexy_Login_Widget' );
    16     add_action( 'wp_ajax_sexy_login_hook', 'sexy_login_ajax' );
    17     add_action( 'wp_ajax_nopriv_sexy_login_hook', 'sexy_login_ajax' );
     19
     20    load_plugin_textdomain( 'sl-domain', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
    1821   
    19     if(is_active_widget( false, false, 'sexy_login_widget', true) && !is_admin()){
    20         $ssl_plugins_url = (is_ssl()) ? str_replace('http://','https://', WP_PLUGIN_URL . '/sexy-login/') : WP_PLUGIN_URL . '/sexy-login/';
     22    require_once( 'inc/class-sexy-login-attempts.php' );
     23    require_once( 'inc/class-sexy-login-widget.php' );
     24           
     25    register_widget( 'Sexy_Login_Widget' );
    2126       
    22         wp_register_script('sexy-login-blockui',  $ssl_plugins_url . 'js/jquery.blockUI.js', array('jquery'), '2.53' );
    23         wp_register_script('sexy-login-ajax-id', $ssl_plugins_url . 'js/sexy-login-ajax.js', array( 'jquery' ), '1.0' );
    24         wp_register_style( 'sexy-login-style', $ssl_plugins_url . 'sexy-login-style.css', array(), '1.0', 'all' );
     27    if ( is_active_widget( false, false, 'sexy_login_widget', true ) ) {
    2528       
    26         wp_enqueue_script( 'jquery' );
    27         wp_enqueue_script( 'sexy-login-blockui' );
    28         wp_enqueue_script( 'sexy-login-ajax-id' );
    29         wp_enqueue_style( 'sexy-login-style' );
    30         wp_localize_script(
    31             'sexy-login-ajax-id',
    32             'sexy_ajax_script',
    33             array(
    34                 'ajaxurl' => admin_url( 'admin-ajax.php', (is_ssl() ? 'https' : 'http') ),
    35                 'loadingurl' =>  $ssl_plugins_url . 'img/ajax-loader.gif'
    36             )
    37         );
    38     }
     29        if ( is_admin() ) {
     30       
     31            require_once( 'inc/ajax.php' );
     32           
     33            add_action( 'wp_ajax_sexy_login_hook', 'sexy_login_ajax' );
     34            add_action( 'wp_ajax_nopriv_sexy_login_hook', 'sexy_login_ajax' );
     35           
     36            add_action( 'wp_ajax_sexy_register_hook', 'sexy_register_ajax' );
     37            add_action( 'wp_ajax_nopriv_sexy_register_hook', 'sexy_register_ajax' );
     38           
     39            add_action( 'wp_ajax_sexy_lostpwd_hook', 'sexy_lostpwd_ajax' );
     40            add_action( 'wp_ajax_nopriv_sexy_lostpwd_hook', 'sexy_lostpwd_ajax' );
     41           
     42        }
     43       
     44        if ( ! is_admin() ) {
     45           
     46            $sl_options = get_option( 'sl_options' );
     47           
     48            if ( $sl_options['redirect_logout'] == 'custom' && $sl_options['redirect_logout_url'] != '' ) {
     49               
     50                function sl_allow_ms_parent_redirect( $allowed ) {
     51                   
     52                    $sl_options = get_option( 'sl_options' );
     53                    $uri        = parse_url( $sl_options['redirect_logout_url'] );
     54                    $allowed[]  = $uri['host'];
     55                    return $allowed;
     56       
     57                }
     58               
     59                add_filter( 'allowed_redirect_hosts', 'sl_allow_ms_parent_redirect' );
     60               
     61            }
     62       
     63            if ( ! function_exists( 'recaptcha_get_html' ) )
     64                require_once( 'inc/lib/recaptchalib.php' );
     65       
     66            $ssl_plugins_url    = ( is_ssl() ) ? str_replace( 'http://', 'https://', plugin_dir_url( __FILE__ ) ) : plugin_dir_url( __FILE__ );
     67            $recaptcha_js       = ( is_ssl() ) ? 'https://www.google.com/recaptcha/api/js/recaptcha_ajax.js' : 'http://www.google.com/recaptcha/api/js/recaptcha_ajax.js';
     68           
     69            wp_register_script( 'blockui',  $ssl_plugins_url . 'js/jquery.blockUI.js', array( 'jquery' ), '2.53' );
     70            wp_register_script( 'sl-javascript', $ssl_plugins_url . 'js/sexy-login.js', array( 'jquery' ), '2.0' );
     71            wp_register_script( 'recaptcha', $recaptcha_js, array(), '1.0' );
     72
     73            wp_enqueue_script( 'recaptcha' );
     74            wp_enqueue_script( 'jquery' );
     75            wp_enqueue_script( 'blockui' );
     76            wp_enqueue_script( 'sl-javascript' );
     77           
     78            wp_register_style( 'sl-style', $ssl_plugins_url . 'style.css', array(), '1.0', 'all' );
     79           
     80            wp_enqueue_style( 'sl-style' );
     81           
     82            wp_localize_script(
     83                'sl-javascript',
     84                'sexy_loginl_data',
     85                array(
     86                    'ajaxurl'       => admin_url( 'admin-ajax.php' ),
     87                    'loadingurl'    => $ssl_plugins_url . 'img/ajax-loader.gif',
     88                    'public_key'    => $sl_options['recaptcha_public_key'],
     89                    'captcha_enter' => __( 'Enter the two words above', 'sl-domain' ),
     90                    'captcha_get'   => __( 'Get another Captcha', 'sl-domain' )
     91                )
     92            );
     93           
     94        } // END ! is_admin()
     95       
     96    } // END is_active_widget()
     97   
     98    if ( is_admin() ) {
     99   
     100        wp_register_script( 'sl-admin-js', plugin_dir_url( __FILE__ ) . 'js/admin.js', array( 'jquery' ), '1.0' );
     101        wp_enqueue_script( 'sl-admin-js' );
     102       
     103        require_once( 'inc/admin/class-sexy-login-admin.php' );
     104       
     105        if ( ! function_exists( 'recaptcha_get_html' ) )
     106            require_once( 'inc/lib/recaptchalib.php' );
     107           
     108        $admin_init = new Sexy_Login_Admin();
     109        $admin_init->upgrade();
     110       
     111    } // END is_admin()
     112   
    39113}
    40 
    41 add_action( 'widgets_init', 'sexy_login_init' );
    42 
    43114?>
Note: See TracChangeset for help on using the changeset viewer.