', '' ) ?>

create() ); $icl_edit_languages->render(); return; } $sitepress_settings = get_option( 'icl_sitepress_settings' ); $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' ); $setup_wizard_step = $sitepress->get_setting( 'setup_wizard_step' ); $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(); 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 = $sitepress->get_inactive_content(); } global $language_switcher_defaults, $language_switcher_defaults_alt; $theme_wpml_config_file = WPML_Config::get_theme_wpml_config_file(); ?> noscript_notice() ?>

get_active_languages()) < 2 || $setup_wizard_step == 2){ $sw_width = 50; }elseif($setup_wizard_step == 3){ $sw_width = 75; }else{ $sw_width = 90; } include WPML_PLUGIN_PATH . '/menu/setup/setup_001.php'; } /* setup wizard */ if ( ! $existing_content_language_verified || $setup_wizard_step <= 1 ): ?> render(); ?> 1)): ?>

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

0, 'page' => 0, 'category' => 0, 'post_tag' => 0, ); $t_posts = $t_pages = $t_cats = $t_tags = 0; foreach ( $inactive_content as $language => $ic ) { $inactive_content_data[ $language ] = array( 'post' => 0, 'page' => 0, 'category' => 0, 'post_tag' => 0, ); if ( array_key_exists( 'post', $ic ) ) { $inactive_content_data[ $language ]['post'] += (int) $ic['post']; $inactive_content_totals['post'] += (int) $ic['post']; } if ( array_key_exists( 'page', $ic ) ) { $inactive_content_data[ $language ]['page'] += (int) $ic['page']; $inactive_content_totals['page'] += (int) $ic['page']; } if ( array_key_exists( 'category', $ic ) ) { $inactive_content_data[ $language ]['category'] += (int) $ic['category']; $inactive_content_totals['category'] += (int) $ic['category']; } if ( array_key_exists( 'post_tag', $ic ) ) { $inactive_content_data[ $language ]['post_tag'] += (int) $ic['post_tag']; $inactive_content_totals['post_tag'] += (int) $ic['post_tag']; } } ?>

$inactive_content_counts ): ?>
/>
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();