'url', 'title' => __( 'URL modifications', 'polylang' ), 'description' => __( 'Decide how your URLs will look like.', 'polylang' ), ) ); $this->page_on_front = &$polylang->static_pages->page_on_front; } /** * Displays the fieldset to choose how the language is set * * @since 1.8 * * @return void */ protected function force_lang() { if ( 'yes' === get_option( 'pll_language_from_content_available' ) ) { ?>

' . esc_html( home_url( $this->links_model->using_permalinks ? 'en/my-post/' : '?lang=en&p=1' ) ) . ''; ?>

' . esc_html( str_replace( array( '://', 'www.' ), array( '://en.', '' ), home_url( 'my-post/' ) ) ) . ''; ?>

options['force_lang'] ? '' : 'style="display: none;"'; ?>> model->get_languages_list() as $lg ) { $url = $this->options['domains'][ $lg->slug ] ?? ( $lg->is_default ? $this->links_model->home : '' ); printf( '' . '', esc_attr( $lg->slug ), esc_attr( $lg->name ), esc_url( $url ) ); } ?>

' . esc_html( home_url( 'en/' ) ) . ''; ?>

' . esc_html( home_url( 'language/en/' ) ) . ''; ?>

model->post->get_language( $this->page_on_front ); /** @var PLL_Language $lang */ $lang = $lang ?: $this->model->get_default_language(); printf( /* translators: %1$s example url when the option is active. %2$s example url when the option is not active */ esc_html__( 'Example: %1$s instead of %2$s', 'polylang' ), '' . esc_html( $this->links_model->home_url( $lang ) ) . '', '' . esc_html( _get_page_link( $this->page_on_front ) ) . '' ); ?>

force_lang(); ?>
$this->options['force_lang'] ? '' : 'style="display: none;"'; ?>> hide_default(); ?>
links_model->using_permalinks ) { ?>
$this->options['force_lang'] ? '' : 'style="display: none;"'; ?>> rewrite(); ?>
page_on_front ) { ?>
$this->options['force_lang'] ? '' : 'style="display: none;"'; ?>> redirect_lang(); ?>
0, 'domains' => array(), 'hide_default' => 0, 'rewrite' => 0, 'redirect_lang' => 0, ); return array_intersect_key( array_merge( $defaults, $options ), $defaults ); // Take care to return only validated options } }