'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/' ) ) ) . ''; ?>
' . 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 ) ) . ''
);
?>
links_model->using_permalinks ) {
?>
page_on_front ) {
?>
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
}
}