', '' ) ?>

create() ); $icl_edit_languages->render(); return; } $sitepress_settings = get_option( 'icl_sitepress_settings' ); $setup_wizard_step = (int) $sitepress->get_setting( 'setup_wizard_step' ); $setup_complete = $sitepress->get_setting( 'setup_complete' ); $active_languages = $sitepress->get_active_languages(); $hidden_languages = $sitepress->get_setting( 'hidden_languages' ); $show_untranslated_blog_posts = $sitepress->get_setting( 'show_untranslated_blog_posts' ); $automatic_redirect = $sitepress->get_setting( 'automatic_redirect' ); $setting_urls = $sitepress->get_setting( 'urls' ); $existing_content_language_verified = $sitepress->get_setting( 'existing_content_language_verified' ); $language_negotiation_type = $sitepress->get_setting( 'language_negotiation_type' ); $seo = $sitepress->get_setting( 'seo' ); $default_language = $sitepress->get_default_language(); $all_languages = $sitepress->get_languages( $sitepress->get_admin_language() ); $sample_lang = false; $default_language_details = false; $wp_api = $sitepress->get_wp_api(); $should_hide_admin_language = $wp_api->version_compare_naked( get_bloginfo( 'version' ), '4.7', '>=' ); $encryptor = new WPML_Data_Encryptor(); $inactive_content = null; if(!$existing_content_language_verified ){ // try to determine the blog language $blog_current_lang = 0; if($blog_lang = get_option('WPLANG')){ $exp = explode('_',$blog_lang); $blog_current_lang = $wpdb->get_var( $wpdb->prepare("SELECT code FROM {$wpdb->prefix}icl_languages WHERE code= %s", $exp[0])); } if(!$blog_current_lang && defined('WPLANG') && WPLANG != ''){ $blog_current_lang = $wpdb->get_var($wpdb->prepare("SELECT code FROM {$wpdb->prefix}icl_languages WHERE default_locale=%s", WPLANG)); if(!$blog_current_lang){ $blog_lang = WPLANG; $exp = explode('_',$blog_lang); $blog_current_lang = $wpdb->get_var( $wpdb->prepare("SELECT code FROM {$wpdb->prefix}icl_languages WHERE code= %s", $exp[0])); } } if(!$blog_current_lang){ $blog_current_lang = 'en'; } $languages = $sitepress->get_languages( $blog_current_lang, false, true, false, 'display_name' ); }else{ $languages = $sitepress->get_languages( $sitepress->get_admin_language(), false, true, false, 'display_name' ); foreach($active_languages as $lang){ if($lang['code'] != $default_language ){ $sample_lang = $lang; break; } } $default_language_details = $sitepress->get_language_details( $default_language ); $inactive_content = new WPML_Inactive_Content( $wpdb, $sitepress->get_current_language() ); } global $language_switcher_defaults, $language_switcher_defaults_alt; $theme_wpml_config_file = WPML_Config::get_theme_wpml_config_file(); ?> noscript_notice() ?>

'WPML', 'plugin_uri' => 'http://wpml.org', 'plugin_site' => 'wpml.org', 'use_styles' => true, 'privacy_policy_url' => 'https://wpml.org/documentation/privacy-policy-and-gdpr-compliance/?utm_source=wpmlplugin&utm_campaign=compatibility-reporting&utm_medium=wpml-setup&utm_term=privacy-policy-and-gdpr-compliance', 'plugin_repository' => 'wpml', ); if ( ! $sitepress->is_setup_complete() ) { $wizard_progress = new WPML_Setup_Wizard_Progress( $setup_wizard_step, array( 1 => __( '1. Content language', 'sitepress' ), 2 => __( '2. Translation languages', 'sitepress' ), 3 => __( '3. Language switcher', 'sitepress' ), 4 => __( '4. Compatibility', 'sitepress' ), 5 => __( '5. Registration', 'sitepress' ), ) ); $wizard_progress->render(); } if ( ! $existing_content_language_verified || $setup_wizard_step <= 1 ): ?> render(); ?> 1 ): ?>

    (' . esc_html__( 'hidden', 'sitepress' ) . ')'; }else{ $hidden = ''; } ?>
  • class="selected"> />

has_entries() ) : ?>
render(); ?>
/>

get_site_key('wpml'); ?>

style="display: none;" class="button-primary button-large" name="finish" value="" type="submit" />

style="display: none;" class="button-primary button-large button" name="finish" value="" type="submit" />

', '' ) ?>

', '' ) ?>

1): ?>

    get_abs_home(); $icl_folder_url_disabled = $validator->validate_langs_in_dirs ( $sample_lang['code'] ); ?>
  • render(); endif; ?>

1 && ! $should_hide_admin_language): ?>

profile page.', 'sitepress' ), 'profile.php#wpml' ) ?>

1): ?>

set_setting('hidden_languages', $hidden_languages); echo '

'; printf( __( 'You can enable its/their display for yourself, in your profile page.', 'sitepress' ), 'profile.php#wpml' ); echo '

'; } else { esc_html_e( 'All languages are currently displayed.', 'sitepress' ); } ?>

style="display: none;"> ' . $redirect_warning_2 . ''; ?>

render_menu(); ?>

save_settings();