ClassFrontend
in package
Class Frontend.
Handle all Request to to browser Frontend
Tags
Table of Contents
Properties
- $base_domain : mixed
- $domain : mixed
- $domains : mixed
- $lang_codes : mixed
- $options : mixed
- $source_lang_code : mixed
- $target_lang_code : mixed
Methods
- __construct() : mixed
- Class Constructor.
- add_scripts() : void
- Add the extra plugins JavaScript files, like google translate and its callback ini functions.
- add_styles() : void
- Add the extra plugins CSS files for hiding the google trans tool bar See doc https://developer.wordpress.org/reference/functions/wp_register_style/.
- is_active() : boolen
- Check if the plugin is set Active.
- set_domain() : string
- Set Class Propertier like actual Domain.
- set_lang_codes() : void
- Class function to set all set domain target language combinations.
Properties
$base_domain
private
mixed
$base_domain
$domain
private
mixed
$domain
$domains
private
mixed
$domains
$lang_codes
private
mixed
$lang_codes
$options
private
mixed
$options
$source_lang_code
private
mixed
$source_lang_code
$target_lang_code
private
mixed
$target_lang_code
Methods
__construct()
Class Constructor.
public
__construct() : mixed
If Source and Target is set, init the plugins
Tags
add_scripts()
Add the extra plugins JavaScript files, like google translate and its callback ini functions.
public
add_scripts() : void
Tags
add_styles()
Add the extra plugins CSS files for hiding the google trans tool bar See doc https://developer.wordpress.org/reference/functions/wp_register_style/.
public
add_styles() : void
Tags
is_active()
Check if the plugin is set Active.
public
is_active() : boolen
Tags
Return values
boolen —- true or false
set_domain()
Set Class Propertier like actual Domain.
public
set_domain() : string
Tags
Return values
string —- Actual Domain
set_lang_codes()
Class function to set all set domain target language combinations.
public
set_lang_codes(mixed $domain, mixed $options) : void
Parameters
- $domain : mixed
- $options : mixed