tier-pricing-table
/
src
/
Addons
/
NonLoggedInUsers
/
Wholesale
/
views
/
emails
/
admin-new-application.php
admin-new-application.php in Tiered Pricing Table for WooCommerce 8.0.2, at src/Addons/NonLoggedInUsers/Wholesale/views/emails/admin-new-application.php
| 1 | <?php |
| 2 | /** |
| 3 | * Admin e-mail: a new wholesale application. |
| 4 | * |
| 5 | * Override it by copying this file to yourtheme/woocommerce/emails/admin-new-application.php. |
| 6 | * |
| 7 | * @var \TierPricingTable\Addons\NonLoggedInUsers\Wholesale\Models\WholesaleApplication $application |
| 8 | * @var string $emailHeading |
| 9 | * @var bool $sent_to_admin |
| 10 | * @var bool $plain_text |
| 11 | * @var WC_Email $email |
| 12 | */ |
| 13 | |
| 14 | if ( ! defined( 'ABSPATH' ) ) { |
| 15 | exit; |
| 16 | } |
| 17 | |
| 18 | do_action( 'woocommerce_email_header', $emailHeading, $email ); ?> |
| 19 | |
| 20 | <p><?php esc_html_e( 'A customer applied for a wholesale account. Review the application and approve or reject it.', 'tier-pricing-table' ); ?></p> |
| 21 | |
| 22 | <h2><?php esc_html_e( 'Application details', 'tier-pricing-table' ); ?></h2> |
| 23 | |
| 24 | <table class="td" cellspacing="0" cellpadding="6" style="width: 100%%; margin-bottom: 40px; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1"> |
| 25 | <tbody> |
| 26 | <?php foreach ( $application->getDetails() as $label => $value ) : ?> |
| 27 | <tr> |
| 28 | <th class="td" scope="row" style="text-align:left; width: 35%%;"><?php echo esc_html( $label ); ?></th> |
| 29 | <td class="td" style="text-align:left;"><?php echo nl2br( esc_html( $value ) ); ?></td> |
| 30 | </tr> |
| 31 | <?php endforeach; ?> |
| 32 | </tbody> |
| 33 | </table> |
| 34 | |
| 35 | <p><a href="<?php echo esc_url( $application->getAdminUrl() ); ?>"><?php esc_html_e( 'Open the application', 'tier-pricing-table' ); ?></a></p> |
| 36 | |
| 37 | <?php |
| 38 | if ( $additionalContent = $email->get_additional_content() ) { |
| 39 | echo wp_kses_post( wpautop( wptexturize( $additionalContent ) ) ); |
| 40 | } |
| 41 | |
| 42 | do_action( 'woocommerce_email_footer', $email ); |
| 43 |