8889841cwp-content/plugins/unlimited-elements-for-elementor-premium/provider/admin_notices/manager.class.php000064400000002300150535727200037161 0ustar00home/clixcotz/travelport.clix.co.tzgetId()] = $notice; } /** * mark the notice as dismissed */ public static function dismissNotice($id){ $notice = self::getNotice($id); if($notice === null) return; $notice->dismiss(); } /** * postpone the notice for the given duration (in hours) */ public static function postponeNotice($id, $duration){ $notice = self::getNotice($id); if($notice === null) return; $notice->postpone($duration); } /** * get the notice by identifier */ private static function getNotice($id){ if(empty(self::$notices[$id])) return null; return self::$notices[$id]; } }