| @@ -1,32 +1,59 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | - exit; // Exit if accessed directly | |
| 3 | + exit; | |
| 4 | 4 | } |
| 5 | 5 | |
| 6 | - \ABlocks\Helper::get_template( 'email/template-header.php' ); | |
| 6 | +\ABlocks\Helper::get_template( 'email/template-header.php' ); | |
| 7 | 7 | ?> |
| 8 | 8 | <div class="ablocks-container"> |
| 9 | - <div class="ablocks-content"> | |
| 9 | + <div class="ablocks-content"> | |
| 10 | 10 | <div class="ablocks-wrapper"> |
| 11 | - <h5 class="ablocks-main-heading"><?php esc_html_e( 'Email verification', 'ablocks' ); ?></h5> | |
| 11 | + | |
| 12 | + <h5 class="ablocks-main-heading"> | |
| 13 | + <?php esc_html_e( 'Email verification', 'ablocks' ); ?> | |
| 14 | + </h5> | |
| 15 | + | |
| 12 | 16 | <div class="ablocks-entry-content"> |
| 13 | - <p><?php esc_html_e( 'Hello', 'ablocks' ); ?> <?php echo esc_html( $email ); ?>,</p> | |
| 14 | - <p><?php esc_html_e( 'Thank you for registering with us. Please click the link below to verify your email address:', 'ablocks' ); ?></p> | |
| 15 | - <p><a href="<?php echo esc_url( $url ); ?>"><?php esc_html_e( 'Verify Your Email', 'ablocks' ); ?></a></p> | |
| 17 | + <p> | |
| 18 | + <?php esc_html_e( 'Hello', 'ablocks' ); ?> | |
| 19 | + <?php echo esc_html( $email ); ?>, | |
| 20 | + </p> | |
| 21 | + | |
| 22 | + <p> | |
| 23 | + <?php esc_html_e( 'Thank you for registering with us. Please click the link below to verify your email address:', 'ablocks' ); ?> | |
| 24 | + </p> | |
| 25 | + | |
| 26 | + <p> | |
| 27 | + <a href="<?php echo esc_url( $url ); ?>"> | |
| 28 | + <?php esc_html_e( 'Verify Your Email', 'ablocks' ); ?> | |
| 29 | + </a> | |
| 30 | + </p> | |
| 31 | + | |
| 16 | 32 | <p><?php esc_html_e( 'If you did not register, please ignore this email.', 'ablocks' ); ?></p> |
| 17 | - <p><?php esc_html_e( 'Best regards', 'ablocks' ); ?>,<br><?php echo esc_attr( get_bloginfo( 'name' ) ); ?></p> | |
| 33 | + | |
| 34 | + <p> | |
| 35 | + <?php esc_html_e( 'Best regards', 'ablocks' ); ?>,<br> | |
| 36 | + <?php echo esc_html( get_bloginfo( 'name' ) ); ?> | |
| 37 | + </p> | |
| 18 | 38 | </div> |
| 39 | + | |
| 19 | 40 | <div class="ablocks-footer"> |
| 20 | - © <?php | |
| 21 | - $url = wp_parse_url( get_bloginfo( 'url' ) ); | |
| 22 | - echo sanitize_text_field( $url['host'] . ':' . $url['port'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 41 | + © | |
| 42 | + <?php | |
| 43 | + $site_url = wp_parse_url( get_bloginfo( 'url' ) ); | |
| 44 | + | |
| 45 | + if ( ! empty( $site_url['host'] ) ) { | |
| 46 | + echo esc_html( $site_url['host'] ); | |
| 47 | + | |
| 48 | + if ( ! empty( $site_url['port'] ) ) { | |
| 49 | + echo ':' . esc_html( $site_url['port'] ); | |
| 50 | + } | |
| 51 | + } | |
| 23 | 52 | ?> |
| 24 | - <?php // echo wp_kses_post( $footer ); | |
| 25 | - // phpcs::ignore Squiz.PHP.CommentedOutCode.Found | |
| 26 | - ?> | |
| 27 | 53 | </div> |
| 28 | - </td> | |
| 54 | + | |
| 55 | + </div> | |
| 29 | 56 | </div> |
| 30 | 57 | </div> |
| 31 | 58 | <?php |
| 32 | - \ABlocks\Helper::get_template( 'email/template-footer.php' ); | |
| 59 | +\ABlocks\Helper::get_template( 'email/template-footer.php' ); | |