| 1 |
<?php |
| 2 |
/** |
| 3 |
* Displays the wizard unstranslated content step |
| 4 |
* |
| 5 |
* @package Polylang |
| 6 |
* |
| 7 |
* @since 2.7 |
| 8 |
* |
| 9 |
* @var PLL_Model $model `PLL_Model` instance. |
| 10 |
*/ |
| 11 |
|
| 12 |
defined( 'ABSPATH' ) || exit; |
| 13 |
|
| 14 |
$languages_list = $model->languages->get_list(); |
| 15 |
?> |
| 16 |
<h2><?php esc_html_e( 'Content without language', 'polylang' ); ?></h2> |
| 17 |
<p> |
| 18 |
<?php esc_html_e( 'There are posts, pages, categories or tags without language.', 'polylang' ); ?><br /> |
| 19 |
<?php esc_html_e( 'For your site to work correctly, you need to assign a language to all your contents.', 'polylang' ); ?><br /> |
| 20 |
<?php esc_html_e( 'The selected language below will be applied to all your content without an assigned language.', 'polylang' ); ?> |
| 21 |
</p> |
| 22 |
<div class="form-field"> |
| 23 |
<label for="lang_list"><?php esc_html_e( 'Choose the language to be assigned', 'polylang' ); ?></label> |
| 24 |
<select name="language" id="lang_list"> |
| 25 |
<?php |
| 26 |
foreach ( $languages_list as $lg ) { |
| 27 |
printf( |
| 28 |
'<option value="%1$s" data-flag-html="%3$s " data-language-name="%2$s"%4$s>%2$s - %1$s</option>' . "\n", |
| 29 |
esc_attr( $lg->locale ), |
| 30 |
esc_html( $lg->name ), |
| 31 |
esc_html( $lg->get_admin_flag( 'aria-hidden' ) ), |
| 32 |
$lg->is_default ? ' selected="selected"' : '' |
| 33 |
); |
| 34 |
} |
| 35 |
?> |
| 36 |
</select> |
| 37 |
</div> |
| 38 |
|