| 1 |
<?php |
| 2 |
/** |
| 3 |
* The Template for displaying onboarding (welcome) admin notice. |
| 4 |
* |
| 5 |
* @since 1.0.0 |
| 6 |
* |
| 7 |
* @package woo-additional-terms |
| 8 |
*/ |
| 9 |
|
| 10 |
defined( 'ABSPATH' ) || exit; |
| 11 |
defined( 'WC_VERSION' ) || exit; |
| 12 |
|
| 13 |
?> |
| 14 |
|
| 15 |
<div id="woo-additional-terms-dismiss-onboarding" class="notice notice-info is-dismissible" data-action="onboarding"> |
| 16 |
<p> |
| 17 |
<i class="dashicons dashicons-admin-settings"></i> |
| 18 |
<?php |
| 19 |
printf( |
| 20 |
/* translators: 1: Plugin name, 2: Open anchor tag, 3: Close anchor tag, 4: Open anchor tag, 5: Close anchor tag. */ |
| 21 |
esc_html_x( 'Thanks for installing %1$s plugin! To get started, visit the %2$sdocumentation%3$s or %4$splugin’s settings page%5$s.', 'admin notice', 'woo-additional-terms' ), |
| 22 |
sprintf( |
| 23 |
'<strong>%s</strong>', |
| 24 |
esc_html_x( 'Additional Terms for WooCommerce', 'plugin name', 'woo-additional-terms' ) |
| 25 |
), |
| 26 |
sprintf( |
| 27 |
'<a href="%s" target="_blank" rel="noopener noreferrer nofollow">', |
| 28 |
esc_url( $args['help_uri'] ) |
| 29 |
), |
| 30 |
'</a>', |
| 31 |
sprintf( |
| 32 |
'<a href="%s" class="notice-dismiss-later" target="_self">', |
| 33 |
esc_url( $args['settings_uri'] ) |
| 34 |
), |
| 35 |
'</a>' |
| 36 |
); |
| 37 |
?> |
| 38 |
</p> |
| 39 |
</div> |
| 40 |
|
| 41 |
<?php |
| 42 |
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */ |
| 43 |
|