Changeset 1011553
- Timestamp:
- 10/21/2014 03:22:47 PM (11 years ago)
- Location:
- wordpress-social-login
- Files:
-
- 4 added
- 10 edited
-
assets/screenshot-2.png (modified) (previous)
-
assets/screenshot-3.png (modified) (previous)
-
assets/screenshot-4.png (modified) (previous)
-
assets/screenshot-5.png (modified) (previous)
-
assets/screenshot-6.png (modified) (previous)
-
assets/screenshot-7.png (added)
-
assets/screenshot-8.png (added)
-
trunk/assets/img/dismiss.png (added)
-
trunk/includes/admin/wsl.admin.ui.php (modified) (5 diffs)
-
trunk/includes/services/wsl.utilities.php (modified) (1 diff)
-
trunk/includes/settings/wsl.initialization.php (modified) (2 diffs)
-
trunk/includes/widgets/wsl.auth.widget.php (modified) (1 diff)
-
trunk/languages/default.po (added)
-
trunk/wp-social-login.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-social-login/trunk/includes/admin/wsl.admin.ui.php
r1010987 r1011553 26 26 do_action( "wsl_admin_main_start" ); 27 27 28 if ( ! wsl_check_requirements() ) 28 if ( ! current_user_can('manage_options') ) 29 { 30 wp_die( 'You do not have sufficient permissions to access this page.' ); 31 } 32 33 if( ! wsl_check_requirements() ) 29 34 { 30 35 wsl_admin_ui_fail(); … … 168 173 ?> 169 174 170 <h1 >175 <h1 <?php if( is_rtl() ) echo 'style="margin: 20px 0;"'; ?>> 171 176 <?php _wsl_e( 'WordPress Social Login', 'wordpress-social-login' ) ?> 172 177 … … 181 186 if( $settings["enabled"] && ( $settings["visible"] || $wslp == $name ) ) 182 187 { 183 ?><a class="nav-tab <?php if( $wslp == $name ) echo "nav-tab-active"; ?>" <?php if( isset( $settings["pull-right"] ) && $settings["pull-right"] ) echo 'style="float:right"'; ?> href="options-general.php?page=wordpress-social-login&wslp=<?php echo $name ?>"><?php if( isset( $settings["ico"] ) ) echo '<img style="margin: 0px; padding: 0px; border: 0px none;width: 16px; height: 16px;" src="' . WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL . '/assets/img/' . $settings["ico"] . '" />'; else echo $settings["label"]; ?></a><?php 188 if( isset( $settings["pull-right"] ) && $settings["pull-right"] ) 189 { 190 $css_pull_right = "float:right"; 191 192 if( is_rtl() ) 193 { 194 $css_pull_right = "float:left"; 195 } 196 } 197 198 ?><a class="nav-tab <?php if( $wslp == $name ) echo "nav-tab-active"; ?>" style="<?php echo $css_pull_right; ?>" href="options-general.php?page=wordpress-social-login&wslp=<?php echo $name ?>"><?php if( isset( $settings["ico"] ) ) echo '<img style="margin: 0px; padding: 0px; border: 0px none;width: 16px; height: 16px;" src="' . WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL . '/assets/img/' . $settings["ico"] . '" />'; else _wsl_e( $settings["label"], 'wordpress-social-login' ); ?></a><?php 184 199 } 185 200 } … … 265 280 ?> 266 281 <div class="wsl-container"> 267 <h1><?php _e("WordPress Social Login - FAIL!", 'wordpress-social-login') ?></h1> 268 269 <hr /> 270 271 <p> 272 <?php _e('Despite the efforts, put into <b>WordPress Social Login</b> in terms of reliability, portability, and maintenance by this plugin <a href="http://profiles.wordpress.org/miled/" target="_blank">author</a> and <a href="https://github.com/hybridauth/WordPress-Social-Login/graphs/contributors" target="_blank">contributors</a>', 'wordpress-social-login') ?>. 273 <b style="color:red;"><?php _e('Your server failed the requirements check for this plugin', 'wordpress-social-login') ?>.</b> 274 </p> 275 276 <p> 277 <?php _e('These requirements are usually met by default by most "modern" web hosting providers, however some complications may occur with <b>shared hosting</b> and, or <b>custom wordpress installations</b>', 'wordpress-social-login') ?>. 278 </p> 279 280 <p> 281 <?php _wsl_e("The minimum server requirements are", 'wordpress-social-login') ?>: 282 </p> 283 284 <ul style="margin-left:60px;"> 285 <li><?php _wsl_e("PHP >= 5.2.0 installed", 'wordpress-social-login') ?></li> 286 <li><?php _wsl_e("WSL Endpoint URLs reachable", 'wordpress-social-login') ?></li> 287 <li><?php _wsl_e("PHP's default SESSION handling", 'wordpress-social-login') ?></li> 288 <li><?php _wsl_e("PHP/CURL/SSL Extension enabled", 'wordpress-social-login') ?></li> 289 <li><?php _wsl_e("PHP/JSON Extension enabled", 'wordpress-social-login') ?></li> 290 <li><?php _wsl_e("PHP/REGISTER_GLOBALS Off", 'wordpress-social-login') ?></li> 291 <li><?php _wsl_e("jQuery installed on WordPress backoffice", 'wordpress-social-login') ?></li> 292 </ul> 282 <div style="background: none repeat scroll 0 0 #fff;border: 1px solid #e5e5e5;box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);padding:20px;"> 283 <h1><?php _e("WordPress Social Login - FAIL!", 'wordpress-social-login') ?></h1> 284 285 <hr /> 286 287 <p> 288 <?php _e('Despite the efforts, put into <b>WordPress Social Login</b> in terms of reliability, portability, and maintenance by the plugin <a href="http://profiles.wordpress.org/miled/" target="_blank">author</a> and <a href="https://github.com/hybridauth/WordPress-Social-Login/graphs/contributors" target="_blank">contributors</a>', 'wordpress-social-login') ?>. 289 <b style="color:red;"><?php _e('Your server failed the requirements check for this plugin', 'wordpress-social-login') ?>:</b> 290 </p> 291 292 <p> 293 <?php _e('These requirements are usually met by default by most "modern" web hosting providers, however some complications may occur with <b>shared hosting</b> and, or <b>custom wordpress installations</b>', 'wordpress-social-login') ?>. 294 </p> 295 296 <p> 297 <?php _wsl_e("The minimum server requirements are", 'wordpress-social-login') ?>: 298 </p> 299 300 <ul style="margin-left:60px;"> 301 <li><?php _wsl_e("PHP >= 5.2.0 installed", 'wordpress-social-login') ?></li> 302 <li><?php _wsl_e("WSL Endpoint URLs reachable", 'wordpress-social-login') ?></li> 303 <li><?php _wsl_e("PHP's default SESSION handling", 'wordpress-social-login') ?></li> 304 <li><?php _wsl_e("PHP/CURL/SSL Extension enabled", 'wordpress-social-login') ?></li> 305 <li><?php _wsl_e("PHP/JSON Extension enabled", 'wordpress-social-login') ?></li> 306 <li><?php _wsl_e("PHP/REGISTER_GLOBALS Off", 'wordpress-social-login') ?></li> 307 <li><?php _wsl_e("jQuery installed on WordPress backoffice", 'wordpress-social-login') ?></li> 308 </ul> 309 </div> 310 311 <?php 312 include_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/admin/components/tools/wsl.components.tools.actions.job.php' ); 313 314 wsl_component_tools_do_diagnostics(); 315 ?> 293 316 </div> 294 317 <style>.wsl-container .button-secondary { display:none; }</style> 295 318 <?php 296 319 // HOOKABLE: … … 333 356 --> 334 357 <div id="wsl-w-panel"> 335 <a href="options-general.php?page=wordpress-social-login&wslp=<?php echo $wslp ?>&wsldwp=1" id="wsl-w-panel-dismiss" ><?php _e("Dismiss", 'wordpress-social-login') ?></a>358 <a href="options-general.php?page=wordpress-social-login&wslp=<?php echo $wslp ?>&wsldwp=1" id="wsl-w-panel-dismiss" <?php if( is_rtl() ) echo 'style="left: 10px;right: auto;"'; ?>><?php _e("Dismiss", 'wordpress-social-login') ?></a> 336 359 337 360 <table width="100%" border="0" style="margin:0;padding:0;"> -
wordpress-social-login/trunk/includes/services/wsl.utilities.php
r1010987 r1011553 119 119 } 120 120 121 // Remove standard ports121 //Remove standard ports 122 122 $request_port = (!in_array($request_port, array (80, 443)) ? $request_port : ''); 123 123 124 124 //Build url 125 125 $current_url = $request_protocol . '://' . $request_host . ( ! empty ($request_port) ? (':'.$request_port) : '') . $request_uri; 126 127 // overwrite all the above if ajax 128 if( strpos( $current_url, 'admin-ajax.php') && isset( $_SERVER ['HTTP_REFERER'] ) && $_SERVER ['HTTP_REFERER'] ) 129 { 130 $current_url = $_SERVER ['HTTP_REFERER']; 131 } 126 132 127 133 // HOOKABLE: -
wordpress-social-login/trunk/includes/settings/wsl.initialization.php
r1010987 r1011553 65 65 "buddypress" => array( "label" => __("BuddyPress" , 'wordpress-social-login') , "visible" => true , "component" => "buddypress" ), 66 66 67 "watchdog" => array( "label" => __("Log viewer" , 'wordpress-social-login') , "visible" => false , "component" => "core" , "pull-right" => true , 'ico' => 'debug.png' ), 68 "help" => array( "label" => __(' ?' , 'wordpress-social-login') , "visible" => true , "component" => "core" , "pull-right" => true , 'ico' => 'help.png' ),69 "tools" => array( "label" => __("Tools" , 'wordpress-social-login') , "visible" => true , "component" => "core" , "pull-right" => true , 'ico' => 'tools.png' ), 70 "components" => array( "label" => __("Components" , 'wordpress-social-login') , "visible" => true , "component" => "core" , "pull-right" => true , 'ico' => 'components.png' ), 67 "watchdog" => array( "label" => __("Log viewer" , 'wordpress-social-login') , "visible" => false , "component" => "core" , "pull-right" => true , 'ico' => 'debug.png' ), 68 "help" => array( "label" => __('Help' , 'wordpress-social-login') , "visible" => true , "component" => "core" , "pull-right" => true , 'ico' => 'help.png' ), 69 "tools" => array( "label" => __("Tools" , 'wordpress-social-login') , "visible" => true , "component" => "core" , "pull-right" => true , 'ico' => 'tools.png' ), 70 "components" => array( "label" => __("Components" , 'wordpress-social-login') , "visible" => true , "component" => "core" , "pull-right" => true , 'ico' => 'components.png' ), 71 71 ); 72 72 … … 104 104 $config = array(); 105 105 106 $config["type"] = "addon"; // < force to addon107 106 $config["component"] = $component; 108 107 $config["label"] = $label; -
wordpress-social-login/trunk/includes/widgets/wsl.auth.widget.php
r1010987 r1011553 269 269 add_action( 'bp_before_account_details_fields', 'wsl_render_wsl_widget_in_wp_login_form' ); 270 270 add_action( 'bp_before_sidebar_login_form' , 'wsl_render_wsl_widget_in_wp_login_form' ); 271 add_action( 'edd_checkout_login_fields_after' , 'wsl_render_wsl_widget_in_wp_login_form' ); 272 add_action( 'wppb_before_login' , 'wsl_render_wsl_widget_in_wp_login_form' ); 271 273 272 274 // -------------------------------------------------------------------- -
wordpress-social-login/trunk/wp-social-login.php
r1010987 r1011553 4 4 Plugin URI: http://miled.github.io/wordpress-social-login/ 5 5 Description: Allow your visitors to comment and login with social networks such as Twitter, Facebook, Google, Yahoo and more. 6 Version: 2.2.3-rc. 16 Version: 2.2.3-rc.2 7 7 Author: Miled 8 8 Author URI: https://github.com/miled … … 186 186 187 187 # WSL Settings 188 require_once( dirname(__FILE__). '/includes/settings/wsl.providers.php' ); // List of provider supported by WSL (provided by hybridauth library)189 require_once( dirname(__FILE__). '/includes/settings/wsl.database.php' ); // Functions & utilities related to WSL database installation and migrations190 require_once( dirname(__FILE__). '/includes/settings/wsl.initialization.php' ); // Check WSL requirements and register WSL settings191 require_once( dirname(__FILE__). '/includes/settings/wsl.compatibilities.php' ); // Check and upgrade WSL database/settings (for older WSL versions)188 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/settings/wsl.providers.php' ); // List of provider supported by WSL (provided by hybridauth library) 189 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/settings/wsl.database.php' ); // Functions & utilities related to WSL database installation and migrations 190 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/settings/wsl.initialization.php' ); // Check WSL requirements and register WSL settings 191 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/settings/wsl.compatibilities.php' ); // Check and upgrade WSL database/settings (for older WSL versions) 192 192 193 193 # Services & Utilities 194 require_once( dirname(__FILE__). '/includes/services/wsl.authentication.php' ); // Authenticate users via social networks. <- that's the most important script.195 require_once( dirname(__FILE__). '/includes/services/wsl.mail.notification.php' ); // Emails and notifications.196 require_once( dirname(__FILE__). '/includes/services/wsl.user.avatar.php' ); // Displaying the user avatar when available on the comment section197 require_once( dirname(__FILE__). '/includes/services/wsl.user.data.php' ); // User data functions (database related)198 require_once( dirname(__FILE__). '/includes/services/wsl.utilities.php' ); // Few utilities and functions199 require_once( dirname(__FILE__). '/includes/services/wsl.watchdog.php' ); // Logging agent194 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/services/wsl.authentication.php' ); // Authenticate users via social networks. <- that's the most important script. 195 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/services/wsl.mail.notification.php' ); // Emails and notifications. 196 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/services/wsl.user.avatar.php' ); // Displaying the user avatar when available on the comment section 197 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/services/wsl.user.data.php' ); // User data functions (database related) 198 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/services/wsl.utilities.php' ); // Few utilities and functions 199 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/services/wsl.watchdog.php' ); // Logging agent 200 200 201 201 # WSL Widget and GUIs generators 202 require_once( dirname(__FILE__). '/includes/widgets/wsl.auth.widget.php' ); // Authentication widget generators (where WSL widget/icons are displayed)203 require_once( dirname(__FILE__). '/includes/widgets/wsl.complete.registration.php' ); // Force users to complete their profile after they register.204 require_once( dirname(__FILE__). '/includes/widgets/wsl.account.linking.php' ); // Planned for WSL 2.3.205 require_once( dirname(__FILE__). '/includes/widgets/wsl.error.pages.php' ); // Generate WSL notices end errors pages.206 require_once( dirname(__FILE__). '/includes/widgets/wsl.loading.screens.php' ); // Generate WSL loading screens.202 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/widgets/wsl.auth.widget.php' ); // Authentication widget generators (where WSL widget/icons are displayed) 203 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/widgets/wsl.complete.registration.php' ); // Force users to complete their profile after they register. 204 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/widgets/wsl.account.linking.php' ); // Planned for WSL 2.3. 205 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/widgets/wsl.error.pages.php' ); // Generate WSL notices end errors pages. 206 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/widgets/wsl.loading.screens.php' ); // Generate WSL loading screens. 207 207 208 208 # WSL Admin UI 209 209 if( is_admin() ) 210 210 { 211 require_once( dirname(__FILE__). '/includes/admin/wsl.admin.ui.php' ); // The entry point to WSL Admin interfaces211 require_once( WORDPRESS_SOCIAL_LOGIN_ABS_PATH . '/includes/admin/wsl.admin.ui.php' ); // The entry point to WSL Admin interfaces 212 212 } 213 213
Note: See TracChangeset
for help on using the changeset viewer.