Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/sitepres.../menu
File: languages.php
<span style="display: none;" id="wpml_show_page_on_root_x"><?php esc_html_e( 'Please save the settings first by clicking Save.', 'sitepress' ) ?></span>
[500] Fix | Delete
[501] Fix | Delete
<span id="wpml_show_page_on_root_details" <?php if($setting_urls['show_on_root'] !== 'page'):
[502] Fix | Delete
?>style="display:none"<?php endif; ?>>
[503] Fix | Delete
<?php
[504] Fix | Delete
$rp_exists = false;
[505] Fix | Delete
if(!empty( $setting_urls['root_page'])){
[506] Fix | Delete
$rp = get_post( $setting_urls['root_page']);
[507] Fix | Delete
if($rp && $rp->post_status !== 'trash'){
[508] Fix | Delete
$rp_exists = true;
[509] Fix | Delete
}
[510] Fix | Delete
}
[511] Fix | Delete
?>
[512] Fix | Delete
<?php if($rp_exists): ?>
[513] Fix | Delete
<a href="<?php echo get_edit_post_link( $setting_urls['root_page']) ?>">
[514] Fix | Delete
<?php esc_html_e( 'Edit root page.', 'sitepress' ) ?>
[515] Fix | Delete
</a>
[516] Fix | Delete
<?php else: ?>
[517] Fix | Delete
<a href="<?php echo admin_url('post-new.php?post_type=page&wpml_root_page=1') ?>">
[518] Fix | Delete
<?php esc_html_e( 'Create root page.', 'sitepress' ) ?>
[519] Fix | Delete
</a>
[520] Fix | Delete
<?php endif; ?>
[521] Fix | Delete
</span>
[522] Fix | Delete
<p id="icl_hide_language_switchers" class="sub-section" <?php if($setting_urls['show_on_root'] !== 'page'): ?>style="display:none"<?php endif; ?>>
[523] Fix | Delete
<label>
[524] Fix | Delete
<input type="checkbox" name="hide_language_switchers" id="icl_hide_language_switchers"
[525] Fix | Delete
value="1" <?php checked( $setting_urls['hide_language_switchers']) ?> />
[526] Fix | Delete
<?php esc_html_e( 'Hide language switchers on the root page', 'sitepress' ) ?>
[527] Fix | Delete
</label>
[528] Fix | Delete
</p>
[529] Fix | Delete
[530] Fix | Delete
</label>
[531] Fix | Delete
</li>
[532] Fix | Delete
[533] Fix | Delete
[534] Fix | Delete
</ul>
[535] Fix | Delete
[536] Fix | Delete
</div>
[537] Fix | Delete
</div>
[538] Fix | Delete
[539] Fix | Delete
<?php if ( $icl_folder_url_disabled ): ?>
[540] Fix | Delete
<div class="icl_error_text" style="margin:10px;">
[541] Fix | Delete
<p>
[542] Fix | Delete
<?php esc_html_e( 'It looks like languages per directories will not function.', 'sitepress' ) ?>
[543] Fix | Delete
<a href="#" onClick="jQuery(this).parent().parent().next().toggle();return false">
[544] Fix | Delete
<?php esc_html_e( 'Details', 'sitepress' ) ?>
[545] Fix | Delete
</a>
[546] Fix | Delete
</p>
[547] Fix | Delete
</div>
[548] Fix | Delete
<div class="icl_error_text" style="display:none;margin:10px;">
[549] Fix | Delete
<p><?php esc_html_e( 'This can be a result of either:', 'sitepress' ) ?></p>
[550] Fix | Delete
<ul>
[551] Fix | Delete
<li><?php esc_html_e( "WordPress is installed in a directory (not root) and you're using default links.", 'sitepress' ) ?></li>
[552] Fix | Delete
<li><?php esc_html_e( 'URL rewriting is not enabled in your web server.', 'sitepress' ) ?></li>
[553] Fix | Delete
<li><?php esc_html_e( 'The web server cannot write to the .htaccess file', 'sitepress' ) ?></li>
[554] Fix | Delete
</ul>
[555] Fix | Delete
<a href="https://wpml.org/?page_id=1010"><?php esc_html_e( 'How to fix', 'sitepress' ) ?></a>
[556] Fix | Delete
<p>
[557] Fix | Delete
<?php printf(__('When WPML accesses <a target="_blank" href="%s">%s</a> it gets:', 'sitepress'), $__url = $validator->get_validation_url($sample_lang['code']), $__url); ?>
[558] Fix | Delete
<br/>
[559] Fix | Delete
<?php
[560] Fix | Delete
echo $validator->print_error_response ();
[561] Fix | Delete
?>
[562] Fix | Delete
</p>
[563] Fix | Delete
<p>
[564] Fix | Delete
<?php printf( esc_html__( 'The expected value is: %s', 'sitepress' ), '<br /><strong>&lt;!--' . get_home_url() . '--&gt;</strong>' ) ?>
[565] Fix | Delete
</p>
[566] Fix | Delete
</div>
[567] Fix | Delete
<?php endif; ?>
[568] Fix | Delete
</li>
[569] Fix | Delete
<?php
[570] Fix | Delete
global $wpmu_version;
[571] Fix | Delete
if ( isset( $wpmu_version ) || ( function_exists( 'is_multisite' ) && is_multisite() && ( ! defined( 'WPML_SUNRISE_MULTISITE_DOMAINS' ) || ! WPML_SUNRISE_MULTISITE_DOMAINS ) ) ) {
[572] Fix | Delete
$icl_lnt_disabled = 'disabled="disabled" ';
[573] Fix | Delete
}else{
[574] Fix | Delete
$icl_lnt_disabled = '';
[575] Fix | Delete
}
[576] Fix | Delete
?>
[577] Fix | Delete
<li>
[578] Fix | Delete
<label>
[579] Fix | Delete
<input <?php echo $icl_lnt_disabled ?>id="icl_lnt_domains" type="radio" name="icl_language_negotiation_type"
[580] Fix | Delete
value="2" <?php checked( 2 == $language_negotiation_type ) ?> />
[581] Fix | Delete
<?php esc_html_e( 'A different domain per language', 'sitepress' ) ?>
[582] Fix | Delete
<?php if($icl_lnt_disabled): ?>
[583] Fix | Delete
<span class="icl_error_text"><?php esc_html_e( 'This option is not yet available for Multisite installs', 'sitepress' ) ?></span>
[584] Fix | Delete
<?php endif; ?>
[585] Fix | Delete
<?php if(defined('WPML_SUNRISE_MULTISITE_DOMAINS') && WPML_SUNRISE_MULTISITE_DOMAINS): ?>
[586] Fix | Delete
<span class="icl_error_text"><?php esc_html_e( 'Experimental', 'sitepress' ) ?></span>
[587] Fix | Delete
<?php endif; ?>
[588] Fix | Delete
</label>
[589] Fix | Delete
<?php wp_nonce_field('language_domains_nonce', '_icl_nonce_ldom', false); ?>
[590] Fix | Delete
<?php wp_nonce_field('validate_language_domain', 'validate_language_domain_nonce', false); ?>
[591] Fix | Delete
<div id="icl_lnt_domains_box">
[592] Fix | Delete
<?php if ( (int) $language_negotiation_type === 2 ):
[593] Fix | Delete
$domains_box = new WPML_Lang_Domains_Box( $sitepress );
[594] Fix | Delete
echo $domains_box->render();
[595] Fix | Delete
endif; ?>
[596] Fix | Delete
</div>
[597] Fix | Delete
<div id="language_domain_xdomain_options" class="sub-section" <?php if( $language_negotiation_type != 2 ) echo ' style="display:none"' ?>>
[598] Fix | Delete
<p><?php esc_html_e( 'Pass session arguments between domains through the language switcher', 'sitepress' ) ?></p>
[599] Fix | Delete
<p>
[600] Fix | Delete
<label>
[601] Fix | Delete
<input type="radio" name="icl_xdomain_data"
[602] Fix | Delete
value="<?php echo WPML_XDOMAIN_DATA_GET ?>"
[603] Fix | Delete
<?php checked( WPML_XDOMAIN_DATA_GET === (int) $sitepress_settings['xdomain_data'] ) ?>/>
[604] Fix | Delete
<?php esc_html_e( 'Pass arguments via GET (the url)', 'sitepress' ) ?>
[605] Fix | Delete
</label>
[606] Fix | Delete
</p>
[607] Fix | Delete
<p>
[608] Fix | Delete
<label>
[609] Fix | Delete
<input type="radio" name="icl_xdomain_data"
[610] Fix | Delete
value="<?php echo WPML_XDOMAIN_DATA_POST ?>"
[611] Fix | Delete
<?php checked( WPML_XDOMAIN_DATA_POST === (int) $sitepress_settings['xdomain_data'] ) ?>/>
[612] Fix | Delete
<?php esc_html_e( 'Pass arguments via POST', 'sitepress' ) ?>
[613] Fix | Delete
</label>
[614] Fix | Delete
</p>
[615] Fix | Delete
<p>
[616] Fix | Delete
<label>
[617] Fix | Delete
<input type="radio" name="icl_xdomain_data"
[618] Fix | Delete
value="<?php echo WPML_XDOMAIN_DATA_OFF ?>"
[619] Fix | Delete
<?php checked( WPML_XDOMAIN_DATA_OFF === (int) $sitepress_settings['xdomain_data'] ) ?>/>
[620] Fix | Delete
<?php esc_html_e( 'Disable this feature', 'sitepress' ) ?>
[621] Fix | Delete
</label>
[622] Fix | Delete
</p>
[623] Fix | Delete
[624] Fix | Delete
<?php $encryptor_library = $encryptor->get_crypt_library(); ?>
[625] Fix | Delete
<?php if( $encryptor_library === 'mcrypt' || $encryptor_library === 'openssl' ): ?>
[626] Fix | Delete
<p><?php printf( esc_html__( 'The data will be encrypted with the %s algorithm.', 'sitepress' ),
[627] Fix | Delete
$encryptor_library === 'mcrypt' ? 'MCRYPT_RIJNDAEL_256' : 'AES-256-CTR' ) ?></p>
[628] Fix | Delete
<?php else: ?>
[629] Fix | Delete
<p><?php esc_html_e( 'Because encryption is not supported on your host, the data will only have a basic encoding with the bse64 algorithm.', 'sitepress' ) ?></p>
[630] Fix | Delete
<?php endif; ?>
[631] Fix | Delete
[632] Fix | Delete
<p><a href="https://wpml.org/?page_id=693147" target="_blank"><?php esc_html_e( 'Learn more about passing data between domains', 'sitepress' ) ?></a></p>
[633] Fix | Delete
[634] Fix | Delete
[635] Fix | Delete
</div>
[636] Fix | Delete
[637] Fix | Delete
</li>
[638] Fix | Delete
<li>
[639] Fix | Delete
<label>
[640] Fix | Delete
<input type="radio" name="icl_language_negotiation_type" value="3" <?php checked( 3 == $language_negotiation_type ) ?> />
[641] Fix | Delete
<?php esc_html_e( 'Language name added as a parameter', 'sitepress' ) ?>
[642] Fix | Delete
<span class="explanation-text">
[643] Fix | Delete
<?php echo sprintf( '(%s?lang=%s - %s)', get_home_url(), esc_html( $sample_lang['code'] ), esc_html( $sample_lang['display_name'] ) ) ?>
[644] Fix | Delete
</span>
[645] Fix | Delete
</label>
[646] Fix | Delete
</li>
[647] Fix | Delete
</ul>
[648] Fix | Delete
<div class="wpml-form-message" style="display:none;"></div>
[649] Fix | Delete
<div class="wpml-form-errors icl_form_errors" style="display: none;"></div>
[650] Fix | Delete
<p class="buttons-wrap">
[651] Fix | Delete
<span class="icl_ajx_response" id="icl_ajx_response2"></span>
[652] Fix | Delete
<input class="button button-primary" name="save" value="<?php esc_html_e( 'Save', 'sitepress' ) ?>" type="submit" />
[653] Fix | Delete
</p>
[654] Fix | Delete
</form>
[655] Fix | Delete
</div>
[656] Fix | Delete
</div> <!-- .wpml-section-url-format -->
[657] Fix | Delete
<?php endif; ?>
[658] Fix | Delete
<?php endif; ?>
[659] Fix | Delete
[660] Fix | Delete
<?php do_action( 'wpml_admin_after_languages_url_format' ); ?>
[661] Fix | Delete
[662] Fix | Delete
<?php if(!empty( $setup_complete ) && count($all_languages) > 1 && ! $should_hide_admin_language): ?>
[663] Fix | Delete
<div class="wpml-section wpml-section-admin-language" id="lang-sec-4">
[664] Fix | Delete
<div class="wpml-section-header">
[665] Fix | Delete
<h3><?php esc_html_e( 'Admin language', 'sitepress' ) ?></h3>
[666] Fix | Delete
</div>
[667] Fix | Delete
<div class="wpml-section-content">
[668] Fix | Delete
<form id="icl_admin_language_options" name="icl_admin_language_options" action="">
[669] Fix | Delete
<?php wp_nonce_field('icl_admin_language_options_nonce', '_icl_nonce'); ?>
[670] Fix | Delete
<?php if(is_admin()): ?>
[671] Fix | Delete
<p>
[672] Fix | Delete
<label>
[673] Fix | Delete
<?php _e('Default admin language: ', 'sitepress'); ?>
[674] Fix | Delete
<?php $default_language_details = $sitepress->get_language_details( $default_language ); ?>
[675] Fix | Delete
<select name="icl_admin_default_language">
[676] Fix | Delete
<option value="_default_"><?php printf( esc_html__( 'Default language (currently %s)', 'sitepress' ), $default_language_details['display_name'] ) ?></option>
[677] Fix | Delete
<?php foreach($all_languages as $al):?>
[678] Fix | Delete
<?php if ( $al['active'] ): ?>
[679] Fix | Delete
<option value="<?php echo esc_attr( $al['code'] ) ?>" <?php selected( $sitepress->get_setting( 'admin_default_language' ) == $al['code'] ) ?>>
[680] Fix | Delete
<?php
[681] Fix | Delete
echo esc_html( $al['display_name'] );
[682] Fix | Delete
if ( $sitepress->get_admin_language() != $al['code'] ) {
[683] Fix | Delete
echo ' (' . esc_html( $al['native_name'] ) . ')';
[684] Fix | Delete
}
[685] Fix | Delete
?>&nbsp;
[686] Fix | Delete
</option>
[687] Fix | Delete
<?php endif; ?>
[688] Fix | Delete
<?php endforeach; ?>
[689] Fix | Delete
<?php foreach($all_languages as $al):?>
[690] Fix | Delete
<?php if(!$al['active']): ?>
[691] Fix | Delete
<option value="<?php echo esc_attr( $al['code'] ) ?>" <?php selected( $sitepress->get_setting( 'admin_default_language' ) == $al['code'] ) ?>>
[692] Fix | Delete
<?php
[693] Fix | Delete
echo esc_html( $al['display_name'] );
[694] Fix | Delete
if ( $sitepress->get_admin_language() != $al['code'] ) {
[695] Fix | Delete
echo ' (' . esc_html( $al['native_name'] ) . ')';
[696] Fix | Delete
}
[697] Fix | Delete
?>&nbsp;
[698] Fix | Delete
</option>
[699] Fix | Delete
<?php endif; ?>
[700] Fix | Delete
<?php endforeach; ?>
[701] Fix | Delete
</select>
[702] Fix | Delete
</label>
[703] Fix | Delete
</p>
[704] Fix | Delete
<?php endif; ?>
[705] Fix | Delete
<p><?php printf( __( 'Each user can choose the admin language. You can edit your language preferences by visiting your <a href="%s">profile page</a>.', 'sitepress' ), 'profile.php#wpml' ) ?></p>
[706] Fix | Delete
<p class="buttons-wrap">
[707] Fix | Delete
<span class="icl_ajx_response" id="icl_ajx_response_al"></span>
[708] Fix | Delete
<input class="button button-primary" name="save" value="<?php esc_html_e( 'Save', 'sitepress' ) ?>" type="submit" />
[709] Fix | Delete
</p>
[710] Fix | Delete
</form>
[711] Fix | Delete
</div>
[712] Fix | Delete
</div>
[713] Fix | Delete
<?php endif; ?>
[714] Fix | Delete
[715] Fix | Delete
<?php if(!empty( $setup_complete ) && count($active_languages) > 1): ?>
[716] Fix | Delete
[717] Fix | Delete
<div class="wpml-section wpml-section-hide-languages" id="lang-sec-7">
[718] Fix | Delete
<div class="wpml-section-header">
[719] Fix | Delete
<h3><?php esc_html_e( 'Hide languages', 'sitepress' ) ?></h3>
[720] Fix | Delete
</div>
[721] Fix | Delete
<div class="wpml-section-content">
[722] Fix | Delete
<p><?php esc_html_e( 'You can completely hide content in specific languages from visitors and search engines, but still view it yourself. This allows reviewing translations that are in progress.', 'sitepress' ) ?></p>
[723] Fix | Delete
<form id="icl_hide_languages" name="icl_hide_languages" action="">
[724] Fix | Delete
<?php wp_nonce_field('icl_hide_languages_nonce', '_icl_nonce') ?>
[725] Fix | Delete
<?php foreach($active_languages as $l): ?>
[726] Fix | Delete
<?php if($l['code'] == $default_language_details['code']) continue; ?>
[727] Fix | Delete
<p>
[728] Fix | Delete
<label>
[729] Fix | Delete
<input type="checkbox" name="icl_hidden_languages[]" value="<?php echo esc_attr( $l['code'] ) ?>"
[730] Fix | Delete
<?php checked( ! empty( $hidden_languages ) && in_array( $l['code'], $hidden_languages ) ) ?> />
[731] Fix | Delete
<?php echo esc_html( $l['display_name'] ) ?>
[732] Fix | Delete
</label>
[733] Fix | Delete
</p>
[734] Fix | Delete
<?php endforeach; ?>
[735] Fix | Delete
<p id="icl_hidden_languages_status">
[736] Fix | Delete
<?php
[737] Fix | Delete
if (!empty( $hidden_languages )){
[738] Fix | Delete
//While checking for hidden languages, it cleans any possible leftover from inactive or deleted languages
[739] Fix | Delete
if ( 1 == count( $hidden_languages ) ) {
[740] Fix | Delete
if ( isset( $active_languages[ $hidden_languages[ 0 ] ] ) ) {
[741] Fix | Delete
printf( esc_html__( '%s is currently hidden to visitors.', 'sitepress' ), esc_html( $active_languages[ $hidden_languages[0] ]['display_name'] ) );
[742] Fix | Delete
$hidden_languages[] = $hidden_languages[ 0 ];
[743] Fix | Delete
}
[744] Fix | Delete
} else {
[745] Fix | Delete
$_hlngs = array();
[746] Fix | Delete
foreach ( $hidden_languages as $l ) {
[747] Fix | Delete
if ( isset( $active_languages[ $l ] ) ) {
[748] Fix | Delete
$_hlngs[ ] = $active_languages[ $l ][ 'display_name' ];
[749] Fix | Delete
}
[750] Fix | Delete
}
[751] Fix | Delete
$hlangs = implode( ', ', $_hlngs );
[752] Fix | Delete
printf( esc_html__( '%s are currently hidden to visitors.', 'sitepress' ), esc_html( $hlangs ) );
[753] Fix | Delete
}
[754] Fix | Delete
[755] Fix | Delete
$hidden_languages = array_unique($hidden_languages);
[756] Fix | Delete
$sitepress->set_setting('hidden_languages', $hidden_languages);
[757] Fix | Delete
[758] Fix | Delete
echo '<p>';
[759] Fix | Delete
printf( __( 'You can enable its/their display for yourself, in your <a href="%s">profile page</a>.', 'sitepress' ), 'profile.php#wpml' );
[760] Fix | Delete
echo '</p>';
[761] Fix | Delete
}
[762] Fix | Delete
else {
[763] Fix | Delete
esc_html_e( 'All languages are currently displayed.', 'sitepress' );
[764] Fix | Delete
}
[765] Fix | Delete
?>
[766] Fix | Delete
</p>
[767] Fix | Delete
<p class="buttons-wrap">
[768] Fix | Delete
<span class="icl_ajx_response" id="icl_ajx_response_hl"></span>
[769] Fix | Delete
<input class="button button-primary" name="save" value="<?php esc_attr_e( 'Save', 'sitepress' ) ?>" type="submit" />
[770] Fix | Delete
</p>
[771] Fix | Delete
</form>
[772] Fix | Delete
</div>
[773] Fix | Delete
</div>
[774] Fix | Delete
[775] Fix | Delete
<div class="wpml-section wpml-section-ml-themes" id="lang-sec-8">
[776] Fix | Delete
<div class="wpml-section-header">
[777] Fix | Delete
<h3><?php esc_html_e( 'Make themes work multilingual', 'sitepress' ) ?></h3>
[778] Fix | Delete
</div>
[779] Fix | Delete
<div class="wpml-section-content">
[780] Fix | Delete
<form id="icl_adjust_ids" name="icl_adjust_ids" action="">
[781] Fix | Delete
<?php wp_nonce_field('icl_adjust_ids_nonce', '_icl_nonce'); ?>
[782] Fix | Delete
<p><?php esc_html_e( 'This feature turns themes into multilingual, without having to edit their PHP files.', 'sitepress' ) ?></p>
[783] Fix | Delete
<p>
[784] Fix | Delete
<label>
[785] Fix | Delete
<input type="checkbox" value="1" name="icl_adjust_ids" <?php checked( $sitepress->get_setting( 'auto_adjust_ids' ) ) ?> />
[786] Fix | Delete
<?php esc_html_e( 'Adjust IDs for multilingual functionality', 'sitepress' ) ?>
[787] Fix | Delete
</label>
[788] Fix | Delete
</p>
[789] Fix | Delete
<p class="explanation-text"><?php esc_html_e( 'Note: auto-adjust IDs will increase the number of database queries for your site.', 'sitepress' ) ?></p>
[790] Fix | Delete
<p class="buttons-wrap">
[791] Fix | Delete
<span class="icl_ajx_response" id="icl_ajx_response_ai"></span>
[792] Fix | Delete
<input class="button button-primary" name="save" value="<?php esc_attr_e( 'Save', 'sitepress' ) ?>" type="submit" />
[793] Fix | Delete
</p>
[794] Fix | Delete
</form>
[795] Fix | Delete
</div>
[796] Fix | Delete
</div>
[797] Fix | Delete
[798] Fix | Delete
<div class="wpml-section wpml-section-redirect" id="lang-sec-9">
[799] Fix | Delete
<div class="wpml-section-header">
[800] Fix | Delete
<h3><?php esc_html_e( 'Browser language redirect', 'sitepress' ) ?></h3>
[801] Fix | Delete
</div>
[802] Fix | Delete
<div class="wpml-section-content">
[803] Fix | Delete
<p><?php esc_html_e( 'WPML can automatically redirect visitors according to browser language.', 'sitepress' ) ?></p>
[804] Fix | Delete
<p class="explanation-text"><?php esc_html_e( "This feature uses Javascript. Make sure that your site doesn't have JS errors.", 'sitepress' ) ?></p>
[805] Fix | Delete
<form id="icl_automatic_redirect" name="icl_automatic_redirect" action="">
[806] Fix | Delete
<?php wp_nonce_field('icl_automatic_redirect_nonce', '_icl_nonce') ?>
[807] Fix | Delete
<ul>
[808] Fix | Delete
<li><label>
[809] Fix | Delete
<input type="radio" value="0" name="icl_automatic_redirect" <?php checked( empty( $automatic_redirect ) ) ?> />
[810] Fix | Delete
<?php esc_html_e( 'Disable browser language redirect', 'sitepress' ) ?>
[811] Fix | Delete
</label></li>
[812] Fix | Delete
<li><label>
[813] Fix | Delete
<input type="radio" value="1" name="icl_automatic_redirect" <?php checked( 1, $automatic_redirect ) ?> />
[814] Fix | Delete
<?php esc_html_e( 'Redirect visitors based on browser language only if translations exist', 'sitepress' ) ?>
[815] Fix | Delete
</label></li>
[816] Fix | Delete
<li><label>
[817] Fix | Delete
<input type="radio" value="2" name="icl_automatic_redirect" <?php checked( 2, $automatic_redirect ) ?> />
[818] Fix | Delete
<?php esc_html_e( 'Always redirect visitors based on browser language (redirect to home page if translations are missing)', 'sitepress' ) ?>
[819] Fix | Delete
</label></li>
[820] Fix | Delete
</ul>
[821] Fix | Delete
<ul>
[822] Fix | Delete
<li>
[823] Fix | Delete
<label>
[824] Fix | Delete
<?php
[825] Fix | Delete
printf(
[826] Fix | Delete
esc_html__( "Remember visitors' language preference for %s hours (please enter 24 or multiples of it).", 'sitepress' ),
[827] Fix | Delete
'<input size="2" type="number" min="24" value="' . (int) $sitepress->get_setting( 'remember_language' ) . '" name="icl_remember_language" /> '
[828] Fix | Delete
);
[829] Fix | Delete
?>
[830] Fix | Delete
<?php if(!$wpml_request_handler->get_cookie_lang()): ?>
[831] Fix | Delete
<span class="icl_error_text"><?php esc_html_e( "Your browser doesn't seem to be allowing cookies to be set.", 'sitepress' ) ?></span>
[832] Fix | Delete
<?php endif; ?>
[833] Fix | Delete
</label></li>
[834] Fix | Delete
</ul>
[835] Fix | Delete
<div class="wpml-form-message update-nag js-redirect-warning"<?php if( empty( $automatic_redirect ) ) : ?> style="display: none;"<?php endif; ?>>
[836] Fix | Delete
<?php
[837] Fix | Delete
$redirect_warning_1 = esc_html__( "Browser language redirect may affect your site's indexing", 'sitepress' );
[838] Fix | Delete
$redirect_warning_2 = esc_html__( 'learn more', 'sitepress' );
[839] Fix | Delete
$url = 'https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language/how-browser-language-redirect-affects-google-indexing/';
[840] Fix | Delete
echo $redirect_warning_1 . '- <a href="' . $url . '" target="_blank">' . $redirect_warning_2 . '</a>';
[841] Fix | Delete
?>
[842] Fix | Delete
</div>
[843] Fix | Delete
<p class="buttons-wrap">
[844] Fix | Delete
<span class="icl_ajx_response" id="icl_ajx_response_ar"></span>
[845] Fix | Delete
<input class="button button-primary" name="save" value="<?php esc_attr_e( 'Save', 'sitepress' ) ?>" type="submit" />
[846] Fix | Delete
</p>
[847] Fix | Delete
</form>
[848] Fix | Delete
</div>
[849] Fix | Delete
</div>
[850] Fix | Delete
<?php endif; ?>
[851] Fix | Delete
<?php endif; ?>
[852] Fix | Delete
[853] Fix | Delete
[854] Fix | Delete
<?php if(!empty( $setup_complete )): ?>
[855] Fix | Delete
[856] Fix | Delete
<?php
[857] Fix | Delete
$request_get_page = filter_input(INPUT_GET, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
[858] Fix | Delete
do_action('icl_extra_options_' . $request_get_page);
[859] Fix | Delete
[860] Fix | Delete
$seo_ui = new WPML_SEO_HeadLangs( $sitepress, new WPML_Queried_Object_Factory() );
[861] Fix | Delete
$seo_ui->render_menu();
[862] Fix | Delete
?>
[863] Fix | Delete
<div class="wpml-section wpml-section-wpml-love" id="lang-sec-10">
[864] Fix | Delete
<div class="wpml-section-header">
[865] Fix | Delete
<h3><?php esc_html_e( 'WPML love', 'sitepress' ) ?></h3>
[866] Fix | Delete
</div>
[867] Fix | Delete
<div class="wpml-section-content">
[868] Fix | Delete
<form id="icl_promote_form" name="icl_promote_form" action="">
[869] Fix | Delete
<?php wp_nonce_field('icl_promote_form_nonce', '_icl_nonce'); ?>
[870] Fix | Delete
<p>
[871] Fix | Delete
<label><input type="checkbox" name="icl_promote" <?php checked( $sitepress->get_setting( 'promote_wpml' ) ) ?> value="1" />
[872] Fix | Delete
<?php printf(__("Tell the world your site is running multilingual with WPML (places a message in your site's footer) - <a href=\"%s\">read more</a>", 'sitepress'),'https://wpml.org/?page_id=4560'); ?></label>
[873] Fix | Delete
</p>
[874] Fix | Delete
<p class="buttons-wrap">
[875] Fix | Delete
<span class="icl_ajx_response" id="icl_ajx_response_lv"></span>
[876] Fix | Delete
<input class="button button-primary" name="save" value="<?php esc_attr_e( 'Save', 'sitepress' ) ?>" type="submit" />
[877] Fix | Delete
</p>
[878] Fix | Delete
</form>
[879] Fix | Delete
</div>
[880] Fix | Delete
</div>
[881] Fix | Delete
[882] Fix | Delete
<?php endif; ?>
[883] Fix | Delete
[884] Fix | Delete
<?php
[885] Fix | Delete
do_action( 'wpml_after_settings', $theme_wpml_config_file );
[886] Fix | Delete
[887] Fix | Delete
/**
[888] Fix | Delete
* @deprecated use `wpml_after_settings` instead
[889] Fix | Delete
*/
[890] Fix | Delete
do_action( 'wpml_admin_after_wpml_love', $theme_wpml_config_file );
[891] Fix | Delete
[892] Fix | Delete
/**
[893] Fix | Delete
* @deprecated use `wpml_menu_footer` instead
[894] Fix | Delete
*/
[895] Fix | Delete
do_action( 'icl_menu_footer' );
[896] Fix | Delete
do_action( 'wpml_menu_footer' );
[897] Fix | Delete
?>
[898] Fix | Delete
[899] Fix | Delete
</div> <!-- .wrap -->
[900] Fix | Delete
<?php
[901] Fix | Delete
}
[902] Fix | Delete
//Save any changed setting
[903] Fix | Delete
$sitepress->save_settings();
[904] Fix | Delete
[905] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function