woocommerce/templates/auth/form-grant-access.php

35 lines
1.0 KiB
PHP
Raw Normal View History

2015-04-22 15:27:12 +00:00
<?php
/**
* Auth form grant access
*
* @author WooThemes
* @package WooCommerce/Templates/Auth
* @version 2.4.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
2015-04-22 20:21:42 +00:00
$user = wp_get_current_user();
2015-04-22 15:27:12 +00:00
?>
<?php do_action( 'woocommerce_auth_page_header' ); ?>
2015-04-23 19:37:59 +00:00
<h1><?php printf( __( 'Grant "%s" permissions to "%s".', 'woocommerce' ), esc_html( $scope ), wc_clean( $app_name ) ); ?></h1>
2015-04-22 15:27:12 +00:00
2015-04-22 20:02:15 +00:00
<?php wc_print_notices(); ?>
<?php echo get_avatar( $user->ID, 70 ); ?>
2015-04-22 20:21:42 +00:00
<p><?php printf( __( 'Logged in as %s.', 'woocommerce' ), wc_clean( $user->display_name ) ); ?></p>
2015-04-22 15:27:12 +00:00
<a href="<?php echo esc_url( $granted_url ); ?>" class="button button-primary"><?php _e( 'Authorize', 'woocommerce' ); ?></a>
2015-04-22 20:21:42 +00:00
<p><?php printf( __( 'Not %s? %s', 'woocommerce' ), wc_clean( $user->display_name ), '<a href="' . esc_url( $logout_url ) . '">' . __( 'Logout', 'woocommerce' ) . '</a>' ); ?></p>
2015-04-22 15:27:12 +00:00
2015-04-23 19:37:59 +00:00
<a href="<?php echo esc_url( $return_url ); ?>"><?php printf( __( 'Return To %s', 'woocommerce' ), wc_clean( $app_name ) ); ?></a>
2015-04-22 20:02:15 +00:00
2015-04-22 15:27:12 +00:00
<?php do_action( 'woocommerce_auth_page_footer' ); ?>