public function display_feature_message()
{
$current_screen = get_current_screen();
if (!isset($current_screen)) {
return;
}
$page = is_multisite() ? HMBKP_ADMIN_PAGE . '-network' : HMBKP_ADMIN_PAGE;
if ($current_screen->id !== $page) {
return;
}
/* translators: %1$s and %2$s expand to anchor tags linking to the new extensions page. */
$info_message = sprintf(__('Thanks for updating BackUpWordPress, why not check out %1$sour extensions?%2$s', 'backupwordpress'), '<a href="' . esc_url(get_settings_url(HMBKP_PLUGIN_SLUG . '_extensions')) . '">', '</a>');
?>
<div id="hmbkp-info-message" class="updated notice is-dismissible">
<p><?php
echo wp_kses_post($info_message);
?>
</p>
<button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php
esc_html_e('Dismiss this notice.', 'backupwordpress');
?>
</span></button>
</div>
<?php
}