| 1 |
<?php |
| 2 |
|
| 3 |
namespace PXLBSAdminify\Inc\Modules\DismissNotices; |
| 4 |
|
| 5 |
use PXLBSAdminify\Inc\Admin\AdminSettings; |
| 6 |
use PXLBSAdminify\Inc\Admin\AdminSettingsModel; |
| 7 |
|
| 8 |
|
| 9 |
// no direct access allowed |
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
exit; |
| 12 |
} |
| 13 |
|
| 14 |
/** |
| 15 |
* WP Adminify |
| 16 |
* Module: Dismiss Admin Notices |
| 17 |
* |
| 18 |
* @author Jewel Theme <support@jeweltheme.com> |
| 19 |
*/ |
| 20 |
|
| 21 |
if ( ! class_exists( 'Dismiss_Admin_Notices' ) ) { |
| 22 |
/** |
| 23 |
* Base class for the Dismiss Admin Notices module. The free build |
| 24 |
* has no admin-notice handlers of its own — every concrete handler |
| 25 |
* (welcome_panel, php_nag, core/plugin/theme update notices, |
| 26 |
* site_health, and the hide-notices stack) lives in |
| 27 |
* Pro/Classes/DismissNotice_Pro.php which extends this class. |
| 28 |
* |
| 29 |
* Kept as an empty base so DismissNotice_Pro continues to extend |
| 30 |
* a known free-side class. |
| 31 |
*/ |
| 32 |
class Dismiss_Admin_Notices extends AdminSettingsModel { |
| 33 |
public function __construct() { |
| 34 |
$this->options = (array) AdminSettings::get_instance()->get(); |
| 35 |
} |
| 36 |
} |
| 37 |
} |
| 38 |
|