PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
sitepress-multilingual-cms
/
inc
<?php /** * Class SitePressLanguageSwitcher * * @deprecated since 3.6.0 */ class SitePressLanguageSwitcher { /** * @deprecated since 3.6.0 * * @return string */ static function get_language_selector_footer() { ob_start(); do_action( 'wpml_footer_language_selector' ); $output = ob_get_contents(); ob_end_clean(); return $output; } /** * @deprecated since 3.6.0 */ function language_selector_footer() { do_action( 'wpml_footer_language_selector' ); } /** * @param string $native_name * @param bool $translated_name * @param bool $show_native_name * @param bool $show_translate_name * @param bool $include_html * * @return string * @deprecated since 3.6.0 * */ public function language_display( $native_name, $translated_name = false, $show_native_name = false, $show_translate_name = false, $include_html = true ) { $result = ''; if ( ! $show_native_name ) { $native_name = ''; } if ( ! $show_translate_name ) { $translated_name = ''; } if ( $native_name && $translated_name ) { if ( $native_name != $translated_name ) { if ( $show_native_name ) { if ( $include_html ) { $result .= '<span class="icl_lang_sel_native">'; } $result .= '%1$s'; if ( $include_html ) { $result .= '</span>'; } if ( $show_translate_name ) { $result .= ' '; if ( $include_html ) { $result .= '<span class="icl_lang_sel_translated">'; } $result .= $show_native_name ? '<span class="icl_lang_sel_bracket">(</span>%2$s<span class="icl_lang_sel_bracket">)</span>' : '%2$s'; if ( $include_html ) { $result .= '</span>'; } } } elseif ( $show_translate_name ) { if ( $include_html ) { $result .= '<span class="icl_lang_sel_translated">'; } $result .= '%2$s'; if ( $include_html ) { $result .= '</span>'; } } } else { if ( $include_html ) { $result .= '<span class="icl_lang_sel_current icl_lang_sel_native">'; } $result .= '%1$s'; if ( $include_html ) { $result .= '</span>'; } } } elseif ( $native_name ) { $result = '%1$s'; } elseif ( $translated_name ) { $result = '%2$s'; } return sprintf( $result, $native_name, $translated_name ); } } // end class global $icl_language_switcher; $icl_language_switcher = new SitePressLanguageSwitcher();
[-] constants.php
[edit]
[-] functions-helpers.php
[edit]
[-] functions-load.php
[edit]
[-] plugins-integration.php
[edit]
[-] functions-sanitation.php
[edit]
[-] lang-data.php
[edit]
[-] template-functions.php
[edit]
[-] import-xml.php
[edit]
[+]
utilities
[+]
absolute-links
[-] ajax.php
[edit]
[-] wpml-post-edit-ajax.class.php
[edit]
[-] functions-troubleshooting.php
[edit]
[-] hacks.php
[edit]
[-] functions-network.php
[edit]
[-] functions-security.php
[edit]
[-] cache.php
[edit]
[+]
tools
[-] wpml-private-actions.php
[edit]
[-] functions.php
[edit]
[+]
translation-jobs
[+]
hacks
[+]
wpml-config
[-] wpml-api.php
[edit]
[+]
local-translation
[-] wpml-private-filters.php
[edit]
[+]
translation-proxy
[-] wpml-private-actions-tm.php
[edit]
[+]
taxonomy-term-translation
[+]
setup
[-] wpml_zip.php
[edit]
[-] language-switcher.php
[edit]
[-] wpml-post-comments.class.php
[edit]
[+]
url-handling
[-] functions-load-tm.php
[edit]
[-] plugin-integration-nextgen.php
[edit]
[-] js-scripts.php
[edit]
[+]
query-filtering
[-] constants-tm.php
[edit]
[+]
translation-management
[-] js-tm-scripts.php
[edit]
[-] upgrade.php
[edit]
[+]
upgrade-functions
[+]
..
[-] icl-admin-notifier.php
[edit]
[-] not-compatible-plugins.php
[edit]
[-] deprecated-hooks.php
[edit]
[+]
actions
[-] functions-debug-information.php
[edit]
[+]
core
[+]
wp-nav-menus
[+]
post-translation
[-] wpml_load_request_handler.php
[edit]