one-click-accessibility/modules/legacy/notices/dismissible-deprecated-nag.php
Nirbhay Singh 27bfa67219
Update/app 1029 app name (#173)
* update: plugin name

* update: default menu option

* update: menu structure

* update: add inline checks

* update: reduce padding on app icon in menu

* fix: height of the modal

* update: app menu icon color

* update: menu icon colors

* fix: menu icon size

* update: plugin names

* update: HELP_LINK

* update: app name

* update: icon background color

* update: icon size

* fix: admin icon size

* fix: width of the sidebar
2025-02-10 20:14:53 +05:30

42 lines
1.5 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace EA11y\Modules\Legacy\Notices;
use EA11y\Classes\Utils\Notice_Base;
use EA11y\Modules\Legacy\Components\Upgrade;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* Class Dismissible_Deprecated_Nag
*/
class Dismissible_Deprecated_Nag extends Notice_Base {
public string $type = 'info';
public bool $is_dismissible = true;
public bool $per_user = true;
public $capability = 'manage_options';
public string $id = 'dismissible-deprecated-nag';
public function maybe_add_nag_deprecation_notice() {
if ( Upgrade::is_legacy_page() ) {
$this->conditions = false;
}
}
public function content(): string {
return sprintf( '<p>%s <a href="%s">%s</a></p><p><a class="button button-primary" href="%s">%s</a></p>',
esc_html__( 'Time to take your sites accessibility to the next level with Ally - Web Accessibility by Elementor, our newest plugin packed with advanced widget customization, flexible feature controls, and a built-in statement generator. Want more details before switching?', 'pojo-accessibility' ),
esc_attr( Upgrade::get_learn_more_link( 'acc-notice-switch-dash' ) ),
esc_html__( 'Learn more', 'pojo-accessibility' ),
esc_attr( Upgrade::get_switch_now_link() ),
esc_html__( 'Switch To Ally - Web Accessibility by Elementor', 'pojo-accessibility' )
);
}
public function __construct() {
add_action( 'current_screen', [ $this, 'maybe_add_nag_deprecation_notice' ] );
parent::__construct();
}
}