Changeset 671843
- Timestamp:
- 02/22/2013 06:22:37 PM (13 years ago)
- Location:
- sexy-login/trunk
- Files:
-
- 17 added
- 6 deleted
- 4 edited
-
img/ajax-loader.gif (modified) (previous)
-
img/key.png (deleted)
-
img/user.png (deleted)
-
inc (added)
-
inc/activation.php (added)
-
inc/admin (added)
-
inc/admin/class-sexy-login-admin.php (added)
-
inc/ajax.php (added)
-
inc/class-sexy-login-attempts.php (added)
-
inc/class-sexy-login-widget.php (added)
-
inc/lib (added)
-
inc/lib/recaptchalib.php (added)
-
js/admin.js (added)
-
js/sexy-login-ajax.js (deleted)
-
js/sexy-login.js (added)
-
lang (added)
-
lang/sl-domain-es_ES.mo (added)
-
lang/sl-domain-es_ES.po (added)
-
readme.txt (modified) (3 diffs)
-
screenshot-1.png (modified) (previous)
-
sexy-login-functions.php (deleted)
-
sexy-login-init.php (modified) (1 diff)
-
sexy-login-style.css (deleted)
-
sexy-login-widget.php (deleted)
-
sl-config.php (added)
-
style.css (added)
-
uninstall.php (added)
Legend:
- Unmodified
- Added
- Removed
-
sexy-login/trunk/readme.txt
r631954 r671843 2 2 Contributors: OptimalDevs 3 3 Donate link: http://optimaldevs.com/ 4 Tags: login, sexy, ajax, authentication, sidebar, widget, user, ssl, secury, admin bar4 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. 4.57 Stable tag: 1.06 Tested up to: 3.5.1 7 Stable tag: 2.0 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html 10 10 11 Simple and cool login widget for your WordPress! AJAX, support SSL, show avatar, profile button, register button...11 Simple and cool login widget for your WordPress! AJAX, support SSL, show avatar, profile button, register and lost password forms... 12 12 13 13 == Description == … … 17 17 Features: 18 18 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. 21 26 * Compatible with Internet Explorer, Safari, Chrome, Firefox, Opera. 22 27 * Work with forced SSL logins. 23 28 * 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. 28 34 29 35 [Try Demo](http://optimaldevs.com/demo/ "Try Sexy Login demo.") 36 Note: A new pro version is coming stay tune in http://optimaldevs.com/ 30 37 31 38 == Installation == 32 39 33 1. Upload sexy-login to wp-content/plugins34 2. Click "Activate" in the WordPress plugins menu 35 1. Place "Sexy Login" widget in your sidebar 40 1. Upload sexy-login folder to wp-content/plugins. 41 2. Click "Activate" in the WordPress plugins menu. 42 1. Place "Sexy Login" widget in your sidebar. 36 43 37 44 == Screenshots == … … 45 52 Yes. 46 53 47 = Can i change de style?=54 = Login or Register form doesn't display correctly with reCaptcha enabled. = 48 55 49 Yes, you can remove the custom style throught widgetoptions.56 Check that you've correctly entered both private and public keys in the "Sexy Login" plugin options. 50 57 51 58 == Changelog == 52 59 53 60 = 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 4 4 Plugin URI: http://wordpress.org/extend/plugins/sexy-login/ 5 5 Description: The sexiest widget login for Wordpress! 6 Version: 1.06 Version: 2.0 7 7 Author: OptimalDevs 8 8 Author URI: http://optimaldevs.com/ 9 9 */ 10 10 11 require_once( 'sexy-login-widget.php');12 require_once( 'sexy-login-functions.php');11 require_once( 'sl-config.php' ); 12 require_once( 'inc/activation.php' ); 13 13 14 register_activation_hook( __FILE__, 'sl_configure_database' ); 15 16 add_action( 'widgets_init', 'sexy_login_init' ); 17 14 18 function 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/' ); 18 21 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' ); 21 26 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 ) ) { 25 28 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 39 113 } 40 41 add_action( 'widgets_init', 'sexy_login_init' );42 43 114 ?>
Note: See TracChangeset
for help on using the changeset viewer.