public function notices() { $options = self::get_option(); if (isset($options['dis_features']) && is_array($options['dis_features'])) { if (in_array('staticblock', $options['dis_features'])) { NTH_Admin_Notices::create(__('<strong>WARNING!</strong> If you disabled "Static block", some featured on theme will not working (Ex: Mega menu, Static block widget, Static block shortcode, ... )', 'nexthemes-plugin'), 'warning'); } } }
public static function create($msg, $type = 'updated') { self::$msg = $msg; self::$type = $type; switch ($type) { case "updated": self::$class[] = $type; break; case "warning": self::$class[] = "updated"; self::$class[] = $type; break; default: self::$class = $type; } add_action('admin_notices', array(__CLASS__, 'notices_call')); }