PluginProbe
Polylang / trunk
Polylang vtrunk
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
polylang / src / modules / wizard / view-wizard-step-untranslated-contents.php

view-wizard-step-untranslated-contents.php in Polylang trunk, at src/modules/wizard/view-wizard-step-untranslated-contents.php

38 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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