| 1 |
<?php |
| 2 |
/** |
| 3 |
* Displays the wizard notice content |
| 4 |
* |
| 5 |
* @package Polylang |
| 6 |
* |
| 7 |
* @since 2.7 |
| 8 |
*/ |
| 9 |
|
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
exit; // Don't access directly. |
| 12 |
}; |
| 13 |
|
| 14 |
$wizard_url = add_query_arg( |
| 15 |
array( |
| 16 |
'page' => 'mlang_wizard', |
| 17 |
), |
| 18 |
admin_url( 'admin.php' ) |
| 19 |
); |
| 20 |
?> |
| 21 |
<p> |
| 22 |
<strong> |
| 23 |
<?php |
| 24 |
printf( |
| 25 |
/* translators: %s is the plugin name */ |
| 26 |
esc_html__( 'Welcome to %s', 'polylang' ), |
| 27 |
esc_html( POLYLANG ) |
| 28 |
); |
| 29 |
?> |
| 30 |
</strong> |
| 31 |
<?php |
| 32 |
echo ' – '; |
| 33 |
esc_html_e( 'You‘re almost ready to translate your contents!', 'polylang' ); |
| 34 |
?> |
| 35 |
</p> |
| 36 |
<p class="buttons"> |
| 37 |
<a |
| 38 |
href="<?php echo esc_url( $wizard_url ); ?>" |
| 39 |
class="button button-primary" |
| 40 |
> |
| 41 |
<?php esc_html_e( 'Run the Setup Wizard', 'polylang' ); ?> |
| 42 |
</a> |
| 43 |
<a |
| 44 |
class="button button-secondary skip" |
| 45 |
href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'pll-hide-notice', 'wizard' ), 'wizard', '_pll_notice_nonce' ) ); ?>" |
| 46 |
> |
| 47 |
<?php esc_html_e( 'Skip setup', 'polylang' ); ?> |
| 48 |
</a> |
| 49 |
</p> |
| 50 |
|