id : null); // Start the notices array off with any that are queued. $notices = adplugg_notice_pull_all_queued(); // Add any new notices based on the current state of the plugin, etc. if(!adplugg_is_access_code_installed()) { if($screen_id != "settings_page_adplugg") { $notices[]= AdPlugg_Notice::create('nag_configure', 'You\'ve activated the AdPlugg Plugin, yay! Now let\'s configure it!'); } } else { if(!adplugg_is_widget_active()) { if($screen_id == "widgets") { $notices[]= AdPlugg_Notice::create('nag_widget_1', 'Drag the AdPlugg Widget into a Widget Area to display ads on your site.', 'updated', true, '+30 days'); } else { $notices[]= AdPlugg_Notice::create('nag_widget_2', 'You\'re configured and ready to go. Now just drag the AdPlugg Widget into a Widget Area. Go to Widget Configuration.', 'updated', true, '+30 days'); } } } //print the notices $out = ''; foreach($notices as $notice) { if(!$notice->is_dismissed()) { $out .= '
' . 'AdPlugg: ' . $notice->get_message() . '
'; if($notice->is_dismissible()) { $out .= '' . '' . '' . '
'; } $out .= '