File manager - Edit - /home/theblueo/questionnaire/wp-content/plugins/user-registration/includes/shortcodes/class-ur-shortcode-login.php
Back
<?php /** * Login Shortcodes * * Show the login form * * @class UR_Shortcode_Login * @version 1.0.0 * @package UserRegistration/Shortcodes/Login * @category Shortcodes * @author WPEverest */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * UR_Shortcode_Login Class. */ class UR_Shortcode_Login { /** * Get the shortcode content. * * @param array $atts * @return string */ public static function get( $atts ) { return UR_Shortcodes::shortcode_wrapper( array( __CLASS__, 'output' ), $atts ); } /** * Output the shortcode. * * @param array $atts */ public static function output( $atts ) { global $wp, $post; $redirect_url = isset( $atts['redirect_url'] ) ? trim( $atts['redirect_url'] ) : ''; $recaptcha_enabled = get_option( 'user_registration_login_options_enable_recaptcha', 'no' ); if ( 'yes' == $recaptcha_enabled || '1' == $recaptcha_enabled ) { wp_enqueue_script( 'user-registration' ); } if ( ! is_user_logged_in() ) { $recaptcha_node = ur_get_recaptcha_node( $recaptcha_enabled, 'login' ); if ( isset( $wp->query_vars['ur-lost-password'] ) ) { UR_Shortcode_My_Account::lost_password(); } else { ur_get_template( 'myaccount/form-login.php', array( 'recaptcha_node' => $recaptcha_node, 'redirect' => $redirect_url, ) ); } } else { echo apply_filters( 'user_registration_logged_in_message', sprintf( __( 'You are already logged in. <a href="%s">Log out?</a>', 'user-registration' ), ur_logout_url() ) ); } } }
| ver. 1.4 |
Github
|
.
| PHP 7.0.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings