/** * Creates a new notification with a long list of style options available. * * @deprecated do not use this function */ public function notice_depreciated($message, $type = 'success', $size = 'Extra', $title = false, $helpurl = 'www.webtechglobal.co.uk', $output_type = 'echo', $persistent = false, $clickable = false, $user_type = false) { global $c2p_notice_array; if (is_admin() || $output_type == 'public') { // change unexpected values into expected values (for flexability and to help avoid fault) if ($type == 'accepted') { $type == 'success'; } if ($type == 'fault') { $type == 'error'; } if ($type == 'next') { $type == 'step'; } // prevent div being clickable if help url giving (we need to more than one link in the message) if ($helpurl != false && $helpurl != '' && $helpurl != 'http://www.csv2post.com/support') { $clickable = false; } if ($output_type == 'return' || $output_type == 'public') { return $this->notice_display_depreciated($type, $helpurl, $size, $title, $message, $clickable, $persistent); } else { // establish next array key $next_key = 0; if (isset($c2p_notice_array['notifications'])) { $next_key = CSV2POST::get_array_nextkey($c2p_notice_array['notifications']); } // add new message to the notifications array $c2p_notice_array['notifications'][$next_key]['message'] = $message; $c2p_notice_array['notifications'][$next_key]['type'] = $type; $c2p_notice_array['notifications'][$next_key]['size'] = $size; $c2p_notice_array['notifications'][$next_key]['title'] = $title; $c2p_notice_array['notifications'][$next_key]['helpurl'] = $helpurl; $c2p_notice_array['notifications'][$next_key]['clickable'] = $clickable; $this->update_persistentnotifications_array($c2p_notice_array); } } }