footer.php
5 years ago
form-grant-access.php
5 years ago
form-login.php
5 years ago
header.php
5 years ago
form-grant-access.php
62 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Auth form grant access |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/auth/form-grant-access.php. |
| 6 | * |
| 7 | * HOWEVER, on occasion WooCommerce will need to update template files and you |
| 8 | * (the theme developer) will need to copy the new files to your theme to |
| 9 | * maintain compatibility. We try to do this as little as possible, but it does |
| 10 | * happen. When this occurs the version of the template file will be bumped and |
| 11 | * the readme will list any important changes. |
| 12 | * |
| 13 | * @see https://docs.woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates\Auth |
| 15 | * @version 4.3.0 |
| 16 | */ |
| 17 | |
| 18 | defined( 'ABSPATH' ) || exit; |
| 19 | ?> |
| 20 | |
| 21 | <?php do_action( 'woocommerce_auth_page_header' ); ?> |
| 22 | |
| 23 | <h1> |
| 24 | <?php |
| 25 | /* Translators: %s App name. */ |
| 26 | printf( esc_html__( '%s would like to connect to your store', 'woocommerce' ), esc_html( $app_name ) ); |
| 27 | ?> |
| 28 | </h1> |
| 29 | |
| 30 | <?php wc_print_notices(); ?> |
| 31 | |
| 32 | <p> |
| 33 | <?php |
| 34 | /* Translators: %1$s App name, %2$s scope. */ |
| 35 | printf( esc_html__( 'This will give "%1$s" %2$s access which will allow it to:', 'woocommerce' ), '<strong>' . esc_html( $app_name ) . '</strong>', '<strong>' . esc_html( $scope ) . '</strong>' ); |
| 36 | ?> |
| 37 | </p> |
| 38 | |
| 39 | <ul class="wc-auth-permissions"> |
| 40 | <?php foreach ( $permissions as $permission ) : ?> |
| 41 | <li><?php echo esc_html( $permission ); ?></li> |
| 42 | <?php endforeach; ?> |
| 43 | </ul> |
| 44 | |
| 45 | <div class="wc-auth-logged-in-as"> |
| 46 | <?php echo get_avatar( $user->ID, 70 ); ?> |
| 47 | <p> |
| 48 | <?php |
| 49 | /* Translators: %s display name. */ |
| 50 | printf( esc_html__( 'Logged in as %s', 'woocommerce' ), esc_html( $user->display_name ) ); |
| 51 | ?> |
| 52 | <a href="<?php echo esc_url( $logout_url ); ?>" class="wc-auth-logout"><?php esc_html_e( 'Logout', 'woocommerce' ); ?></a> |
| 53 | </p> |
| 54 | </div> |
| 55 | |
| 56 | <p class="wc-auth-actions"> |
| 57 | <a href="<?php echo esc_url( $granted_url ); ?>" class="button button-primary wc-auth-approve"><?php esc_html_e( 'Approve', 'woocommerce' ); ?></a> |
| 58 | <a href="<?php echo esc_url( $return_url ); ?>" class="button wc-auth-deny"><?php esc_html_e( 'Deny', 'woocommerce' ); ?></a> |
| 59 | </p> |
| 60 | |
| 61 | <?php do_action( 'woocommerce_auth_page_footer' ); ?> |
| 62 |