v1.2.2
This commit is contained in:
parent
b795c1659a
commit
d4839310cf
15 changed files with 1045 additions and 1061 deletions
|
|
@ -59,15 +59,25 @@ if ( ! class_exists( 'AI_Translator_Admin' ) ) {
|
|||
*/
|
||||
private $settings;
|
||||
|
||||
/**
|
||||
* Manager presence notice handler.
|
||||
*
|
||||
* @since 1.2.2
|
||||
* @var AI_Translator_Manager_Notice
|
||||
*/
|
||||
private $manager_notice;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @param AI_Translator_Settings $settings Settings handler.
|
||||
* @param AI_Translator_Settings $settings Settings handler.
|
||||
* @param AI_Translator_Manager_Notice $manager_notice Manager notice handler.
|
||||
*/
|
||||
public function __construct( AI_Translator_Settings $settings ) {
|
||||
$this->settings = $settings;
|
||||
public function __construct( AI_Translator_Settings $settings, AI_Translator_Manager_Notice $manager_notice ) {
|
||||
$this->settings = $settings;
|
||||
$this->manager_notice = $manager_notice;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -195,6 +205,8 @@ if ( ! class_exists( 'AI_Translator_Admin' ) ) {
|
|||
<div class="wrap">
|
||||
<h1><?php echo esc_html__( 'AI Translator Settings', 'robotstxt-ai-translator' ); ?></h1>
|
||||
|
||||
<?php $this->manager_notice->render_settings_notice(); ?>
|
||||
|
||||
<?php if ( $updated ) : ?>
|
||||
<div class="notice notice-success is-dismissible">
|
||||
<p><?php echo esc_html__( 'Settings saved.', 'robotstxt-ai-translator' ); ?></p>
|
||||
|
|
@ -329,6 +341,8 @@ if ( ! class_exists( 'AI_Translator_Admin' ) ) {
|
|||
<div class="wrap">
|
||||
<h1><?php echo esc_html__( 'AI Translator Network Settings', 'robotstxt-ai-translator' ); ?></h1>
|
||||
|
||||
<?php $this->manager_notice->render_settings_notice(); ?>
|
||||
|
||||
<?php if ( $updated ) : ?>
|
||||
<div class="notice notice-success is-dismissible">
|
||||
<p><?php echo esc_html__( 'Network settings saved.', 'robotstxt-ai-translator' ); ?></p>
|
||||
|
|
|
|||
Loading…
Reference in a new issue