Method | Description | |
---|---|---|
__construct ( Inpsyde\MultilingualPress\Module\ModuleManager $module_manager, Mlp_Language_Api_Interface $language_api, |
Constructor. Sets up the properties. | |
deactivate_module ( ) : void | Deletes the according site option on module deactivation. | |
draw_options_page_form_fields ( ) : void | Displays the module options page form fields. | |
extend_allowed_hosts ( array $home_hosts, string $remote_host ) : string[] | Adds all domains of the network to the allowed hosts. | |
frontend_tab ( string $content ) : string | Create the tab and prepend it to the body tag. | |
initialize ( ) : void | Wires up all functions. | |
load_style ( ) : boolean | Requires the stylesheet. | |
save_options_page_form_fields ( ) : void | Saves module user input. | |
update ( string $name ) : void | Nothing to do here. |
Method | Description | |
---|---|---|
get_html_container ( string $selections, string $type, array $translated, string $position ) : string | Returns the remote post links in form of up to three link elements, or a select element for more than three links. | |
to_html ( array $translated, string $position ) : string | Converts the list of translated posts into HTML. |
Method | Description | |
---|---|---|
get_translations ( ) : Inpsyde\MultilingualPress\Common\Type\Translation[] | Returns the translations. | |
redirect_quick_link ( string $url ) : void | Catches quicklink submissions and redirects if the URL is valid. | |
register_setting ( ) : boolean | Registers the module. |
public __construct ( Inpsyde\MultilingualPress\Module\ModuleManager $module_manager, Mlp_Language_Api_Interface $language_api, |
||
$module_manager | Inpsyde\MultilingualPress\Module\ModuleManager | Module manager object. |
$language_api | Mlp_Language_Api_Interface | Language API object. |
$asset_manager | Asset manager object. | |
$nonce | Inpsyde\MultilingualPress\Common\Nonce\Nonce | Nonce object. |
public static deactivate_module ( ) : void | ||
return | void |
public draw_options_page_form_fields ( ) : void | ||
return | void |
public extend_allowed_hosts ( array $home_hosts, string $remote_host ) : string[] | ||
$home_hosts | array | Array with one entry: the host of home_url(). |
$remote_host | string | Host name of the URL to validate. |
return | string[] |
public frontend_tab ( string $content ) : string | ||
$content | string | HTML content. |
return | string |
protected get_html_container ( string $selections, string $type, array $translated, string $position ) : string | ||
$selections | string | 'option' or 'a' elements. |
$type | string | 'links' or 'form'. |
$translated | array | Original array of translated posts, passed to the filter. |
$position | string | Quicklink position. |
return | string |
public save_options_page_form_fields ( ) : void | ||
return | void |