setSrcDirectory( 'assets' )->setDistDirectory( 'dist' ); wp_enqueue_script( 'custom-signup', $assets->getPath( 'scripts/custom-signup.js' ) ); $action = $_GET['action'] ?? 'signup'; if ( $action === 'signup' ) { $main_title = esc_html__( 'Create a new account', 'pressbooks-aldine' ); $title = esc_html__( 'Sign up with your email and a password', 'pressbooks-aldine' ); $url = home_url() . '/auth/?action=signup'; $button_cta = esc_html__( 'Create Your Account', 'pressbooks-aldine' ); $invite_cta = esc_html__( 'Already have an account?', 'pressbooks-aldine' ); $invite_cta_link = home_url() . '/auth/?action=signin'; $invite_cta_link_text = esc_html__( 'Sign in', 'pressbooks-aldine' ); $sign_action = esc_html__( 'Or sign up with:', 'pressbooks-aldine' ); } else { $main_title = esc_html__( 'Welcome back!', 'pressbooks-aldine' ); $title = esc_html__( 'Sign in', 'pressbooks-aldine' ); $url = home_url() . '/auth/?action=signin'; $button_cta = esc_html__( 'Sign in', 'pressbooks-aldine' ); $invite_cta = esc_html__( 'Don\'t have an account?', 'pressbooks-aldine' ); $invite_cta_link = home_url() . '/auth/?action=signup'; $invite_cta_link_text = esc_html__( 'Register here', 'pressbooks-aldine' ); $sign_action = esc_html__( 'Or sign in with:', 'pressbooks-aldine' ); } // Implement this hook to process the form. do_action( 'pb_custom_signup_form_handler' ); $errors = apply_filters( 'pb_custom_signup_errors', [] ); $result = apply_filters( 'pb_custom_signup_message', [] ); ?> >
today', 'pressbooks-aldine' ); ?>